sparc64: Use dbl-64/wordsize-64 math lib code.
[platform/upstream/glibc.git] / ChangeLog
1 2010-03-04  David S. Miller  <davem@davemloft.net>
2
3         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
4
5 2010-03-03  David S. Miller  <davem@davemloft.net>
6
7         * math/math_private.h (INSERT_WORDS64): Fix argument order.
8
9 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
10
11         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
12
13 2010-03-03  David S. Miller  <davem@davemloft.net>
14
15         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
16         pass '1' for 't' argument to sparc_fixup_plt.
17         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
18         Likewise.
19         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
20         (sparc_fixup_plt): Document 't' argument.  Enable branch
21         optimization and use v9 branches when possible.  Explain why we
22         cannot unconditionally patch the branch into the first PLT
23         instruction.
24         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
25         argument.  Use v9 branches when possible.  Explain why we can in
26         fact unconditionally use a branch in the first PLT instruction
27         here.
28
29 2010-02-28  Roland McGrath  <roland@redhat.com>
30
31         * elf/elf.h (NT_X86_XSTATE): New macro.
32
33 2010-02-25  David S. Miller  <davem@davemloft.net>
34
35         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
36         * sysdeps/sparc/sparc64/align-cpy.S: New.
37         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
38         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
39         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
40         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
41         Remove.
42         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
43         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
44         Remove.
45         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
46         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
47         Remove.
48
49         * sysdeps/sparc/sparc32/bcopy.c: Delete.
50         * sysdeps/sparc/sparc32/memmove.c: Delete.
51         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
52         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
53         * sysdeps/sparc/sparc64/bcopy.c: Delete.
54         * sysdeps/sparc/sparc64/memmove.c: Delete.
55         * sysdeps/sparc/sparc64/memcopy.h: New.
56         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
57         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
58         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
59         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
60         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
61
62         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
63         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
64         gen-as-const-headers.
65         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
66         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
67         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
68         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
69         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
70         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
71         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
72         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
73         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
74         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
75         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
76         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
77         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
78         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
79         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
80         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
81         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
82         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
83         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
84         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
85         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
86         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
87         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
88         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
89
90 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
91
92         [BZ #11332]
93         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
94         and cfi_restore_state only if USE_AS_STRNCMP is defined.
95
96 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
97
98         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
99
100 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
101
102         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
103         (bk_write_less32bytes_2): Renamed to ...
104         (bk_write_less48bytes): This.
105         Use unsigned conditional jumps.
106         Correct unwind info.
107         Use add/sub instead of lea if possible.
108         (shl_0_gobble_cache_loop_tail): Removed.
109         (large_page): Properly adjust ECX.
110
111         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
112         conditional jumps.
113         Correct unwind info.
114
115         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
116         punpcklbw.
117         Use unsigned conditional jumps.
118         (128bytesormore_nt): Renamed to ...
119         (128bytesormore_endof_L1): This.
120         Use add instead of lea if possible.
121         Correct unwind info.
122         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
123         punpcklbw.
124         Use unsigned conditional jumps.
125         Use add instead of lea if possible.
126         Correct unwind info.
127
128 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
129
130         [BZ #11319]
131         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
132         undoing the stream because _IO_FINISH doesn't report failures.
133
134         [BZ #5553]
135         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
136         (public_pVALLOc): Likewise.
137         Patch by Petr Baudis.
138
139 2010-02-22  Jim Meyering  <meyering@redhat.com>
140
141         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
142
143         * manual/charset.texi: Adjust grammar.
144
145         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
146         * manual/charset.texi (Selecting the Conversion): Likewise.
147         * manual/getopt.texi (Getopt Long Options): Likewise.
148         * manual/memory.texi (Resizing the Data Segment): Likewise.
149         * manual/message.texi (GUI program problems): Likewise.
150         * manual/resource.texi (CPU Affinity): Likewise.
151         * manual/stdio.texi (Streams and Threads): Likewise.
152         * manual/time.texi (High Accuracy Clock): Likewise.
153
154 2009-02-20  David S. Miller  <davem@davemloft.net>
155
156         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
157         Adjust rela->r_offset by l->l_addr when rewriting PLT.
158
159         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
160         test end of buffer.
161
162         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
163         (__makecontext): Adjust arg counter properly when copying arg
164         stack slots.
165
166 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
167
168         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
169         Adjust rela->r_offset by l->l_addr when rewriting PLT.
170
171 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
172
173         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
174         non-existent `tiocsctty_port'.
175
176 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
177
178         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
179         instead of FEATURE_OFFSET.
180         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
181
182         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
183         Fix one unwind info problem.
184
185         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
186
187         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
188
189 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
190             Ulrich Drepper  <drepper@redhat.com>
191
192         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
193         Clean up a bit.
194
195 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
196
197         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
198         (tiocsctty_port): ...this new function.
199
200         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
201         `ioctl_handler_t'.
202
203 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
204
205         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
206         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
207         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
208         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
209
210         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
211         undefined code.
212
213 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
214
215         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
216         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
217         memcmp-c, memcmp-ssse3, and memcmp-sse4.
218         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
219         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
220         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
221         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
222         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
223         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
224         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
225         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
226         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
227         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
228
229 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
230
231         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
232         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
233         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
234         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
235         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
236         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
237         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
238         is not supported.
239         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
240         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
241         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
242         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
243         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
244         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
245         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
246         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
247         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
248         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
249         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
250         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
251         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
252         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
253         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
254         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
255         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
257         Likewise.
258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
259         Likewise.
260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
261         Likewise.
262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
263         Likewise.
264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
265
266 2010-02-12  Alan Modra  <amodra@gmail.com>
267
268         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
269         Define and use for __powerpc64__ too.
270         [__powerpc__] (TLS_LD): Add r3 to clobbers.
271         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
272         [__powerpc64__] (TLS_GD): Make __result r3 reg.
273         [__powerpc64__] (TLS_IE): Relax output constraint.
274
275 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
276
277         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
278         instructions cu21 and cu24.  Add well-formedness checking
279         parameter and adjust the software implementation.
280         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
281
282 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
283
284         [BZ #11271]
285         * io/ftw.c (ftw_startup): Close descriptor for initial directory
286         after changing back to it.
287
288 2010-02-05  David S. Miller  <davem@davemloft.net>
289
290         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
291         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
292         ifunc relocs.
293         (elf_machine_lazy_rel): Likewise.
294         (sparc_fixup_plt): Pull out to...
295         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
296         * sysdeps/sparc/sparc32/dl-irel.h: New file.
297         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
298         ifunc relocs.
299         (elf_machine_lazy_rel): Likewise.
300         (sparc64_fixup_plt): Pull out to...
301         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
302         * sysdeps/sparc/sparc64/dl-irel.h: New file.
303
304 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
305
306         * elf/elf.h: Define m68k TLS relocations.
307
308 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
309
310         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
311         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
312         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
313         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
315         64-bit power7 fpu path.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
317         32-bit power7 fpu math.
318
319 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
320
321         * sysdeps/i386/rshift.S: More compact unwind information.
322
323         * sysdeps/i386/lshift.S: Fix unwind information.
324
325 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
326
327         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
328         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
329         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
330         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
331         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
332         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
333         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
334         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
335         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
336         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
337         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
338         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
339
340 2010-02-08  Andreas Schwab  <schwab@redhat.com>
341
342         * include/fenv.h: Add hidden proto for fegetenv.
343         * math/fegetenv.c: Add hidden alias.
344         * sysdeps/i386/fpu/fegetenv.c: Likewise.
345         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
346         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
347         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
348         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
349         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
350         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
351
352 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
353
354         [BZ #11230]
355         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
356         during recovery.
357
358 2010-01-26  Andreas Schwab  <schwab@redhat.com>
359
360         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
361         interface.
362         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
363         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
364         utmpx interface.
365
366         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
367         entry for 2.12.
368
369 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
370
371         [BZ #11235]
372         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
373         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
374         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
375         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
376         MS_ACTIVE, and MS_NOUSER.
377         (MS_RMT_MASK): Update according to current kernels.
378
379         [BZ #11242]
380         * misc/getusershell.c (initshells): Allocate one more byte in input
381         buffer so that fgets doesn't loop undefinitely.
382
383 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
384
385         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
386         __libc_use_alloca tells us not to.  Fix memory leak in an error
387         situation.  Based partially on patch by Jim Meyering.
388
389 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
390
391         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
392         get_phys_pages, get_avphys_pages): Add weak aliases.
393
394 2010-01-25  Andreas Schwab  <schwab@redhat.com>
395
396         * iconv/iconv_prog.c (write_output): Fix check for open failure.
397
398 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
399
400         [BZ #11200]
401         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
402         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
403
404 2010-01-22  Jim Meyering  <jim@meyering.net>
405
406         [BZ #11193]
407         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
408         buffer length computation.
409
410         [BZ #11192]
411         * posix/regexec.c (re_copy_regs): Don't leak when allocation
412         of the start buffer succeeds but allocation of the "end" one fails.
413
414         [BZ #11191]
415         * posix/regexec.c (re_search_2_stub): Check for overflow
416         when adding the sizes of the two strings.
417
418         [BZ #11190]
419         * posix/regexec.c (re_search_internal): Avoid overflow
420         in computing re_malloc buffer size.
421
422         [BZ #11189]
423         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
424         in computing re_malloc buffer size.
425
426         [BZ #11188]
427         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
428         in size calculation.
429
430         [BZ #11187]
431         * posix/regexec.c (re_search_2_stub): Use simpler method than
432         boolean for freeing internal storage.
433
434 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
435
436         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
437         failed mbrtowc call.
438
439 2010-01-22  Jim Meyering  <jim@meyering.net>
440
441         [BZ #11186]
442         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
443         fits in wchar_t.  Problem reported by Eric Blake.
444
445         [BZ #11185]
446         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
447         and stores into set-but-not-used local, "q".
448
449         [BZ #11184]
450         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
451         detection test.  Patch by Paul Eggert.
452
453         [BZ #11183]
454         * posix/regex_internal.c (re_string_realloc_buffers):
455         Detect and handle internal overflow.  Patch by Paul Eggert
456
457 2010-01-20  Andreas Schwab  <schwab@redhat.com>
458
459         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
460         (CHECK_SP): Fix check for alternate stack.
461         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
462         (CHECK_SP): Likewise.
463
464 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
465
466         * sysdeps/i386/i686/multiarch/memmove.S: Also check
467         bit_Fast_Rep_String when SHARED isn't defined.
468
469 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
470
471         [BZ #11194]
472         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
473
474 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
475
476         * sysdeps/mach/hurd/bits/libc-lock.h
477         (__rtld_lock_recursive_t): New type.
478         (__rtld_lock_initialize): New macro.
479
480 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
481
482         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
483         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
486
487 2010-01-18  Andreas Schwab  <schwab@redhat.com>
488
489         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
490         definitions of O_DSYNC and O_RSYNC.
491
492         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
493         casting d_tag.
494
495         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
496         dynamic entry types.
497
498 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
499
500         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
501         constant.
502         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
503         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
504         overflow.
505         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
506
507         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
508         math_opt_barrier and math_force_eval macros.
509
510 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
511
512         * posix/regcomp.c: Fix a few more cases of ignored return values.
513         * posix/regex_internal.c: Likewise.
514         * posix/regexec.c: Likewise.
515
516         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
517         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
518         if _XOPEN_SOURCE is not defined as well.
519
520 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
521
522         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
523         high gprs kernel facility.
524         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
525         Added high gprs check for DSOs.
526         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
527         new elf header flag.
528
529 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
530
531         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
532         dl_main.
533         * elf/dl-open.c (_dl_sysdep_start): Likewise..
534         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
535         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
536         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
537         started.
538
539 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
540
541         [BZ #11027]
542         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
543         to RFC 2474.
544         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
545
546         [BZ #11141]
547         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
548         addresses.
549
550         [BZ #11127]
551         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
552         re_node_set_insert failure; return REG_ESPACE.
553         Patch by Paul Eggert.
554
555         * bits/confname.h: Make pre-C99-safe.
556
557 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
558
559         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
560         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
561         files are found by GCC.
562
563 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
564
565         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
566         brk, and sbrk.
567
568         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
569         index, and rindex.
570
571         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
572
573         * Versions.def: Add GLIBC_2.12 for libpthread.
574
575         [BZ #11126]
576         * malloc/malloc.c (malloc_info): Initialize malloc if not already
577         done.  Handle empty bin lists.
578
579         * posix/unistd.h: Change getpagesize and getdtablesize declaration
580         visibility some more.
581
582         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
583
584         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
585
586         [BZ #11120]
587         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
588         needed outside libc.
589
590 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
591
592         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
593
594 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
595
596         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
597
598 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
599
600         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
601
602 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
603
604         * conform/data/complex.h-data: Test for POSIX2008.
605
606         * conform/data/ctype.h-data: Fix POSIX testing.
607
608         * conform/data/dirent.h-data: ino_t only needed for XSI.
609
610         * grp/grp.h: Declare getgrent and endgrent for XPG7.
611
612         * conform/data/inttypes.h-data: Use same types as the headers.
613
614         * resolv/netdb.h: Don't define old resolver macros for XPG7.
615
616         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
617
618         * conform/conformtest.pl: Implement tag for allow-header.
619         Fix newline handling in allow-header implementation.
620
621         * conform/data/time.h-data: Use allow-header instead of duplicating
622         information.
623
624         * conform/data/time.h-data: Allow sigevent tag.
625
626         * posix/sched.h: Define time_t and pid_t for XPG7.
627
628 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
629
630         * sysdeps/i386/i686/bcopy.S: New file.
631
632         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
633
634         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
635         and END_CHK.
636         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
637         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
638         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
639
640         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
641
642         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
643         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
644         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
645         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
646         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
647         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
648         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
649         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
650         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
651         * sysdeps/i386/i686/multiarch/bzero.S: New file.
652         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
653         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
654         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
655         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
656         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
657         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
658         * sysdeps/i386/i686/multiarch/memmove.S: New file.
659         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
660         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
661         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
662         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
663         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
664         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
665         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
666         * sysdeps/i386/i686/multiarch/memset.S: New file.
667         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
668
669         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
670         (END_CHK): Likewise.
671
672         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
673         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
674         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
675
676         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
677         for 0x0e and 0x80.
678         (__x86_64_data_cache_size): New.
679         (init_cacheinfo): Set __x86_64_data_cache_size.
680
681         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
682         on bit_Fast_Rep_String for Intel Core i7.
683
684         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
685         (index_Fast_Rep_String): Likewise.
686         (FEATURE_INDEX_1): Likewise.
687         (FEATURE_INDEX_MAX): Likewise.
688         (cpu_features): Add feature.
689
690 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
691
692         * conform/data/sys/select.h-data: Fix up for XPG7.
693
694 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
695
696         * posix/sys/wait.h: Don't define W* macros etc. if
697         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
698
699 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
700
701         * io/sys/stat.h: Declare fchmod for XPG7.
702         * conform/data/sys/stat.h-data: Fix up for XPG7.
703
704         * termios/termios.h: Define pid_t for XPG7.
705
706         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
707         * conform/data/tgmath.h-data: Likewise.
708
709         * conform/data/time.h-data: Fix POSIX tests.
710
711         * conform/data/wchar.h-data: Fix up XPG7 tests.
712
713         * include/features.h: Fix __USE_ISOC95 handling.
714
715         * conform/data/wordexp.h-data: Fix typo in last change.
716
717         * conform/data/unistd.h-data: Fix up older POSIX tests.
718
719         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
720         * posix/unistd.h: Likewise.
721
722         * posix/unistd.h: Include environments.h also for XPG6 and up.
723         Define intptr_t for XPG6 and up.
724         Fix up for XPG7.
725         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
726
727         * conform/data/sys/types.h-data: Fix up for XPG7.
728
729         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
730         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
731         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
732         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
733         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
734         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
735         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
736         * sysdeps/unix/sysv/bits/stat.h: Likewise.
737         * sysdeps/mach/hurd/bits/stat.h: Likewise.
738
739         * bits/confname.h: Fix typo in last change.
740
741         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
742
743 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
744
745         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
746         and SA_RESETHAND now available in Base.
747         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
748         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
749         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
750         * conform/data/signal.h-data: Update for XPG7.
751
752         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
753
754         * string/strings.h: Don't declare obsolete functions for XPG7.
755         Declare ffs only for XSI.
756         * conform/data/strings.h-data: Update for XPG7.
757
758 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
759
760         [BZ #11125]
761         * libio/stdio.h: Define va_list, off_t, and ssize_t.
762
763         * posix/glob.h: Define size_t.
764
765         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
766
767         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
768
769 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
770
771         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
772         be self-contained.
773
774         * conform/data/stdio.h-data: Expect off_t and ssize_t.
775
776 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
777
778         * libio/stdio.h: Define va_list also for XPG7.
779
780         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
781         * conform/data/ctype.h-data: Likewise.
782         * conform/data/dirent.h-data: Likewise.
783         * conform/data/errno.h-data: Likewise.
784         * conform/data/fcntl.h-data: Likewise.
785         * conform/data/fmtmsg.h-data: Likewise.
786         * conform/data/fnmatch.h-data: Likewise.
787         * conform/data/ftw.h-data: Likewise.
788         * conform/data/glob.h-data: Likewise.
789         * conform/data/grp.h-data: Likewise.
790         * conform/data/iconv.h-data: Likewise.
791         * conform/data/langinfo.h-data: Likewise.
792         * conform/data/libgen.h-data: Likewise.
793         * conform/data/limits.h-data: Likewise.
794         * conform/data/locale.h-data: Likewise.
795         * conform/data/math.h-data: Likewise.
796         * conform/data/monetary.h-data: Likewise.
797         * conform/data/mqueue.h-data: Likewise.
798         * conform/data/ndbm.h-data: Likewise.
799         * conform/data/netdb.h-data: Likewise.
800         * conform/data/pthread.h-data: Likewise.
801         * conform/data/pwd.h-data: Likewise.
802         * conform/data/regex.h-data: Likewise.
803         * conform/data/sched.h-data: Likewise.
804         * conform/data/search.h-data: Likewise.
805         * conform/data/semaphore.h-data: Likewise.
806         * conform/data/setjmp.h-data: Likewise.
807         * conform/data/signal.h-data: Likewise.
808         * conform/data/spawn.h-data: Likewise.
809         * conform/data/stdio.h-data: Likewise.
810         * conform/data/stdlib.h-data: Likewise.
811         * conform/data/string.h-data: Likewise.
812         * conform/data/strings.h-data: Likewise.
813         * conform/data/sys/ipc.h-data: Likewise.
814         * conform/data/sys/msg.h-data: Likewise.
815         * conform/data/sys/resource.h-data: Likewise.
816         * conform/data/sys/sem.h-data: Likewise.
817         * conform/data/sys/shm.h-data: Likewise.
818         * conform/data/sys/socket.h-data: Likewise.
819         * conform/data/sys/stat.h-data: Likewise.
820         * conform/data/sys/time.h-data: Likewise.
821         * conform/data/sys/types.h-data: Likewise.
822         * conform/data/sys/uio.h-data: Likewise.
823         * conform/data/sys/wait.h-data: Likewise.
824         * conform/data/syslog.h-data: Likewise.
825         * conform/data/tar.h-data: Likewise.
826         * conform/data/termios.h-data: Likewise.
827         * conform/data/time.h-data: Likewise.
828         * conform/data/ulimit.h-data: Likewise.
829         * conform/data/unistd.h-data: Likewise.
830         * conform/data/utmpx.h-data: Likewise.
831         * conform/data/wchar.h-data: Likewise.
832         * conform/data/wctype.h-data: Likewise.
833         * conform/data/wordexp.h-data: Likewise.
834
835         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
836         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
837         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
838         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
839         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
840         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
841         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
842         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
843         * sysdeps/unix/sysv/bits/stat.h: Likewise.
844         * sysdeps/mach/hurd/bits/stat.h: Likewise.
845
846         * stdlib/stdlib.h: Define wait-related bits for XPG7.
847         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
848         Declare mkstemp and getsubopt for XPG7.
849         Declare posix_openpt for XPG6 XSI.
850
851         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
852         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
853
854         * string/string.h: Declare strdup for XPG7.
855
856 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
857
858         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
859         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
860
861         * dirent/dirent.h: Really fix feature selection.
862
863         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
864         Fix all users.
865         * locale/C-address.c: Fix all users.
866         * locale/C-collate.c: Likewise.
867         * locale/C-ctype.c: Likewise.
868         * locale/C-identification.c: Likewise.
869         * locale/C-measurement.c: Likewise.
870         * locale/C-messages.c: Likewise.
871         * locale/C-monetary.c: Likewise.
872         * locale/C-name.c: Likewise.
873         * locale/C-numeric.c: Likewise.
874         * locale/C-paper.c: Likewise.
875         * locale/C-telephone.c: Likewise.
876         * locale/C-time.c: Likewise.
877         * locale/findlocale.c: Likewise.
878         * locale/global-locale.c: Likewise.
879         * locale/loadarchive.c: Likewise.
880         * locale/loadlocale.c: Likewise.
881         * locale/nl_langinfo_l.c: Likewise.
882         * locale/setlocale.c: Likewise.
883         * locale/xlocale.c: Likewise.
884         * locale/xlocale.h: Likewise.
885         * stdio-common/vfscanf.c: Likewise.
886         * stdlib/strfmon_l.c: Likewise.
887         * stdlib/strtod_l.c: Likewise.
888         * stdlib/strtol_l.c: Likewise.
889         * string/strcoll_l.c: Likewise.
890         * string/strxfrm_l.c: Likewise.
891         * time/alt_digit.c: Likewise.
892         * time/asctime.c: Likewise.
893         * time/era.c: Likewise.
894         * time/lc-time-cleanup.c: Likewise.
895         * time/strftime_l.c: Likewise.
896         * time/strptime_l.c: Likewise.
897         * wcsmbs/wcsmbsload.c: Likewise.
898         * wcsmbs/wcsmbsload.h: Likewise.
899
900         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
901         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
902         for XPG7.
903         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
904         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
906         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
907         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
908         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
909
910 2010-01-07  Roland McGrath  <roland@redhat.com>
911
912         * elf/elf.h (PN_XNUM): New macro.
913
914         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
915         literal 2.
916
917 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
918
919         * dirent/dirent.h: Fix typo in feature selection macro use.
920
921 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
922
923         [BZ #11115]
924         * stdlib/tst-makecontext3.c: New file.
925         * stdlib/Makefile (tests): Add new test.
926
927         * stdlib/tst-setcontext.c (check_called): Fix a typo.
928
929 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
930
931         * configure.in: Enable multi-arch by default if the assembler
932         supports gnu_indirect_function symbol type and the architecture
933         supports it.
934
935 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
936
937         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
938         is defined.
939
940 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
941
942         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
943         MACH_PORT_NULL when id != cttyid.
944
945 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
946
947         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
948         __mach_port_deallocate on rootdevid.
949
950 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
951
952         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
953         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
954         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
955         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
956
957 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
958
959         [BZ #10992]
960         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
961         Patch by Eric Blake <ebb9@byu.net>.
962
963 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
964
965         [BZ #11093]
966         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
967         POLLWRBAND also for POSIX 2008.
968         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
969         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
970
971         * include/link.h (struct link_map): Move l_used into its own word.
972         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
973         still zero.
974         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
975         never really used.
976
977 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
978
979         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
980         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
981         check processor feature.
982         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
983         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
984         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
985         (index_SSE2): Likewise.
986
987 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
988
989         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
990         if __ASSEMBLER__ is defined.
991         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
992         (bit_SSE4_2): Likewise.
993         (index_SSSE3): Likewise.
994         (index_SSE4_2): Likewise.
995         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
996         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
997         check processor feature.
998         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
999         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1000         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1001         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1002         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1003         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1004         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1005
1006 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1007
1008         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1009
1010 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1011
1012         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1013
1014 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1015
1016         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1017         O_DSYNC to match 2.6.33+ kernels.
1018         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1019         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1020         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1021         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1022         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1023         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1024
1025 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1026
1027         [BZ #11000]
1028         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1029         *herrnop before returning.
1030         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1031         Likewise.
1032         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1033         TRYAGAIN errors separately.
1034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1035         *name4_r after functions.
1036
1037 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1038
1039         [BZ #11046]
1040         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1041         version check.
1042
1043 2009-11-05  Bruno Haible  <bruno@clisp.org>
1044
1045         [BZ #11056]
1046         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1047         argv argument as non-NULL.
1048         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1049
1050 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1051
1052         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1053         recvmmsg.
1054         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1055         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1056
1057 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1058
1059         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1060         registers.
1061         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1062         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1063         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1064
1065 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1068         SCHED_RESET_ON_FORK.
1069
1070 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1071
1072         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1073         only used on truly ancient kernel if configuration requires a more
1074         recent kernel.
1075
1076 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1077
1078         [BZ #3662]
1079         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1080         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1081
1082         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1083         pass it on to __ptsname_internal.
1084         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1085         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1086         All the code from __ptsname_r but take additional parameter.  Use that
1087         instead of pointer to local stat64 variable.
1088         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1089         variable.
1090         * include/stdlib.h: Declare __ptsname_internal.
1091
1092         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1093         before the exec.
1094         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1095         * login/programs/pt_chown.c (main): Don't print message on errors
1096         when doing real work.
1097
1098         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1099         once.
1100
1101         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1102         irel relocations split out from...
1103         (__libc_csu_init): ...here.
1104         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1105
1106 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1107
1108         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1109         for timestamps also if __USE_XOPEN2K8.
1110         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1111         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1112         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1113         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1114
1115 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1116
1117         * nscd/connections.c (restart): Try harder to re-exec.
1118
1119         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1120
1121         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1122         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1123         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1124         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1125         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1126         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1127
1128         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1129         Define.
1130         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1131
1132 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1133
1134         [BZ #10162]
1135         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1136         than software pipeline.  Properly recover from shorter read.
1137
1138 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1139
1140         [BZ #10958]
1141         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1142         initialized before using it.
1143         (_IO_putwc_unlocked): Likewise.
1144
1145         [BZ #10918]
1146         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1147         in cast to not throw away const-ness of parameters.
1148         (__CPU_EQUAL_S): Likewise.
1149         (__CPU_OP_S): Likewise.
1150
1151         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1152         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1153         this gratuitous change and we have to keep compatibility.
1154         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1155         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1156         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1157         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1158         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1159         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1160
1161 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1164         of parameters of sync_file_range.
1165         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1166         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1167         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1168         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1169         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1170         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1171
1172 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1173
1174         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1175         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1176         is defined.
1177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1178         file.
1179
1180 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1181
1182         * posix/bug-regex30.c: New file.
1183         * posix/Makefile: Add rules to build and run bug-regex30.
1184         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1185         character lead bytes when there is a range in a COMPLEX_BRACKET.
1186         Reported by Oleg Bylatov.
1187
1188 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1189
1190         [BZ #10969]
1191         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1192         * locale/tst-duplocale.c: New file.
1193         * locale/Makefile (tests): Add tst-duplocale.
1194
1195         [BZ #10968]
1196         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1197         Patch by Bruno Haible <bruno@clisp.org>.
1198         * locale/tst-locname.c: New file.
1199         * locale/Makefile (tests): Add tst-locname.
1200
1201         [BZ #10972]
1202         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1203         constants from recent kernels.
1204         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1205         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1206         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1207         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1208         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1209         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1210
1211 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1212
1213         [BZ #10162]
1214         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1215         software pipeline.
1216
1217 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1218
1219         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1220         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1221         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1222
1223 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1224
1225         * posix/bug-regex29.c: Include stdio.h.
1226
1227 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1228
1229         [BZ #10939]
1230         * Versions.def: Define GLIBC_2.12 for libc.
1231         * manual/errno.texi: Add ERFKILL entry.
1232         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1233         for 2.12.
1234         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1235         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1236
1237         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1238         F_GETOWN_EX definitions according to corrected kernel definitions.
1239         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1240         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1241         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1242         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1243         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1244         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1245
1246 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1247
1248         * version.h: Bump for 2.12 development.
1249
1250 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1251
1252         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1253         out of buffer space.
1254         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1255         map_v4v6_hostent running out of space.
1256
1257 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * string/bits/string3.h (memset): If the second parameter is constant
1260         and zero there is likely no transposition.
1261         Patch by Caolan McNamara <caolanm@redhat.com.
1262
1263 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1264
1265         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1266         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1267
1268 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1269
1270         * malloc/memusagestat.c (main): Fix spelling in an error message.
1271
1272 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1273
1274         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1275         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1276
1277 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1278
1279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1280         readahead.
1281
1282 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1283
1284         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1285         relocate opd entry when resolving prelink conflicts.
1286
1287 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1288
1289         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1290         when -D_FILE_OFFSET_BITS=64.
1291
1292         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1293         of last two arguments when -D_FILE_OFFSET_BITS=64.
1294         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1296         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1297         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1298         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1299         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1300
1301 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1302
1303         [BZ #4457]
1304         * sysdeps/generic/libgcc_s.h: New file.
1305         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1306
1307 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1308
1309         * malloc/hooks.c (free_check): Restore locking and call _int_free
1310         appropriately.
1311
1312 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * version.h (VERSION): Bump for 2.11 release.
1315         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1316
1317         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1318
1319         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1320
1321         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1322         to avoid warning.
1323         * stdlib/tst-strtoll.c (tests): Likewise.
1324
1325         [BZ #9986]
1326         * time/strftime_l.c (__strftime_internal): Allow %OC.
1327
1328         * misc/mkostemps.c: New file.
1329         * misc/mkostemps64.c: New file.
1330
1331 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1332
1333         * locale/programs/locale-spec.c: Include <error.h> and
1334         <libintl.h>.
1335
1336         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1337
1338 2009-10-28  Roland McGrath  <roland@redhat.com>
1339
1340         * Makefile (dist-prepare): New target.
1341         (tag-for-dist): Target removed.
1342         (glibc-%.tar): Pattern rule removed.
1343         (%.tar): New pattern rule, does simple use of git archive.
1344         (dist-version): Remove variable definition.
1345         (dist): Just depend on that.  Add .tar.xz dependency.
1346         If dist-version variable not set on command line, depend on
1347         dist-prepare, re-invoke with dist-version set via git describe.
1348
1349         * Makerules (%.xz): New pattern rule.
1350
1351 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1352
1353         * elf/ifuncdep2.c: Include ifunc-sel.h.
1354         (global): Delete.
1355         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1356         * elf/ifuncmain1.c (global): Delete.
1357         * elf/ifuncmain1vis.c: Likewise.
1358         * elf/ifuncmain2.c: Likewise.
1359         * elf/ifuncmain5.c: Likewise.
1360         * elf/ifuncmod3.c: Likewise.
1361         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1362         (foo_ifunc): Use ifunc_one.
1363         * elf/ifuncmain7.c: Likewise.
1364         * elf/ifuncmod1.c: Include ifunc-sel.h.
1365         (global): Define protected var.
1366         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1367         * elf/ifuncmod5.c: Likewise.
1368         * sysdeps/generic/elf/ifunc-sel.h: New file.
1369         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1370
1371 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1372
1373         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1374         (R_PPC_REL16*): Correct comments.
1375         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1376         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1377          R_PPC64_REL16_HA): Define.
1378         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1379         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1380         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1381         Delete unused "reloc" param.
1382         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1383         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1384         Delete "reloc" param.
1385         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1386         R_PPC_IRELATIVE.
1387         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1388         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1389         relocations.
1390
1391 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1392
1393         [BZ #10315]
1394         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1395         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1396         UDP_ENCAP_L2TPINUDP.
1397
1398         [BZ #10349]
1399         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1400         parameter, specifying length of prefix.
1401         * stdio-common/tempname.c: Likewise.
1402         * include/stdio.h: Adjust prototypes.
1403         * libio/oldtmpfile.c: Adjust caller.
1404         * misc/mkdtemp.c: Likewise.
1405         * misc/mkostemp.c: Likewise.
1406         * misc/mkostemp64.c: Likewise.
1407         * misc/mkstemp.c:  Likewise.
1408         * misc/mkstemp64.c: Likewise.
1409         * misc/mktemp.c: Likewise.
1410         * stdio-common/tempnam.c: Likewise.
1411         * stdio-common/tmpfile.c: Likewise.
1412         * stdio-common/tmpnam.c: Likewise.
1413         * stdio-common/tmpnam_r.c: Likewise.
1414         * misc/mkstemps.c: New file.
1415         * misc/mkstemps64.c: New file.
1416         * stdlib/stdlib.h: Add prototypes.
1417         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1418         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1419
1420 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1421
1422         * locale/iso-639.def: Add sml entry.
1423
1424         [BZ #10391]
1425         * resolv/res_send.c (send_dg): Initialize resplen.
1426
1427         [BZ #10446]
1428         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1429         definition to the kernel's.
1430         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1431
1432 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1433
1434         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1435         offsets and record sizes in assert()s and response sending.
1436         * nscd/grpcache.c: Likewise.
1437         * nscd/hstcache.c: Likewise.
1438         * nscd/initgrcache.c: Likewise.
1439         * nscd/pwdcache.c: Likewise.
1440
1441 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1442
1443         [BZ #10540]
1444         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1445         /etc/hosts does not exist set errnop and herrnop appropriately.
1446         Patch by Steve Langasek <vorlon@debian.org>.
1447
1448         [BZ #10553]
1449         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1450         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1451
1452         [BZ #10564]
1453         * login/utmp_file.c (TIMEOUT): Increase to 10.
1454
1455         [BZ #10609]
1456         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1457         for file names in case the syscall is not available.
1458         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1459         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1460         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1461         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1462         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1463         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1464         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1465         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1466         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1467         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1468         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1469         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1470         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1471         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1472         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1473         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1474         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1475
1476         [BZ #10643]
1477         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1478         creation filed, remove the request from the 'requests' list and signal
1479         the caller that the request is finished.
1480
1481         [BZ #10692]
1482         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1483         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1484
1485         [BZ #10713]
1486         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1487         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1488
1489         [BZ #10780]
1490         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1491         overflows the int return type.
1492
1493         [BZ #10717]
1494         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1495         have to compute maxsize_total, we have to update the variables, and
1496         the also_total handling must happen after the repair.
1497
1498         [BZ #10742]
1499         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1500         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1501
1502 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1503
1504         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1505         errno is always set when returning unsuccessfully.
1506
1507 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1508
1509         * malloc/memusage.c (update_data): Fix index wraparound handling
1510         so that buffer_cnt is actually reset.
1511
1512 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1513
1514         [BZ #10784]
1515         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1516         of the directory we look at into the static buffer if there is one
1517         at the start of the loop.
1518
1519         [BZ #10789]
1520         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1521         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1522
1523         [BZ #10840]
1524         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1525         __ASSUME_F_GETOWN_EX.
1526         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1527         if possible.
1528         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1529
1530         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1531         and f_owner_ex.
1532         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1533         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1535         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1536         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1537         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1538
1539         [BZ #10847]
1540         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1541         getutmpx symbol.
1542
1543         [BZ #10823]
1544         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1545         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1546
1547 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1548
1549         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1550
1551 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1552
1553         [BZ #10817]
1554         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1555         Reported by Ray Chason.
1556
1557 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1558
1559         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1560         strend-sse4.
1561         * sysdeps/x86_64/multiarch/strchr.S: New file.
1562         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1563         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1564
1565 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1566
1567         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1568
1569 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1570
1571         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1572         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1573         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1574         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1575         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1576         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1577         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1578         __ieee751_expl to handle overflow.
1579
1580 2009-10-14  David S. Miller  <davem@davemloft.net>
1581
1582         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1583         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1584
1585 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1586
1587         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1588         !USE_MULTIARCH.
1589
1590 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1591
1592         [BZ #10730]
1593         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1594         Patch in part by Steve Ward <planet36@gmail.com>.
1595
1596         [BZ #10731]
1597         * stdlib/rand_r.c: Fix typo.
1598
1599         * po/cs.po: Update from translation team.
1600
1601 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1602
1603         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1604         returning if RTLD_NOLOAD.
1605
1606 2009-10-06  Roland McGrath  <roland@redhat.com>
1607
1608         * sysdeps/x86_64/multiarch/strstr-c.c
1609         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1610
1611         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1612         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1613
1614         * sysdeps/x86_64/multiarch/init-arch.h
1615         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1616         (HAS_CPU_FEATURE): New macro.
1617         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1618         * sysdeps/x86_64/multiarch/init-arch.c
1619         (__get_cpu_features): #undef it before definition.
1620
1621 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1622
1623         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1624         first_weekday to 1 and first_workday to 2.
1625
1626 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1627
1628         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1629         F_GETOWN_EX.
1630         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1631         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1632         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1633         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1634         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1635         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1636
1637 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1638
1639         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1640         * stdio-common/vfprintf.c: Likewise.
1641
1642 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1643
1644         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1645         (mkdirat): Call __directory_name_split_at instead of
1646         __directory_name_split.
1647
1648 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1649
1650         * locale/programs/locale-spec.c (locale_special): If nothing matches
1651         fail with an appropriate message.
1652
1653 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1654
1655         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1656         and XX.
1657
1658 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1659
1660         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1661         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1662
1663 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1664
1665         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1666
1667 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1668
1669         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1670         character size elements in step data.
1671
1672 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1673
1674         * po/hu.po: Update from translation team.
1675         * po/vi.po: Likewise.
1676
1677 2009-09-19  Roland McGrath  <roland@redhat.com>
1678
1679         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1680
1681 2009-09-15  Roland McGrath  <roland@redhat.com>
1682
1683         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1684         * nptl/sysdeps/pthread/configure: Regenerated.
1685         * nptl/sysdeps/x86_64/configure: Regenerated.
1686         * sysdeps/unix/sysv/linux/configure: Regenerated.
1687         * sysdeps/x86_64/elf/configure: Regenerated.
1688
1689         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1690
1691         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1692         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1693         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1694         * configure: Regenerated.
1695
1696 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1697
1698         * posix/getconf.c (main): Handle -- on command line.
1699
1700 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1701
1702         * configure.in: Support binutils 2.100 and 3.0.
1703
1704 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1705
1706         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1707         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1708         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1709         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1710
1711 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1712
1713         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1714         unnamed_section_defined field.
1715         (collate_read): Test and set unnamed_section_defined.
1716
1717         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1718         _POSIX2_LINE_MAX.
1719
1720 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1721
1722         * configure.in: Support binutils 2.20.
1723
1724 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1725
1726         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1727         __strstr_ia32): Add attribute_hidden.
1728
1729 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1730
1731         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1732         parsing of group entry.
1733
1734 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1735
1736         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1737         external buffer.  Always discard readahead in internal buffer.
1738         * libio/Makefile (tests): Add bug-wsetpos.
1739         * libio/bug-wsetpos.c: New file.
1740
1741 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1742
1743         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1744         Add attribute_hidden.
1745         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1746         __strcasestr_sse2): Likewise.
1747         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1748         (__fma_fma): Make static.
1749         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1750         (__fmaf_fma): Make static.
1751
1752 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1753
1754         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1755         reformulate in-buffer optimisation check to match code in
1756         _IO_new_file_seekoff.
1757
1758 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1759
1760         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1761         to srwi in 32-bit memcpy for power6.
1762
1763 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1764
1765         * include/stdio.h: Declare hidden proto for fflush.
1766         * libio/iofflush.c: Add hidden weak alias for fflush.
1767
1768 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1769
1770         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1771         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1772
1773 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1774
1775         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1776
1777 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1778
1779         [BZ #10560]
1780         * malloc/malloc.c: Add local assert definition to avoid problems with
1781         memory allocation in the real one.
1782
1783 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1784
1785         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1786         Removed.
1787         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1788         turn off SSSE3 on Atom.
1789
1790 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1791
1792         * stdlib/tst-strtol.c (tests): More tests.
1793         * stdlib/tst-strtoll.c (tests): Likewise.
1794
1795 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1796
1797         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1798
1799         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1800
1801 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1804         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1805
1806         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1807
1808         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1809
1810         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1811
1812 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1813
1814         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1815
1816 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1817
1818         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1819         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1820
1821         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1822
1823         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1824         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1825
1826         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1827         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1828
1829         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1830         leftover YMM_SIZE definition.
1831
1832 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1833
1834         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1835         union.
1836         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1837         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1838         Redefine.
1839         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1840
1841         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1842         and SET_FLOAT_WORD definitions.
1843
1844 2009-08-24  Roland McGrath  <roland@redhat.com>
1845
1846         * sysdeps/unix/syscall-template.S: New file.
1847         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1848         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1849         (compile-syscall): Pass mkdep and -g options as normal.
1850         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1851         (common-generated): Don't add them here.
1852
1853 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1854
1855         * math/s_fdim.c: In case of overflows set errno.
1856         * math/s_fdimf.c: Likewise.
1857         * math/s_fdiml.c: Likewise.
1858
1859         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1860         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1861         are using the inline optimizations.
1862
1863         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1864         (__signbitf): Likewise.
1865
1866 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1867
1868         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1869         terminated.
1870         * posix/Makefile (tests): Add bug-regex29.
1871         * posix/bug-regex29.c: New file.
1872
1873         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1874         older POSIX versions are selected.
1875
1876         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1877         as well.
1878         * stdio-common/printf_fphex.c: Likewise.
1879         * stdio-common/tstdiomisc.c: Add more tests.
1880
1881         * locale/locale.h: Include xlocale.h and the thread-local locale
1882         declarations for XPG7, not XPG6.
1883
1884 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1885
1886         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1887         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1890         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1891         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1892
1893 2009-08-20  Roland McGrath  <roland@redhat.com>
1894
1895         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1896         Use l_addr instead of l_map_start (dli_fbase).
1897         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1898         address when there is no proximate symbol.
1899         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1900         Likewise.
1901
1902 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1903
1904         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1905
1906 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1907
1908         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1909         Also handle SIGINT.  In that case only do the cleanup and then
1910         re-raise the signal.
1911         (main): Install handler for SIGINT.
1912
1913 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1914
1915         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1916         clobber list.
1917
1918 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1919
1920         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1921         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1922         tst-auditmod7b.c.
1923         (tests): Add tst-audit6 tst-audit7.
1924         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1925         tst-auditmod7a tst-auditmod7b.
1926         ($(objpfx)tst-audit6): New.
1927         ($(objpfx)tst-audit6.out): Likewise.
1928         ($(objpfx)tst-audit7): Likewise.
1929         ($(objpfx)tst-audit7.out): Likewise.
1930         (tst-audit6-ENV): Likewise.
1931         (tst-audit7-ENV): Likewise.
1932         (CFLAGS-tst-auditmod6b.c): Likewise.
1933         (CFLAGS-tst-auditmod6c.c): Likewise.
1934         (CFLAGS-tst-auditmod7b.c): Likewise.
1935         * elf/tst-audit6.c: New file.
1936         * elf/tst-audit7.c: New file.
1937         * elf/tst-auditmod6a.c: New file.
1938         * elf/tst-auditmod6b.c: New file.
1939         * elf/tst-auditmod6c.c: New file.
1940         * elf/tst-auditmod7a.c: New file.
1941         * elf/tst-auditmod7b.c: New file.
1942         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1943         saving and restoring SSE/AVX registers to ...
1944         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1945
1946 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1947
1948         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1949         only if SHARED is defined.
1950         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1951
1952 2009-08-03  Jim Meyering  <meyering@redhat.com>
1953
1954         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1955
1956 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1957
1958         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1959         section as the other functions for this architecture.
1960         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1961
1962 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1963
1964         * sysdeps/x86_64/strcmp.S: Add support to compile with
1965         USE_SSSE3.  In this case palignr is used.
1966         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1967         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1968         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1969         Add strcmp-ssse3 and strncmp-ssse3.
1970         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1971         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1972
1973         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1974         warning through fake initialization.
1975
1976 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1977
1978         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1979
1980 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1981
1982         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1983         unique symbols.
1984
1985 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1986
1987         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1988         EBX from EAX = 1.  Handle EAX = 11.
1989
1990 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1991
1992         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1993         inside ''.
1994
1995 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1996
1997         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1998         hidden IFUNC functions.
1999         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2000
2001         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2002
2003         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2004         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2005         strcasestr-c.
2006         (CFLAGS-strcspn-c.c): Define.
2007         (CFLAGS-strpbrk-c.c): Define.
2008         (CFLAGS-strspn-c.c): Define.
2009         (CFLAGS-strstr.c): Define.
2010         (CFLAGS-strcasestr.c): Define.
2011         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2012         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2013         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2014         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2015         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2016         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2017         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2018         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2019         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2020         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2021         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2022         -16L instead of 0xfffffffffffffff0L.
2023         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2024
2025 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2026
2027         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2028
2029 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2030
2031         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2032         another rewrite.  Much smaller and faster.
2033         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2034
2035         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2036         ss_flags from the correct location.
2037
2038 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2039
2040         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2041         * sysdeps/i386/i686/cacheinfo.c: New file.
2042         * sysdeps/i386/i686/multiarch/Makefile: New file.
2043         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2044         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2045         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2046         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2047         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2048         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2049         (__cpuid_count): New. Provide the default.
2050         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2051         (__x86_64_preferred_memory_instruction): Define only if
2052         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2053         (intel_check_word): Use __cpuid.
2054         (handle_intel): Likewise.
2055         (handle_amd): Likewise.
2056         (__cache_sysconf): Likewise.
2057         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2058         (__cache_sysconf): Likewise.
2059         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2060         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2061         (get_common_indeces): Use __cpuid.
2062         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2063         if ENABLE_SSSE3_ON_ATOM is not defined.
2064         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2065         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2066         popcnt instead of popcntq.
2067
2068 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2069
2070         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2071
2072 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2075         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2076         which always causes a compile error.
2077
2078         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2079
2080         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2081         comes from...
2082         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2083         which always causes a compile error.
2084
2085         * debug/Makefile (tests): Add tst-longjmp_chk2.
2086         * debug/tst-longjmp_chk2.c: New file.
2087
2088         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2089         Remove incorrect use of BP_SYM.
2090         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2091         here now since it is more complex than just a simple check.
2092
2093         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2094         we make no more progress.
2095
2096 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2097
2098         * math/s_fma.c: Don't define alias if __fma is a macro.
2099         * math/s_fmaf.c: Likewise.
2100         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2101         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2102         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2103
2104         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2105         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2106         New macro HAS_FMA.
2107         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2108         function.
2109         * include/libc-symbols.h (libm_ifunc): Define.
2110         * sysdeps/x86_64/multiarch/Versions: New file.
2111
2112         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2113
2114 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2115
2116         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2117
2118 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2119
2120         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2121         call that registers used in calling conventions need to be preserved.
2122         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2123         to preserve register content if necessary.
2124         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2125         (_dl_x86_64_restore_sse): New function.
2126         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2127         is allowed to modify xmm/ymm registers.
2128
2129         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2130         application's perspective.
2131         * stdio-common/scanf17.c: Likewise.
2132
2133 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2134
2135         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2136         size to memsz.
2137         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2138         here.
2139         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2140         two steps to catch bugs.
2141
2142 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2143
2144         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2145         determines which files are used in runtime lookups and only checks
2146         those for SSE use.
2147         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2148         testing.
2149         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2150         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2151         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2152         take a while.
2153
2154         * elf/dl-open.c: Move _dl_scope_free to...
2155         * elf/dl-scope.c: ...here.  New file.
2156         * elf/Makefile (dl-routines): Add scope.
2157
2158         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2159         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2160         RES_USE_DNSSEC.
2161         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2162         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2163         all the places we handled RES_USE_EDNS0 only before.
2164         Patch by Adam Tkac <atkac@redhat.com>.
2165
2166 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2167
2168         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2169         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2170         Update size when reallocating.
2171
2172 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2173
2174         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2175         functions used in ld.so modify xmm/ymm registers.
2176         * sysdeps/x86_64/Makefile:  Hook new test up.
2177         * sysdeps/x86_64/rtld-memchr.c: New file.
2178         * sysdeps/x86_64/rtld-memcmp.c: New file.
2179         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2180         * sysdeps/x86_64/rtld-strchr.S: New file.
2181         * sysdeps/x86_64/rtld-strlen.S: New file.
2182         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2183         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2184
2185 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2186
2187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2188         strncmp-c.
2189         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2190         (exit): Likewise.
2191         (Byte1): Likewise.
2192         (Byte2): Likewise.
2193         (Byte3): Likewise.
2194         (Byte4): Likewise.
2195         (Byte5): Likewise.
2196         (Byte6): Likewise.
2197         (next_8_bytes): Likewise.
2198         (Byte0): Remove commented out codes.
2199         (unaligned_table): Align jump table at 8 bytes.
2200         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2201         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2202         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2203         * sysdeps/x86_64/strncmp.S: New file.
2204
2205 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2206
2207         [BZ #10422]
2208         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2209         kernels, dropped when eventfd2 support was added.
2210         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2211         kernels, dropped when signalfd4 support was added.
2212         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2213         added, name them.
2214
2215         [BZ #10452]
2216         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2217         replies up.
2218
2219         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2220
2221 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2222
2223         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2224         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2225
2226         [BZ #10448]
2227         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2228         callback we must touch the status to avoid using stale value.
2229
2230         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2231         compiled in.
2232
2233 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2234
2235         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2236         /lib/modules/* headers anymore.  We have sane headers in the standard
2237         place now.
2238
2239 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2240
2241         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2242         "etf3enh" and "highgprs" added.
2243         (_dl_s390_platforms): "z10" added.
2244         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2245         Increased for the new entries.
2246         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2247         HWCAP_S390_HIGH_GPRS added.
2248
2249         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2250         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2251         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2252         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2253         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2254
2255 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2256
2257         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2258         avoid additional cpuid instructions.  Most of the information is
2259         stored somewhere.
2260
2261         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2262         cache descriptors.
2263         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2264
2265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2266         SSSE3 bit for Atoms.
2267         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2268         here anymore.
2269
2270         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2271         structure before copying it to avoid warning.
2272         * posix/tst-rfc3484-2.c (do_test): Likewise.
2273         * posix/tst-rfc3484-3.c (do_test): Likewise.
2274
2275         [BZ #10416]
2276         * include/unistd.h: Make header file suitable for C++ test cases.
2277         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2278
2279         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2280         stack alignment in the exit code.
2281
2282         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2283         potentially be zero.
2284
2285         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2286         unique symbol definition.
2287         Patch by Jakub Jelinek.
2288         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2289         make sure the object with the definition cannot be unloaded.  Adjust
2290         a few types.
2291         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2292         the unique symbol hash table should not be const.
2293
2294 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2295
2296         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2297         unnecesary variables.  Comment fixes.
2298
2299 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2300
2301         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2302         Use NONASCII_CASE information provided by the locale to determine
2303         whether optimized string load function can be used.  Minor cleanups.
2304
2305 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2306
2307         * string/strcasestr.c (STRCASESTR): New macro.
2308         (__strcasestr): Renamed to ..
2309         (STRCASESTR): ...this.
2310         * string/strstr.c (STRSTR): New macro.
2311         (strstr): Renamed to ..
2312         (STRSTR): ...this.
2313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2314         strstr-c strcasestr-c
2315         (CFLAGS-strstr.c): New.
2316         (CFLAGS-strcasestr.c): Likewise.
2317         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2318         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2319         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2320         * sysdeps/x86_64/multiarch/strstr.c: New file.
2321
2322 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2323
2324         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2325         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2326         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2327         _NL_CTYPE_NONASCII_CASE.
2328         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2329         field.
2330         (ctype_finish): Check whether there are any 8-bit characters outside
2331         the range ASCII has or whether the mapping isn't the same as for
2332         ASCII (±0x20).  Set nonascii_case appropriately.
2333         (ctype_output): Add output handler for nonascii_case.
2334
2335 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2336
2337         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2338         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2339
2340 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2341
2342         [BZ #10360]
2343         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2344         0xffff in the EDNS0 record.
2345
2346 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2347
2348         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2349         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2350         is written before the list head update.
2351         Patch by Andreas Schwab <aschwab@redhat.com>.
2352
2353 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2354             Jakub Jelinek  <jakub@redhat.com>
2355
2356         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2357         corruption thread-safe.
2358
2359 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2362         overrides atomic_compare_and_exchange_val_rel, define to
2363         atomic_compare_and_exchange_val_rel by default, otherwise default
2364         to catomic_compare_and_exchange_val_acq.
2365         (catomic_compare_and_exchange_bool_rel): If arch overrides
2366         atomic_compare_and_exchange_bool_rel, define to
2367         atomic_compare_and_exchange_bool_rel by default.
2368         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2369         Use catomic_compare_and_exchange_val_rel instead of
2370         catomic_compare_and_exchange_val_acq.
2371
2372 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2373
2374         * sysdeps/generic/ldsodefs.h: Add prototype for
2375         _dl_higher_prime_number.
2376         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2377
2378         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2379         restoring of ymm registers a bit.
2380
2381 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         * sysdeps/x86_64/memcmp.S: New file.
2384
2385 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2386
2387         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2388         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2389         pointers in writable memory.
2390
2391 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2392
2393         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2394         * config.make.in: Add config-cflags-avx entry.
2395         * configure.in: Substitute libc_cv_cc_avx.
2396         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2397         * elf/tst-audit4.c: New file.
2398         * elf/tst-audit5.c: New file.
2399         * elf/tst-auditmod4a.c: New file.
2400         * elf/tst-auditmod4b.c: New file.
2401         * elf/tst-auditmod5a.c: New file.
2402         * elf/tst-auditmod5b.c: New file.
2403         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2404         link-defines.sym.
2405         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2406         (La_x86_64_vector): Likewise.
2407         (La_x86_64_regs): Append lr_vector.
2408         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2409         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2410         saving and restoring SSE registers to ...
2411         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2412         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2413         <link-defines.h>.
2414         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2415         La_x86_64_regs.  Allocate extra space and jump to memory at
2416         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2417         (save_and_restore_vector_sse): New.
2418         (save_and_restore_vector_avx): Likewise.
2419         (check_avx): Likewise.
2420         (save_and_restore_vector): Likewise.
2421         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2422         HAVE_AVX_SUPPORT.
2423         * sysdeps/x86_64/link-defines.sym: New file.
2424
2425 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2426
2427         * elf/do-lookup.h: Removed after folding content into...
2428         * elf/dl-lookup.c: ...here.
2429
2430         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2431
2432 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2433
2434         * configure.in: Check for gnu_unique_symbol symbol type.
2435         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2436         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2437         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2438         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2439         change.
2440         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2441         unique symbol table.
2442         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2443         for first namespace.
2444         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2445         unique symbol hash table.
2446         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2447         * elf/tst-unique1.c: New file.
2448         * elf/tst-unique1mod1.c: New file.
2449         * elf/tst-unique1mod2.c: New file.
2450         * elf/tst-unique2.c: New file.
2451         * elf/tst-unique2mod1.c: New file.
2452         * elf/tst-unique2mod2.c: New file.
2453
2454 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2455
2456         * elf/elf.h (STB_GNU_UNIQUE): Define.
2457
2458         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2459         from...
2460         * include/inline-hashtab.h: ...here.
2461         (htab_expand): Adjust for renamed function.  Correct memory handling.
2462
2463 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2464
2465         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2466
2467 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2468
2469         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2470         (PPC_FEATURE_HAS_VSX): Likewise.
2471
2472 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2473
2474         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2475         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2476
2477         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2478         aligned to 16 byte boundaries.
2479         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2480         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2481         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2482
2483 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2484
2485         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2486         * config.make.in (config-cflags-sse4): New variable.
2487         * configure.in: Substitute libc_cv_cc_sse4.
2488         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2489         HAVE_SSE4_SUPPORT.
2490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2491         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2492         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2493         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2494         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2495         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2496         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2497         * sysdeps/x86_64/multiarch/strspn.S: New file.
2498
2499 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2500
2501         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2502         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2503         (tests): Add tst-audit3 for x86_64.
2504         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2505         ($(objpfx)tst-audit3): Define.
2506         ($(objpfx)tst-audit3.out): Define.
2507         (tst-audit3-ENV): Define.
2508         * elf/tst-audit3.c: New file.
2509         * elf/tst-auditmod3a.c: New file.
2510         * elf/tst-auditmod3b.c: New file.
2511         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2512         and restore xmm6.
2513
2514         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2515         (__stpncpy): Renamed to ...
2516         (STPNCPY): This.
2517         (stpncpy): Create alias only if STPNCPY is not defined.
2518         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2519         defined.
2520         (strncpy): Renamed to ...
2521         (STRNCPY): This.
2522         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2523          stpncpy-c strncpy-c for string.
2524         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2525         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2526         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2527         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2528         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2529         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2530
2531 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2532
2533         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2534         adding to fast bin list.
2535
2536 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2537
2538         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2539         inet_makeaddr.  This worked only with class-based networks.
2540         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2541         Likewise.
2542
2543         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2544         recognize all types.
2545         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2546         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2547         be in host byte order.
2548
2549 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2550
2551         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2552         (MODEL_OFFSET): Define.
2553         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2554         family and model.
2555         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2556         out common code into new function get_common_indeces. Determine
2557         extended family and model for Intel processors.
2558
2559 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2560
2561         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2562         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2563         option.
2564         * resolv/res_send.c (reopen): New function.  Broken out of...
2565         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2566         fallback mechanism.  If single-request fails switch to
2567         single-request-reopen mode which opens a new socket for the second
2568         request.
2569
2570 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2571
2572         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2573         (CHECK_SP): Use it.
2574
2575 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2576
2577         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2578         for saved registers.
2579         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2580         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2581         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2582
2583 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2584
2585         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2586
2587 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2588
2589         * po/id.po: Update from translation team.
2590
2591         * po/bg.po: Update from translation team.
2592
2593 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2594
2595         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2596         defined.
2597         (strncmp): Renamed to STRNCMP.
2598         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2599         strncmp-c for string.
2600         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2601         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2602         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2603         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2604
2605 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2606
2607         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2608         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2609         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2610         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2611         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2612         ifuncmain7static.c.
2613         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2614         ifuncmain7static, and ifuncmain7picstatic.
2615         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2616         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2617         $(objpfx)ifuncmain7pie.out.
2618         (modules-names): Add ifuncmod5 ifuncmod6
2619         (ifuncmod5.so-no-z-defs): Define.
2620         (ifuncmod6.so-no-z-defs): Define.
2621         (CFLAGS-ifuncmain5pic.c): Define.
2622         (CFLAGS-ifuncmain5picstatic.c): Define.
2623         (CFLAGS-ifuncmain5staticpic.c): Define.
2624         (CFLAGS-ifuncdep5pic.c): Define.
2625         (CFLAGS-ifuncmain7pic.c): Define.
2626         (CFLAGS-ifuncmain7picstatic.c): Define.
2627         (CFLAGS-ifuncmain1staticpie.c): Define.
2628         (CFLAGS-ifuncmain5pie.c): Define.
2629         (CFLAGS-ifuncmain6pie.c): Define.
2630         (CFLAGS-ifuncmain7pie.c): Define.
2631         ($(objpfx)ifuncmain1staticpie.out): Define.
2632         ($(objpfx)ifuncmain1staticpie): Define.
2633         ($(objpfx)ifuncmain5pie.out): Define.
2634         ($(objpfx)ifuncmain5pie): Define.
2635         ($(objpfx)ifuncmain6pie.out): Define.
2636         ($(objpfx)ifuncmain6pie): Define.
2637         ($(objpfx)ifuncmain5): Define.
2638         ($(objpfx)ifuncmain5pic): Define.
2639         ($(objpfx)ifuncmain5static): Define.
2640         ($(objpfx)ifuncmain5staticpic): Define.
2641         ($(objpfx)ifuncmain5picstatic): Define.
2642         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2643         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2644         ifuncmain6pie.out.
2645         * elf/b/elf/ifuncmain1staticpie.c: New file.
2646         * elf/ifuncdep5.c: New file.
2647         * elf/ifuncdep5pic.c: New file.
2648         * elf/ifuncmain5.c: New file.
2649         * elf/ifuncmain5pic.c: New file.
2650         * elf/ifuncmain5picstatic.c: New file.
2651         * elf/ifuncmain5pie.c: New file.
2652         * elf/ifuncmain5static.c: New file.
2653         * elf/ifuncmain5staticpic.c: New file.
2654         * elf/ifuncmain6pie.c: New file.
2655         * elf/ifuncmain7.c: New file.
2656         * elf/ifuncmain7pic.c: New file.
2657         * elf/ifuncmain7picstatic.c: New file.
2658         * elf/ifuncmain7pie.c: New file.
2659         * elf/ifuncmain7static.c: New file.
2660         * elf/ifuncmod5.c: New file.
2661         * elf/ifuncmod6.c: New file.
2662
2663 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2664
2665         [BZ #10085]
2666         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2667         (nss_endgrent): New variable.
2668         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2669         fields. Change type of files to bool and adjust all users.
2670         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2671         (internal_endgrent): Call nss_endgrent if necessary.
2672         (add_group): New function.  Broken out of...
2673         (check_and_add_group): ...here.
2674         (getgrent_next_nss): Remove test that any callback is available.
2675         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2676         callback.  If there is no blacklist we can trust the results returned
2677         by the initgroups_dyn callback.  In case there is a callback and we
2678         find a group entry for the group ID but it doesn't contain the
2679         correct member, switch to the slow mode and use getgrent_r.
2680         (internal_getgrent_r): When we see a +: entry, determine whether
2681         there is any callback and which we can use the initgroups_dyn
2682         callback.
2683
2684 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2685
2686         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2687         (_int_free): Likewise.
2688
2689         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2690         AF_IEEE802154.
2691         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2692         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2693         and ARPHRD_IEEE802154_PHY.
2694
2695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2696         relative to generic Linux version.
2697
2698 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2699
2700         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2701         ($(objpfx)ifuncmain1vispie): Likewise.
2702
2703 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2704
2705         * login/Makefile: Build pt_chown as PIE.
2706
2707 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2708
2709         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2710         a format string.
2711         * elf/sln.c (usage): Likewise.
2712         * malloc/memusage.sh (do_help): Likewise.
2713         * nss/getent.c (more_help): Likewise.
2714         * posix/getconf.c (main): Likewise.
2715         * sunrpc/rpcinfo.c (usage): Likewise.
2716         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2717
2718 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2721         those needed.
2722         * login/Makefile: If necessary link pt_chown with -lcap.
2723         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2724         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2725
2726 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2727
2728         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2729         comparisons.
2730         * string/test-memchr.c (do_random_tests): Test very large lengths
2731         as well.
2732
2733 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2734
2735         * Makeconfig (+link-pie): Define.
2736         (+prectorS): Define.
2737         (+postctorS): Define.
2738         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2739         * nscd/Makefile ($(objpfx)nscd): Likewise.
2740
2741 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2742
2743         [BZ #10107]
2744         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2745         with cmplwi.
2746         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2747
2748 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2749
2750         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2751         into ...
2752         * sysdeps/unix/grantpt.c: ...here.
2753
2754 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2755
2756         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2757         chmod if it is necessary.
2758
2759         [BZ #10166]
2760         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2761         when the slave device is in devpts or devfs.
2762
2763         [BZ #10183]
2764         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2765
2766         [BZ #10195]
2767         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2768         of nd_opt_home_agent_info_preference to uint16_t.
2769         Patch by Arnaud Ebalard <arno@natisbad.org>.
2770
2771         [BZ #10207]
2772         * nss/getent.c: Add support for printing gshadow data.
2773
2774         [BZ #10203]
2775         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2776         not just the currently used one and those which follow.
2777         Patch by Joe Landers <jlanders@vmware.com>.
2778
2779         [BZ #10196]
2780         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2781         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2782         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2783
2784         [BZ #10217]
2785         * stdlib/abort.c: Define variable __abort_msg.
2786         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2787         * include/stdlib.h: Declare __abort_msg.
2788         * assert/assert-perr.c: Don't free buffer for message immediately.
2789         Store atomically in __abort_msg and free old buffer if necessary.
2790         * assert/assert.c: Likewise.
2791         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2792         store pointer in __abort_msg, and possibly free old string.
2793         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2794
2795         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2796
2797         [BZ #10211]
2798         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2799         handle leap seconds if they are available.
2800         Patch by Akinori Hattori <hattya@gentoo.org>.
2801
2802         * timezone/tzselect.ksh: Update from tzcode2009i.
2803         * timezone/zdump.c: Likewise.
2804         * timezone/zic.c: Likewise.
2805
2806         * timezone/africa: Update from tzdata2009i.
2807         * timezone/antarctica: Likewise.
2808         * timezone/asia: Likewise.
2809         * timezone/australasia: Likewise.
2810         * timezone/backward: Likewise.
2811         * timezone/etcetera: Likewise.
2812         * timezone/europe: Likewise.
2813         * timezone/factory: Likewise.
2814         * timezone/iso3166.tab: Likewise.
2815         * timezone/leapseconds: Likewise.
2816         * timezone/northamerica: Likewise.
2817         * timezone/pacificnew: Likewise.
2818         * timezone/solar87: Likewise.
2819         * timezone/solar88: Likewise.
2820         * timezone/solar89: Likewise.
2821         * timezone/southamerica: Likewise.
2822         * timezone/systemv: Likewise.
2823         * timezone/yearistype: Likewise.
2824         * timezone/zone.tab: Likewise.
2825
2826 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2827
2828         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2829         STT_GNU_IFUNC symbol or in 8 into type_class.
2830
2831         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2832         instead of Elf64_Addr.
2833
2834 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2835
2836         * po/sv.po: Update from translation team.
2837
2838         [BZ #10229]
2839         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2840         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2841         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2842         the C version.
2843
2844 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2845
2846         * Versions.def: Add GLIBC_2.11 for libpthread.
2847
2848 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2849
2850         * resolv/res_send.c (send_dg): Remember we switched to
2851         single-request mode.
2852
2853 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * dlfcn/dlfcn.h: Remove comma at end of enum.
2856         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2857
2858         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2859         parsing mode string.
2860
2861 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2862
2863         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2864
2865         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2866
2867         * sysdeps/x86_64/multiarch/strlen.S: New file.
2868         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2869         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2870         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2871         content.
2872
2873         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2874         is defined.
2875
2876 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2877
2878         * sysdeps/x86_64/strlen.S: Minor optimizations.
2879
2880 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2881
2882         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2883         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2884         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2885         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2886         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2887         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2888         ifuncmain3.c, ifuncmod3.c,.
2889         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2890         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2891         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2892         ifuncmain4picstatic.
2893         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2894         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2895         ifuncmain3, ifuncmain4.
2896         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2897         $(objpfx)ifuncmain1vispie.out.
2898         (modules-names): Add ifuncmod1 ifuncmod3.
2899         (generated): Add ifuncmain1pie ifuncmain1pie.out
2900         ifuncmain1vispie ifuncmain1vispie.out.
2901         Define rules to build and run the tests.
2902         * elf/ifuncdep1.c: New file.
2903         * elf/ifuncdep1pic.c: New file.
2904         * elf/ifuncdep2.c: New file.
2905         * elf/ifuncdep2pic.c: New file.
2906         * elf/ifuncmain1.c: New file.
2907         * elf/ifuncmain1pic.c: New file.
2908         * elf/ifuncmain1picstatic.c: New file.
2909         * elf/ifuncmain1pie.c: New file.
2910         * elf/ifuncmain1static.c: New file.
2911         * elf/ifuncmain1staticpic.c: New file.
2912         * elf/ifuncmain1vis.c: New file..
2913         * elf/ifuncmain1vispic.c: New file..
2914         * elf/ifuncmain1vispie.c: New file.
2915         * elf/ifuncmain2.c: New file.
2916         * elf/ifuncmain2pic.c: New file.
2917         * elf/ifuncmain2picstatic.c: New file.
2918         * elf/ifuncmain2static.c: New file.
2919         * elf/ifuncmain3.c: New file.
2920         * elf/ifuncmain4.c: New file.
2921         * elf/ifuncmain4picstatic.c: New file.
2922         * elf/ifuncmain4static.c: New file.
2923         * elf/ifuncmod1.c: New file.
2924         * elf/ifuncmod3.c: New file.
2925
2926 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2927
2928         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2929
2930 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2931
2932         [BZ #10221]
2933         * posix/Makefile (routines): Add execvpe.
2934         * posix/Versions: Export execvpe for GLIBC_2.11.
2935         * posix/execvp.c: Now only a wrapper.  Move code to...
2936         * posix/execvpe.c: ...here.  New file.
2937         * posix/unistd.h: Declare execvpe.
2938
2939 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2940
2941         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2942         for STT_GNU_IFUNC handling for efficiency.
2943         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2944
2945         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2946         _exit.
2947         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2948
2949 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2950
2951         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2952         for !SHARED.
2953
2954 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2955
2956         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2957         is not defined.
2958         (__rela_iplt_start): New declaration.
2959         (__rela_iplt_end): Likewise.
2960         (__rel_iplt_start): Likewise.
2961         (__rel_iplt_end): Likewise.
2962         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2963         * elf/elf.h (R_386_IRELATIVE): New macro.
2964         (R_X86_64_IRELATIVE): New macro.
2965         (R_386_NUM): Updated.
2966         (R_X86_64_NUM): Likewise.
2967         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2968         (libc_ifunc_hidden_def): New macro.
2969         * sysdeps/generic/dl-irel.h: New file.
2970         * sysdeps/i386/dl-irel.h: New file.
2971         * sysdeps/x86_64/dl-irel.h: New file.
2972         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2973         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2974         Handle R_386_IRELATIVE.
2975         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2976         (elf_machine_lazy_rela): Likewise.
2977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2978         R_X86_64_IRELATIVE.
2979         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2980
2981 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2982
2983         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2984         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2985         are no differences.  If an architecture has bits in CPUID index 1
2986         meaning different things the values for the COMMON_CPUID_INDEX_1
2987         index must not be set.
2988         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2989         (HAS_POPCOUNT): ...this.  New macro.
2990         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2991         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2992         to set the value for Intel and AMD architectures.
2993         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2994         INTEL_CPUID_INDEX_1.
2995         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2996         change.
2997
2998 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2999
3000         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3001         and $build.
3002
3003 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3004
3005         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3006         (__expm1l): Set errno to ERANGE on overflow.
3007         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3008         (__tanl): Set errno to EDOM for Â±Inf.
3009         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3010         (__cosl): Set errno to EDOM for Â±Inf.
3011         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3012         (__sinl): Set errno to EDOM for Â±Inf.
3013
3014         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3015         defined, use it.
3016         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3017         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3018         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3019
3020 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3021
3022         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3023         code accessing it.
3024         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3025
3026 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3027
3028         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3029         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3030         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3031         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3032
3033         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3034         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3035         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3036         defined.
3037         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3038         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3039
3040 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3041
3042         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3043         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3044         is, either do nothing at all if __ASSUME_ACCEPT4, or
3045         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3046         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3047         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3048         define.
3049         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3050         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3051         internal_accept4 in socket directory.
3052
3053 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3054
3055         * sysdeps/ia64/configure.in: New file.
3056
3057 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3058
3059         [BZ #10162]
3060         * sysdeps/ia64/memchr.S: Use speculative load.
3061
3062         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3063         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3064         use it.
3065
3066         * sysdeps/i386/__longjmp.S: Add .text.
3067         * sysdeps/x86_64/__longjmp.S: Likewise.
3068
3069 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3070
3071         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3072         __ASSUME_ACCEPT4 for IA-64.
3073
3074 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3075
3076         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3077
3078         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3079         (SOCKOP_accept4): Define.
3080
3081 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3082
3083         Sun approved the change of the license.
3084         * sunrpc/auth_des.c: Replace license text.
3085         * sunrpc/auth_none.c: Likewise.
3086         * sunrpc/auth_unix.c: Likewise.
3087         * sunrpc/authdes_prot.c: Likewise.
3088         * sunrpc/authuxprot.c: Likewise.
3089         * sunrpc/bindrsvprt.c: Likewise.
3090         * sunrpc/clnt_gen.c: Likewise.
3091         * sunrpc/clnt_perr.c: Likewise.
3092         * sunrpc/clnt_raw.c: Likewise.
3093         * sunrpc/clnt_simp.c: Likewise.
3094         * sunrpc/clnt_tcp.c: Likewise.
3095         * sunrpc/clnt_udp.c: Likewise.
3096         * sunrpc/clnt_unix.c: Likewise.
3097         * sunrpc/des_crypt.c: Likewise.
3098         * sunrpc/des_soft.c: Likewise.
3099         * sunrpc/get_myaddr.c: Likewise.
3100         * sunrpc/getrpcport.c: Likewise.
3101         * sunrpc/key_call.c: Likewise.
3102         * sunrpc/key_prot.c: Likewise.
3103         * sunrpc/openchild.c: Likewise.
3104         * sunrpc/pm_getmaps.c: Likewise.
3105         * sunrpc/pm_getport.c: Likewise.
3106         * sunrpc/pmap_clnt.c: Likewise.
3107         * sunrpc/pmap_prot.c: Likewise.
3108         * sunrpc/pmap_prot2.c: Likewise.
3109         * sunrpc/pmap_rmt.c: Likewise.
3110         * sunrpc/rpc/auth.h: Likewise.
3111         * sunrpc/rpc/auth_unix.h: Likewise.
3112         * sunrpc/rpc/clnt.h: Likewise.
3113         * sunrpc/rpc/des_crypt.h: Likewise.
3114         * sunrpc/rpc/key_prot.h: Likewise.
3115         * sunrpc/rpc/netdb.h: Likewise.
3116         * sunrpc/rpc/pmap_clnt.h: Likewise.
3117         * sunrpc/rpc/pmap_prot.h: Likewise.
3118         * sunrpc/rpc/pmap_rmt.h: Likewise.
3119         * sunrpc/rpc/rpc.h: Likewise.
3120         * sunrpc/rpc/rpc_des.h: Likewise.
3121         * sunrpc/rpc/rpc_msg.h: Likewise.
3122         * sunrpc/rpc/svc.h: Likewise.
3123         * sunrpc/rpc/svc_auth.h: Likewise.
3124         * sunrpc/rpc/types.h: Likewise.
3125         * sunrpc/rpc/xdr.h: Likewise.
3126         * sunrpc/rpc_clntout.c: Likewise.
3127         * sunrpc/rpc_cmsg.c: Likewise.
3128         * sunrpc/rpc_common.c: Likewise.
3129         * sunrpc/rpc_cout.c: Likewise.
3130         * sunrpc/rpc_dtable.c: Likewise.
3131         * sunrpc/rpc_hout.c: Likewise.
3132         * sunrpc/rpc_main.c: Likewise.
3133         * sunrpc/rpc_parse.c: Likewise.
3134         * sunrpc/rpc_parse.h: Likewise.
3135         * sunrpc/rpc_prot.c: Likewise.
3136         * sunrpc/rpc_sample.c: Likewise.
3137         * sunrpc/rpc_scan.c: Likewise.
3138         * sunrpc/rpc_scan.h: Likewise.
3139         * sunrpc/rpc_svcout.c: Likewise.
3140         * sunrpc/rpc_tblout.c: Likewise.
3141         * sunrpc/rpc_util.c: Likewise.
3142         * sunrpc/rpc_util.h: Likewise.
3143         * sunrpc/rpcinfo.c: Likewise.
3144         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3145         * sunrpc/rpcsvc/key_prot.x: Likewise.
3146         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3147         * sunrpc/rpcsvc/mount.x: Likewise.
3148         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3149         * sunrpc/rpcsvc/rex.x: Likewise.
3150         * sunrpc/rpcsvc/rstat.x: Likewise.
3151         * sunrpc/rpcsvc/rusers.x: Likewise.
3152         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3153         * sunrpc/rpcsvc/spray.x: Likewise.
3154         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3155         * sunrpc/rtime.c: Likewise.
3156         * sunrpc/svc.c: Likewise.
3157         * sunrpc/svc_auth.c: Likewise.
3158         * sunrpc/svc_authux.c: Likewise.
3159         * sunrpc/svc_raw.c: Likewise.
3160         * sunrpc/svc_run.c: Likewise.
3161         * sunrpc/svc_simple.c: Likewise.
3162         * sunrpc/svc_tcp.c: Likewise.
3163         * sunrpc/svc_udp.c: Likewise.
3164         * sunrpc/svc_unix.c: Likewise.
3165         * sunrpc/svcauth_des.c: Likewise.
3166         * sunrpc/xcrypt.c: Likewise.
3167         * sunrpc/xdr.c: Likewise.
3168         * sunrpc/xdr_array.c: Likewise.
3169         * sunrpc/xdr_float.c: Likewise.
3170         * sunrpc/xdr_mem.c: Likewise.
3171         * sunrpc/xdr_rec.c: Likewise.
3172         * sunrpc/xdr_ref.c: Likewise.
3173         * sunrpc/xdr_sizeof.c: Likewise.
3174         * sunrpc/xdr_stdio.c: Likewise.
3175
3176         * po/da.po: Update from translation team.
3177
3178 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3179
3180         * sysdeps/sh/____longjmp_chk.S: New file.
3181         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3182         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3183
3184 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3185             Ulrich Drepper  <drepper@redhat.com>
3186
3187         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3188         (__nscd_cache_search): Assume each entry in the
3189         hash chain needs one hashentry and half of datahead.  Use
3190         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3191
3192 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3193
3194         * posix/sys/wait.h: Fix typos.  Pretty printing.
3195         * stdlib/stdlib.h: Likewise.  Correct comments.
3196
3197         [BZ #10159]
3198         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3199
3200         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3201         patch.
3202
3203 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3204
3205         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3206         Use it if we absolutely cannot reach any more correct list elements
3207         because that many do not fit into the currently mapped database.
3208
3209 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3210
3211         * nscd/nscd_helper.c: Include stddef.h.
3212         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3213         in a couple of places.  Return NULL if trail is not less than
3214         datasize, don't consider dataheads with length smaller than
3215         offsetof (struct datahead, data) + datalen.
3216         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3217         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3218         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3219         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3220         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3221         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3222         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3223
3224         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3225         Rename ...
3226         (fallocate64): ... to this.
3227         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3228         Rename ...
3229         (fallocate64): ... to this.
3230         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3231         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3232         fallocate64@@GLIBC_2.10.
3233         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3234         fallocate64@@GLIBC_2.11.
3235         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3237         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3238         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3239
3240         * nscd/selinux.c (nscd_avc_destroy): Removed.
3241         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3242         * nscd/nscd.c (termination_handler): Don't call
3243         nscd_avc_destroy.
3244
3245 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3246
3247         * include/atomic.h: Formatting.
3248         (catomic_compare_and_exchange_val_acq): Don't define if already
3249         defined by bits/atomic.h.
3250
3251 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3252
3253         * math/libm-test.inc (expm1_test): Add test for range error.
3254
3255         * Versions.def: Add GLIBC_2.11 for libc.
3256         * debug/Makefile (routines): Add longjmp_chk.
3257         Add rules to build and run tst-longjmp_chk.
3258         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3259         * debug/longjmp_chk.c: New file.
3260         * debug/tst-longjmp_chk.c: New file.
3261         * include/bits/setjmp2.: New file.
3262         * include/stdio.h: Mark __fortify_fail as internal_function.
3263         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3264         * setjmp/bits/setjmp2.h: New file.
3265         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3266         of the aliases.
3267         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3268         defined.
3269         * sysdeps/i386/____longjmp_chk.S: New file.
3270         * sysdeps/x86_64/____longjmp_chk.S: New file.
3271         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3272         * sysdeps/x86_64/__longjmp.S: Likewise.
3273
3274         * version.h: Bump for 2.11 development.
3275
3276         * elf/check-execstack.c: New file.
3277         * elf/Makefile: Add rules to build and run check-execstack.
3278
3279 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3280
3281         * version.h (VERSION): Bump to 2.10.1.
3282
3283         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3284         compatibility functions.
3285         * nss/getXXent_r.c: Likewise.
3286         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3287         * gshadow/getsgnam_r.c: Likewise.
3288         * gshadow/Version: Remove duplicate entries.
3289
3290         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3291         for recent processor.
3292         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3293         Likewise.
3294
3295 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * version.h (VERSION): Bump for 2.10 release.
3298         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3299
3300         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3301         same place we add ASFLAGS-config.
3302
3303 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3304
3305         [BZ #10128]
3306         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3307         or FORMERR and the other NOERROR, don't raise an error.
3308
3309 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3310
3311         [BZ #10118]
3312         * Makeconfig (+asflags): New variable based upon ASFLAG or
3313         asflags-cpu.
3314         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3315         * config.make.in (asflags-cpu): Add variable based upon
3316         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3317         the assembler.
3318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3319         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3320         recognizes power6 instruction set due to passing -mcpu=power6 from
3321         --with-cpu=power6 when compiling .S files.
3322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3323         Likewise.
3324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3325         Likewise.
3326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3327         Likewise.
3328
3329 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3330
3331         * string/stratcliff.c (do_test): Test for zero length
3332         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3333         at the end of the page.
3334
3335 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3336
3337         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3338
3339         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3340         count is zero.
3341
3342         * po/da.po: Update from translation team.
3343
3344 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3345
3346         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3347         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3348
3349 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3350
3351         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3352         and READ_IMPLIES_EXEC.
3353
3354 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * po/da.po: Update from translation team.
3357
3358 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3359
3360         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3361         comment change.
3362
3363 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3364
3365         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3366         to MAP_ANON in PROT_NONE mmap64 call.
3367         (open_archive): Likewise.
3368         (file_data_available_p): Use mmap64 instead of mremap.
3369         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3370         Attempt to reserve address space after mmap64 region.
3371
3372 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3373
3374         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3375         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3376         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3377
3378         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3379         atanh should set ERANGE.
3380
3381         [BZ #10087]
3382         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3383         result of lookup to make call to implement STT_GNU_IFUNC.
3384         (_dl_profile_fixup): Likewise.
3385         Patch by H.J. Lu <hjl.tools@gmail.com>.
3386
3387         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3388         warning.
3389
3390         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3391         from definition.
3392
3393         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3394         label if it is not used.
3395
3396         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3397         of gmon_hist_hdr and gmon_hdr structures and use them.
3398         * elf/sprof.c: Likewise.
3399
3400         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3401         warning.
3402
3403         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3404
3405         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3406         to avoid cast.
3407
3408         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3409         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3410         to avoid warnings.
3411         (iruserok_af): Use ss_family instead of casts.
3412
3413         * gmon/gmon.c (write_hist): Define real-type variant of
3414         gmon_hist_hdr structure and use it.
3415         (write_gmon): Likewise for gmon_hdr.
3416
3417         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3418         function if we are not going to define it.
3419         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3420
3421         * inet/inet6_option.c (option_alloc): Add temporary variable to
3422         avoid warning.
3423
3424         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3425         name of VTable element.
3426         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3427         * libio/iovsscanf.c: Likewise.
3428         * libio/vasprintf.c: Likewise.
3429         * libio/vsnprintf.c: Likewise.
3430         * stdio-common/isoc99_vsscanf.c: Likewise.
3431         * stdlib/strfmon_l.c: Likewise.
3432         * debug/vasprintf_chk.c: Likewise.
3433         * debug/vsnprintf_chk.c: Likewise.
3434         * debug/vsprintf_chk.c: Likewise.
3435
3436         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3437         function pointers.
3438
3439 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3440
3441         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3442
3443 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3444
3445         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3446
3447         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3448         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3449         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3450         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3451         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3452         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3453         * math/libm-test.inc: Add tests for errno after tan calls with
3454         Â±Inf.
3455
3456         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3457         errno value vor pow(+-0,neg).
3458         * math/libm-test.inc (pow_test): Add tests for errno value for
3459         pole errors.
3460
3461         * math/w_fmod.c: Also handle x=±Inf as error.
3462         * math/w_fmodf.c: Likewise.
3463         * math/w_fmodl.c: Likewise.
3464         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3465         x=±Inf or y=0.
3466
3467         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3468         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3469         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3470         * sysdeps/i386/fpu/s_sin.S: Likewise.
3471         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3472         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3473         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3474         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3475         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3476         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3477         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3478         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3479         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3480         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3481         Â±Inf.
3482
3483         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3484         ERANGE for underflows.
3485         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3486
3487         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3488         the 2001 revision.
3489
3490         * libio/tst-widetext.input: Remove surrogates.
3491
3492         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3493
3494         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3495         for lgamma should set errno to ERANGE, not EDOM.
3496         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3497
3498 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3499
3500         [BZ #10093]
3501         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3502         UTF-16 surrogates.
3503
3504         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3505         space when temporarily mapping the whole content of the old file.
3506
3507         [BZ #10100]
3508         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3509         not zero.
3510
3511 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3512
3513         * iconvdata/sjis.c (BODY): Don't advance inptr before
3514         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3515         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3516         two byte chars.
3517
3518 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3519
3520         * locale/locarchive.h (struct locarhandle): Rename len field to
3521         mmaped and add new reserved field.
3522         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3523         (create_archive): Reserve address space and then map file into it.
3524         (open_archive): Likewise.
3525         (file_data_available_p): New function.
3526         (compare_from_file): New function.
3527         (close_archive): Adjust to member name changes.
3528         (add_locale): Before comparing locale data, check it is mapped.
3529         Otherwise fall back to reading from the file.
3530
3531 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3532
3533         * stdio-common/psiginfo.c: Include <errno.h>.
3534
3535 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3536
3537         [BZ #9920]
3538         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3539         to get consistency between 32 and 64 bit architectures.
3540
3541         [BZ #10052]
3542         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3543         directory for dummy syscall rules.
3544         Patch by Chris Steinbroner <hesh@pobox.com>.
3545
3546 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3547
3548         [BZ #10092]
3549         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3550         MNT_EXPIRE.
3551
3552 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3553
3554         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3555         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3556
3557 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3558
3559         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3560         data from vector to temporary buffer and call PWRITEV after it
3561         instead of vice versa.
3562         * sysdeps/posix/preadv.c: Fix up comment.
3563         * misc/preadv.c: Likewise.
3564         * misc/preadv64.c: Likewise.
3565         * misc/pwritev.c: Likewise.
3566         * misc/pwritev64.c: Likewise.
3567         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3568
3569 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3570
3571         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3572
3573         * shadow/Makefile (tests): Add tst-shadow.
3574         * shadow/tst-shadow.c: New file.
3575
3576         [BZ #9955]
3577         * gshadow/Makefile: New file.
3578         * gshadow/Versions: New file.
3579         * gshadow/fgetsgent.c: New file.
3580         * gshadow/fgetsgent_r.c: New file.
3581         * gshadow/getsgent.c: New file.
3582         * gshadow/getsgent_r.c: New file.
3583         * gshadow/getsgnam.c: New file.
3584         * gshadow/getsgnam_r.c: New file.
3585         * gshadow/gshadow.h: New file.
3586         * gshadow/putsgent.c: New file.
3587         * gshadow/sgetsgent.c: New file.
3588         * gshadow/sgetsgent_r.c: New file.
3589         * gshadow/tst-gshadow.c: New file.
3590         * include/gshadow.h: New file.
3591         * Makeconfig (all-subdirs): Add gshadow.
3592         * Makefile (installed-headers): Add gshadow/gshadow.h.
3593         * nss/Makefile (databases): Add sgrp.
3594         * nss/Versions: Add gshadow functions as private exports.
3595         * nss/nsswitch.conf: Add gshadow entry.
3596         * nss/sgrp-lookup.c: New file.
3597         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3598         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3599         * nss/nss_files/files-sgrp.c: New file.
3600         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3601         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3602
3603 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3604
3605         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3606         * stdio-common/reg-modifier.c: Likewise.
3607
3608 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3609
3610         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3611         is no FPU.
3612
3613 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3614
3615         [BZ #10086]
3616         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3617         headers up to 2.6.30.
3618
3619         * po/ca.po: Update from translation team.
3620
3621 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3622
3623         [BZ #10069]
3624         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3625         an object that uses static TLS if the TLS modid is higher than the
3626         reserve we always allocate.  At least for multi-threaded code.
3627
3628 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3629
3630         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3631         Numerically stable check for valid width.
3632
3633         * locale/programs/locarchive.c (open_archive): Map the entire file
3634         and not just the administrative data.
3635         (add_locale): When we find a hash sum match compare the content
3636         to be sure.
3637
3638         * malloc/malloc.c (malloc_info): Output address space information.
3639
3640 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3641
3642         * malloc/malloc.c (malloc_info): Also output system memory information.
3643
3644         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3645         architectures have preadv/pwritev in 2.6.30.
3646
3647         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3648         * sysdeps/posix/readv.c: Likewise.
3649         Reported by Markus Armbruster <armbru@redhat.com>.
3650
3651         * malloc/hooks.c (top_check): Force hook value into register.
3652
3653 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3654
3655         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3656         calls to _dl_relocate_object.
3657
3658 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3659
3660         [BZ #9957]
3661         * malloc/malloc.c (force_reg): Define.
3662         (sYSMALLOc): Load hook variable into variable
3663         before test and force into register.
3664         (sYSTRIm): Likewise.
3665         (public_mALLOc): Force hook value into register.
3666         (public_fREe): Likewise.
3667         (public_rEALLOc): Likewise.
3668         (public_mEMALIGn): Likewise.
3669         (public_vALLOc): Likewise.
3670         (public_pVALLOc): Likewise.
3671         (public_cALLOc): Likewise.
3672         (__posix_memalign): Likewise.
3673         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3674         before test and force into register.
3675         * malloc/hooks.c (top_check): Likewise.
3676         (public_sET_STATe): Pretty printing.
3677
3678         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3679         in case we only receive one reply in single-request mode.
3680
3681 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3682
3683         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3684         are dlopened in statically linked program even for __LM_ID_CALLER.
3685
3686 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * resolv/res_send.c (send_dg): Don't switch into single-request
3689         mode if we already are in it.
3690
3691 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3692
3693         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3694         are always at least 4 bytes in the returned line.
3695
3696 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3697
3698         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3699         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3700         instead of 8K.  Stop searching in /proc/stat after hitting first
3701         line not starting with cpu.
3702         (next_line): Truncate too long
3703         lines at buffer size * 3/4 instead of pretending there were line
3704         breaks inside of large lines.
3705
3706 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3707
3708         * sysdeps/x86_64/mp_clz_tab.c: New file.
3709
3710 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3711             Ulrich Drepper  <drepper@redhat.com>
3712
3713         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3714         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3715         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3716
3717 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3718
3719         * sysdeps/sh/libc-tls.c: New file.
3720
3721         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3722
3723 2009-04-14  Roland McGrath  <roland@redhat.com>
3724
3725         * elf/elf.h: Add various missing ARM constants, to match binutils.
3726
3727 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3728
3729         Optimizations from GMP.
3730         * sysdeps/x86_64/add_n.S: New file.
3731         * sysdeps/x86_64/addmul_1.S: New file.
3732         * sysdeps/x86_64/lshift.S: New file.
3733         * sysdeps/x86_64/mul_1.S: New file.
3734         * sysdeps/x86_64/rshift.S: New file.
3735         * sysdeps/x86_64/sub_n.S: New file.
3736         * sysdeps/x86_64/submul_1.S: New file.
3737
3738 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3739
3740         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3741         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3742         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3743         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3744
3745 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3746
3747         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3748         preadv/pwritev.
3749
3750 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3751
3752         * sysdeps/x86-64/strrchr.S: New file.
3753
3754 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3755
3756         * stdio-common/printf.h (struct printf_info): Add user element.
3757         New types printf_arginfo_size_function, printf_va_arg_function.
3758         Declare register_printf_specifier, register_printf_modifier,
3759         register_printf_type.
3760         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3761         (union printf_arg): Add pa_user element.
3762         Adjust __printf_arginfo_table type.
3763         Add __printf_va_arg_table, __printf_modifier_table,
3764         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3765         declarations.
3766         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3767         If registered arginfo call failed try normal specifier.
3768         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3769         function.
3770         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3771         * stdio-common/Versions: Export register_printf_modifier,
3772         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3773         * stdio-common/reg-modifier.c: New file.
3774         * stdio-common/reg-type.c: New file.
3775         * stdio-common/reg-printf.c (__register_printf_specifier): New
3776         function.  Mostly the old __register_printf_function function but
3777         uses locking and type of third parameter changed.
3778         (__register_printf_function): Implement using
3779         __register_printf_specifier.
3780         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3781         calls to arginfo functions.  Allocate enough memory for user-defined
3782         types.  Call new va_arg functions to get user-defined types.
3783         Try installed handlers even for existing format specifiers first.
3784
3785 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3786
3787         * sysdeps/x86_64/rawmemchr.S: New file.
3788
3789         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3790         Simplified code and possible copy problem fixed.
3791
3792         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3793         function if it is not defined.  Add some necessary casts.
3794         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3795
3796         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3797         have preadv/pwritev in 2.6.30.
3798
3799 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3800
3801         * malloc/malloc.c (malloc_info): New function.
3802         * malloc/malloc.h: Declare it.
3803         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3804
3805         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3806         to avoid PLT slot.
3807
3808         * malloc/malloc.c (_int_realloc): Add parameter with old block
3809         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3810         Adjust all callers.
3811         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3812
3813 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3814
3815         * sysdeps/x86_64/strchrnul.S: New file.
3816
3817         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3818         depending libcrypt on -lfreebl3.
3819
3820         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3821         preadv/pwritev in 2.6.30.
3822
3823         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3824         instead of __strcasecmp.
3825
3826         * string/stratcliff.c (do_test): Add memchr tests..
3827         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3828         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3829         first read quad word.
3830
3831 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3832
3833         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3834         * string/tst-svc.input: Add new test case.
3835         * string/tst-svc.expect: Adjust.
3836         * string/Makefile: Don't ignore tst-svc error.
3837
3838         * sysdeps/x86_64/memchr.S: New file.
3839
3840         * resolv/resolv.h (RES_SNGLKUP): Define.
3841         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3842         * resolv/res_send.c (send_dg): If we sent two requests at once and
3843         only get one reply before timeout switch to mode where we send the
3844         second request only after the first answer has been received.
3845
3846 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3847
3848         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3849         * sysdeps/x86_64/strchr.S: Likewise.
3850
3851 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3852
3853         * configure.in: We need to test for the compiler earlier.
3854
3855         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3856         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3857         GLIBC_2.10.
3858         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3859         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3860         and pwritev.
3861         * misc/preadv.c: New file.
3862         * misc/preadv64.c: New file.
3863         * misc/pwritev.c: New file.
3864         * misc/pwritev64.c: New file.
3865         * sysdeps/posx/preadv.c: New file.
3866         * sysdeps/posx/preadv64.c: New file.
3867         * sysdeps/posx/pwritev.c: New file.
3868         * sysdeps/posx/pwritev64.c: New file.
3869         * sysdeps/unix/sysv/linux/preadv.c: New file.
3870         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3871         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3872         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3873         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3874         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3875
3876         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3877         compatibility code.
3878         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3879
3880         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3881         __ASSUME_COMPLETE_READV_WRITEV.
3882         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3883         with modern kernels.
3884         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3885
3886         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3887         to free a possible malloced buffer in case of cancellation.
3888         * sysdeps/posix/writev.c: Likewise for write.
3889
3890 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3891
3892         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3893
3894         * configure.in: Recognize --enable-nss-crypt.
3895         * config.make.in: Add nss-crypt entry.
3896         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3897         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3898         and include path for NSS directory to compiler for md5-crypt,
3899         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3900         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3901         function implementation, use NSS.  Introduce wrappers around the
3902         hash function calls.  Little code size optimization.
3903         * crypt/sha256-crypt.c: Likewise.
3904         * crypt/sha512-crypt.c: Likewise.
3905         * scripts/check-local-headers.sh: Ignore nss3 directory.
3906
3907         * configure.in: Rename pic_default to libc_cv_pic_default.
3908         * config.make.in: Likewise.
3909
3910 2009-04-01  Roland McGrath  <roland@redhat.com>
3911
3912         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3913         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3914         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3915         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3916         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3917         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3918         (R_SPARC_NUM): Update.
3919         From Dave Miller <davem@davemloft.net>.
3920
3921 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3922
3923         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3924
3925 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3926
3927         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3928         those which are used.
3929         * elf/dl-addr.c: Likewise.
3930         * elf/dl-caller.c: Likewise.
3931         * elf/dl-fini.c: Likewise.
3932         * elf/dl-iteratephdr.c: Likewise.
3933         * elf/dl-libc.c: Likewise.
3934         * elf/dl-load.c: Likewise.
3935         * elf/dl-support.c: Likewise.
3936         * elf/dl-sym.c: Likewise.
3937         * elf/rtld.c: Likewise.
3938         * sysdeps/generic/ldsodefs.h: Likewise.
3939
3940         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3941         * elf/dl-minimal.c: Likewise.
3942         * elf/dl-misc.c: Likewise.
3943         * elf/rtld.c: Likewise.
3944         * sysdeps/generic/ldsodefs.h: Likewise.
3945
3946 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3947
3948         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3949         Avoid reuse of complex expression.
3950
3951         * po/fr.po: Update from translation team.
3952
3953 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3954
3955         * include/dirent.h: Yet more changes to match sort function type
3956         change.
3957         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3958         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3959         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3960
3961 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3962
3963         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3964
3965 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3966
3967         * nscd/connections.c (restart): Try to preserve the process name
3968         by reading the /proc/self/exe symlink and using the return name.
3969         Patch by Jeff Bastian <jbastian@redhat.com>.
3970
3971 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3972
3973         [BZ #9733]
3974         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3975         if we are not loading a new audit library.
3976         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3977         Only use profiling trampoline for auditing if we are not relocating
3978         an audit library.
3979         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3980         * elf/rtld.c: Likewise.
3981         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3982
3983         * elf/rtld.c (dl_main): Extend help message for --audit option.
3984
3985         [BZ #9759]
3986         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3987         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3988         * dirent/alphasort.c: Adjust implementation to type change.
3989         * dirent/alphasort64.c: Likewise.
3990         * dirent/scandir.c: Likewise.
3991         * dirent/versionsort.c: Likewise.
3992         * dirent/versionsort64.c: Likewise.
3993         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3994         declaration.
3995         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3996         declaration.
3997
3998         [BZ #9880]
3999         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4000         correctly.  Set segleft member in output as required.
4001         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4002         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4003
4004         [BZ #9881]
4005         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4006         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4007         * inet/Makefile (tests): Add tst-inet6_rth.
4008         * inet/tst-inet6_rth.c: New file.
4009
4010         [BZ #5807]
4011         * string/strlen.c (strlen): Fix omission in the expression to test
4012         for NUL bytes.
4013
4014 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4015
4016         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4017
4018         * elf/dl-runtime.c (reloc_offset): Define.
4019         (reloc_index): Define.
4020         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4021         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4022         computing index from reloc_offset.
4023         (_dl_call_pltexit): Likewise.
4024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4025         the relocation index to _dl_fixup.
4026         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4027         _dl_call_pltexit.
4028         * sysdeps/x86_64/dl-runtime.c: New file.
4029
4030         [BZ #9893]
4031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4032         alignment of La_x86_64_regs.  Store xmm parameters.
4033         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4034
4035         [BZ #9913]
4036         * string/strverscmp.c (__strverscmp): Fix case of different digits
4037         in fractional part of string.
4038         Patch by Jingyu Liu <jyliu@fortinet.com>.
4039         * string/Makefile (tests): Add tst-svc2.
4040         * string/tst-svc2.c: New file.
4041
4042         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4043
4044         * locale/iso-639.def: Add Min Nan.
4045
4046 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4047
4048         [BZ #9948]
4049         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4050
4051 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4052
4053         * elf/dl-sysdep.c (auxvars): Compress data structure.
4054
4055         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4056         STT_GNU_IFUNC handling.
4057         (elf_machine_rela): Likewise.
4058
4059 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4060
4061         * config.h.in (USE_MULTIARCH): Define.
4062         * configure.in: Handle --enable-multi-arch.
4063         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4064         (_dl_fixup_profile): Likewise.
4065         * elf/do-lookup.c (dl_lookup_x): Likewise.
4066         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4067         * elf/elf.h (STT_GNU_IFUNC): Define.
4068         * include/libc-symbols.h (libc_ifunc): Define.
4069         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4070         framework in init-arch.h to get CPUID values.
4071         * sysdeps/x86_64/multiarch/Makefile: New file.
4072         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4073         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4074         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4075
4076         * config.make.in (experimental-malloc): Define.
4077         * configure.in: Handle --enable-experimental-malloc.
4078         * malloc/Makefile: Handle experimental-malloc flag.
4079         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4080         * malloc/arena.c: Likewise.
4081         * malloc/hooks.c: Likewise.
4082         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4083
4084 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4085
4086         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4087         prediction.  A few size optimizations.
4088
4089 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4090
4091         * time/tzset.c: Optimize a bit for size.
4092
4093 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4094
4095         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4096         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4097
4098         * elf/sprof.c: Avoid warning about multi-line comment.
4099
4100 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4101
4102         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4103         DST name.
4104         * time/tst-posixtz.c: Add tests for quoted timezone names.
4105
4106 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4107
4108         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4109         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4110         200809L instead of 200112L.
4111         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4112         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4113
4114         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4115         instead of __quick_exit_funcs to __run_exit_handlers.
4116         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4117         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4118         (__cxa_at_quick_exit): Remove attribute_hidden.
4119         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4120         to __run_exit_handlers.
4121         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4122         attribute_hidden.
4123
4124 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4125
4126         * po/id.po: Update from translation team.
4127
4128 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4129
4130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4131         .machine push; .machine "power6" and .machine pop around mtfsf
4132         insns outside of _ARCH_PWR6 define.
4133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4135         Likewise.
4136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4137         Likewise.
4138         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4139         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4140         relax_fenv_state): Likewise.
4141
4142 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4143
4144         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4145         cxa_at_quick_exit.
4146         (static-only-routines): Add at_quick_exit.
4147         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4148         GLIBC_2.10.
4149         * stdlib/quick_exit.c: New file.
4150         * stdlib/at_quick_exit.c: New file.
4151         * stdlib/cxa_at_quick_exit.c: New file.
4152         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4153         it appropriately.
4154         (__internal_atexit): New function.
4155         (__new_exitfn): Now takes parameter to point to the list to use.
4156         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4157         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4158         (exit): ...here.  Just call __run_exit_handlers appropriately.
4159         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4160         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4161         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4162         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4163
4164         * po/id.po: Update from translation team.
4165
4166 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4167
4168         * po/ru.po: Update from translation team.
4169
4170 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4171
4172         * po/nl.po: Update from translation team.
4173
4174 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4175
4176         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4177         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4178         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4179         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4180         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4181         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4182         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4183
4184         * po/pl.po: Update from translation team.
4185
4186 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4187
4188         [BZ #7083]
4189         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4190         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4191         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4192         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4193         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4194         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4195         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4196         for GLIBC_2.10.
4197         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4198         Add fallocate and fallocate64.
4199
4200         * io/fcntl.h: Pretty printing.
4201
4202 2009-03-02  Richard Guenther  <rguenther@suse.de>
4203
4204         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4205         attribute also for non-C99 inline semantics variant.
4206
4207 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4208
4209         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4210         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4211         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4212         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4214         Likewise.
4215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4216         Likewise.
4217
4218 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4219
4220         * po/cs.po: Update from translation team.
4221
4222 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4223
4224         * po/bg.po: Update from translation team.
4225         * po/sv.po: Likewise.
4226         * po/fi.po: Likewise.
4227         * po/vi.po: Likewise.
4228
4229 2009-02-27  Roland McGrath  <roland@redhat.com>
4230
4231         * Makeconfig (%.v.i): Depend on Makeconfig.
4232         Exclude % lines from initial #-comment removal.
4233
4234 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4235
4236         * po/ko.po: Update from translation team.
4237
4238 2009-02-26  Roland McGrath  <roland@redhat.com>
4239
4240         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4241         avoids unused warning.
4242
4243 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4244             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4245
4246         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4247         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4248         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4249         and asm/user.h.  Include asm/ptrace.h.
4250         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4251         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4252         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4253         Undefine.
4254         (start_thread): Don't undefine.
4255         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4256         Define.
4257
4258 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4259
4260         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4261         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4262         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4263         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4264         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4265         200112L to 200809L.
4266         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4267         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4268         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4269         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4270         _SC_THREAD_ROBUST_PRIO_PROTECT.
4271         * posix/unistd.h: fexecve is in POSIX 2008.
4272         * time/time.h: strftime_l is in POSIX 2008.
4273         * io/sys/stat.h: futimens is in POSIX 2008.
4274         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4275         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4276         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4277         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4278         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4279         open_memstream, and vdprintf are in POSIX 2008.
4280
4281 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4282
4283         * include/features.h: Define macros for XPG7/POSIX 2008.
4284         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4285         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4286         POSIX 2008.
4287         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4288         * locale/xlocale.h: Define locale_t type.
4289         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4290         in POSIX 2008.  Don't define locale_t here.
4291         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4292         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4293         UTIME_OMIT only with __USE_ATFILE.
4294         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4295         * stdio-common/psiginfo.c: New file.
4296         * stdio-common/psiginfo-data.h: New file.
4297         * stdio-common/psiginfo-define.h: New file.
4298         * stdio-common/Makefile (routines): Add psiginfo.
4299         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4300         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4301         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4302         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4303         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4304         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4305         * io/sys/stat.h: Move mknodat definition into same conditional as
4306         mknod.
4307         * time/sys/time.h: futimesat is not among the functions accepted
4308         into the POSIX standard.
4309
4310         * include/features.h: If no feature selection given and we select
4311         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4312         * posix/Versions: Export __posix_getopt.
4313         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4314         Use it to alternatively initialize __posixly_correct.
4315         (_getopt_internal_r): Take addition parameter.  Pass on to
4316         _getopt_initialize.
4317         (_getopt_internal): Take addition parameter.  Pass on to
4318         _getopt_internal_r.
4319         (getopt): Pass additional zero to _getopt_internal.
4320         (__posix_getopt): New function.
4321         * posix/getopt.h: Add redirection for getopt.
4322         * posix/getopt1.c (getopt_long): Pass additional zero to
4323         _getopt_internal.
4324         (getopt_long_only): Likewise.
4325         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4326         (_getopt_long_only_r): Likewise.
4327         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4328         _getopt_internal_r.
4329
4330 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4331
4332         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4333         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4334         * sysdeps/posix/sysconf.c (__sysconf): Handle
4335         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4336         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4337
4338 2009-02-24  Roland McGrath  <roland@redhat.com>
4339
4340         [BZ #9895]
4341         * README.template: Reworded not to use substituted version number.
4342         Renamed to ...
4343         * README: ... here (no longer generated).
4344         * Makefile (README): Target removed.
4345
4346 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4347
4348         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4349         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4350         instead.
4351
4352         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4353
4354         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4355
4356 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4357
4358         * po/bg.po: Update from translation team.
4359
4360 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4361
4362         * stdlib/monetary.h: Uglify function parameter names.
4363         * sunrpc/rpc/pmap_clnt.h: Likewise.
4364         * sunrpc/rpc/svc.h: Likewise.
4365         * sunrpc/rpc/xdr.h: Likewise.
4366         * sunrpc/rpc/clnt.h: Likewise.
4367         * resolv/netdb.h: Likewise.
4368         * resolv/arpa/nameser.h: Likewise.
4369         * resolv/resolv.h: Likewise.
4370         * argp/argp.h: Likewise.
4371         * locale/langinfo.h: Likewise.
4372         * io/sys/stat.h: Likewise.
4373         * posix/spawn.h: Likewise.
4374         * nis/rpcsvc/nislib.h: Likewise.
4375         * malloc/obstack.h: Likewise.
4376         * sysdeps/ia64/bits/link.h: Likewise.
4377         * sysdeps/i386/bits/link.h: Likewise.
4378         * sysdeps/s390/bits/link.h: Likewise.
4379         * sysdeps/powerpc/bits/link.h: Likewise.
4380         * sysdeps/x86_64/bits/link.h: Likewise.
4381         * sysdeps/sparc/bits/link.h: Likewise.
4382         * sysdeps/sh/bits/link.h: Likewise.
4383         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4384         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4385         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4386         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4387
4388 2008-12-01  Fredrik Unger  <fred@tree.se>
4389
4390         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4391         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4392         _FP_UNPACK_RAW_2, fix up first argument.
4393
4394 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4395
4396         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4397         (GET_NPROCS_PARSER): Change parameters and use next_line.
4398         (__get_nprocs): Rewrite to not use stdio routines.
4399         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4400         Change parameters and use next_line.
4401
4402 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4403
4404         [BZ #5381]
4405         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4406         Change mempool_alloc prototype.
4407         * nscd/mem.c (gc): Don't handle mem_in_flight.
4408         (mempool_alloc): Third parameter now only indicates whether this is the
4409         first call (to allocate data) or not.  If it is, get db rdlock.
4410         Release it on error.  Don't handle mem_in_flight.
4411         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4412         Adjust third parameter of mempool_alloc calls.
4413         Nothing to do here in case mempool_alloc fails.
4414         Avoid local variable shadowing parameter.  No need to get db rdlock
4415         before calling cache_add.
4416         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4417         no mem_in_flight array anymore.
4418         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4419         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4420         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4421         in case mempool_alloc fails. No need to get db rdlock before calling
4422         cache_add.
4423         * nscd/hstcache.c (cache_addhst): Likewise.
4424         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4425         * nscd/servicescache.c (cache_addserv): Likewise.
4426         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4427
4428 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4429
4430         * po/lt.po: Update from translation team.
4431
4432 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4435         defined, allow additional data to be added using the optional
4436         MORE_ELF_HEADER_DATA macro.
4437         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4438         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4439
4440 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4441
4442         * include/atomic.h: Define catomic_and if not already defined.
4443         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4444         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4445
4446 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4447
4448         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4449         Change all callers.
4450         (_int_realloc): Likewise.  Third argument is now padded size
4451         All _int_* functions are now static.
4452
4453         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4454         * malloc/arena.c: Likewise.
4455         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4456         functions.
4457
4458         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4459         easily.
4460
4461         * malloc/malloc.c: Add branch prediction for use of the hooks.
4462
4463         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4464
4465 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4466
4467         [BZ #7095]
4468         * bits/confname.h: Add SUSv7 macros for getconf environments.
4469         * bits/environments.h: Likewise.
4470         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4471         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4472         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4473         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4474         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4475         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4476         * posix/getconf.c: Likewise.
4477         * posix/sysconf.c: Likewise.
4478         * sysdeps/posix/sysconf.c: Likewise.
4479         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4480         environments.
4481
4482 2009-01-16  Petr Baudis  <pasky@suse.cz>
4483
4484         [BZ #9753]
4485         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4486         even if we currently have zero nscount.
4487
4488 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4489
4490         [BZ #9781]
4491         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4492         the input line is too long.
4493
4494         * po/Makefile (libc.pot): Add f_print as function taking c-format
4495         parameter.
4496
4497         * debug/xtrace.sh: Unify translatable messages.
4498         * elf/ldd.bash.in: Likewise.
4499         * elf/sprof.c: Likewise.
4500         * locale/programs/locale.c: Likewise.
4501         * malloc/memusage.sh: Likewise.
4502         * nss/getent.c: Likewise.
4503
4504 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4505
4506         * debug/pcprofiledump.c (print_version,
4507         argp_program_version_hook): New function.
4508         * elf/ldconfig.c (more_help): New function.
4509         (argp): Use it.
4510         * elf/sln.c (usage): New function.
4511         (main): Support --help and --version.
4512         * malloc/memusagestat.c (print_version): New function.
4513         (argp_program_version_hook): New variable.
4514         * nscd/nscd.c (more_help): New function.
4515         (argp): Use it.
4516         * posix/getconf.c (main): Send --version output to stdout.
4517         Support --help.
4518         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4519         arguments.  All callers changed.
4520         (print_version): New function.
4521         (parseargs): Support --help and --version.
4522         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4523         changed.
4524         (print_version): New function.
4525         (main): Use getopt_long.  Support --help and --version.
4526         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4527         --version.
4528
4529 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4530
4531         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4532         (update_data): Fix handling of wrapping back
4533         to the beginning of the buffer.
4534
4535         [BZ #9823]
4536         * stdio-common/psignal.c (psignal): Fix test for empty string.
4537
4538 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4539
4540         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4541         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4542         move _null_auth to .rodata.
4543
4544         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4545         value of 24.
4546
4547         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4548
4549         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4550         today than when the original code was written.  Use larger
4551         buffers.  This also makes it unnecessary to have stat information,
4552         if this causes extra efforts.
4553         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4554         __alloc_dir.
4555
4556 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4557
4558         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4559         is set.
4560         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4561         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4562         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4563         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4564         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4565         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4566
4567 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4568
4569         * po/ru.po: Update from translation team.
4570
4571 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4572
4573         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4574         Add _tid slot to maintain consistency with kernel.
4575
4576 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4577
4578         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4579         incomplete characters at end of input buffer.
4580         * libio/Makefile (tests): Add tst-fgetwc.
4581         * libio/tst-fgetwc.c: New file.
4582         * libio/tst-fgetwc.input: New file.
4583
4584 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4585
4586         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4587
4588 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4589
4590         [BZ #9793]
4591         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4592         *OUTBUFSTART unless the whole output fit into the buffer.
4593         * iconv/Makefile (tests): Add tst-iconv4.
4594         * iconv/tst-iconv4.c: New file.
4595
4596 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4597
4598         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4599         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4600
4601 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4602
4603         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4604         newer linker scripts.
4605
4606 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4607
4608         [BZ #7040]
4609         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4610         inotify_rm_watch should have type int.
4611
4612 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4613
4614         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4615         Make aligned_restore_vmx a local symbol.
4616         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4617         Likewise.
4618
4619 2009-01-30  Andreas Jaeger  <aj@suse.de>
4620
4621         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4622         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4623         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4624         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4625         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4626         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4627         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4628
4629 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4630
4631         [BZ #9726]
4632         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4633         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4634
4635 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4636
4637         [BZ #9726]
4638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4639         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4641         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4642
4643 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4644
4645         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4646         memcpy instead of memcmp.
4647         (_dl_setup_pointer_guard): Likewise.
4648
4649 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4650
4651         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4652         manipulated brk, use malloc_printerr.
4653         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4654         requests.
4655
4656 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4657
4658         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4659         rindex): For C++ add inlines so that they can be recognized as
4660         builtins.
4661         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4662
4663 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4664             Jakub Jelinek  <jakub@redhat.com>
4665
4666         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4667         * wcsmbs/wchar.h: Likewise.
4668
4669 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4670
4671         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4672         (stackinfo_sub_sp): Define.
4673
4674 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4675
4676         [BZ #9750]
4677         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4678         * include/alloca.h (alloca_account): Define.
4679         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4680         (stackinfo_sub_sp): Define.
4681
4682         * nscd/connections.c (nscd_init): If database file access fails
4683         check whether this is due to permission problems and bail in that
4684         case.
4685
4686         [BZ #9741]
4687         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4688         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4689
4690 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4691
4692         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4693         Add "t" to clobber list.
4694         (INTERNAL_SYSCALL_NCS): Likewise.
4695
4696 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4697
4698         * nss/getent.c (print_networks): Don't print comma between aliases.
4699
4700 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4701
4702         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4703
4704         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4705         the hash table.
4706         * misc/Makefile (tests): Add bug-hsearch1.
4707         * misc/bug-hsearch1.c: New file.
4708
4709 2009-01-22  Roland McGrath  <roland@redhat.com>
4710
4711         * Makeconfig (%.v.i): Strip trailing # comments,
4712         not only whole-line comments.
4713
4714 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4715
4716         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4717         one parameter.  If non-NULL use it to initialize return value.
4718         (_dl_setup_pointer_guard): New function.
4719         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4720         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4721         * elf/rtld.c (security_init): Pass _dl_random to
4722         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4723         pointer_chk_guard.
4724         * elf/dl-sysdep.c (_dl_random): New variable.
4725         (_dl_sysdep_start): Handle AT_RANDOM.
4726         (_dl_show_auxv): Likewise.
4727         * elf/dl-support.c (_dl_random): New variable.
4728         (_dl_aux_init): Handle AT_RANDOM.
4729         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4730         to _dl_setup_stack_chk_guard.
4731
4732         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4733
4734 2009-01-10  Roland McGrath  <roland@redhat.com>
4735
4736         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4737
4738 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4739
4740         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4741
4742         [BZ #9706]
4743         * nss/nss_files/files-parse.c (strtou32): New function.
4744         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4745         across 32-bit and 64-bit platforms.
4746         (INT_FIELD_MAYBE_NULL): Likewise.
4747
4748 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4749
4750         [BZ #9720]
4751         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4752         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4753         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4754         Likewise.
4755
4756 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4757
4758         [BZ #697]
4759         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4760         being NULL also if there are no backreferences.
4761         * posix/rxspencer/tests: Add testcases.
4762
4763 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4764
4765         [BZ #9697]
4766         * posix/bug-regex17.c: Add testcases.
4767         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4768         handling.
4769
4770 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4771
4772         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4773         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4774         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4775         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4776         for elf subdir.
4777         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4778         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4779         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4780         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4781         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4782         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4783
4784 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4785
4786         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4787         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4788         re_string_skip_chars, re_string_reconstruct): Likewise.
4789         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4790
4791 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4792
4793         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4794         adjust the buffer alignment.
4795
4796 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4797
4798         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4799         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4800         net/route.h.
4801
4802         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4803         flavor to description only when flavor is not NULL.
4804
4805         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4806         mutex after SIGIO/SIGURG lookup loop.
4807
4808 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4809
4810         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4811
4812 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4813
4814         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4815         handling.
4816
4817 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4818
4819         * sysdeps/unix/sysv/linux/kernel-features.h
4820         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4821
4822         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4823         if no output is written.
4824
4825         * version.h: Bump to 2.10 development.
4826
4827         * posix/getconf.c: Update copyright year.
4828         * nss/getent.c: Likewise.
4829         * iconv/iconvconfig.c: Likewise.
4830         * iconv/iconv_prog.c: Likewise.
4831         * elf/ldconfig.c: Likewise.
4832         * catgets/gencat.c: Likewise.
4833         * csu/version.c: Likewise.
4834         * elf/ldd.bash.in: Likewise.
4835         * elf/sprof.c (print_version): Likewise.
4836         * locale/programs/locale.c: Likewise.
4837         * locale/programs/localedef.c: Likewise.
4838         * nscd/nscd.c (print_version): Likewise.
4839         * debug/xtrace.sh: Likewise.
4840         * malloc/memusage.sh: Likewise.
4841         * malloc/mtrace.pl: Likewise.
4842         * debug/catchsegv.sh: Likewise.
4843
4844 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4845
4846         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4847         script.
4848
4849 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4850
4851         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4852         gethostbyname4_r function call succeeded, just leave the loop.
4853
4854         [BZ #9694]
4855         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4856         very end.
4857         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4858         * wctype/Makefile (tests): Add bug-wctypeh.
4859         * wctype/bug-wctypeh.c: New file.
4860
4861         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4862         LOCALDOMAIN is defined.
4863         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4864
4865         * sysdeps/x86_64/bits/select.h: New file.
4866
4867         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4868
4869 2008-12-21  Bruno Haible  <bruno@clisp.org>
4870
4871         [BZ #9677]
4872         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4873         if no output is written.
4874
4875 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4876
4877         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4878         libc internal symbol __dup2 to avoid access through the PLT.
4879
4880 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4881
4882         [BZ #6545]
4883         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4884         available only for __USE_GNU.
4885
4886         * inet/Makefile (tests): Add tst-getni2.
4887         * inet/tst-getni2.c: New file.
4888
4889         [BZ #7080]
4890         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4891         NULL when NI_NAMEREQD is set.
4892         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4893         * inet/Makefile (tests): Add tst-getni1.
4894         * inet/tst-getni1.c: New file.
4895
4896 2008-12-03  Petr Baudis  <pasky@suse.cz>
4897
4898         [BZ #7067]
4899         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4900         instead of prune_lock.
4901         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4902         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4903
4904 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4905
4906         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4907         use.
4908
4909         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4910         handling.
4911
4912         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4913         after reading name server list.
4914
4915         [BZ #7058]
4916         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4917         handling for host name aliases.
4918
4919 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4920
4921         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4922         instead of doing things manually.
4923
4924 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4925
4926         * posix/regex_internal.h (build_wcs_upper_buffer):
4927         Return type is reg_error_t.
4928
4929 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4930
4931         * posix/globtest.sh: Use mktemp to create temporary file and
4932         directory.
4933
4934         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4935         sets correctly.
4936         (__CPU_CLR_S): Likewise.
4937         (__CPU_ISSET_S): Likewise.
4938
4939 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4940             Ulrich Drepper  <drepper@redhat.com>
4941
4942         * scripts/firstversion.awk: Use custom comparison function to compare
4943         version numbers.
4944         * scripts/versions.awk: Use sort invocation which can handle
4945         multi-digit sub-version numbers.
4946
4947 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4948
4949         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4950         * locale/iso-639.def: Add Chhattisgarhi entry.
4951
4952 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4953
4954         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4955         ESRCH return value.
4956         (_nss_dns_gethostbyname4_r): Likewise.
4957         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4958         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4959         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4960         the no_data variable.
4961
4962         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4963         information at the correct index.
4964
4965         * socket/sys/socket.h: Declare accept4.
4966         * socket/accept4.c: New file.
4967         * sysdeps/unix/sysv/linux/accept4.c: New file.
4968         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4969         * socket/Makefile (routines): Add accept4.
4970         * socket/Versions: Export accept4 with version GLIBC_2.10.
4971         * socket/paccept.c: Removed.
4972         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4973         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4974         * Versions.def: Define GLIBC_2.10 for libc.
4975         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4976
4977         * nscd/connections.c: Use accept4.
4978
4979         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4980
4981 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4982
4983         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4984         flag already set.
4985
4986         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4987         not exist.
4988         * stdlib/Makefile (tests): Add tst-unsetenv1.
4989         * stdlib/tst-unsetenv1.c: New file.
4990
4991 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4992
4993         * login/utmp_file.c (file_writable): New variable.
4994         (setutent_file): Don't try to open file for writing.
4995         (pututline_file): Before writing, make descriptor writable if
4996         necessary.
4997
4998 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4999
5000         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5001         to IPv4 or IPv6 if an interface has been found.
5002
5003 2008-11-26  Roland McGrath  <roland@redhat.com>
5004
5005         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5006         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5007
5008         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5009         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5010         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5011
5012         * elf/elf.h (NT_386_IOPERM): New macro.
5013         (NT_PPC_VSX): New macro.
5014
5015 2008-11-25  Roland McGrath  <roland@redhat.com>
5016
5017         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5018         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5019         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5020         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5021         Subdirectories moved to ports repository.
5022         * configure.in (base_machine): Remove alpha case.
5023
5024 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5025
5026         * sysdeps/mach/strerror_l.c: New file.
5027
5028 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5029
5030         [BZ #6411]
5031         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5032         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5033         magic numbers.
5034         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5035         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5036         (relax_fenv_state): Same as above.
5037         (FPSCR_29): Reserve bit in ISA 2.05.
5038         (FPSCR_NI): Provide define for compat.
5039         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5040         magic numbers.
5041         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5042         magic numbers.
5043         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5044         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5045         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5046         access to hwcap to account for hwcap size increase to uint64_t.
5047         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5048         Likewise.
5049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5050         (*setcontext): Likewise.
5051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5052         New file.
5053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5054         New file.
5055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5056         (*setcontext): dynamically select mtfsf insn based on
5057         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5058         increase to uint64_t.
5059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5060         (*swapcontext): dynamically select mtfsf insn based on
5061         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5062         increase to uint64_t.
5063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5064         New file.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5066         New file.
5067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5068         (*setcontext): dynamically select mtfsf insn based on
5069         PPC_FEATURE_HAS_DFP.
5070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5071         (*swapcontext): dynamically select mtfsf insn based on
5072         PPC_FEATURE_HAS_DFP.
5073
5074 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5075
5076         * version.h: Bump for 2.9 release.
5077         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5078
5079         [BZ #7029]
5080         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5081         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5082         all the rounding.
5083
5084 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5085
5086         [BZ #7009]
5087         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5088         unknown request types for now.
5089
5090 2008-11-11  Roland McGrath  <roland@redhat.com>
5091
5092         * sysdeps/x86_64/configure: New file.
5093
5094         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5095         * configure: Regenerated.
5096
5097 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5098
5099         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5100         correct instruction to remove the stack frame.
5101
5102 2008-11-03  Michael Matz  <matz@suse.de>
5103
5104         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5105         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5106
5107 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5108
5109         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5110         Remove.
5111
5112         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5113         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5114         of the thread variable instead of void *.
5115         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5116         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5117         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5118         __libc_tsd_define arguments.
5119         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5120         __libc_tsd_address arguments.  Remove union hack.
5121         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5122         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5123         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5124         Adjust __libc_tsd_{set,get} arguments.
5125         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5126         __libc_tsd_define arguments.
5127         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5128         arguments.
5129         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5130         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5131         (LOCALE): Adjust __libc_tsd_define arguments.
5132         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5133         arguments.
5134         (LOCALE): Adjust __libc_tsd_define arguments.
5135         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5136         arguments.
5137         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5138         arguments.
5139
5140 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5141
5142         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5143         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5144
5145 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5146
5147         [BZ #6966]
5148         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5149
5150 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5151             Ulrich Drepper  <drepper@redhat.com>
5152
5153         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5154         definition for GCC 3.1 and later.
5155
5156 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5157
5158         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5159         refetch dtv, as it might have changed.
5160         * elf/Makefile: Add rules to build and run tst-tls18.
5161         * elf/tst-tls18.c: New test.
5162         * elf/tst-tlsmod18a.c: New file.
5163
5164 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5165
5166         [BZ #6875]
5167         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5168
5169 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5170
5171         [BZ #6867]
5172         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5173
5174         [BZ #6919]
5175         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5176         Fix length of copy operation.
5177
5178 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5179
5180         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5181         and fix its calling convention.
5182
5183 2008-10-07  Andreas Schwab  <schwab@suse.de>
5184
5185         [BZ #6942]
5186         * resolv/res_send.c (send_vc): Fix last change.
5187         (send_dg): Align here as well.
5188
5189 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5190
5191         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5192         return value in case rlimit is RLIM_INFINITY.
5193
5194         [BZ #6947]
5195         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5196         for UL_SETFSIZE.
5197         * resource/Makefile (tests): Add bug-ulimit1.
5198         * resource/bug-ulimit1.c: New file.
5199
5200         [BZ #6974]
5201         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5202         without dot.  Properly terminate the string with a null byte.
5203         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5204
5205         [BZ #6980]
5206         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5207         negative sizees.
5208         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5209         negative __size.
5210
5211         [BZ #6995]
5212         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5213
5214 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5215
5216         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5217         abort if there is no initgroups_dyn function.
5218
5219         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5220         result if any of the queries really provided an answer.
5221
5222 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5223
5224         * po/lt.po: Update from translation team.
5225
5226 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5227
5228         * po/id.po: Update from translation team.
5229
5230 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5231
5232         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5233         Fix tests for existence of second reply.
5234
5235 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5236
5237         * po/id.po: New file.
5238         Contributed by the Indonesian translation team.
5239
5240 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5241
5242         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5243         initialization.
5244
5245 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5246
5247         * elf/Makefile: Add rules to build and run tst-tls17.
5248         * elf/tst-tls17.c: New test.
5249         * elf/tst-tlsmod17a.c: New file.
5250         * elf/tst-tlsmod17b.c: Likewise.
5251
5252 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5253
5254         * stdlib/divmod_1.c: Use correct type for dummy variable.
5255         * stdlib/mod_1.c: Likewise.
5256
5257 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5258
5259         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5260
5261 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5262
5263         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5264         __nonnull order for C++.
5265         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5266         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5267
5268 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5269
5270         * stdlib/longlong.h: Update from GCC.
5271
5272 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5273             David S. Miller  <davem@davemloft.net>
5274
5275         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5276         make sure any registers used with 64-bit 'branch-on-register'
5277         instructions have their top 32-bits clear.
5278         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5279         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5280
5281 2008-09-18  Andreas Schwab  <schwab@suse.de>
5282
5283         [BZ #6942]
5284         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5285         Properly handle partial reads.
5286
5287 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5288
5289         * elf/elf.h (STO_MIPS_PLT): New.
5290         (R_MIPS_COPY): New.
5291         (R_MIPS_JUMP_SLOT): New.
5292         (R_MIPS_NUM): Redefine to 128.
5293         (DT_MIPS_PLTGOT): New.
5294         (DT_MIPS_RWPLT): New.
5295         (DT_MIPS_NUM): Redefine to 0x35.
5296
5297 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5298
5299         * timezone/africa: Update from tzdata2008f.
5300         * timezone/asia: Likewise.
5301         * timezone/australasia: Likewise.
5302         * timezone/europe: Likewise.
5303         * timezone/leapseconds: Likewise.
5304         * timezone/northamerica: Likewise.
5305         * timezone/southamerica: Likewise.
5306         * timezone/zone.tab: Likewise.
5307
5308 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5309
5310         * nscd/connections.c: Disable use of paccept for now.
5311
5312 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5313
5314         * socket/Versions: Remove paccept export for GLIBC_2.9.
5315         * socket/Makefile (routines): Remove paccept.
5316         * socket/sys/socket.h: Remove paccept declaration.
5317
5318         * po/sv.po: Update from translation team.
5319
5320 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5321
5322         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5323         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5324
5325 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5326
5327         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5328         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5329
5330 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5331
5332         * sunrpc/rpc/svc.h: Declare svcfd_create.
5333         Patch by Michael Solberg <msolberg@redhat.com>.
5334
5335 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5336             Ulrich Drepper  <drepper@redhat.com>
5337
5338         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5339         _int_valloc fails.
5340         (public_pVALLOc): Likewise.
5341
5342 2008-09-02  Andreas Jaeger  <aj@suse.de>
5343
5344         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5345         commit.
5346
5347 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5348
5349         [BZ #6860]
5350         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5351
5352 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5353
5354         * Makefile (check-data): Check data directory in add-ons.
5355         * elf/Makefile (check-data): Likewise.
5356
5357 2008-08-18  Roland McGrath  <roland@redhat.com>
5358
5359         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5360         * configure: Regenerated.
5361         * config.make.in (cflags-cpu): New substituted variable.
5362         (with-cpu): Variable removed.
5363         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5364
5365 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5366
5367         [BZ #6845]
5368         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5369         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5370         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5371         redundant.  Functions which call floating point assembler operations
5372         should go into a sysdeps powerpc/fpu directory.
5373
5374 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5375
5376         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5377         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5378
5379 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5380
5381         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5382
5383         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5384         change related to AT_EXECFN.  We cannot use that string.
5385         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5386         _dl_execfn member.
5387         * elf/dl-support.c: Remove _dl_execfn variable.
5388         (_dl_aux_init): Remove handling of AT_EXECFN.
5389         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5390         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5391
5392 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5393
5394         [BZ #6544]
5395         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5396         byte gets added to writes and seeks from the end use the length of
5397         the buffer and not the currently terminating NUL byte.
5398
5399         [BZ #6634]
5400         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5401         Set to true if locking failed.
5402         (getutid_r_file): Adjust caller.
5403         (pututline_file): Likewise.  Return NULL in this case.
5404         Patch mostly by halesh.s@gmail.com.
5405
5406 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5407
5408         [BZ #6589]
5409         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5410         Define.
5411         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5412
5413 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5414
5415         [BZ #6839]
5416         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5417         macro since it is now available in elf/dynamic-link.h.
5418
5419 2008-08-12  Roland McGrath  <roland@frob.com>
5420
5421         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5422         in case used outside of libc.
5423         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5424
5425 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5426
5427         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5428         directly instead of going through dn_comp.
5429
5430 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5431
5432         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5433         Fix asm constraints.
5434
5435 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5436
5437         [BZ #6790]
5438         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5439         (IPV6_PMTUDISC_PROBE): Likewise.
5440
5441 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5442
5443         [BZ #6791]
5444         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5445
5446 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5447             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5448
5449         [BZ #6817]
5450         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5451         Added the members 'vsx' and 'arch_2_06'.
5452         (_dl_powerpc_platforms): Add the member 'power7'.
5453         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5454         to reflect the changes required by VSX and ISA 2.06.
5455         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5456         'power7'.
5457         Defined PPC_PLATFORM_POWER7.
5458         (_dl_string_platform): Add support for POWER7.
5459         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5460         capability and ISA 2.06.
5461
5462 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5463
5464         [BZ #6824]
5465         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5466         macro to detect use of 128 bit long double.
5467         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5468
5469 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5470
5471         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5472
5473         [BZ #5794]
5474         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5475         parameters.
5476         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5477         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5478
5479 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5480
5481         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5482         guaranteed to be large enough to read inotify event.  Ignore
5483         EAGAIN error.  Better error message.  Add branch predicition.
5484         (main_loop_epoll): Likewise.
5485
5486 2008-08-02  Roland McGrath  <roland@frob.com>
5487
5488         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5489         Add memory clobbers.
5490
5491 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5492
5493         * manual/arith.texi: Avoid @strong{Note:}.
5494         * manual/creature.texi: Likewise.
5495         * manual/filesys.texi: Likewise.
5496         * manual/math.texi: Likewise.
5497         * manual/memory.texi: Likewise.
5498         * manual/resource.texi: Likewise.
5499         * manual/syslog.texi: Likewise.
5500         * manual/time.texi: Likewise.
5501
5502         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5503         to prevent warning.
5504
5505 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5506
5507         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5508         new epoll_create1 interface.
5509         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5510         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5511         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5512
5513         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5514         (NS_GET32): Likewise.
5515
5516         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5517         syscalls, too.
5518
5519         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5520         use the AT_EXECFN value if it is no absolute path.
5521         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5522         __ASSUME_AT_EXECFN.
5523
5524         * Versions.def: Add GLIBC_2.9 to libresolv.
5525         * include/resolv.h: Remove hidden proto declarations for __ns_*
5526         functions.  Add them for __dn_count_labels and __p_secstodate.
5527         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5528         Define ns_msg_getflags macro here.
5529         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5530         and __p_secstodate.
5531         * resolv/Versions: Export functions from <arpa/nameser.h> from
5532         libresolv in version GLIBC_2.9.
5533         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5534         hidden definitions.
5535         * resolv/ns_netint.c: Likewise.
5536         * resolv/ns_parse.c: Likewise.
5537         * resolv/ns_print.c: Likewise.
5538         * resolv/ns_samedomain.c: Likewise.
5539         * resolv/ns_ttl.c: Likewise.
5540         * resolv/arpa/nameser_compat.h: Likewise.
5541         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5542         function calls.
5543         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5544         instead of ns_get16.
5545         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5546         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5547         (gaih_getanswer_slice): Likewise.
5548         * resolv/Makefile (libresolv-routines): Add ns_date.
5549         * resolv/ns_date.c: New file.
5550
5551         * elf/Makefile (check-localplt.out): Also check libresolv and
5552         libcrypt.
5553
5554 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5555
5556         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5557         __ASSUME_O_CLOEXEC.
5558
5559 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5560
5561         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5562         buffer passed to NSS functions.
5563
5564         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5565
5566         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5567         Define.
5568
5569         * misc/syslog.c (openlog_internal): Fix compile problem.
5570
5571 2008-07-28  Roland McGrath  <roland@redhat.com>
5572
5573         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5574
5575 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5576
5577         * io/ftw.c (add_object): Remove inline to avoid warning.
5578
5579         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5580
5581         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5582         Use it instead of locally defined resplen2 variable.
5583         (res_nsend): Adjust for __libc_res_nsend interface change.
5584         (send_vc): Initialize *resplen2 if necessary.  Read length of
5585         package into an appropriately aligned variable.  Store converted length
5586         in new variable and use it appropriately.
5587         Add branch prediction help.
5588         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5589         and pass it on to __libc_res_nsend.  Adjust all callers.
5590         (__libc_res_nsearch): Likewise.
5591         (__libc_res_nqeurydomain): Likewise.
5592         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5593         change.
5594         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5595         Define resplen2 variable and pass it to __libc_res_nsearch and then
5596         to gaih_getanswer.
5597         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5598         Add branch prediction.
5599         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5600         (gaih_getanswer): Don't decode second slice if first one failed due
5601         to a too small buffer.  Don't let not found status of second
5602         decoder shadow results of the first.
5603         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5604         and __libc_res_nquery interface changes
5605         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5606         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5607         __libc_res_nsearch, and __libc_res_nsend.
5608         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5609         change.
5610         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5611         __libc_res_nsearch interface changes.
5612
5613 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5614
5615         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5616
5617         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5618         file descriptors with close-on-exec set.
5619         (exec_comm_child): Fix the case where the write end of the pipe is
5620         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5621
5622         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5623         * io/pipe2.c: Likewise.
5624         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5625         instead of __ASSUME_PACCEPT.
5626         * include/unistd.h: Declare __have_pipe2.
5627         * libio/iopopen.c: Implement "e" flag.
5628         * libio/Makefile (tests): Add tst-popen1.
5629         * libio/tst-popen1.c: New file.
5630
5631         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5632         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5633
5634 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5635
5636         [BZ #6771]
5637         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5638         success call of _IO_SEEKOFF or calls which failed because the
5639         descriptor is for a pipe.
5640
5641         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5642         magic number.
5643
5644         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5645
5646         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5647         F_SETFD use if we know fopen set the flag.
5648
5649         * login/utmp_file.c (setutent_file): Minor optimization in case
5650         O_CLOEXEC is available.
5651
5652 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5653
5654         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5655         * elf/Makefile: Use pie-ccflag variable.
5656         * nscd/Makefile: Likewise.
5657         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5658
5659 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5660
5661         [BZ #6724]
5662         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5663         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5664         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5665         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5666         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5667         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5668         utmp32, utmpx32 and login32.
5669         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5670         versions of struct utmp functions to libc and libutil.
5671         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5672         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5673         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5674         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5675         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5676         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5677         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5678         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5679         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5680         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5681         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5682         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5683         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5684         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5685         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5686         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5687         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5688         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5689         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5690         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5691         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5692         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5693
5694 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5695
5696         * scripts/gen-as-const.awk: Generate more widely usable code by
5697         using 64-bit arithmetic.
5698
5699         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5700         the same treatment as narrow output code in last patch.
5701
5702         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5703
5704         [BZ #6763]
5705         * elf/dl-load.c (local_strdup): Remove inline.
5706         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5707         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5708         part of the object.
5709
5710         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5711
5712 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5713
5714         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5715         the new syscalls, too.
5716
5717         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5718         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5719
5720         [BZ #6698]
5721         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5722         parameter for end of buffer.  If temporary copy is too large use
5723         malloc.
5724         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5725         interface change.
5726         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5727         string rewrite when allocating buffer.
5728
5729         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5730         syscalls, too.
5731
5732         * nscd/connections.c (nscd_init): Clean up fcntl call.
5733
5734         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5735         SOCK_NONBLOCK if possible.
5736
5737         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5738         SOCK_CLOEXEC if available.
5739
5740         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5741         __libc_clntudp_bufcreate_internal.
5742         * include/sys/socket.h: Declare __have_sock_cloexec.
5743         * socket/Makefile (aux): Add have_sock_cloexec.
5744         * socket/have_sock_cloexec.c: New file.
5745         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5746         __libc_clntudp_bufcreate.
5747         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5748         which takes an additional parameter.  Create socket with non-blocking
5749         mode and close-on-exec flag set, if wanted.
5750         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5751         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5752         instead of clntudp_create.  The socket has already the close-on-exec
5753         flag set if SOCK_CLOEXEC is defined.
5754
5755 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5756
5757         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5758         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5759         appropriate.
5760         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5761         non-blocking mode by using socket, paccept, and inotify_init1.
5762
5763         * Versions.def (glibc): Add GLIBC_2.9.
5764         * io/Makefile (routines): Add dup3 and pipe2.
5765         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5766         * io/dup3.c: New file.
5767         * io/pipe2.c: New file.
5768         * posix/unistd.h: Declare dup3 and pipe2.
5769         * socket/Makefile (routines): Add paccept.
5770         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5771         * socket/paccept.c: New file.
5772         * socket/sys/socket.h: Declare paccept.
5773         * sysdeps/unix/syscalls.list: Add entry for dup3.
5774         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5775         epoll_create2 and inotify_init1.
5776         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5777         * sysdeps/unix/sysv/linux/paccept.c: New file.
5778         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5779         possible.
5780         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5781         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5782         inotify_init1, and pipe2 entries.
5783         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5784         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5785         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5786         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5787         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5788         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5789         SOCK_NONBLOCK.
5790         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5791         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5792         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5793         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5794         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5795         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5796         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5797         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5798         EPOLL_NONBLOCK.  Declare epoll_create2.
5799         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5800         EFD_NONBLOCK.
5801         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5802         IN_NONBLOCK.  Declare inotify_init1.
5803         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5804         SFD_NONBLOCK.
5805         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5806         TFD_NONBLOCK.
5807
5808         * elf/elf.h: Define AT_EXECFN.
5809         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5810         LD_ORIGIN_PATH.
5811         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5812         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5813         if __ASSUME_AT_EXECFN is defined.
5814         (_dl_aux_init): Handle AT_EXECFN.
5815         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5816         for 2.6.27 and up.
5817         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5818         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5819         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5820         _dl_execfn if available and avoid compatibility code if
5821         __ASSUME_AT_EXECFN is defined.
5822
5823         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5824         _dl_discover_osversion only for older kernels.
5825
5826 2008-07-22  Roland McGrath  <roland@frob.com>
5827
5828         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5829
5830 2008-07-21  Roland McGrath  <roland@frob.com>
5831
5832         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5833         returned too much data out of line.
5834
5835 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5836
5837         * locale/setlocale.c (setname): Remove inline to avoid compiler
5838         warning.
5839
5840         [BZ #6712]
5841         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5842
5843 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5844
5845         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5846         doesn't manage to write anything, fail.
5847
5848         * malloc/hooks.c (__malloc_check_init): Remove printf.
5849
5850 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5851
5852         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5853
5854 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5855
5856         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5857         from inotify.
5858         (main_loop_epoll): Likewise.
5859
5860 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5861
5862         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5863
5864         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5865         if DEBUG is defined.
5866
5867         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5868         query.  Adjust buffer size computation for padding.
5869
5870 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5871
5872         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5873         * stdio-common/tst-setvbuf1.c: New file.
5874         * stdio-common/tst-setvbuf1.expect: New file.
5875
5876         [BZ #6719]
5877         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5878         when selecting fully-buffered stream.
5879         Patch by Wang Xin <wxinee@gmail.com>.
5880
5881 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5882
5883         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5884         (__open_2): New function.
5885         (__open64_2): New alias to __open_2.
5886         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5887         (__openat_2): New function.
5888         (__openat64_2): New alias to __openat_2.
5889
5890 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5891
5892         [BZ #6723]
5893         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5894
5895 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5896
5897         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5898         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5899         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5900         __hurd_dfail.
5901         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5902         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5903         * sysdeps/mach/hurd/send.c (__send): Likewise.
5904         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5905         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5906
5907 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5908
5909         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5910         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5911         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5912         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5913         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5914         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5915
5916 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5917
5918         [BZ #6657]
5919         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5920         of %EY.
5921         Patch by Petr Baudis.
5922
5923 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5924
5925         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5926         Patch by Peter Jones <pjones@redhat.com>.
5927
5928 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5929
5930         [BZ #6654]
5931         * stdlib/canonicalize.c (__realpath): readlink can write too much
5932         into the buffer on platforms without PATH_MAX.
5933
5934 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5935
5936         [BZ #6653]
5937         * posix/tst-regex.c (main): Rename to...
5938         (do_test): ... this. Remove cmdline option processing.
5939         (TIMEOUT): Define.
5940         (TEST_FUNCTION): Define.
5941         (CMDLINE_OPTIONS): Define.
5942
5943 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5944
5945         [BZ #5210]
5946         * configure.in: Add -Werror to -fstack-protector test to catch
5947         unsupported architectures.
5948         Patch by Gilles Esponasse <g.esp@free.fr>.
5949
5950 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5951
5952         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5953         getcontext returns ENOSYS.
5954
5955 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * nscd/connections.c (main_loop_poll): Fix test for read error.
5958         (main_loop_epoll): Likewise.
5959
5960 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5963         better place so it is not called when nscd is used.
5964
5965         * nscd/connections.c: Also recognize and handle changes to the
5966         resolver configuration file.
5967
5968 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5969
5970         * time/strftime.c: Pass reference to tzset_called around to handle
5971         recursive calls.
5972
5973         [BZ #6612]
5974         * time/strftime.c (__strftime_internal): Call tzset() only
5975         when printing timezone-dependent values.
5976         Based on a patch by Petr Baudis <pasky@suse.cz>.
5977
5978         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5979         unconditionally use second gaih_getanswer_slice result.
5980
5981         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5982         (getaddrinfo): RES must always be non-NULL.
5983
5984 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5985
5986         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5987         cr[34] registers.
5988         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5989         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5990         Likewise.
5991         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5992         register.
5993
5994 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5995
5996         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5997         fields.
5998         * nscd/connections.c (inotify_fd): New variable.
5999         (nscd_init): Try to open an inotify descriptor.
6000         If successful, watch files for databases using inotify instead of
6001         having prune threads stat the files.
6002         (nscd_run_prune): Recognize clear_cache flag being set and call
6003         prune_cache appropriately.
6004         (main_loop_poll): Add inotify descriptor to wait set and handle the
6005         reported changes.
6006         (main_loop_epoll): Likewise.
6007         * nscd/cache.c (prune_cache): Don't stat files for databases if
6008         inotify is used.
6009         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6010         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6011
6012         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6013         fixed-size portion of the record.
6014         * nscd/servicescache.c (cache_addserv): Likewise.
6015         * nscd/pwdcache.c (cache_addpw): Likewise.
6016         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6017
6018 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6021         out we don't use uninitialized memory.
6022
6023         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6024         the client.
6025
6026 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6027
6028         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6029         ignore T_DNAME messages.
6030         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6031
6032 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6033
6034         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6035         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6036
6037 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6038
6039         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6040         instead of portstr to nscd_getserv_r.  Patch by
6041         Roman Kagan <rkagan@mail.ru>.
6042
6043 2008-05-26  Jim Meyering  <meyering@redhat.com>
6044
6045         Remove more useless "if" tests before "free".
6046         * include/inline-hashtab.h (htab_delete): Likewise.
6047         * libio/freopen.c (freopen): Likewise.
6048         * libio/freopen64.c (freopen64): Likewise.
6049         * locale/programs/ld-collate.c (collate_read): Likewise.
6050         * misc/fstab.c (libc_freeres_fn): Likewise.
6051         * posix/glob.c (globfree): Likewise.
6052
6053 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6054
6055         * string/Makefile (strop-tests): Add memmem.
6056         * string/test-memmem.c: New file.
6057         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6058         (test_init): Size buf1 according to BUF1PAGES.
6059
6060 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6061
6062         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6063         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6064         (CFLAGS-scanf17.c): New.
6065         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6066         * stdio-common/scanf15.c (main): Likewise.
6067         * stdio-common/scanf16.c: New file.
6068         * stdio-common/scanf17.c: New file.
6069
6070 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6071
6072         * resolv/res_send.c (send_dg): If we already have one of two
6073         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6074         use the one answer insted of failing.
6075
6076 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6077
6078         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6079         being executed on PowerPC as the expected result exceeds IBM
6080         long double 128 __LDBL_MAX__.
6081
6082 2008-05-21  Roland McGrath  <roland@redhat.com>
6083
6084         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6085
6086         * Makefile (check-data): Use $(abi-name) before other guesses.
6087         Look in $(add-ons) dirs before scripts/data/.
6088         * elf/Makefile (check-data): Likewise.
6089
6090         * scripts/soversions.awk: Grok ABI line.
6091         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6092         Emit definition for abi-name variable.
6093
6094 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6095
6096         * string/endian.h: Define new fixed-size hto* and *toh macros only
6097         if [__USE_BSD].
6098
6099         * iconvdata/Depend: Add localedata.
6100
6101 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6102
6103         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6104
6105 2008-05-08  David S. Miller  <davem@davemloft.net>
6106
6107         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6108         HIDDEN_JUMPTARGET.
6109         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6110         (__SYSCALL_CLOBBERS): Remove %g* registers.
6111         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6112         (__SYSCALL_CLOBBERS): Likewise.
6113         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6114         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6115
6116 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6117
6118         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6119         (CALL_ERRNO_LOCATION): Define.
6120         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6121         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6122         (CALL_ERRNO_LOCATION): Define.
6123         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6124         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6125         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6126
6127 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6128
6129         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6130         variable.
6131
6132 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6133
6134         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6135         (FIRST_FRAME_POINTER): Define.
6136
6137 2008-05-09  David S. Miller  <davem@davemloft.net>
6138
6139         * sysdeps/sparc/sparc64/backtrace.c: New file.
6140
6141 2008-05-14  David S. Miller  <davem@davemloft.net>
6142
6143         * sysdeps/sparc/machine-gmon.h: New file.
6144         * sysdeps/sparc/sparc-mcount.S: Likewise.
6145         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6146         sysdep_routines in gmon directory.
6147
6148 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6149
6150         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6151
6152 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6153
6154         * resolv/res_query.c (__libc_res_nquery): In case one of two
6155         answer was too short don't try to read that answer's header.
6156
6157         * resolv/res_send.c (send_dg): In case of timeout and there are
6158         two queries and one has been answered, return value indicating
6159         success.
6160
6161 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6162
6163         * nscd/cache.c (cache_add): Take additional parameter specifying
6164         whether this is in response of a cache refill.  Check alignment
6165         of package data.  Revamp waking of pruning thread.
6166         (prune_cache): Small optimization.
6167         * nscd/nscd.h: Adjust cache_add prototypes.
6168         * nscd/aicache.c: Adjust cache_add calls.
6169         * nscd/grpcache.c: Likewise.
6170         * nscd/hstcache.c: Likewise.
6171         * nscd/initgrcache.c: Likewise.
6172         * nscd/pwdcache.c: Likewise.
6173         * nscd/servicescache.c: Likewise.
6174         * nscd/connections.c (restart): Really disable cache use before
6175         exec attempt.  If it fails, reenable cache.
6176         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6177         time to max to be able to notice concurrent cache additions.  Unlock
6178         prune_lock while performing gc.  Afterwards compute wakeup time with
6179         current wakeup_time value in mind.
6180
6181 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6182
6183         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6184
6185         * nscd/mem.c (gc): Correctly determine highest used array element
6186         in mark.
6187
6188         * nscd/mem.c (markrange): Add assert to check entries are all
6189         aligned.  Small cleanup in bitmap use.
6190
6191         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6192         blockoff of type nscd_ssize_t.
6193         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6194         (mempoll_alloc): Record block offset and not address.
6195
6196         * nscd/mem.c (gc): Fix test for stack overuse.
6197
6198         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6199         more asserts.
6200
6201         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6202         entry is available, believe it.
6203
6204         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6205         no answers return NSS_STATUS_NOTFOUND.
6206         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6207         buffer does not have any content.
6208
6209 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6210
6211         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6212
6213         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6214         lookup, don't assign canon unconditionally.
6215
6216 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6217
6218         * string/Makefile (distribute): Add str-two-way.h.
6219
6220 2008-03-29  Eric Blake  <ebb9@byu.net>
6221
6222         Rewrite string searches to O(n) rather than O(n^2).
6223         * string/str-two-way.h: New file.  For linear fixed-allocation
6224         string searching.
6225         * string/memmem.c: New implementation.
6226         * string/strstr.c: New implementation.
6227         * string/strcasestr.c: New implementation.
6228
6229 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6230
6231         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6232         opr.ctx_type.
6233         (calc_first): Initialize constraint field.
6234         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6235         Use search_duplicated_node to avoid loops.  Fix grammar.
6236         (duplicate_node): Merge constraint field for all node types.
6237         (calc_eclosure_iter): Look at constraint field for all node types.
6238         * posix/regex_internal.c (create_cd_newstate): Don't look at
6239         create_cd_newstate.
6240
6241 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6242
6243         [BZ #6428]
6244         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6245
6246         [BZ #6442]
6247         * string/endian.h: Add macros for fixed-size endian conversion.
6248         * bits/byteswap.h: Allow inclusion from <endian.h>.
6249         * sysdeps/i386/bits/byteswap.h: Likewise.
6250         * sysdeps/ia64/bits/byteswap.h: Likewise.
6251         * sysdeps/s390/bits/byteswap.h: Likewise.
6252         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6253         * string/Makefile (tests): Add tst-endian.
6254         * string/tst-endian.c: New file.
6255
6256         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6257         Patch by Reuben Thomas.
6258
6259 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6260
6261         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6262
6263 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6264
6265         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6266
6267         [BZ #6461]
6268         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6269         Add missing braces.
6270         (BODY for __gconv_transform_internal_ascii): Likewise.
6271
6272         [BZ #6472]
6273         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6274         to be treated like link-local addresses.
6275         (match_prefix): Don't treat IPv4 loopback address special when
6276         converting to v4 mapped addressed.
6277
6278         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6279         if necessary.
6280         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6281         * posix/tst-rfc3484-2.c: Likewise.
6282         * posix/tst-rfc3484-3.c: Likewise.
6283
6284         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6285         and SCTP.
6286
6287         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6288
6289         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6290
6291         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6292
6293 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6294
6295         * po/lt.po: New file.  From Lituanian translation team.
6296
6297 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6298
6299         Introduce TLS descriptors for i386 and x86_64.
6300         * include/inline-hashtab.h: New file, copied from 2005's
6301         libiberty, with fix for memory leak imported afterwards by
6302         Glauber de Oliveira Costa.
6303         * elf/tlsdeschtab.h: New file.
6304         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6305         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6306         (CHECK_STATIC_TLS): Move to...
6307         * elf/dynamic-link.h: ... this file.
6308         (TRY_STATIC_TLS): New macro.
6309         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6310         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6311         R_386_TLS_DESC): Define.
6312         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6313         binutils.
6314         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6315         R_X86_64_TLSDESC): Define.
6316         (R_386_NUM, R_X86_64_NUM): Adjust.
6317         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6318         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6319         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6320         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6321         release tlsdesc_table.
6322         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6323         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6324         (elf_machine_rel): Handle R_386_TLS_DESC.
6325         (elf_machine_rela): Likewise.
6326         (elf_machine_lazy_rel): Likewise.
6327         (elf_machine_lazy_rela): Likewise.
6328         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6329         * sysdeps/i386/dl-tlsdesc.S: New file.
6330         * sysdeps/i386/dl-tlsdesc.h: New file.
6331         * sysdeps/i386/tlsdesc.c: New file.
6332         * sysdeps/i386/tlsdesc.sym: New file.
6333         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6334         tlsdesc_table.
6335         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6336         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6337         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6338         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6339         release tlsdesc_table.
6340         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6341         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6342         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6343         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6344         (elf_machine_rela): Likewise.
6345         (elf_machine_lazy_rel): Likewise.
6346         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6347         (__tls_get_addr): Do not declare for non-shared compiles.
6348         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6349         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6350         * sysdeps/x86_64/tlsdesc.c: New file.
6351         * sysdeps/x86_64/tlsdesc.sym: New file.
6352         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6353         tlsdesc_table for both 32- and 64-bit structs.
6354
6355 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6356
6357         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6358         its own function.  This reduces the frame setup costs and more.
6359
6360 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6361
6362         [BZ #3406]
6363         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6364         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6365
6366 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6367
6368         * io/openat.c (__openat_2): Also pass fd to __openat.
6369         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6370         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6371
6372         * string/tester.c (test_memcmp): Add a few more tests.
6373         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6374
6375 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6376
6377         * nscd/cache.c (cache_add): Before returning with failure and this
6378         is the first use of the record, mark it as unusable.
6379         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6380         reporting a failure.
6381         * nscd/grpcache.c: Likewise
6382         * nscd/hstcache.c: Likewise.
6383         * nscd/initgrcache.c: Likewise.
6384         * nscd/pwdcache.c: Likewise.
6385         * nscd/servicescache.c: Likewise.
6386
6387 2008-05-10  Roland McGrath  <roland@redhat.com>
6388
6389         [BZ #6505]
6390         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6391
6392 2008-05-08  David S. Miller  <davem@davemloft.net>
6393
6394         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6395
6396         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6397         (__ieee754_y0l): Likewise.
6398         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6399         (__ieee754_y1l): Likewise.
6400         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6401         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6402         frexpl and ldexpl.  math_private.h provides them and the latter
6403         is not even used.
6404         (__log1pl): Use __frexpl.
6405
6406 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6407
6408         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6409         prototypes.
6410         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6411         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6412         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6413         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6414         af==AF_UNSPEC.
6415         (_nss_nis_gethostbyname4_r): New function.
6416         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6417         Change to also handle af==AF_UNSPEC.
6418         (get_tablename): New function.  Use it to avoid duplication.
6419         (_nss_nisplus_gethostbyname4_r): New function.
6420         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6421         available.
6422         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6423         * nss/nss.h: Define struct gaih_addrtuple.
6424         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6425         af==AF_UNSPEC.
6426         (_nss_files_gethostbyname4_r): New function.
6427         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6428         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6429         calls.
6430         * resolv/res_query.c (__libc_res_nquery): Take two additional
6431         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6432         look up IPv4 and IPv6.
6433         Change all callers.
6434         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6435         for an additional query and answer buffer.  Pass to send_vc and
6436         send_dg.
6437         (send_vc): Send possibly two requests and receive two answers.
6438         (send_dg): Likewise.
6439         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6440         __libc_res_nquery.
6441         (_nss_dns_gethostbyname4_r): New function.
6442         (gaih_getanswer_slice): Likewise.
6443         (gaih_getanswer): Likewise.
6444         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6445         __libc_res_nquery call.
6446         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6447         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6448         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6449         available.
6450
6451 2008-05-05  David S. Miller  <davem@davemloft.net>
6452
6453         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6454         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6455
6456 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6457
6458         Fix termios bit macros.
6459         Move *DLY definitions where they belong, in termios.h.
6460         Add *[0-3] definitions.
6461         Fixes confusion between VT and FF.
6462         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6463         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6464         are already defined to avoid collision with termios.h.
6465         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6466         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6467         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6468         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6469         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6470         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6471         VTDLY, VT0, VT1): New macros.
6472         [__USE_GNU] (OLCUC): Change value of macro.
6473         [__USE_XOPEN] (OFILL): New macro.
6474         [__USE_BSD] (CRTSCTS): Change value.
6475         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6476         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6477         (B7200, B14400, B28800, B76800): New macros.
6478
6479 2008-05-01  David S. Miller  <davem@davemloft.net>
6480
6481         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6482         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6483         (gen-as-const-headers): Add it.
6484         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6485         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6486         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6487         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6488
6489         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6490         six system call parameters.
6491         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6492
6493 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6494
6495         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6496         RUSAGE_LWP.
6497         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6498         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6499
6500 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6501
6502         * stdlib/tst-setcontext.c: Include unistd.h.
6503
6504 2008-04-25  David S. Miller  <davem@davemloft.net>
6505
6506         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6507         Pass "union semun" properly in to sys_ipc, it must be passed
6508         by value, not by reference.
6509
6510 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6511
6512         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6513         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6514         * nscd/connections.c (mem_in_flight): Likewise.
6515
6516         * nscd/nscd.h (dbs): Make hidden.
6517
6518         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6519         Avoid returning -1, return 0 instead.
6520
6521 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6522
6523         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6524
6525 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6526
6527         [BZ #5209]
6528         * sysdeps/unix/sysv/linux/times.c: New file.
6529
6530         [BZ #5381]
6531         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6532         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6533         prototype.
6534         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6535         appropriate mem_in_flight element.
6536         (gc): Take allocations which have not yet been committed to the
6537         database into account.
6538         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6539         Reset mem_in_flight before returning.
6540         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6541         cue it up in mem_in_flight_list.
6542         * nscd/aicache.c: Adjust mempool_alloc call.
6543         * nscd/grpcache.c: Likewise.
6544         * nscd/hstcache.c: Likewise.
6545         * nscd/initgrcache.c: Likewise.
6546         * nscd/pwdcache.c: Likewise.
6547         * nscd/servicescache.c: Likewise.
6548         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6549         of -fpie.
6550
6551         * nscd/connections.c (handle_request): Provide better error message
6552         in case SELinux forbids the service.
6553
6554         * version.h (VERSION): Bump to 2.8.90.
6555
6556 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6557
6558         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6559
6560 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6561
6562         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6563         Also use for 32-bit.
6564         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6565         __nextafter instead of nextafter to avoid local PLT.
6566         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6567         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6568
6569         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6570
6571         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6572         __fe_nomask_env.
6573         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6574         <fenv_libc.h> instead of <fenv.h>.
6575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6577
6578         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6579
6580         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6581         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6582         function from fegetexcept and make old name weak alias.
6583         * include/fenv.h: Declare __fegetexcept.
6584         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6585         fegetexcept.
6586         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6587         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6588         to fetestexcept.
6589         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6590         instead of frexpl to avoid local PLT.
6591         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6592         ilogbl to avoid local PLT.
6593         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6594         instead of ldexpl to avoid local PLT.
6595         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6596         __roundl not roundl to avoid local PLT.
6597         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6598         local PLTs.  Use __sincosl instead of separate sinl and cosl
6599         calls.
6600         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6601
6602         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6603         version for ppc64 to 2.4.21 since without it makecontext will fail.
6604
6605         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6606         to the ABI in use.
6607         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6608         .__tls_get_addr.
6609         [__powerpc64__] (TLS_GD): Likewise.
6610
6611 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6612
6613         [BZ #4997]
6614         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6615         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6616         mantissa.
6617         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6618         Likewise.  Also account for when x is an odd number between 2^52
6619         and 2^53-1.
6620         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6621         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6622         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6623         detect aforementioned erroneous conditions.
6624
6625 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6626
6627         * configure.in: Check for -fno-section-anchors in addition to
6628         -fno-toplevel-reorder.
6629
6630 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6631
6632         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6633
6634         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6636         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6637         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6638         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6639         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6640
6641 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6642
6643         [BZ #5443]
6644         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6645         * time/alt_digit.c: Likewise.
6646         * wcsmbs/wcsmbsload.c: Likewise.
6647
6648 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6649
6650         * version.h (VERSION): Bump to 2.8.
6651
6652         * timzeone/asia: Update from tzdata2008b.
6653         * timezone/backward: Likewise.
6654         * timezone/europe: Likewise.
6655         * timezone/northamerica: Likewise.
6656         * timezone/southamerica: Likewise.
6657         * timezone/iso3166.tab: Likewise.
6658         * timezone/leapseconds: Likewise.
6659         * timezone/zone.tab: Likewise.
6660         * timezone/private.h: Update from tzcode2008a.
6661         * timezone/zdump.c: Likewise.
6662         * timezone/zic.c: Likewise.
6663
6664 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6665
6666         [BZ #5741]
6667         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6668         Define additonal Data Cache Block instruction macros.
6669         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6670         Replace dcbst with dcbf and sync with sync/isync.
6671
6672 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6673
6674         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6675         Always set ELF_RTYPE_CLASS_PLT.
6676         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6677
6678 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6679
6680         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6681         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6682         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6683         For ISA 2.01 and later replace mftb with mfspr 268.
6684
6685 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6686
6687         [BZ #5768]
6688         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6689         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6690
6691 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6692
6693         [BZ #5768]
6694         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6695         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6696         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6697         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6698
6699 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6700
6701         * stdlib/tst-makecontext.c (othervar): New variable.
6702         (cf): Test sign extending the argument to long.
6703
6704 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6705
6706         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6707         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6708         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6709         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6710         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6711         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6712         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6713
6714 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6715
6716         * elf/Makefile (tests): Substitute tests-vis-yes here.
6717         (tests-vis-yes): Delete.
6718         (modules-name, modules-vis-yes): Similarly.
6719
6720 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6721
6722         [BZ #4407]
6723         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6724         Preserve sign in signgamp when x is zero.
6725
6726 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6727
6728         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6729         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6730         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6731         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6732         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6733         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6734
6735 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6736
6737         [BZ #4314]
6738         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6739         buffers.
6740
6741         [BZ #5209]
6742         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6743         a reserved error value.
6744
6745         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6746         value to check for correct sign extension.
6747
6748         [BZ #5436]
6749         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6750         Copy 64-bit parameter values even though this is not required in
6751         the standard.
6752
6753         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6754         PC save.
6755
6756 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6757
6758         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6759         PC save.
6760
6761 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6762
6763         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6764
6765 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6766
6767         [BZ #5998]
6768         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6769         in line-buffered stream failed.
6770         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6771
6772 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6773
6774         [BZ #6024]
6775         * scripts/abi-versions.awk: If the version specified by
6776         --enable-oldest-abi is older than the first version for this
6777         architecture, use the default version.
6778
6779         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6780         as well when ignoring the whole category.
6781
6782 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6783
6784         [BZ #6042]
6785         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6786         ETHERTYPE_* definitions.
6787         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6788
6789 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6790
6791         * stdlib/mbtowc.c (__no_r_state): Remove.
6792         (mbtowc): New static state variable.  Use it instead of
6793         __no_r_state.
6794         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6795         (__wctomb_state): New hidden variable.
6796         (wctomb): Use __wctomb_state instead of __no_r_state.
6797         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6798         (__wctomb_state): New extern decl.
6799         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6800
6801 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6802
6803         [BZ #5475]
6804         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6805
6806 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6807
6808         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6809
6810 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6811
6812         * po/nl.po: Update from translation team.
6813
6814 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6815
6816         [BZ #6007]
6817         * string/strfry.c: Handle empty strings again.
6818
6819 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6820
6821         [BZ #5443]
6822         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6823         before looking for translation.
6824         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6825         * locale/freelocale.c: Likewise.
6826         * locale/newlocale.c: Likewise.
6827         * locale/setlocale.c: Likewise.
6828         Based partially on a patch by ryo@np.css.fujitsu.com.
6829
6830 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6831
6832         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6833         acquiring wrlock.  Do conv_tab allocation while holding lock.
6834         * intl/Makefile: Add rules to build and run tst-gettext6.
6835         * intl/tst-gettext6.c: New test.
6836         * intl/tst-gettext6.sh: New file.
6837
6838 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6839
6840         * po/nl.po: Update from translation team.
6841
6842         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6843         provided through st_blksize, try the default size before giving up.
6844
6845 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6846
6847         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6848
6849         [BZ #5939]
6850         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6851
6852         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6853         error message.  POSIX today does not require the messages to be in
6854         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6855
6856         [BZ #5979]
6857         * sunrpc/auth_unix.c: Unify printed strings.
6858         * sunrpc/clnt_tcp.c: Likewise.
6859         * sunrpc/clnt_udp.c: Likewise.
6860         * sunrpc/clnt_unix.c: Likewise.
6861         * sunrpc/svc_tcp.c: Likewise.
6862         * sunrpc/svc_udp.c: Likewise.
6863         * sunrpc/svc_unix.c: Likewise.
6864         * sunrpc/xdr.c: Likewise.
6865         * sunrpc/xdr_array.c: Likewise.
6866         * sunrpc/xdr_rec.c: Likewise.
6867         * sunrpc/xdr_ref.c: Likewise.
6868         * locale/programs/ld-time.c (time_finish): Unify messages.
6869         * locale/programs/locfile.c (handle_copy): Fix typo.
6870         * nscd/nscd.c (options): Fix typo.
6871
6872         [BZ #5995]
6873         * stdlib/strtod_l.c: Use correct sign for result in one more
6874         underflow case.
6875         Patch by Eric Blake <ebb9@byu.net>.
6876
6877 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6878
6879         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6880         and creat system calls.
6881         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6882         call.
6883         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6884         system calls.
6885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6886         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6887         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6888
6889 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6890
6891         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6892         <linux/limits.h> has defined it.
6893         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6894         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6895         headers.
6896         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6897         it instead of ARG_MAX.
6898
6899 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6900
6901         * posix/gai.conf: Fix comment for scope nullbits.
6902         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6903         default to 128 bits for v4 mapped addresses.
6904
6905 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6906
6907         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6908         ptrace call to get the ieee_instruction_pointer from the kernel.
6909         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6910         ptrace call to set the ieee_instructtion_pointer.
6911         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6912         Add comment that ieee_instruction_pointer is always 0.
6913
6914 2008-03-09  Andreas Jaeger  <aj@suse.de>
6915
6916         [BZ #5857]
6917         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6918         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6919         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6920
6921         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6922         (rint_test): Likewise.
6923
6924 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6925
6926         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6927         call.
6928         (__nisfind_server): Similar for open readColdStartFile call.
6929         Patch partially by Jim Meyering.
6930         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6931         around internal_setent call.
6932
6933         * po/vi.po: New Vietnamese translation.
6934
6935         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6936         ADJ_OFFSET_SS_READ.
6937
6938         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6939         remove CLONE_STOPPED.
6940
6941 2008-02-10  Jim Meyering  <meyering@redhat.com>
6942
6943         Remove useless "if" before "free":
6944         * elf/ldconfig.c (parse_conf_include): Likewise.
6945         * gmon/gmon.c (weak_alias): Likewise.
6946         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6947         * inet/rcmd.c (__validuser2_sa): Likewise.
6948         * intl/bindtextdom.c (set_binding_values): Likewise.
6949         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6950         * libio/genops.c (save_for_backup): Likewise.
6951         * libio/wgenops.c (save_for_wbackup): Likewise.
6952         * locale/programs/ld-collate.c (collate_read): Likewise.
6953         * locale/programs/linereader.c (get_string): Likewise.
6954         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6955         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6956         * resolv/res_debug.c (do_section): Likewise.
6957         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6958         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6959         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6960         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6961         * time/tzset.c (tzset_internal): Likewise.
6962
6963 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6964
6965         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6966         of ASSEMBLER.
6967
6968 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6969
6970         [BZ #5903]
6971         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6972         not stream for output file.  Open output file here.
6973         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6974         and output file name.
6975         (process_fd): Likewise.
6976         (process_file): Likewise.
6977         (main): Adjust callers of changed functions.
6978         * iconv/iconv_prog.h: Adjust prototype.
6979
6980 2008-03-09  Andreas Jaeger  <aj@suse.de>
6981
6982         [BZ #5753]
6983         * sysdeps/ia64/ieee754.h: Use protected namespace
6984         __BIG_ENDIAN/__LITTLE_ENDIAN.
6985         * sysdeps/ieee754/ieee754.h: Likewise.
6986         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6987
6988 2008-03-08  Roland McGrath  <roland@frob.com>
6989
6990         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6991         ignore a signal that came from a machine exception, treat it as a
6992         fatal core-dump signal instead.
6993         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6994
6995         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6996         Clear DF bit in thread state's eflags.
6997         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6998
6999 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7000
7001         [BZ #5774]
7002         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7003         of NAN(...) sequence.
7004         * stdlib/Makefile (tests): Add tst-strtod6.
7005         * stdlib/tst-strtod6.c: New file.
7006
7007         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7008
7009         [BZ #5762]
7010         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7011         putting offending option character in quotes.  Clean up error
7012         messages.
7013         * po/be.po: Adjust msgstr in translation file.
7014         * po/bg.po: Likewise.
7015         * po/ca.po: Likewise.
7016         * po/cs.po: Likewise.
7017         * po/da.po: Likewise.
7018         * po/de.po: Likewise.
7019         * po/es.po: Likewise.
7020         * po/fr.po: Likewise.
7021         * po/hr.po: Likewise.
7022         * po/ko.po: Likewise.
7023         * po/nl.po: Likewise.
7024         * po/rw.po: Likewise.
7025         * po/sk.po: Likewise.
7026         * po/sv.po: Likewise.
7027         * po/tr.po: Likewise.
7028         * po/zh_CN.po: Likewise.
7029         * po/zh_TW.po: Likewise.
7030
7031         [BZ #5760]
7032         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7033         Patch by Roland Bless <roland@bless.de>.
7034
7035         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7036         .o file.
7037         * elf/Makefile (routines): Add dl-sysdep.
7038         (elide-routines.os): Likewise.
7039
7040 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7041
7042         [BZ #5786]
7043         * elf/dl-sysdep.c: Undefine ROUND after use.
7044         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7045         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7046         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7047         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7048         to ...
7049         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7050         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7051         if necessary.
7052         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7053
7054         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7055         _dl_tls_get_addr_soft element.
7056         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7057         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7058         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7059         GLRO.
7060         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7061         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7062         of internal_function.
7063
7064         * stdlib/Makefile (aux): Add tens_in_limb.
7065         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7066         * stdlib/tens_in_limb.c: ...here.  New file.
7067
7068         [BZ #5778]
7069         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7070         __statfs_chown_restricted.
7071         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7072         for _PC_CHOWN_RESTRICTED.
7073         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7074         Implement __statfs_chown_restricted.
7075         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7076         _POSIX_CHOWN_RESTRICTED value to zero.
7077         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7078         defined to zero.
7079
7080         * sysdeps/x86_64/rtld-memset.c: New file.
7081
7082 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7083
7084         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7085
7086         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7087         Barcelona machine.  Make default fall through branch of
7088         __x86_64_preferred_memory_instruction check as the integer code path.
7089
7090 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7091
7092         * sysdeps/x86_64/cacheinfo.c
7093         (__x86_64_preferred_memory_instruction): New variable.
7094         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7095
7096         * sysdeps/x86_64/memset.S: Rewrite.
7097
7098 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7099
7100         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7101         __obstack_printf_chk): New prototypes.
7102         (__vasprintf_chk, __vdprintf_chk,
7103         __obstack_vprintf_chk): Likewise.
7104         Add libc_hidden_proto.
7105         * libio/obprintf.c
7106         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7107         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7108         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7109         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7110         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7111         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7112         __obstack_vprintf_chk): New prototypes.
7113         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7114         obstack_vprintf): New inlines.
7115         * debug/dprintf_chk.c: New file.
7116         * debug/vdprintf_chk.c: New file.
7117         * debug/asprintf_chk.c: New file.
7118         * debug/vasprintf_chk.c: New file.
7119         * debug/obprintf_chk.c: New file.
7120         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7121         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7122         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7123         @@GLIBC_2.8.
7124         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7125         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7126         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7127         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7128         libc_hidden_proto.
7129         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7130         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7131         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7132         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7133         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7134         @@GLIBC_2.8.
7135         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7136         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7137         obstack_vprintf_chk.
7138         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7139         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7140         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7141         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7142         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7143         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7144
7145 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7146
7147         [BZ #5779]
7148         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7149         Patch by Roy Marples <roy@marples.name>.
7150
7151         [BZ #5736]
7152         * malloc/malloc.c: Fix typo in comment.
7153
7154         [BZ #5627]
7155         * locale/iso-639.def: Add Shuswap.
7156
7157 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7158
7159         [BZ #5790]
7160         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7161         overwrite *h_errnop/*errnop values from getanswer_r in case of
7162         failure.
7163
7164 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7165
7166         [BZ #5818]
7167         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7168         (verify_persistent_db): Remove one unnecessary test and add a new one
7169         for bad configuration.
7170         (nscd_init): Improve error reported when persistent database cannot
7171         be reused.
7172         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7173         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7174         .suggested_module and .max_db_size and case config file says the
7175         values are zero.
7176         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7177
7178         [BZ #5854]
7179         * nis/ypclnt.c (yp_order): Fix handling of return value of
7180         do_ypcall_tr call.
7181         Patch by Jeff Moyer <jmoyer@redhat.com>.
7182
7183         * po/fr.po: Update from translation team.
7184
7185 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7186             Carlos O'Donell <carlos@systemhalted.org>
7187
7188         [BZ #5012]
7189         * FAQ.in: Describe why glibc needs to be compiled with
7190         optimization.
7191
7192 2008-02-19  Roland McGrath  <roland@redhat.com>
7193
7194         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7195
7196 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7197
7198         [BZ #5737]
7199         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7200         __USE_MISC is defined.
7201
7202 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7203
7204         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7205         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7206         sys/timerfd.h.
7207         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7208         timerfd_gettime, timerfd_settime.
7209         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7210         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7211
7212 2008-02-08  Roland McGrath  <roland@redhat.com>
7213
7214         * elf/elf.h (NT_PPC_SPE): New macro.
7215
7216 2008-02-06  Roland McGrath  <roland@redhat.com>
7217
7218         * Makerules ($(common-objpfx)sysd-rules):
7219         Depend on $(sysdep-makeconfigs).
7220
7221 2008-01-31  Roland McGrath  <roland@redhat.com>
7222
7223         [BZ #5442]
7224         * configure.in: Use -print-file-name if it yields a directory,
7225         for each of include and include-fixed.
7226         * configure: Regenerated.
7227
7228         * Makeconfig (sysd-rules-targets): New variable.
7229         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7230         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7231
7232 2008-01-30  Roland McGrath  <roland@redhat.com>
7233
7234         * manual/libc.texinfo: Update back-cover text.
7235
7236         * elf/elf.h (NT_386_TLS): New macro.
7237
7238 2008-01-29  Roland McGrath  <roland@redhat.com>
7239
7240         * Makeconfig (sysd-rules-patterns): New variable.
7241         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7242         (check-inhibit-asm): New canned sequence, replaces ...
7243         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7244         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7245         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7246         (CFLAGS-rtld): Variable removed.
7247
7248 2008-01-24  Roland McGrath  <roland@redhat.com>
7249
7250         * configure.in: Let configure fragments set base_os.
7251         * configure: Regenerated.
7252
7253 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7254
7255         * po/ko.po: Update from translation team.
7256
7257 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7258
7259         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7260
7261 2008-01-12  Andreas Jaeger  <aj@suse.de>
7262
7263         [BZ #5040]
7264         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7265         Add EPOLLRDHUP.
7266
7267 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7268
7269         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7270         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7271         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7272
7273 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7274
7275         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7276         * elf/dl-close.c (_dl_close): Check for it.
7277         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7278         (_dl_allocate_static_tls): Likewise.
7279         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7280         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7281         to it.
7282         * elf/tst-tls16.c: New file.
7283         * elf/tst-tlsmod16a.c: New file.
7284         * elf/tst-tlsmod16b.c: New file.
7285         * elf/Makefile: Add rules to build and run tst-tls16.
7286
7287 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7288
7289         [BZ #5628]
7290         * bits/shm.h: Fix comment describing shmid_ds.
7291         * sysdeps/gnu/bits/shm.h: Likewise.
7292         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7293         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7294         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7295         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7296         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7297         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7298         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7299         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7300         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7301
7302         [BZ #5607]
7303         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7304         prototypes.
7305         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7306         additional suffixes.
7307         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7308         Add optional functions mq_timedreceive and mq_timedsend.
7309         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7310         * conform/data/pthread.h-data: Fix prototype of
7311         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7312         * conform/data/semaphore.h-data: Allow time.h definitions.
7313         * conform/data/signal.h-data: Likewise.
7314         * conform/data/stdio.h-data: getw and putw are not required in v6.
7315         * conform/data/stdlib.h-data: Change setstate prototype.
7316         * conform/data/string.h-data: Fix strerror_r prototype.
7317         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7318         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7319         Fix readlink prototype.
7320         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7321         in6addr_loopback.
7322         * inet/netinet/in.h: Cleanup namespace.
7323         * posix/regex.h: Likewise.
7324         * resolv/netdb.h: Likewise.
7325         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7326         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7327         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7328         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7329         of names of in in6_addr.
7330         (default_precedence): Likewise.
7331         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7332         NULL definition.
7333
7334 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7335
7336         * conform/data/fmtmsg.h-data: Add missing allows.
7337         * conform/data/ftw.h-data: Likewise.
7338         * conform/data/inttypes.h-data: Likewise.
7339         * conform/data/math.h-data: Likewise.
7340         * conform/data/signal.h-data: Likewise.
7341         * conform/data/net/if.h-data: Likewise.
7342         * conform/data/netinet/in.h-data: Likewise.
7343         * conform/data/sys/socket.h-data: Likewise.
7344
7345         [BZ #5614]
7346         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7347         (__strtok_r): Simplify.
7348         * string/tester.c (test_strtok_r): Add test case for futile search
7349         with single-character seach string.
7350
7351 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7352
7353         * po/ko.po: Update from translation team.
7354
7355 2008-01-11  Andreas Jaeger  <aj@suse.de>
7356
7357         [BZ #5600]
7358         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7359         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7360         kernel header.
7361
7362 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7363
7364         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7365         native interface lookup in all the relevant places.
7366
7367 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7368             Ulrich Drepper  <drepper@redhat.com>
7369
7370         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7371         field.  Use sockaddr_in6 for source_addr.
7372         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7373         (match_prefix): Likewise.
7374         (get_label): Likewise.
7375         (get_precedence): Likewise.
7376         (rfc3484_sort): Change to use indirect access to results array.
7377         Adjust to use of sockaddr_in6.  Replace service_order test with
7378         simple index comparison.
7379         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7380         service_order field.  Adjust qsort_t calls.  Access sorted result
7381         array indirectly through order array.
7382         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7383         * posix/tst-rfc3484-2.c: Likewise.
7384         * posix/tst-rfc3484-3.c: Likewise.
7385
7386 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7387
7388         [BZ #5541]
7389         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7390         pollfd structures.
7391         Patch by André Cruz.
7392
7393         [BZ #5545]
7394         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7395         (clnt_spcreateerror): Likewise.
7396
7397         [BZ #5553]
7398         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7399         (public_mEMALIGn): Likewise.
7400         Patch mostly by Daniel Jacobowitz.
7401
7402 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7403
7404         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7405         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7406         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7407         * stdlib/tst-makecontext2.c: New test.
7408
7409 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7410
7411         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7412         defined.
7413         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7414         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7415         transliteration hooks and REINIT_PARAMS afterwards.
7416         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7417         status.
7418         (REINIT_PARAMS): Define.
7419         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7420         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7421         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7422         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7423         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7424         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7425         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7426         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7427         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7428         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7429         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7430         * iconvdata/tst-iconv7.c: New test.
7431
7432 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7433
7434         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7435
7436 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7437
7438         [BZ #5112]
7439         * nscd/connections.c (restart): Fix condition.
7440
7441 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7442
7443         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7444         __ctype_toupper_loc): Add __THROW.
7445
7446 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7447
7448         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7449         recognition of interface family.
7450
7451         * posix/getconf.c: Update copyright year.
7452         * nss/getent.c: Likewise.
7453         * iconv/iconvconfig.c: Likewise.
7454         * iconv/iconv_prog.c: Likewise.
7455         * elf/ldconfig.c: Likewise.
7456         * catgets/gencat.c: Likewise.
7457         * csu/version.c: Likewise.
7458         * elf/ldd.bash.in: Likewise.
7459         * elf/sprof.c (print_version): Likewise.
7460         * locale/programs/locale.c: Likewise.
7461         * locale/programs/localedef.c: Likewise.
7462         * nscd/nscd.c (print_version): Likewise.
7463         * debug/xtrace.sh: Likewise.
7464         * malloc/memusage.sh: Likewise.
7465         * malloc/mtrace.pl: Likewise.
7466         * debug/catchsegv.sh: Likewise.
7467
7468 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7469
7470         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7471         second lookup.
7472
7473 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7474
7475         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7476         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7477
7478 2007-12-17  Roland McGrath  <roland@redhat.com>
7479
7480         * inet/ether_line.c (ether_line): Remove unused variable.
7481
7482 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7483
7484         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7485         and winp.
7486         * login/openpty.c (openpty): Likewise.
7487         * login/pty.h (openpty, forkpty): Likewise.
7488         * manual/terminal.texi (openpty, forkpty): Likewise.
7489
7490 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7491
7492         * malloc/malloc.c (public_cALLOc): For arenas other than
7493         main_arena, count all bytes inside the mprotect_size range of the
7494         heap as uninitialized.
7495
7496 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7497
7498         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7499         executable stacks.
7500
7501         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7502         mTRIm for all of them.
7503         (mTRIm): Additionally iterate over all free blocks and use madvise
7504         to free memory for all those blocks which contain at least one
7505         memory page.
7506         * malloc/tst-trim1.c: New file.
7507         * malloc/Makefile (tests): Add tst-trim1.
7508
7509         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7510
7511 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7512
7513         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7514         First cast argument to long
7515         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7516         Return long.
7517         (__vdso_clock_gettime): Likewise.
7518         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7519         return long.
7520
7521 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7522
7523         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7524         * locale/nl_langinfo_l.c: Real implementation, copied from
7525         nl_langinfo.c.
7526         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7527
7528 2007-12-01  Jim Meyering  <meyering@redhat.com>
7529
7530         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7531         that would inhibit utf8-optimization of a regexp containing line-
7532         or buffer-anchors, e.g., `^', `$'.
7533
7534 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * time/bug-getdate1.c (do_test): Don't use century values which
7537         aren't valid on 32-bit systems.
7538
7539 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7540
7541         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7542         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7543         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7544         __strcat_g, __strncat_g): Add __asm__.
7545
7546 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7547
7548         [BZ #5477]
7549         * io/fchmodat.c: Fix typo in stub_warning use.
7550         Patch by Petr Salinger.
7551
7552 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7553
7554         * iconvdata/hp-thai8.c: New file.
7555         * iconvdata/Makefile: Add rules for hp-thai8.c.
7556         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7557         * iconvdata/gconv-modules: Likewise.
7558
7559         [BZ #5464]
7560         * iconvdata/hp-greek8.c: New file.
7561         * iconvdata/Makefile: Add rules for hp-greek8.c.
7562         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7563         * iconvdata/gconv-modules: Likewise.
7564
7565         [BZ #5463]
7566         * iconvdata/hp-turkish8.c: New file.
7567         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7568         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7569         * iconvdata/gconv-modules: Likewise.
7570
7571         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7572         (shrink_heap): ... this new function.
7573         (heap_trim): Call shrink_heap instead of grow_heap.
7574
7575         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7576         case don't call alloc_perturb.
7577
7578 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7579
7580         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7581         possible.
7582         * sysdeps/unix/sysv/linux/kernel-features.h
7583         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7584         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7585
7586 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7587
7588         [BZ #5424]
7589         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7590         * stdio-common/Makefile (tests): Add bug22.
7591         * stdio-common/bug22.c: New file.
7592
7593         [BZ #5451]
7594         * time/getdate.c: Fix filling in default values.
7595         * time/bug-getdate1.c: New file.
7596         * time/Makefile: Add rules to build and run bug-getdate1.
7597
7598         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7599         * iconvdata/ebcdic-es.c: Likewise.
7600         * iconvdata/ebcdic-es-a.c: Likewise.
7601         * iconvdata/ebcdic-uk.c: Likewise.
7602         * iconvdata/iso8859-16.c: Likewise.
7603         * iconvdata/viscii.c: Likewise.
7604         * iconvdata/iso8859-9e.c: Likewise.
7605         * iconvdata/Makefile: Adjust appropriately.
7606
7607         [BZ #5428]
7608         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7609         __need_wint_t.
7610
7611 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7612
7613         [BZ #5427]
7614         * iconvdata/hp-roman9.c: New file.
7615         * iconvdata/Makefile: Add rules for hp-roman9.c.
7616         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7617         * iconvdata/gconv-modules: Likewise.
7618
7619         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7620         * iconvdata/Makefile: Adjust appropriately.
7621
7622         [BZ #5441]
7623         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7624         structure, it's allocated with alloca.
7625         * stdio-common/Makefile (tests): Add bug21.
7626         * stdio-common/bug21.c: New file.
7627
7628 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7629
7630         [BZ #5452]
7631         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7632         keyword for gcc's braced-groups.
7633
7634 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7635
7636         [BZ #5454]
7637         * inet/ether_line.c: Strip hostname of whitespaces.
7638         * inet/Makefile (tests): Add tst-ether_line.
7639         * inet/tst-ether_line.c: New file.
7640
7641 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7642
7643         [BZ #5439]
7644         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7645
7646         [BZ #5435]
7647         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7648
7649         * stdlib/tst-setcontext.c: Catch the case where the links gets
7650         messed up and we do not reach main again.
7651
7652         * po/ca.po: Update from translation team.
7653
7654 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7655
7656         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7657         * posix/regex.h (REG_ENOSYS): Likewise.
7658         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7659
7660 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7661
7662         * nscd/nscd.h (MAX_STACK_USE): Define.
7663         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7664         (gc): Initialize stack_used based on allocation in prune_cache.
7665         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7666         Clear array before use.
7667
7668         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7669         memory allocation failed.
7670         * nscd/hstcache.c (cache_addhst): Likewise.
7671         * nscd/grpcache.c (cache_addgr): Likewise.
7672         * nscd/servicescache.c (cache_addserv): Likewise.
7673         * nscd/pwdcache.c (cache_addpw): Likewise.
7674         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7675
7676 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7677
7678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7679         and creat system calls.
7680
7681         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7682
7683 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7684
7685         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7686         Add netiucv/iucv.h.
7687         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7688         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7689         protocol.
7690         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7691         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7692         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7693
7694 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7695
7696         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7697         strncat): Define as macros to avoid compile errors.
7698
7699         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7700         creat entries.
7701
7702 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7703
7704         [BZ #5382]
7705         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7706         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7707         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7708         overflow it.
7709         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7710
7711         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7712         Return zero in case the thread library is not NPTL.
7713
7714         [BZ #5375]
7715         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7716         initializing interface list.
7717
7718         [BZ #5378]
7719         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7720         use result of nss_getgrgid_r if nothing was found.  For other
7721         error return with a failure.
7722         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7723
7724         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7725         macro name.
7726
7727 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7728
7729         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7730         (get_scope): For IPv4 scope, use scopes table.
7731         (fini): Free scopes table if necessary.
7732         (free_scopelist): New function.
7733         (scopecmp): New function.
7734         (gaiconf_init): Also handle scopev4 entries.
7735         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7736         * posix/tst-rfc3484-2.c (do_test): Likewise.
7737         * posix/gai.conf: Document scopev4 defaults.
7738         * posix/Makefile (tests): Add tst-rfc3484-3.
7739         * posix/tst-rfc3484-3.c: New file.
7740
7741         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7742         Teredo tunnels.
7743         * posix/gai.conf: Update for current default tables.
7744
7745 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7746
7747         * po/tr.po: Update from translation team.
7748
7749 2007-11-18  Roland McGrath  <roland@frob.com>
7750
7751         * manual/arith.texi (Remainder Functions): Spelling fix.
7752         From Shaun Silk <genix@mysoul.com.au>.
7753
7754         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7755
7756 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * po/zh_CN.po: Update from translation team.
7759
7760         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7761         Add sys/signalfd.h and sys/eventfd.h.
7762
7763 2007-11-15  Bruno Haible  <bruno@clisp.org>
7764
7765         [BZ #5346]
7766         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7767         union.
7768         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7769         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7770         it needs only fixed stack space. Delay the initialization of
7771         msgid_len until it is needed.
7772
7773 2007-11-15  Andreas Jaeger  <aj@suse.de>
7774
7775         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7776         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7777
7778 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7779
7780         * po/ko.po: Update from translation team.
7781
7782 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7783
7784         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7785         significantly.  The device type is also part of the ifinfomsg data.
7786
7787         * po/sv.po: Update from translation team.
7788         * po/nl.po: Likewise.
7789
7790         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7791         to wake up in 24 hours.
7792
7793         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7794
7795 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7796
7797         * po/cs.po: Update from translation team.
7798         * po/pl.po: Likewise.
7799
7800         * include/ifaddrs.h: Remove in6ai_temporary.
7801         (struct in6addrinfo): Add index element.
7802         Declare __check_native.
7803         * inet/Makefile (aux): Add check_native.
7804         * sysdeps/unix/sysv/linux/check_native.c: New file.
7805         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7806         IFA_F_TEMPORARY.  Pass back ifa_index.
7807         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7808         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7809         call __check_native if necessary.
7810         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7811         to sort addresses.  Pass information about the results.
7812         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7813         of rfc3484_sort interface.
7814         * posix/tst-rfc3484-2.c: Likewise.
7815
7816         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7817         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7818         for _quicksort.
7819         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7820         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7821         on as third parameter to compare function and _quicksort.
7822         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7823         to the compare function.
7824         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7825         * Versions.def: Add GLIBC_2.8 for libc.
7826
7827         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7828         * posix/tst-rfc3484-2.c: Likewise.
7829
7830         * include/kernel-features.h: Moved to...
7831         * sysdeps/mach/hurd/kernel-features.h: ...here.
7832
7833 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7834
7835         * sysdeps/i386/i586/memcpy_chk.S: New file.
7836         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7837         * sysdeps/i386/i586/memset_chk.S: Likewise.
7838
7839 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7840
7841         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7842         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7843         list of interfaces.  Also store prefix length.
7844         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7845         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7846         prefix if source and destination address are in the same subnet.
7847         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7848         Always look for matching record in in6ai list.
7849         Correct source_addr_len value for IPv6->IPv4 converted records.
7850
7851 2007-11-11  Roland McGrath  <roland@frob.com>
7852
7853         * include/kernel-features.h: New file.
7854
7855 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7856
7857         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7858         complications for 64-bit platforms.
7859
7860         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7861         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7862         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7863         open64_2.
7864         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7865         entries.
7866         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7867         * sysdeps/wordsize-64/alphasort.c: New file.
7868         * sysdeps/wordsize-64/alphasort64.c: New file.
7869         * sysdeps/wordsize-64/fseeko.c: New file.
7870         * sysdeps/wordsize-64/fseeko64.c: New file.
7871         * sysdeps/wordsize-64/ftello.c: New file.
7872         * sysdeps/wordsize-64/ftello64.c: New file.
7873         * sysdeps/wordsize-64/ftw.c: New file.
7874         * sysdeps/wordsize-64/ftw64.c: New file.
7875         * sysdeps/wordsize-64/iofgetpos.c: New file.
7876         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7877         * sysdeps/wordsize-64/iofopen.c: New file.
7878         * sysdeps/wordsize-64/iofopen64.c: New file.
7879         * sysdeps/wordsize-64/iofsetpos.c: New file.
7880         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7881         * sysdeps/wordsize-64/lockf.c: New file.
7882         * sysdeps/wordsize-64/lockf64.c: New file.
7883         * sysdeps/wordsize-64/mkostemp.c: New file.
7884         * sysdeps/wordsize-64/mkostemp64.c: New file.
7885         * sysdeps/wordsize-64/mkstemp.c: New file.
7886         * sysdeps/wordsize-64/mkstemp64.c: New file.
7887         * sysdeps/wordsize-64/scandir.c: New file.
7888         * sysdeps/wordsize-64/scandir64.c: New file.
7889         * sysdeps/wordsize-64/tmpfile.c: New file.
7890         * sysdeps/wordsize-64/tmpfile64.c: New file.
7891         * sysdeps/wordsize-64/versionsort.c: New file.
7892         * sysdeps/wordsize-64/versionsort64.c: New file.
7893         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7894         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7895         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7896         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7897         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7898         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7899         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7900         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7901         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7902         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7903         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7904         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7905
7906         * crypt/sha256-crypt.c: Fix a comment.
7907         * crypt/sha512-crypt.c: Likewise.
7908
7909 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7910
7911         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7912
7913 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7914
7915         [BZ #5277]
7916         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7917         because output buffer is too small break, don't loop.
7918         * iconvdata/Makefile (tests): Add bug-iconv6.
7919         * iconvdata/bug-iconv6.c: New file.
7920
7921 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7922
7923         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7924         with size_t type.
7925         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7926         size_t.  Add casts where needed.
7927
7928         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7929         old headers, don't call avc_has_perm if we don't have the
7930         permission information.
7931
7932 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7933
7934         * elf/rtld.c (dl_main): Use the page size to find the map start.
7935
7936 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7937
7938         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7939         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7940
7941         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7942         when the lookup call failed.
7943
7944         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7945         Add prune_cond and wakeup_time.
7946         (CACHE_PRUNE_INTERNAL): Define.
7947         Update declarations of prune_cache and setup_thread.
7948         * nscd/connections.c (dbs): Update initializers.
7949         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7950         (nscd_init): Default number of threads is now 4.
7951         (invalidate_cache): Take lock before calling prune_cache.
7952         (handle_request): If SELinux forbids the request, say so.
7953         (readylist_cond): Use static initializer.
7954         (nscd_run_prune): New function.  Used only by pruning threads.
7955         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7956         here.
7957         (fd_ready): Update nscd_run reference.
7958         (start_threads): No need to initialize readylist_cond.
7959         Start pruning threads separately.
7960         * nscd/nscd_setup_thread.c: Change return value type to int and always
7961         return 0.
7962         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7963         to int and return nonzero value if we can use the TID address hack.
7964         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7965         the database is later than the new entry's timeout, update the
7966         wakeup time and wake the cleanup thread.
7967         (prune_cache): Return seconds the next entry in the database is still
7968         valid.  Remove locking for pruning here.
7969         * nscd/nscd.conf: Document default number of threads.
7970
7971 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7972
7973         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7974         stack is properly aligned for the target function.
7975         Correct unwind info.
7976
7977         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7978         when using auditing libraries.
7979
7980 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7981
7982         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7983         _nss_dns_getnetbyaddr2_r.
7984         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7985         extra parameter to getanswer_r.
7986         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7987         _nss_dns_getnetbyaddr2_r.
7988
7989         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7990         gethstbynm3_r.
7991         * nscd/gethstbynm2_r.c: Remove.
7992         * nscd/gethstbynm3_r.c: New file.
7993         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7994         __gethostbyaddr_r.
7995         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7996         __gethostbyaddr_r compatibility wrapper.
7997         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7998         determining timeout of entry.
7999         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8000         __gethostbyaddr2_r.
8001         (addhstbyX): Pass reference to variable for TTL to lookup and
8002         cache_addhst.
8003         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8004         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8005         and __nss_next2.  Remove __nss_services_lookup.
8006         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8007         Add compat wrapper.
8008         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8009         __nss_next2.
8010         * nss/getXXent_r.c: Likewise.
8011         * nss/getnssent_r.c: Likewise.
8012         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8013         does not exist in module, try the optional second name.
8014         (__nss_next2): New function.
8015         (__nss_next): Now wrapper around __nss_next2.
8016         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8017         Declare __nss_next2.
8018         Adjust definition of db_lookup_function type.
8019         * nss/service-lookup.c: Define NO_COMPAT.
8020         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8021         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8022         * inet/ether_ntoh.c: Likewise.
8023         * sunrpc/netname.c: Likewise.
8024         * sunrpc/publickey.c: Likewise.
8025         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8026         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8027         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8028         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8029         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8030
8031         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8032
8033         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8034
8035 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8036
8037         [BZ #5204]
8038         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8039         * crypt/sha512c-test.c: Likewise.
8040
8041         [BZ #5225]
8042         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8043         to keep track of end of %[ format string element.
8044         * stdio-common/Makefile (tests): Add bug20.
8045         * stdio-common/bug20.c: New file.
8046
8047         [BZ #5222]
8048         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8049         path elements in counting mode.
8050
8051 2007-10-27  Andreas Jaeger  <aj@suse.de>
8052
8053         [BZ #5040]
8054         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8055
8056         [BZ #3112]
8057         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8058         (__cleanup): Free shared library when exiting.
8059         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8060         (__cleanup): Free shared library when exiting.
8061
8062 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8063
8064         [BZ #2549]
8065         * math/libm-test.inc (check_float_internal): Support
8066         denormalized return.
8067
8068 2007-10-23  Andreas Jaeger  <aj@suse.de>
8069
8070         [BZ #5208]
8071         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8072         __LONG_LONG_PAIR to handle little endian byte order.
8073         Suggested by abhishekrai@google.com
8074
8075 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8076
8077         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8078
8079 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8080
8081         * nscd/cache.c (prune_cache): Move test for modified file outside
8082         of locking.
8083
8084 2007-10-21  Andreas Jaeger  <aj@suse.de>
8085
8086         * manual/texinfo.tex: Update to latest version.
8087
8088         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8089
8090         * manual/arith.texi (Status bit operations): Fix formatting.
8091
8092         * manual/errno.texi (Error Messages): Fix formatting.
8093
8094         * manual/sysinfo.texi (System Parameters): Fix formatting.
8095
8096         * manual/libc.texinfo: Update VERSION and UPDATED.
8097
8098 2007-10-19  Roland McGrath  <roland@redhat.com>
8099
8100         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8101
8102 2007-10-06  David S. Miller  <davem@davemloft.net>
8103
8104         * configure.in: Add sparcv9v2 and sparc64v2.
8105         * scripts/config.sub: Likewise.
8106         * configure: Regenerate.
8107         * elf/elf.h (HWCAP_SPARC_N2): New.
8108         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8109         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8110         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8111         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8112         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8113         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8114         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8115
8116 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8117
8118         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8119         even if the poll result indicates there is data to read.
8120         Patch by Jeff Moyer <jmoyer@redhat.com>.
8121
8122 2007-10-18  Roland McGrath  <roland@redhat.com>
8123
8124         * elf/elf.h (NT_PPC_VMX): New macro.
8125
8126 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8127
8128         * version.h (VERSION): Set to 2.7.90.
8129
8130 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8131
8132         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8133         weak_alias.
8134
8135 2007-10-17  Roland McGrath  <roland@frob.com>
8136
8137         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8138         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8139
8140 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8141
8142         * version.h (VERSION): Bump to 2.7.
8143         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8144
8145         [BZ #5186]
8146         * time/tzset.c (__tz_convert): Don't force testing for a change of
8147         TZ if not called from localtime.  But then also see whether the
8148         file changed, in case __use_tzfile is set.
8149
8150         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8151         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8152         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8155         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8157         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8158
8159 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8160
8161         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8162         and admin selects to be able to replace the gai.conf file, lock
8163         data structures around the qsort call.
8164
8165 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8166
8167         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8168         new memset.
8169         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8170         too high for the improvements.  Implement bzero unconditionally for
8171         use in libc.
8172
8173 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8174             Jakub Jelinek  <jakub@redhat.com>
8175
8176         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8177         even when time_t is 32-bit.
8178         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8179         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8180         always set after the search.
8181
8182 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8183
8184         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8185         unreachable code on 32-bit machines.
8186
8187 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8188
8189         [BZ #5184]
8190         * time/strftime_l.c: Include stdbool.h.
8191         (my_strftime): New wrapper, old function renamed to...
8192         (__strftime_internal): ... new function.  Add tzset_called
8193         argument, pass it down to recursive calls, don't call tzset ()
8194         if already true, set to true after call to tzset ().
8195
8196 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8197
8198         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8199         into account when copying TZ string.
8200
8201 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8202
8203         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8204         num_transition rather than num_transitions - 1.
8205
8206 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8207
8208         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8209         PIC indirect jump.
8210
8211         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8212         a local label rather than HIDDEN_JUMPTARGET.
8213
8214 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8215
8216         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8217         (init_cacheinfo): Initialize it.
8218         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8219         Always define bzero.
8220         Remove non-glibc code.
8221         * sysdeps/x86_64/bzero.S: Make an empty file.
8222
8223 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * sysdeps/x86_64/cacheinfo.c
8226         (__x86_64_preferred_memory_instruction): New.
8227         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8228
8229         * sysdeps/x86_64/memset.S: Rewrite.
8230
8231 2007-10-15  Roland McGrath  <roland@redhat.com>
8232
8233         * po/libc.pot: Regenerated.
8234
8235 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8236
8237         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8238         pointers.
8239
8240         [BZ #3425]
8241         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8242         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8243         address record to T_A/T_AAAA requests.
8244
8245 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8246
8247         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8248
8249         * posix/glob.c: Add some branch prediction throughout.
8250
8251         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8252         read from nscd.
8253
8254         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8255         service_order.
8256         (rfc3484_sort): Make sure that even if qsort doesn't support
8257         stable sorting out sorting here is stable by comparing service_order.
8258         (getaddrinfo): Initialize service_order.
8259         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8260         service_order field to sorting structure.
8261         * posix/tst-rfc3484-2.c (do_test): Likewise.
8262
8263         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8264         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8265         __tzset_parse_tz and updating of daylight, timezone, tzname into
8266         update_vars.
8267         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8268         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8269         happens in __tz_compute.
8270         * time/tzfile.c (__tzfile_read): Also read TZ string.
8271         (find_transition): Fold into __tzfile_compute.
8272         (__tzfile_compute): For times beyond the last transition try to
8273         use the TZ string.
8274         * timezone/tst-timezone.c: Information in daylight and tzname does
8275         change for Asia/Tokyo timezone with more concrete information.
8276         Remove the test.
8277
8278         * include/stdio.h: Add libc_hidden_proto for ftello.
8279         * libio/ftello.c: Add libc_hidden_def.
8280
8281         [BZ #1140]
8282         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8283         on the specified time and not the last entries in the file.  Move
8284         code to determine tzname[] to...
8285         (find_transition): ...here.  Add ugly guess for times before the
8286         first transition.
8287
8288 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8289
8290         [BZ #3195]
8291         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8292         no entry.
8293         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8294         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8295         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8296         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8297
8298         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8299         read mechanism when there are no group members and avoid no-op
8300         read syscall in this case.
8301
8302         [BZ #3242]
8303         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8304         (__readall): If reading failed due to EAGAIN error wait a bit
8305         and possibly try again.
8306         (__readvall): Likewise.
8307
8308 2007-10-13  Bruno Haible  <bruno@clisp.org>
8309
8310         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8311         when we cannot recode the message.
8312
8313 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8314
8315         [BZ #4359]
8316         * libio/__freading.c (__freading): Don't return true for
8317         write-only streams.  For read/write streams, check whether we
8318         performed a read operation already.
8319         * libio/Makefile (tests): Add tst-ext2.
8320         * libio/tst-ext2.c: New file.
8321
8322 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8323
8324         * locale/programs/repertoire.c (repertoire_read): Always free
8325         memory for repertoire file name [Coverity CID 270].
8326
8327         * elf/cache.c (save_aux_cache): Free memory allocated for
8328         temporary file name [Coverity CID 267].
8329
8330 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8331
8332         * misc/Makefile (headers): Add bits/error.h.
8333
8334 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8335
8336         * posix/fnmatch_loop.c: Take rule index returned as part of
8337         findidx return value into account when accessing weights.
8338         * posix/regcomp.c: Likewise.
8339         * posix/regexec.c: Likewise.
8340
8341         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8342         (skip_to): Fix problems with parameter of elifdef/elifndef.
8343
8344 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8345
8346         * iconv/gconv_simple.c: Add some branch prediction.
8347
8348 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8349
8350         * locale/programs/ld-collate.c (collate_read): If ignore_content
8351         and nowtok is tok_define, eat any tok_eol tokens.
8352
8353 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8354
8355         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8356         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8357
8358         * inet/netinet/in.h: Don't include bits/socket.h.
8359         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8360         macro.
8361         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8362
8363 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8364
8365         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8366         and tok_elifndef.
8367         * locale/programs/locfile-kw.gperf: Likewise.
8368         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8369
8370 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8371
8372         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8373         (__find_specwc): Change into __extern_always_inline function.
8374         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8375         (__parse_one_specmb): Remove ps argument.
8376         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8377         Adjust __find_specmb and __parse_one_specmb callers.
8378         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8379         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8380         Removed.
8381         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8382         caller.
8383
8384 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8385
8386         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8387         with some Pentium Ds.
8388
8389 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8390
8391         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8392         __read not read.
8393         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8394         __write not write.
8395
8396 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8397
8398         [BZ #181]
8399         * locale/C-time.c: Set week_1stday data to 19971201.
8400         * locale/programs/ld-time.c (time_finish): Default for
8401         first_workday is Monday.
8402
8403         [BZ #2633]
8404         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8405
8406         [BZ #5103]
8407         * posix/glob.c (glob): Recognize patterns starting \/.
8408         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8409         (main): Add test for pattern starting \/.
8410
8411         * misc/error.h: Use __const instead of const.
8412         * misc/bits/error.h: Likewise.
8413
8414 2007-10-07  Andreas Jaeger  <aj@suse.de>
8415
8416         * include/bits/error.h: New file.
8417
8418         * misc/bits/error.h (error_at_line): Fix prototype.
8419
8420 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8421
8422         [BZ #3924]
8423         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8424         more little bugs in creating the stack frame when pltexit has to
8425         be called.
8426
8427         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8428         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8429
8430         [BZ #4407]
8431         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8432         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8433         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8434         * math/libm-test.inc: Add test for this case.
8435
8436         [BZ #5010]
8437         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8438         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8439         map service succeeded.
8440         (svc_is_mapped): New function.
8441         (svc_unregister): Use it before trying to unmap service.
8442
8443 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8444
8445         * timezone/zic.c: Update from tzcode2007h.
8446
8447         [BZ #5063]
8448         * timezone/africa: Update from tzdata2007h.
8449         * timezone/antarctica: Likewise.
8450         * timezone/asia: Likewise.
8451         * timezone/australasia: Likewise.
8452         * timezone/europe: Likewise.
8453         * timezone/leapseconds: Likewise.
8454         * timezone/northamerica: Likewise.
8455         * timezone/southamerica: Likewise.
8456         * timzeone/zone.tab: Likewise.
8457
8458         [BZ #5104]
8459         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8460
8461         [BZ #5113]
8462         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8463         avoid warning with -Wconversion.
8464         (__strndup): Likewise.
8465         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8466
8467         [BZ #5112]
8468         * nscd/connections.c (restart): Don't resync if database is
8469         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8470
8471         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8472         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8473
8474         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8475         evetnfd_read, eventfd_write.
8476         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8477         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8478         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8479         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8480         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8481         eventfd_write for GLIBC_2.7.
8482
8483         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8484         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8485         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8486         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8487
8488 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8489
8490         * stdlib/msort.c: Include stdint.h.
8491         (struct msort_param): New type.
8492         (msort_with_tmp): Use struct msort_param pointer for unchanging
8493         parameters.  Add optimized handling for several common sizes
8494         and indirect sorting mode.
8495         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8496         sorting.
8497         Suggested by Belazougui Djamel .
8498
8499         * stdlib/Makefile (tests): Add tst-qsort2.
8500         * stdlib/tst-qsort2.c: New test.
8501
8502 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8503
8504         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8505         for dup2 in case another thread races with the current one.  Retry
8506         in this case.
8507
8508         * misc/error.h: Remove support for use outside of libc.  We have to
8509         include <features.h> now.  Include <bits/error.h> if possible.
8510         * misc/bits/error.h: New file.
8511
8512 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8513
8514         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8515         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8516         __extern_always_inline functions unconditionally, drop macros.
8517
8518         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8519         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8520         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8521
8522         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8523         add __artificial__ attribute.
8524
8525 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8526
8527         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8528         backward to forward direction.
8529
8530         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8531
8532         [BZ #645]
8533         * locale/programs/ld-collate.c (collate_finish): Compare against last
8534         used section which is known to have rules defined.
8535         (collate_read): After order_start, correctly record order of sections
8536         and queue sections up.
8537
8538 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8539
8540         [BZ #5071]
8541         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8542         the same number of pages.
8543         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8544
8545         * locale/programs/ld-collate.c (collate_read): After initial copy
8546         statement, continue in state 0.
8547
8548         * include/stdio_ext.h (__fsetlocking): Define as macro.
8549
8550 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8553         of section order.
8554
8555         * po/pt_BR.po: Fix typo.
8556
8557 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8558
8559         * iconvdata/Makefile (modules): Add ISO8859-9E.
8560         (distribute): Add iso8859-9e.c.
8561         (gen-8bit-gap-modules): Add iso8859-9e.
8562         * iconvdata/iso8859-9e.c: New file.
8563         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8564         * iconvdata/TESTS: Likewise.
8565         * iconvdata/tst-tables.sh: Likewise.
8566
8567         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8568
8569         * locale/iso-639.def: Add several new entries.
8570
8571 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8572
8573         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8574         void * pointers instead of struct link_map **.
8575         (_dl_scope_free): Change argument type to void *.
8576         * include/link.h (struct link_map): Change type of l_reldeps
8577         to struct link_map_reldeps, move l_reldepsact into that
8578         struct too.
8579         * elf/dl-deps.c: Include atomic.h.
8580         (_dl_map_object_deps): Only change l->l_initfini when it is
8581         fully populated, use _dl_scope_free for freeing it.  Optimize
8582         removal of libs from reldeps by using l_reserved flag, when
8583         some removal is needed, allocate a new list instead of
8584         reallocating and free the old with _dl_scope_free.  Adjust
8585         for l_reldeps and l_reldepsact changes.
8586         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8587         searching in l_initfini and l_reldeps without holding dl_load_lock.
8588         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8589         l_reldepsact changes.
8590         * elf/dl-close.c (_dl_close_worker): Likewise.
8591         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8592
8593 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * iconvdata/Makefile (modules): Add KOI8-RU.
8596         (distribute): Add koi8-ru.c.
8597         (gen-8bit-gap-modules): Add koi8-ru.
8598         * iconvdata/koi8-ru.c: New file.
8599         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8600         * iconvdata/TESTS: Likewise.
8601         * iconvdata/tst-tables.sh: Likewise.
8602
8603         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8604
8605 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8606
8607         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8608         with __warning__/__error__ attributes.
8609         (__warnattr): Define.
8610         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8611         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8612         __warnattr.
8613         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8614         of __*_chk if compile time detectable overflow is found.
8615         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8616         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8617         with __warnattr.
8618         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8619         instead of __*_chk if compile time detectable overflow is found.
8620         (__gets_alias): Rename to...
8621         (__gets_warn): ... this.  Add __warnattr.
8622         (gets): Call __gets_warn instead of __gets_alias.
8623         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8624         aliases with __warnattr.
8625         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8626         time detectable overflow is found.
8627         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8628         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8629         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8630         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8631         __getdomainname_chk_warn): New aliases with __warnattr.
8632         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8633         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8634         __*_chk_warn instead of __*_chk if compile time detectable overflow
8635         is found.
8636         (__getgroups_chk): Rename argument to __listlen from listlen.
8637         (__getwd_alias): Rename to...
8638         (__getwd_warn): ... this.  Add __warnattr.
8639         (getwd): Call __getwd_warn instead of __getwd_alias.
8640         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8641         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8642         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8643         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8644         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8645         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8646         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8647         compile time detectable overflow is found.
8648         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8649         to use __*_chk or not.
8650         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8651         in comparisons which function should be called and in __*_chk*
8652         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8653         detectable overflow is found.
8654         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8655         __*_chk argument.
8656         * debug/tst-chk1.c (do_test): Add a few more tests.
8657
8658 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8659
8660         [BZ #5058]
8661         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8662         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8663         (_nl_unload_domain): Finalize conversions_lock.
8664         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8665         handling table of known conversions.
8666
8667 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8668
8669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8670         close_not_cancel_no_status instead of close.
8671
8672 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8673
8674         [BZ #5028]
8675         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8676         nrules != 0 for multibyte chars.
8677
8678 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8679
8680         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8681         Provide better error message in case the type is unknown.
8682
8683         [BZ #4963]
8684         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8685         * string/stratcliff.c: Make usable to test wide char functions.
8686         * wcsmbs/wcsatcliff.c: New file.
8687         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8688
8689         [BZ #4972]
8690         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8691         (distribute): Add mac-centraleurope.c.
8692         (gen-8bit-gap-modules): Add mac-centraleurope.
8693         * iconvdata/mac-centraleurope.c: New file.
8694         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8695         * iconvdata/TESTS: Likewise.
8696         * iconvdata/tst-tables.sh: Likewise.
8697
8698         [BZ #5043]
8699         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8700
8701 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8702
8703         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8704         from __x86_64_core_cache_size_half.
8705         (init_cacheinfo): Compute shared cache size for AMD processors with
8706         shared L3 correctly.
8707         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8708         name change.
8709         Patch in large parts by Evandro Menezes.
8710
8711 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8712
8713         * elf/dl-lookup.c (add_dependency): Handle failing memory
8714         allocation for dependency list.  Remove unnecessary check.
8715
8716         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8717         open/close when determining source addresses.
8718
8719         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8720         sha512-crypt, and sha512.
8721         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8722         (distribute): Add sha256.h and sha512.h.
8723         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8724         and call the appropriate code.
8725         * crypt/sha256-crypt.c: New file.
8726         * crypt/sha256.c: New file.
8727         * crypt/sha256.h: New file.
8728         * crypt/sha256c-test.c: New file.
8729         * crypt/sha256test.c: New file.
8730         * crypt/sha512-crypt.c: New file.
8731         * crypt/sha512.c: New file.
8732         * crypt/sha512.h: New file.
8733         * crypt/sha512c-test.c: New file.
8734         * crypt/sha512test.c: New file.
8735
8736 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8737
8738         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8739         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8740         __syslog_chk.
8741
8742 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8743
8744         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8745         %as in fscanf format strings.
8746
8747         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8748         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8749         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8750         Likewise.
8751         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8752         Likewise.
8753
8754         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8755         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8756         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8757         * elf/dl-sym.c (do_sym): Likewise.
8758         * include/link.h (struct link_map): Add l_serial field.
8759         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8760         * elf/dl-lookup.c (add_dependency): Add flags argument.
8761         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8762         flags, use THREAD_GSCOPE_RESET_FLAG before and
8763         THREAD_GSCOPE_SET_FLAG after
8764         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8765         Don't dereference map until it has been found on some list.
8766         If map->l_serial changed, return -1.
8767
8768 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8769
8770         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8771         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8772         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8773         libc_hidden_proto.
8774         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8775         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8776         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8777         add libc_hidden_proto.
8778         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8779         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8780         conformance requested.
8781         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8782         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8783         conformance requested.
8784         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8785         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8786         conformance requested.
8787         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8788         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8789         ISO C99 or POSIX conformance requested.
8790         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8791         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8792         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8793         and __isoc99_vsscanf@@GLIBC_2.7.
8794         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8795         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8796         (tests): Add scanf14.
8797         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8798         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8799         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8800         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8801         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8802         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8803         from using internal headers.
8804         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8805         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8806         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8807         and __isoc99_vswscanf@@GLIBC_2.7.
8808         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8809         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8810         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8811         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8812         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8813         * stdio-common/isoc99_scanf.c: New file.
8814         * stdio-common/isoc99_vsscanf.c: New file.
8815         * stdio-common/isoc99_vscanf.c: New file.
8816         * stdio-common/isoc99_vfscanf.c: New file.
8817         * stdio-common/isoc99_fscanf.c: New file.
8818         * stdio-common/isoc99_sscanf.c: New file.
8819         * wcsmbs/isoc99_fwscanf.c: New file.
8820         * wcsmbs/isoc99_vswscanf.c: New file.
8821         * wcsmbs/isoc99_swscanf.c: New file.
8822         * wcsmbs/isoc99_wscanf.c: New file.
8823         * wcsmbs/isoc99_vwscanf.c: New file.
8824         * wcsmbs/isoc99_vfwscanf.c: New file.
8825         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8826         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8827         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8828         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8829         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8830         * stdio-common/scanf14.c: New test.
8831         * stdio-common/scanf15.c: New test.
8832         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8833         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8834         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8835         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8836         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8837         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8838         __nldbl___isoc99_scanf@@GLIBC_2.7,
8839         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8840         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8841         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8842         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8843         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8844         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8845         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8846         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8847         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8848         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8849         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8850         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8851         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8852         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8853         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8854         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8855         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8856         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8857         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8858         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8859         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8860         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8861         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8862         functions.
8863         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8864         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8865         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8866         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8867         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8868         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8869         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8870         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8871         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8872         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8873         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8874         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8875
8876         * stdio-common/Makefile (tests): Add scanf13.
8877         (scanf13-ENV): New.
8878         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8879         m modifier followed by l.
8880         (STRING_ARG): Add width argument.
8881         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8882         <case L_('C')>: Handle %mlc and %mC.
8883         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8884         arguments.
8885         * stdio-common/scanf13.c: New test.
8886
8887         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8888         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8889
8890 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8891
8892         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8893         type and __THROW marker of splice, vmsplice, and tee.
8894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8895         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8900         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8901         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8902         as cancellation points.
8903
8904 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8905
8906         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8907         parse more than three parts of the version number.
8908
8909 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8910
8911         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8912         modifier.  Patch by Jakub Jelinek.
8913
8914 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8915
8916         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8917         call_fallocate in misc subdir.
8918         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8919         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8920         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8921         instead of __fallocate64.
8922         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8923
8924 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8925
8926         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8927         * rt/Makefile (headers): Add bits/mqueue2.h.
8928         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8929         optimizing with GCC and __va_arg_pack_len is defined.
8930         * rt/bits/mqueue2.h: New file.
8931         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8932         (mq_open): New strong_alias.
8933         (__mq_open_2): New function.
8934         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8935         (mq_open): New strong_alias.
8936         (__mq_open_2): New function.
8937         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8938         * Versions.def (librt): Add GLIBC_2.7 version.
8939         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8940         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8941
8942         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8943         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8944         is defined rather than when not C++.
8945         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8946         __openat64_alias): New redirects.
8947         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8948         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8949         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8950         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8951         functions instead of function-like macros.
8952
8953 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8954
8955         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8956         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8957         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8958
8959 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8960
8961         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8962         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8963
8964 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8965
8966         * inet/tst-network.c: Increment ERRORS for failing tests.
8967
8968 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8969
8970         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8971         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8972         implement as __extern_always_inline function.
8973         (vsyslog): Define as __extern_always_inline function unconditionally.
8974         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8975         When __va_arg_pack is defined, implement as __extern_always_inline
8976         functions.
8977         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8978         __extern_always_inline functions unconditionally.
8979         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8980         bits/stdio2.h will be included.
8981         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8982         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8983         implement as __extern_always_inline functions.
8984         (vswprintf, vwprintf, vfwprintf): Define as
8985         __extern_always_inline functions unconditionally.
8986         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8987
8988 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8989
8990         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8991         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8992         attribute.
8993         * include/features.h (__USE_EXTERN_INLINES): Define only when
8994         __extern_inline is defined.
8995         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8996         is defined instead of when not __cplusplus.
8997         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8998         is defined instead of when not __cplusplus.
8999         * socket/sys/socket.h: Include bits/socket2.h when
9000         __extern_always_inline is defined instead of when not __cplusplus.
9001         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9002         is defined instead of when not __cplusplus.
9003         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9004         is defined instead of when not __cplusplus.
9005         * string/string.h: Include bits/string3.h when __extern_always_inline
9006         is defined instead of when not __cplusplus.
9007         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9008         is defined instead of when not __cplusplus.
9009         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9010         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9011         is not defined.
9012         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9013         defined __extern_always_inline instead of !defined __cplusplus.
9014         * libio/bits/stdio-ldbl.h: Likewise.
9015         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9016         * misc/bits/syslog.h (syslog): Don't define for C++.
9017         (vsyslog): Use __extern_always_inline function for C++ instead of
9018         a macro.
9019         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9020         whenever that macro is defined.
9021         (vprintf): Don't provide the inline for C++.
9022         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9023         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9024         define the macros for C++.
9025         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9026         __extern_always_inline functions for C++.
9027         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9028         stat64, lstat64, fstat64, fstatat64): Don't define if not
9029         __USE_EXTERN_INLINES.
9030         * wcsmbs/bits/wchar2.h: Fix #error message.
9031         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9032         (vswprintf, vwprintf, vfwprintf): Define using
9033         __extern_always_inline functions for C++.
9034         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9035         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9036         strncpy, strcat, strncat): Define as __extern_always_inline
9037         functions instead of macros for C++.
9038         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9039         defined __extern_inline.
9040         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9041         to __extern_inline whenever that macro is defined.
9042         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9043         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9044         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9045         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9046         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9047         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9048         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9049         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9050         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9051         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9052         prototypes.  Only provide __extern_inline routines if
9053         __USE_EXTERN_INLINES.
9054         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9055         tests.
9056         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9057         For now avoid some *printf tests in C++.  Skip all testing
9058         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9059         is not.
9060         * debug/tst-chk4.cc: New file.
9061         * debug/tst-chk5.cc: New file.
9062         * debug/tst-chk6.cc: New file.
9063         * debug/tst-lfschk4.cc: New file.
9064         * debug/tst-lfschk5.cc: New file.
9065         * debug/tst-lfschk6.cc: New file.
9066         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9067         prototypes in C++.
9068         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9069         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9070         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9071
9072 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9073
9074         * po/cs.po: Update from translation team.
9075
9076 2007-09-11  Roland McGrath  <roland@redhat.com>
9077
9078         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9079         compiling.
9080
9081 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9082
9083         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9084
9085 2007-09-05  Roland McGrath  <roland@redhat.com>
9086
9087         * manual/signal.texi (Signaling Another Process): Typo fix.
9088         From Karl Berry <karl@freefriends.org>.
9089
9090 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9091
9092         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9093         zero if not defined.
9094         (make_request): Recognize optimistic addresses and treat them like
9095         deprecated addresses.
9096         Reported by Neil Horman <nhorman@redhat.com>.
9097
9098 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9099
9100         * nscd/connections.c (send_ro_fd): Also transfer file size.
9101         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9102         file size don't call fstat.
9103
9104         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9105         ahead and map the file.  This should always be correct and we can
9106         catch problems later.
9107
9108 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9109
9110         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9111         prototypes.
9112         (__fread_alias, __fread_unlocked_alias): New aliases.
9113         (fread): New extern inline.
9114         (fread_unlocked): Likewise.  Undef macro before definition of
9115         the inline function.
9116         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9117         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9118         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9119         and __fread_unlocked_chk@@GLIBC_2.7.
9120         * debug/fread_chk.c: New file.
9121         * debug/fread_u_chk.c: New file.
9122         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9123
9124 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9125
9126         * sysdeps/unix/sysv/linux/syscalls.list
9127         (personality): Change caller to EXTRA.
9128
9129 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9130
9131         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9132         to keep gcc quiet.
9133         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9134
9135         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9136         NDEBUG is defined.
9137
9138         * Makerules: Use -p option with mkdir.
9139
9140         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9141         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9142         (_xdr_directory_obj): Likewise.
9143         (xdr_entry_obj): Likewise.
9144         (xdr_group_obj): Likewise.
9145         (xdr_link_obj): Likewise.
9146         (xdr_table_obj): Likewise.
9147         (_xdr_nis_result): Likewise.
9148         (_xdr_ns_request): Likewise.
9149         (_xdr_ib_request): Likewise.
9150         (_xdr_nis_taglist): Likewise.
9151         (xdr_cback_data): Likewise.
9152         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9153         (xdr_ypresp_maplist): Likewise.
9154
9155         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9156
9157         * posix/regex_internal.h: Prevent some declarations and definitions
9158         to be seen when used in tests.
9159
9160         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9161         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9162
9163         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9164
9165         * config.make.in (datarootdir): Add to shut up configure.
9166
9167         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9168         associativity for fully-associative caches.
9169
9170         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9171         requests.  Fill on more associativity values for L2.
9172         Patch mostly by Evandro Menezes.
9173
9174 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9175
9176         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9177         (_libc_vdso_platform_setup): Avoid using exported variable by using
9178         alias.
9179
9180         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9181
9182         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9183         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9184         defined.
9185
9186 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9187
9188         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9189         align stack for call if pltexit is to be used.
9190
9191         [BZ #3924]
9192         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9193         align for function call in case pltexit has to be called later.
9194
9195         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9196         implicit atomic operation when storing function pointer.
9197         (_dl_runtime_profile): Likewise.
9198
9199 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9200
9201         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9202         NIS_NOTFOUND.
9203
9204 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9205
9206         [BZ #4566]
9207         * string/strtok.c: Fix typo in comment.
9208
9209         [BZ #4582]
9210         * debug/segfault.c: Fix typos in comments.
9211
9212         [BZ #4588]
9213         * stdio-common/tempnam.c: Fix comment, it is not checked that
9214         TMPDIR points to a writable directory.
9215
9216         [BZ #4726]
9217         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9218         memory allocated for the name server address.
9219
9220         [BZ #4946]
9221         * nscd/connections.c (handle_request): Using sendfile always
9222         requires that mmap is used for the database.
9223         Patch by Petr Baudis <pasky@suse.cz>.
9224
9225         [BZ #4905]
9226         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9227         suddenly has two or more addresses, ignore it and remove the old
9228         entry.
9229
9230         [BZ #4814]
9231         * resolv/res_hconf.c: Prepare for compiling outside libc.
9232         * nscd/res_hconf.c: New file.
9233         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9234         the new file.
9235         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9236         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9237
9238         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9239
9240         [BZ #4925]
9241         * debug/pcprofiledump.c: Turn on internationalization by calling
9242         setlocale.  Patch mostly by Benno Schulenberg.
9243
9244         [BZ #4936]
9245         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9246         the state.
9247         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9248         * iconvdata/bug-iconv5.c: New file.
9249
9250 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9251
9252         [BZ #4896]
9253         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9254         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9255         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9256         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9257         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9258         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9259         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9260         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9261
9262 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9263
9264         [BZ #4937]
9265         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9266         lookup loop.  Suggested by John Reiser.
9267
9268 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9269
9270         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9271
9272 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9273
9274         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9275         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9276         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9277         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9278         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9279         to...
9280         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9281
9282 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9283
9284         * po/nl.po: Update from translation team.
9285
9286 2007-08-16  Andreas Jaeger  <aj@suse.de>
9287
9288         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9289         Reported by Peter Festner <peter.festner@ewetel.net>.
9290
9291 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9292
9293         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9294
9295 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9296
9297         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9298         to check for undefined symbols.
9299
9300         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9301         If the syscall fails, set errno to the actual returned error number
9302         rather than EINVAL.
9303         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9304         arguments are incorrect, set errno to EINVAL, if the syscall
9305         fails, set errno to the actual returned error number.
9306
9307         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9308         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9309
9310         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9311         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9312         file.
9313         (ASI_PNF, ASI_BLK_P): Don't define.
9314         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9315         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9316         file.
9317         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9318         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9319         file.
9320
9321 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9322
9323         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9324         FE_UNDERFLOW on Niagara CPUs.
9325
9326         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9327         exceptions.
9328
9329 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9330
9331         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9332         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9333         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9334         flush should be used or not inside of the function.
9335         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9336
9337         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9338         __thread_start): Use HIDDEN_JUMPTARGET.
9339         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9340         __thread_start): Likewise.
9341         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9342
9343         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9344         Add libc_hidden_proto.
9345         (STRTOF): Add libc_hidden_proto.
9346         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9347         (strtold_l, wcstold_l): Use them as second argument for
9348         long_double_symbol.
9349
9350 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9353
9354 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9355
9356         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9357
9358 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9359
9360         * po/bg.po: New file.  From the translation team.
9361
9362 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9363
9364         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9365         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9366         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9367         when each feature was introduced.
9368
9369         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9370         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9371         (CHECK_HASH): New macro.
9372         (PREPARE_VERSION): Use it.
9373
9374         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9375         prototype if not __ASSUME_PSELECT.
9376         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9377         prototype if not __ASSUME_PPOLL.
9378
9379         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9380
9381         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9382         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9383         is defined.
9384
9385 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9386
9387         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9388         (_libc_vdso_platform_setup): If vDSO is not available point
9389         __vdso_gettimeofday to the vsyscall.
9390         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9391         __vdso_gettimeofday instead of vsyscall.
9392
9393 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9394
9395         * nscd/servicescache.c: Include kernel-features.h.
9396         * nscd/gai.c: Likewise.
9397         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9398         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9399         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9400         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9401         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9402         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9403         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9404         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9405         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9406
9407 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9408
9409         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9410         and _dl_get_origin defines anymore.
9411
9412         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9413         Build fix for systems which might lack POSIX timer support.
9414
9415         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9416         (_libc_vdso_platform_setup): Mangle function pointers before storing
9417         them.
9418         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9419         Demangle vdso pointer before use.
9420         (INTERNAL_VSYSCALL): Likewise.
9421
9422         * elf/cache.c (primes): Mark as const.
9423         Noted by Roland McGrath.
9424
9425 2007-08-01  Andreas Jaeger  <aj@suse.de>
9426             Jakub Jelinek  <jakub@redhat.com>
9427
9428         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9429         (options): Add option.
9430         (parse_opt): Handle option.
9431         (manual_link): Adjust process_file caller.  Call implicit_soname.
9432         (search_dir): Formatting.  Use and populate auxiliary cache.
9433         (main): Load and save auxiliary cache.
9434         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9435         stat64 from fstat64 to caller.
9436         (implicit_soname): New function.
9437         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9438         leave *soname as NULL.
9439         * elf/cache.c: Include libgen.h.
9440         (print_entry, print_cache, compare, save_cache, add_to_cache):
9441         Formatting and cleanups.
9442         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9443         aux_cache_file): New structures.
9444         (AUX_CACHEMAGIC): Define.
9445         (primes): New array.
9446         (aux_hash_size, aux_hash): New variables.
9447         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9448         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9449         load_aux_cache, save_aux_cache): New functions.
9450         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9451         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9452         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9453         (process_file): Adjust prototype.
9454
9455 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9456
9457         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9458         with __need_size_t.
9459
9460 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9461
9462         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9463         r_found_version structure as second parameter.
9464         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9465         (_dl_vdso_vsym): Change type of second parameter accordingly.
9466         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9467         (_libc_vdso_platform_setup): Adjust.
9468         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9469         (_libc_vdso_platform_setup): Likewise.
9470
9471         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9472         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9473         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9474         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9475         * csu/libc-start.c: Pretty printing.
9476         Use VDSO_SETUP if defined.
9477         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9478         and let generic code call into _libc_vdso_platform_setup.
9479         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9480         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9481         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9482         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9483         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9484         for GLIBC_PRIVATE.
9485         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9486         (sysdep_rountines): Add dl-vdso.
9487
9488         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9489         of routines.
9490
9491         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9492         attribute_hidden to __vdso_gettimeofday prototype.
9493
9494 2007-08-12  Roland McGrath  <roland@redhat.com>
9495
9496         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9497         From: Karl Berry <karl@freefriends.org>.
9498
9499 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9500
9501         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9502         an atime update for the files we read.
9503
9504 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9505
9506         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9507
9508         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9509         instead of mkstemp.
9510
9511         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9512         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9513         * misc/mkostemp.c: New file.
9514         * misc/mkostemp64.c: New file.
9515         * stdlib/stdlib.h: Declare the new functions.
9516         * sysdeps/posix/tempname.c: Add new parameter which is added to
9517         the flags for open.  Remove __GT_BIGFILE handling.
9518         * stdio-common/tempname.c: Likewise.
9519         * include/stdio.h: Adjust __gen_tempname prototype.
9520         Renumber __GT_* constants.
9521         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9522         * misc/mkdtemp.c: Likewise.
9523         * misc/mkstemp.c: Likewise.
9524         * misc/mkstemp64.c: Likewise.
9525         * misc/mktemp.c: Likewise.
9526         * stdio-common/tempnam.c: Likewise.
9527         * stdio-common/tmpfile.c: Likewise.
9528         * stdio-common/tmpfile64.c: Likewise.
9529         * stdio-common/tmpnam.c: Likewise.
9530         * stdio-common/tmpnam_r.c: Likewise.
9531
9532 2007-08-10  Roland McGrath  <roland@frob.com>
9533
9534         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9535         New macros.
9536         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9537         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9538
9539 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9540
9541         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9542         possible.
9543         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9544         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9545         * nss/nss_files/files-have_o_cloexec.c: New file.
9546
9547         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9548         available.
9549
9550 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9551
9552         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9553         ___new_wcstold_l): New weak aliases.
9554         (strtold_l, wcstold_l): Use them as second argument for
9555         long_double_symbol.
9556
9557 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9558
9559         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9560         register in test for error.
9561
9562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9563         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9564
9565         * po/sv.po: Update from translation team.
9566
9567 2007-08-06  Roland McGrath  <roland@redhat.com>
9568
9569         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9570         Remove __strto*_l inlines.
9571         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9572         * stdlib/strtod.c: Add libc_hidden_def.
9573         * stdlib/strtod_l.c: Likewise.
9574         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9575         for __new_strtold and __new_wcstold.
9576         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9577         __STRTOF, STRTOF.
9578         * stdlib/strtol.c: Add libc_hidden_def.
9579         * stdlib/strtol_l.c: Likewise.
9580         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9581         strtoq.
9582
9583         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9584
9585         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9586         * scripts/data/localplt-generic.data: ... here.
9587         * elf/Makefile (check-data): Get generic file if no other.
9588         ($(objpfx)check-localplt.out): Make target unconditional.
9589
9590         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9591         Use ElfW(Nhdr).
9592
9593 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9594
9595         * po/zh_CN.po: Updated translation from translation team.
9596
9597 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9598
9599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9600         Don't use CGOTSETUP and CGOTRESTORE macros.
9601
9602 2007-08-04  Roland McGrath  <roland@redhat.com>
9603
9604         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9605
9606 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9607
9608         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9609         __extension__ around the whole statement expression.
9610
9611 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9612
9613         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9614         elements during initialization.
9615
9616         * po/pl.po: Updated translation from translation team.
9617         * po/tr.po: Likewise.
9618         * po/nl.po: Likewise.
9619
9620 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9621
9622         * rt/aio.h: Add __nonnull attributes.
9623
9624 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9625
9626         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9627         * stdlib/Makefile (tests): Add tst-strtod5.
9628         (tst-strtod5-ENV): New.
9629         * stdlib/tst-strtod5.c: New file.
9630
9631         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9632         failed.
9633         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9634         on failure.
9635
9636         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9637         allocated.
9638
9639 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9640
9641         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9642         numbers.
9643
9644 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9645
9646         * io/Makefile (aux): Add have_o_cloexec.
9647         * include/fcntl.h: Declare __have_o_cloexec.
9648         * io/have_o_cloexec.c: New file.
9649         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9650         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9651         fcntl call if not necessary.
9652         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9653         of local variable.
9654
9655         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9656         Avoid memset, add explicit initialization.
9657         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9658         to the end and change into zero-sized array.
9659         Move lock member to fill a hole on 64-bit platforms.
9660
9661         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9662         inline functions.
9663         * include/stdlib.h: Add __strto*_internal prototypes here.
9664         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9665         inline functions.
9666         * include/wchar.h: Add __wcsto*_internal prototypes.
9667         * sysdeps/generic/inttypes.h: No need to protect the declaration
9668         of the __strto*_internal and __wcsto*_internal members here.
9669
9670         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9671
9672 2007-08-02  Roland McGrath  <roland@redhat.com>
9673
9674         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9675         $(inst_bindir)/getconf if possible.
9676
9677         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9678         (generated): Add it.
9679         ($(inst_libexecdir)/getconf): Use it.
9680
9681 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9682
9683         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9684         /proc is faster and sufficient.  /sys is still needed for
9685         __get_nprocs_conf.
9686
9687 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9688
9689         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9690         syscall as __fallocate64.
9691         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9692         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9693
9694 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9695
9696         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9697         value.
9698
9699         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9700         if off_t is different rank from size_t.
9701
9702         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9703         uw_frame_state_for): Avoid type punning warnings.
9704         * sysdeps/generic/unwind-dw2-fde-glibc.c
9705         (_Unwind_IteratePhdrCallback): Likewise.
9706         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9707         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9708         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9709         pointers.
9710
9711 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9712
9713         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9714         total processors using sysfs.
9715         (__get_nprocs): Use sysfs to determine which processors are online.
9716
9717 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9718
9719         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9720         syscall arguments count.
9721
9722         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9723
9724 2007-07-30  Roland McGrath  <roland@redhat.com>
9725
9726         * manual/libc.texinfo: Update copyrights, formatting magic, and
9727         @dircategory.  From Karl Berry <karl@freefriends.org>.
9728
9729 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9730
9731         [BZ #4860]
9732         * io/Makefile (headers): Add bits/fcntl2.h.
9733
9734         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9735         using gcc builtin.
9736         (__CPU_EQUAL_S): Likewise.
9737
9738         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9739         (tests): Add tst-cpuset.
9740         * posix/sched_cpualloc.c: New file.
9741         * posix/sched_cpufree.c: New file.
9742         * posix/tst-cpuset.c: New file.
9743         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9744         GLIBC_2.7.
9745         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9746         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9747         macros.  Define CPU_*_S macros.
9748
9749 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9750
9751         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9752         entry.
9753
9754         [BZ #4858]
9755         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9756         #.0g and value rounded to 1.0.
9757         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9758
9759 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9760
9761         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9762         for int_frac_digits and frac_digits.
9763
9764         * login/logout.c (logout): Avoid aliasing violation.
9765         * login/logwtmp.c (logwtmp): Likewise.
9766
9767         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9768
9769         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9770         to avoid warning.
9771         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9772         warning.
9773         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9774         warning.
9775         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9776         to avoid warnings.
9777
9778         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9779         void **.
9780         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9781
9782         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9783         char * to avoid warning.
9784         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9785
9786         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9787
9788         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9789         allocate_arrays): Cast second argument to charmap_find_symbol
9790         to char * to avoid warnings.
9791
9792         * locale/programs/repertoire.c (repertoire_new_char): Change
9793         from_nr, to_nr and cnt to unsigned long, adjust printf format
9794         string.
9795
9796         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9797         Cast second argument to new_element to char * to avoid warnings.
9798
9799         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9800
9801         * intl/gettextP.h (struct loaded_domain): Change plural to const
9802         struct expression *.
9803         * intl/plural-eval.c (plural_eval): Change first argument to
9804         const struct expression *.
9805         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9806         argument to const struct expression **.
9807         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9808         prototypes.
9809         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9810         in call to __gettext_free_exp.
9811
9812         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9813         unitialized wstring/wpattern var warnings.
9814
9815         * posix/runtests.c (struct a_test): Make data field const char *.
9816
9817         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9818         vars if not LDBL_MANT_DIG >= 106.
9819
9820         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9821
9822         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9823         __find_specmb to avoid warning.
9824
9825         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9826
9827         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9828         to avoid warnings.
9829
9830         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9831         initializer.
9832
9833         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9834         tv var when it will be actually used.
9835
9836         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9837         to avoid warnings.
9838
9839         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9840         char array resp. pointer.
9841         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9842         char array.
9843         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9844         to const unsigned char **.
9845         (ucs4_to_cns11643): Change second argument to unsigned char *.
9846         * iconvdata/euc-tw.c (BODY): Change endp type to
9847         const unsigned char *.
9848         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9849         to unsigned char *.
9850         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9851         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9852         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9853         types to unsigned char pointers/arrays instead of char.
9854         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9855         to unsigned char *.
9856         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9857         * iconvdata/jis0212.h: Include assert.h.
9858         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9859         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9860         of trying to handle that.
9861         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9862         shut up a warning.
9863         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9864         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9865         two dimensional const unsigned char arrays.
9866         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9867         Initialize endp to inptr to shut up a warning.
9868
9869 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9870
9871         [BZ #4772]
9872         * time/strptime_l.c (__strptime_internal): Silently ignore
9873         strftime modifiers and field width in recursive calls.
9874
9875         * include/time.h (enum ptime_locale_status): Remove.
9876         (__strptime_internal): Remove decided and era_cnt arguments,
9877         add statep argument.
9878         * time/strptime_l.c (__strptime_internal): Remove decided
9879         and era_cnt arguments, add statep argument.  Don't recompute
9880         any fields in recursive calls, only update caller's tm
9881         and state, if recursive call fails, don't change tm nor
9882         any state.
9883         (get_alt_number): Adjust.
9884         (recursive): Adjust caller.
9885         (strptime): Likewise.
9886         * time/strptime.c (strptime): Likewise.
9887
9888 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9889
9890         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9891         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9892         if from and to charsets are the same.
9893         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9894         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9895         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9896
9897 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9898
9899         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9900         Don't define wint_t when __need_mbstate_t unless it
9901         is necessary.
9902         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9903         in the typedef if possible.
9904         * wctype/wctype.h (wint_t): Define by including
9905         wchar.h with __need_wint_t instead of including stddef.h
9906         with __need_wint_t and as fallback definining it ourselves.
9907         * iconv/gconv.h (__need_wint_t): Define before including
9908         wchar.h.
9909         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9910         or _GLIBCPP_USE_WCHAR_T.
9911         (__need_wchar_t): Don't define
9912         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9913         (__need_wint_t): Don't define before including stddef.h,
9914         define before including wchar.h only if _LIBC or
9915         _GLIBCPP_USE_WCHAR_T.
9916         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9917         * sysdeps/mach/hurd/_G_config.h: Likewise.
9918         * sysdeps/generic/_G_config.h: Likewise.
9919         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9920         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9921         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9922         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9923
9924 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9925
9926         * sysdeps/posix/posix_fallocate64.c: Undefine
9927         __posix_fallocate64_l64 before alias handling.
9928         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9929         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9930         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9931         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9932
9933         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9934
9935 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9936
9937         * locale/programs/ld-collate.c (atwc): New variable.
9938         (add_to_tablewc): New toplevel function, moved from collate_output.
9939         (collate_output): Remove add_to_tablewc nested function.
9940
9941         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9942         (name_insert): New function.
9943         (write_output): Remove hash_table and hash_size vars and name_insert
9944         nested function.
9945
9946 2007-07-24  Roland McGrath  <roland@redhat.com>
9947
9948         * Makerules (install-others-programs-nosubdir): New target.
9949         (install-no-libc.a-nosubdir): Depend on it.
9950
9951         * iconv/Makefile (install-others-programs): Set this instead of
9952         install-others.
9953         * login/Makefile (install-others-programs): Likewise.
9954         * posix/Makefile (install-others-programs): Likewise.
9955
9956         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9957         dependencies.
9958
9959 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9960
9961         * io/Makefile (tests): Add tst-posix_fallocate.
9962         * io/tst-posix_fallocate.c: New file.
9963
9964         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9965         __ASSUME_FALLOCATE.
9966
9967 2007-07-22  Roland McGrath  <roland@frob.com>
9968
9969         * hurd/getdport.c: Add missing copyright year update.
9970
9971         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9972         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9973
9974 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9975
9976         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9977
9978         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9979         O_CLOEXEC is needed.
9980         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9981         Avoid additional fcntl to set O_CLOEXEC if not needed.
9982         * nis/nss_compat/compat-initgroups.c: Likewise.
9983         * nis/nss_compat/compat-pwd.c: Likewise.
9984         * nis/nss_compat/compat-spwd.c: Likewise.
9985
9986 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9987
9988         [BZ #3665]
9989         * manual/errno.texi: Change ECANCELED value to 119.
9990
9991         [BZ #4610]
9992         * mach/lock-intern.h: Include <sys/cdefs.h>.
9993
9994         [BZ #4178]
9995         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9996         reading A.
9997
9998         [BZ #4126]
9999         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10000         to __sigsuspend.
10001
10002         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10003
10004 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10005
10006         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10007         `__ASSEMBLER__'.
10008         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10009
10010 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10011
10012         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10013         descriptor received from nscd.
10014
10015         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10016
10017         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10018         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10019         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10022         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10023
10024 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10025
10026         [BZ #4816]
10027         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10028
10029         [BZ #4813]
10030         * login/forkpty.c (forkpty): Close master and slave fds on
10031         fork failure.  Patch by
10032         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10033
10034 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10035
10036         * include/features.h (__USE_ISOC95): New define.
10037         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10038         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10039         for -std=iso9899:199409.
10040         * CONFORMANCE: Remove comments about unsupported AMD1.
10041
10042 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10043
10044         * sysdeps/ia64/sched_cpucount.c: New file.
10045         * sysdeps/powerpc/sched_cpucount.c: New file.
10046
10047         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10048         __BEGIN_DECLS/__END_DECLS around the prototype.
10049         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10050         pointer to const cpu_set_t.
10051
10052         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10053         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10054         __need_size_t and include stddef.h.
10055         * sysvipc/sys/msg.h: Likewise.
10056         * posix/sched.h: Likewise.
10057         * hurd/hurd/signal.h (__need_size_t): Define.
10058
10059         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10060         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10061         no longer defines wint_t or wchar_t.
10062
10063         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10064         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10065         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10066         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10067         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10068         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10069         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10070         * debug/printf_chk.c (__printf_chk): Likewise.
10071         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10072         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10073
10074         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10075         Define.
10076
10077         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10078         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10079
10080 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10081
10082         [BZ #4792]
10083         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10084         * malloc/malloc.h (realloc): Likewise.
10085
10086         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10087         if one of proc_file_chain streams has that fileno.
10088         * stdio-common/Makefile (tests): Add tst-popen2.
10089         * stdio-common/tst-popen2.c: New test.
10090
10091 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10092
10093         * elf/ldconfig.c: Allow GPLv2 or any later version.
10094         * elf/readlib.c: Likewise.
10095         * elf/chroot_canon.c: Likewise.
10096         * elf/cache.c: Likewise.
10097         * nscd/mem.c: Likewise.
10098         * nscd/getpwuid_r.c: Likewise.
10099         * nscd/grpcache.c: Likewise.
10100         * nscd/aicache.c: Likewise.
10101         * nscd/getsrvbynm_r.c: Likewise.
10102         * nscd/nscd.c: Likewise.
10103         * nscd/servicescache.c: Likewise.
10104         * nscd/getsrvbypt_r.c: Likewise.
10105         * nscd/initgrcache.c: Likewise.
10106         * nscd/gethstbyad_r.c: Likewise.
10107         * nscd/gethstbynm2_r.c: Likewise.
10108         * nscd/getgrnam_r.c: Likewise.
10109         * nscd/nscd_setup_thread.c: Likewise.
10110         * nscd/getpwnam_r.c: Likewise.
10111         * nscd/gai.c: Likewise.
10112         * nscd/connections.c: Likewise.
10113         * nscd/dbg_log.c: Likewise.
10114         * nscd/cache.c: Likewise.
10115         * nscd/hstcache.c: Likewise.
10116         * nscd/nscd_conf.c: Likewise.
10117         * nscd/getgrgid_r.c: Likewise.
10118         * nscd/pwdcache.c: Likewise.
10119         * catgets/gencat.c: Likewise.
10120         * locale/programs/linereader.h: Likewise.
10121         * locale/programs/locarchive.c: Likewise.
10122         * locale/programs/ld-paper.c: Likewise.
10123         * locale/programs/locfile-kw.h: Likewise.
10124         * locale/programs/ld-address.c: Likewise.
10125         * locale/programs/xmalloc.c: Likewise.
10126         * locale/programs/ld-time.c: Likewise.
10127         * locale/programs/localedef.c: Likewise.
10128         * locale/programs/simple-hash.c: Likewise.
10129         * locale/programs/xstrdup.c: Likewise.
10130         * locale/programs/ld-numeric.c: Likewise.
10131         * locale/programs/locfile-kw.gperf: Likewise.
10132         * locale/programs/ld-collate.c: Likewise.
10133         * locale/programs/charmap-kw.gperf: Likewise.
10134         * locale/programs/charmap.h: Likewise.
10135         * locale/programs/charmap-kw.h: Likewise.
10136         * locale/programs/config.h: Likewise.
10137         * locale/programs/locfile.c: Likewise.
10138         * locale/programs/ld-ctype.c: Likewise.
10139         * locale/programs/charmap.c: Likewise.
10140         * locale/programs/ld-messages.c: Likewise.
10141         * locale/programs/repertoire.h: Likewise.
10142         * locale/programs/locale.c: Likewise.
10143         * locale/programs/ld-name.c: Likewise.
10144         * locale/programs/linereader.c: Likewise.
10145         * locale/programs/locfile.h: Likewise.
10146         * locale/programs/3level.h: Likewise.
10147         * locale/programs/ld-monetary.c: Likewise.
10148         * locale/programs/ld-measurement.c: Likewise.
10149         * locale/programs/charmap-dir.c: Likewise.
10150         * locale/programs/ld-identification.c: Likewise.
10151         * locale/programs/localedef.h: Likewise.
10152         * locale/programs/charmap-dir.h: Likewise.
10153         * locale/programs/repertoire.c: Likewise.
10154         * locale/programs/simple-hash.h: Likewise.
10155         * locale/programs/ld-telephone.c: Likewise.
10156         * locale/programs/locale-spec.c: Likewise.
10157         * locale/programs/locfile-token.h: Likewise.
10158         * posix/getconf.c: Likewise.
10159         * iconv/dummy-repertoire.c: Likewise.
10160         * iconv/iconv_charmap.c: Likewise.
10161         * iconv/iconvconfig.c: Likewise.
10162         * iconv/iconv_prog.c: Likewise.
10163         * malloc/memusagestat.c: Likewise.
10164         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10165
10166 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10167
10168         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10169         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10170         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10171         check for the first argument.
10172
10173 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10174
10175         [BZ #4775]
10176         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10177         (__tgmath_real_type): Fix if expr is const int or other const
10178         qualified integral type.
10179         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10180         expressions and handle const qualified arguments.
10181         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10182         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10183         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10184         statement expressions.
10185         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10186         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10187         (__TGMATH_UNARY_IMAG): Define.
10188         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10189         * math/Makefile (tests): Add test-tgmath2.
10190         (CFLAGS-test-tgmath2.c): Add.
10191         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10192         count_cfloat, count_cldouble): New variables.
10193         (NCCALLS): Define.
10194         (main): Check number of complex calls as well.
10195         (F(compile_test)): Add complex tests and tests with const qualified
10196         arguments.
10197         (y, z, ccount): Define.
10198         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10199         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10200         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10201         F(cproj)): New functions.
10202         * math/test-tgmath2.c: New test.
10203
10204 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10205
10206         [BZ #4776]
10207         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10208         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10209         instead output ".".
10210         * dlfcn/Makefile (distribute): Add glreflib3.c.
10211         (module-names): Add glreflib3.
10212         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10213         glreflib1.so.
10214         (LDFLAGS_glreflib3.so): New.
10215         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10216         glreflib1.so.
10217         * dlfcn/glreflib3.c: New file.
10218
10219         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10220         returned -1, return NULL.
10221         * intl/explodename.c (_nl_explode_name): Return -1 if
10222         _nl_normalize_codeset failed.
10223
10224 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10225
10226         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10227         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10228         and avoid branch misspredicts for > 31 bytes memset case.
10229         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10230         Remove toc ref to __cache_line_size.
10231
10232         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10233         to get ISA-V2.0 branch hints.
10234         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10235         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10236         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10237         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10238         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10239         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10240         Remove toc ref to __cache_line_size.
10241
10242         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10243         Include math_ldbl_opt.h.
10244
10245 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10246
10247         [BZ #4773]
10248         * time/strptime_l.c (__strptime_internal): Implement greedy
10249         matching of weekday and month names.
10250
10251 2007-07-09  Roland McGrath  <roland@redhat.com>
10252
10253         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10254         (ELF_NOTE_ABI): Use it.
10255         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10256
10257 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10258
10259         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10260         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10261
10262 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10263
10264         [BZ #4745]
10265         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10266         in loop to look for conversion specifier to avoid testing of
10267         wrong errno value.
10268         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10269         * stdio-common/bug18.c: New file.
10270         * stdio-common/bug18a.c: New file.
10271         * stdio-common/bug19.c: New file.
10272         * stdio-common/bug19a.c: New file.
10273
10274 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10275
10276         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10277         running awk script.
10278
10279 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10280
10281         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10282         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10283         Return NULL if mmap failed instead of asserting it does not.
10284         (calloc): Check for integer overflow.
10285
10286         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10287         than LONG_MAX / 10.
10288
10289 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10290
10291         [BZ #4702]
10292         * nis/nss-default.c: Include errno.h.
10293         (init): Preserve errno.
10294
10295 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10296
10297         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10298
10299 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10300
10301         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10302
10303 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10304
10305         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10306
10307 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10308
10309         * sysdeps/s390/dl-procinfo.c: New file.
10310         * sysdeps/s390/dl-procinfo.h: New file.
10311         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10312
10313 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10314
10315         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10316         in PT_NOTE segments with multiple notes.
10317         * elf/readelflib.c (process_elf_file): Likewise.
10318
10319 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10320
10321         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10322         ISO C compliant.
10323
10324 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10325
10326         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10327
10328 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10329
10330         * include/link.h: Don't include rtld-lowlevel.h.
10331         (struct link_map): Remove l_scope_lock.
10332         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10333         (_dl_scope_free_list): New field (variable) in _rtld_global.
10334         (DL_LOOKUP_SCOPE_LOCK): Remove.
10335         (_dl_scope_free): New prototype.
10336         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10337         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10338         (_dl_profile_fixup): Likewise.
10339         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10340         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10341         THREAD_GSCOPE_RESET_FLAG around it.
10342         * elf/dl-close.c (_dl_close_worker): Don't use
10343         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10344         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10345         scopes were queued or if l_scope_mem has been abandoned.
10346         * elf/dl-open.c (_dl_scope_free): New function.
10347         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10348         * elf/dl-support.c (_dl_scope_free_list): New variable.
10349         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10350         Remove DL_LOOKUP_SCOPE_LOCK handling.
10351         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10352         handling.
10353         * elf/dl-object.c (_dl_new_object): Don't use
10354         __rtld_mrlock_initialize.
10355
10356 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10357
10358         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10359         to fill in holes
10360         (rtld_global_ro): Likewise.
10361
10362 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10363
10364         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10365         Move PT_LOAD checking to...
10366         (_dl_addr_inside_object): ... here, new function.
10367         * elf/dl-sym.c (do_sym): If not l_contiguous,
10368         call _dl_addr_inside_object.
10369         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10370         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10371         * elf/dl-open.c (dl_open_worker): Likewise.
10372         (_dl_addr_inside_object): New function if IS_IN_rtld.
10373         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10374         holes are present or are PROT_NONE protected.
10375         * include/link.h (struct link_map): Add l_contiguous field.
10376         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10377
10378 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10379             Tomas Janousek  <tjanouse@redhat.com>
10380             Ulrich Drepper  <drepper@redhat.com>
10381
10382         [BZ #4647]
10383         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10384         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10385         socket.
10386         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10387         unused member a bitmap.
10388         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10389         servers are configured.
10390
10391 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10392
10393         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10394
10395 2007-06-17  Andreas Schwab  <schwab@suse.de>
10396
10397         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10398
10399 2007-06-16  Andreas Jaeger  <aj@suse.de>
10400
10401         [BZ #4125]
10402         * sysdeps/unix/sysv/linux/sys/ptrace.h
10403         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10404         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10405         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10406         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10407         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10408         Define.
10409         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10410         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10411         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10412         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10413
10414 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10415
10416         [BZ #4599]
10417         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10418         determining whether there are IPv4/IPv6 addresses, ignore loopback
10419         addresses.
10420
10421 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10422
10423         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10424         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10425         as the return type.  Change type of "r" variable to CMPtype.
10426         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10427         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10428         * soft-fp/gedf2.c (__gedf2): Likewise.
10429         * soft-fp/gesf2.c (__gesf2): Likewise.
10430         * soft-fp/getf2.c (__getf2): Likewise.
10431         * soft-fp/ledf2.c (__ledf2): Likewise.
10432         * soft-fp/lesf2.c (__lesf2): Likewise.
10433         * soft-fp/letf2.c (__letf2): Likewise.
10434         * soft-fp/unorddf2 (__unorddf2): Likewise.
10435         * soft-fp/unordsf2 (__unordsf2): Likewise.
10436         * soft-fp/unordtf2 (__unordtf2): Likewise.
10437
10438 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10439
10440         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10441         make sure gcc doesn't mess around with this.
10442
10443 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10444
10445         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10446
10447 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10448
10449         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10450         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10451         at most once per _dl_close_worker.
10452
10453 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10454
10455         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10456         __sched_cpucount as const.
10457         * posix/sched_cpucount.c: Adjust.
10458
10459         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10460         instruction for counting bits.
10461         * sysdeps/x86_64/sched_cpucount.c: New file.
10462
10463 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10464
10465         * configure.in: Avoid variable named BASH.
10466         * config.make.in: Likewise.
10467         Patch in part by Mike Frysinger.
10468
10469 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10470
10471         [BZ #4586]
10472         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10473         pseudo-zeros as zero.
10474         * sysdeps/x86_64/ldbl2mpn.c: New file.
10475         * sysdeps/ia64/ldbl2mpn.c: New file.
10476
10477 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10478
10479         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10480         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10481         Remove unreachable code at the end.
10482
10483 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10484
10485         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10486         ldbl-128ibm in comment.
10487         (fpclassifyl): Correct classification of denormals.
10488         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10489         return value for MIN denormal. Rewrite using long double math too
10490         correctly handle denormals and canonicalize the results.
10491
10492 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10493
10494         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10495         (__mpn_construct_long_double): Fix conversion where result ought
10496         to be smaller than __LDBL_MIN__, or the low double should be
10497         denormal.  Fix decision where to negate low double - honor round
10498         to even rules.
10499         * stdio-common/tst-sprintf2.c: Include string.h.
10500         (COMPARE_LDBL): Define.
10501         (TEST): Also test whether a string hexadecimal float representation
10502         can be parsed back to the number.
10503         (main): Add a couple of further tests.
10504
10505 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10506
10507         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10508         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10509         is non-zero, but smaller than 2 * __DBL_MIN__.
10510         * stdio-common/tst-sprintf2.c: New test.
10511         * stdio-common/Makefile (tests): Add tst-sprintf2.
10512
10513         * math/test-misc.c (main): Don't run last batch of tests with
10514         IBM long double format.
10515
10516 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10517
10518         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10519         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10520         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10521         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10522         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10523         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10524         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10525         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10526         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10527         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10530         New file.
10531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10532         New file.
10533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10534         New file.
10535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10536         New file.
10537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10538         New file.
10539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10541         New file.
10542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10543         New file.
10544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10545         New file.
10546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10547         New file.
10548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10549         New file.
10550
10551 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10552
10553         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10554         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10555         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10556         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10557         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10558         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10559         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10560         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10561
10562 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10563
10564         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10565         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10566         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10567         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10568         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10569         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10570         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10571         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10572
10573 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10574
10575         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10576         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10577         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10578         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10579
10580 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10581
10582         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10583         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10584
10585 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10586
10587         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10588         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10589         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10590         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10591
10592 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10593
10594         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10595         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10596
10597 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10598
10599         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10600         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10601
10602         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10603         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10604         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10605         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10606
10607 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10608
10609         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10610         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10611         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10612         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10613
10614 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10615
10616         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10617         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10618         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10619         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10620         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10621         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10622
10623 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10624
10625         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10626         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10627         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10628         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10629
10630 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10631
10632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10633         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10634         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10636         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10637         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10638         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10639         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10640         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10641         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10642         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10643         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10644         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10645         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10646         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10647         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10648
10649 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10650
10651         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10652         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10653
10654 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10655
10656         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10657         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10658
10659 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10660
10661         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10662         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10663         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10664         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10665         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10666         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10667         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10668         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10669         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10670         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10671
10672 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10673
10674         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10675
10676 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10677
10678         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10679         branch miss-predicts. Ensure that cache line crossing does not impact
10680         dispatch grouping.
10681
10682 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10683
10684         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10685         "../../powerpc32/power4/memcopy.h".
10686         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10687         "../../powerpc32/power4/wordcopy.c".
10688
10689 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10690
10691         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10692         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10693         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10694         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10695         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10696         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10697
10698 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10699
10700         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10701
10702 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10703
10704         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10705         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10706         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10707         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10708         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10709         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10710         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10711         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10712
10713 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10714
10715         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10716
10717 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10718
10719         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10720         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10721         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10722         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10723         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10724         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10725         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10726
10727 2007-05-29  Roland McGrath  <roland@redhat.com>
10728
10729         * po/Makefile (po-sed-cmd): New variable.
10730         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10731
10732 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10733
10734         * crypt/md5-crypt.c: Fix comment.
10735
10736         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10737         of crashing.  When this is the case or if the reply is malformed,
10738         don't try to close the new file descriptor since it does not
10739         exist.
10740         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10741
10742 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10743
10744         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10745         if __NR_utimensat is not defined.
10746
10747 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10748
10749         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10750
10751 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10752
10753         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10754         (open): Fix comment typos.  Don't call __open_2 if flags
10755         is a compile time constant without O_CREAT.
10756         (__open64_2): Add nonnull attribute.
10757         (open64): Fix comment typos.  Don't call __open64_2 if flags
10758         is a compile time constant without O_CREAT.
10759         (__openat_2): Add nonnull attribute, fix nonnull attribute
10760         on redirect.
10761         (openat): Fix comment typos.  Don't call __openat_2 if flags
10762         is a compile time constant without O_CREAT.
10763         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10764         on redirect.
10765         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10766         is a compile time constant without O_CREAT.
10767
10768 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10769
10770         * Makerules (sysd-rules): Define PTW for ptw-* files.
10771         * Versions: Define GLIBC_2.7 for libc.
10772         * include/stdio.h: Declare __fortify_fail.
10773         * debug/fortify_fail.c: New file.
10774         * debug/Makefile (routines): Add fortify_fail.
10775         * debug/chk_fail.c: Use __fortify_fail.
10776         * debug/stack_chk_fail.c: Likewise.
10777         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10778         __openat64_2 for GLIBC_2.7.
10779         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10780         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10781         and fails if necessary.
10782         * io/open64.c: Likewise.
10783         * io/openat.c: Likewise.
10784         * io/openat64.c: Likewise.
10785         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10786         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10787         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10788         * io/bits/fcntl2.h: New file.
10789         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10790         __openat64_2.
10791         * include/bits/fcntl2.h: New file.
10792         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10793         Add open_2.
10794         * sysdeps/unix/sysv/linux/open_2.c: New file.
10795
10796 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10797
10798         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10799         as second parameter to handle_intel.
10800
10801         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10802         the entry.
10803
10804         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10805         handling to ...
10806         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10807         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10808         cacheinfo.
10809         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10810         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10811         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10812
10813         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10814
10815 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10816
10817         [BZ #4525]
10818         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10819         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10820         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10821
10822         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10823
10824         [BZ #4514]
10825         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10826         reinitialize workend at the start of each do_positional format spec
10827         loop, free workstart before do_positional loops.
10828         (printf_unknown): Fix size of work_buffer.
10829         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10830
10831         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10832         (public_sET_STATe): If ms->version < 3, put all chunks into
10833         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10834         chunks.
10835
10836         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10837         * malloc/hooks.c: Likewise.
10838         * malloc/arena.c: Likewise.
10839         * malloc/malloc.c (do_check_malloc_state): Don't assert
10840         n_mmaps is not greater than n_mmaps_max.  This removes the need
10841         for the previous change.
10842
10843         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10844         2007-05-07 commit.
10845
10846 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10847
10848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10849         Define for kernel >= 2.6.22.
10850
10851 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10852
10853         * elf/dl-close.c (_dl_close_worker): When removing object from
10854         global scope, wait for all lookups to finish afterwards.
10855         * elf/dl-open.c (add_to_global): When global scope array must
10856         grow, allocate a new one and free old array only after all
10857         lookups finish.
10858         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10859         (_dl_lookup_symbol_x): Likewise.
10860         * elf/dl-support.c: Define _dl_wait_lookup_done.
10861         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10862         _dl_wait_lookup_done.
10863
10864         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10865         not overlapping with arena.
10866
10867         * malloc/mcheck.c (reallochook): If size==0, free the block.
10868
10869         * rt/tst-shm.c: Use fstat64 instead of fstat.
10870
10871         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10872         __NR_sync_file_range is not defined.
10873
10874 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10875
10876         Dummy files to prevent stub versions from being used.
10877         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10878         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10879         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10880         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10881
10882         * version.h (VERSION): Set to 2.6.90.
10883
10884 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10885
10886         * version.h (VERSION): Define to 2.6.
10887         * include/features.h (__GLIBC_MINOR__): Define to 6.
10888
10889         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10890
10891         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10892         sizes.
10893
10894 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10895
10896         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10897         number of mmaps.  n_mmaps_max is the target.
10898         * malloc/hooks.c: Likewise.
10899         * malloc/arena.c: Likewise.
10900
10901 2007-05-12  Andreas Jaeger  <aj@suse.de>
10902
10903         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10904         getpid.
10905
10906 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10907
10908         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10909         adding new variables.
10910
10911         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10912         optimize.  Completely extend global scope array before making the
10913         new entries visible.
10914
10915 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10916
10917         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10918         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10919         tst-getcpu.
10920
10921         * include/link.h: Move l_version and l_nversion members around to
10922         fill gaps.
10923
10924         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10925
10926         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10927         (__sched_setaffinity_new): If syscall was successful and
10928         RESET_VGETCPU_CACHE is defined, use it before returning.
10929         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10930
10931         * io/sys/stat.h: Make sure struct timespec is defined for
10932         __USE_ATFILE.
10933
10934         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10935         UTIME_OMIT.
10936         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10937         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10938         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10939         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10940         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10941         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10942         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10943         * io/sys/stat.h: Declare utimensat, futimens.
10944         * io/utimensat.c: New file.
10945         * io/futimens.c: New file.
10946         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10947         * sysdeps/unix/sysv/linux/futimens.c: New file.
10948         * io/Makefile (routines): Add utimensat, futimens.
10949         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10950         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10951         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10952         available.
10953
10954         * include/sys/cdefs.h: Redefine __nonnull so that test for
10955         incorrect parameters in the libc code itself are not omitted.
10956
10957 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10958
10959         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10960         exception in addition to inexact when asked to raise only FE_INEXACT.
10961
10962         [BZ #3427]
10963         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10964         in *envp.
10965
10966 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10967
10968         [BZ #4403]
10969         * string/strfry.c (strfry): Make result more random.
10970
10971 2007-05-07  Richard Henderson  <rth@redhat.com>
10972
10973         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10974         if __NO_LONG_DOUBLE_MATH.
10975         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10976         available in the compiler, add .arch directive to the assembly.
10977
10978 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10979
10980         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10981         compat_symbol to GLIBC_2_1.
10982         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10983         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10984         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10985         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10986         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10987         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10988         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10989         libc, not libm.
10990         (__isnanl): New compat_symbol.
10991
10992 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10993             Jakub Jelinek  <jakub@redhat.com>
10994
10995         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10996         (new_heap): Initialize mprotect_size.
10997         (grow_heap): When growing, only mprotect from mprotect_size till
10998         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10999         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11000
11001 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11002             Peter Bergner  <bergner@us.ibm.com>
11003
11004         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11005         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11006         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11007         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11008         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11009         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11010         Call __fe_mask_env() if all FP exceptions disabled.
11011         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11012         from old FPSCR to new fenv to propagate DFP rounding modes.
11013         Call __fe_mask_env() if FP exceptions previously enabled.
11014         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11015         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11016         transitioning from all exceptions disabled to any exception enabled
11017         or visa versa.
11018         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11019         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11020         when transitioning from all exceptions disabled to any exception
11021         enabled or visa versa.
11022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11028
11029 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11030
11031         [BZ #4465]
11032         * posix/unistd.h: Remove __THROW from fdatasync.
11033
11034 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11035
11036         [BZ #4465]
11037         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11038
11039 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11040
11041         * stdio-common/vfprintf.c (process_string_arg): Optimize
11042         ridiculous precision in wide char code printing multi-byte string.
11043         Reported by Jim Meyering <jim@meyering.net>.
11044
11045         [BZ #4131]
11046         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11047         boundaries to work around systems with overlapping binary loading.
11048         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11049
11050 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11051
11052         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11053         __mbsnrtowcs after last change.
11054
11055         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11056         (get_ident): Likewise.
11057
11058 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11059
11060         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11061         with setting the sticky bit.
11062         * math/test-misc.c (main): Add more truncation tests.
11063
11064 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11065
11066         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11067         double in the function declaration.
11068         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11069         double in the function declaration.
11070         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11071         float in the function declaration.
11072         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11073         float in the function declaration.
11074
11075         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11076         denormal operands.  Do not generate FP_EX_DENORM exception.
11077         (FP_UNPACK_RAW_EP): Ditto.
11078         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11079         undefined _FP_UNPACK_RAW_E.
11080         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11081         undefined _FP_UNPACK_RAW_EP.
11082         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11083         undefined _FP_PACK_RAW_E.
11084         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11085         undefined _FP_PACK_RAW_EP.
11086
11087         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11088         _FP_FRAC_COPY_2.
11089         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11090         _FP_FRAC_COPY_4.
11091
11092 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11093             Jakub Jelinek  <jakub@redhat.com>
11094
11095         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11096         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11097         this case.
11098         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11099
11100 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11101
11102         * math/test-misc.c (main): Add tests for rounding long double
11103         values close to smallest double denormalized value to double.
11104
11105 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11106
11107         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11108         condition for truncating to 0.  Set sticky bit for such
11109         truncation.
11110
11111 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11112
11113         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11114         fixed length array for ignore.
11115
11116 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11117
11118         [BZ #4438]
11119         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11120         stack for large precisions.
11121         * stdio-common/test-vfprintf.c (main): Add test for large
11122         precision.
11123
11124 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11125
11126         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11127         for exponent 0.
11128         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11129
11130         [BZ #4439]
11131         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11132         account in the size check.
11133         * resolv/tst-inet_ntop.c: New test.
11134         * resolv/Makefile (tests): Add tst-inet_ntop.
11135
11136 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11137             Jakub Jelinek  <jakub@redhat.com>
11138
11139         [BZ #4349]
11140         * malloc/malloc.c: Keep separate list for first blocks on the bin
11141         lists with a given size.  This helps skipping over list elements
11142         we know won't fit in two places.
11143         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11144
11145 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11146
11147         [BZ #4102]
11148         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11149         label to Teredo tunnel addresses 2001://32.
11150
11151 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11152
11153         * locale/programs/ld-collate.c (collate_read): Allow order_start
11154         after copy.
11155
11156         * locale/programs/ld-collate.c (collate_read): Fix printing of
11157         error message.
11158
11159         [BZ #3213]
11160         * locale/C-translit.h.in: Add entry for U2044.
11161
11162         [BZ #4342]
11163         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11164         hexa-decimal floats without exponent.
11165         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11166
11167 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11168
11169         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11170         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11171         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11172         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11173         GLIBC_2.6.
11174         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11175         Add sched_getcpu.
11176
11177 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11178
11179         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11180         of 0 after the out_fail label.
11181
11182 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11183
11184         [BZ #4406]
11185         * iconv/gconv_charset.h (strip): Allow ':'.
11186         * iconv/iconv_open.c (iconv_open): Adjust comment.
11187
11188 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11189
11190         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11191         version.
11192
11193 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11194
11195         [BZ #4381]
11196         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11197         alignment of buffer and tmp_buffer.
11198         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11199         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11200         alignment of buffer.
11201         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11202         bigger than INT_MAX.
11203         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11204         h_errnop arguments.  Fail if buflen is too small.
11205         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11206
11207 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11208
11209         [BZ #4405]
11210         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11211         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11212
11213 2007-04-22  Roland McGrath  <roland@redhat.com>
11214
11215         * elf/elf.h (NT_PRXFPREG): New macro.
11216
11217 2007-04-19  Andreas Jaeger  <aj@suse.de>
11218
11219         [BZ #3905]
11220         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11221         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11222         Added.
11223
11224 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11225
11226         * include/sys/mman.h: Mark madvise hidden.
11227         * misc/madvise.c: Add libc_hidden_def.
11228
11229 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11230
11231         * nis/nis_domain_of.c (__nis_domain_of): New function.
11232         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11233         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11234         * nis/nis_call.c (rec_dirsearch): Likewise.
11235         (first_shoot): Likewise.  Remove search_parent_first argument.
11236         (struct nis_server_cache): Rename search_parent_first field
11237         to search_parent.
11238         (nis_server_cache_search, nis_server_cache_add): Rename
11239         search_parent_first argument to search_parent.
11240         (__nisfind_server): Likewise.  If search_parent, call
11241         __nis_domain_of.
11242
11243 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11244
11245         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11246
11247 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11248
11249         [BZ #4368]
11250         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11251
11252 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11253
11254         [BZ #4364]
11255         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11256
11257 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11258
11259         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11260         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11261         current number of locales in SUPPORTED.
11262         (create_archive): Initialize serial.
11263         (enlarge_archive): Preserve aliases rather than duplicating
11264         their locrecs.
11265
11266 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11267
11268         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11269         after _IO_un_link, not before it.
11270
11271         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11272         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11273         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11274
11275 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11276
11277         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11278         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11279         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11280         Remove __THROW.
11281         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11282         _IO_file_xsgetn_maybe_mmap): Likewise.
11283         * libio/oldfileops.c (old_do_write): Likewise.
11284         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11285         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11286         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11287         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11288         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11289         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11290         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11291         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11292         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11293         _IO_file_underflow, _IO_file_underflow_mmap,
11294         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11295         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11296         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11297         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11298         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11299         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11300         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11301         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11302         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11303         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11304         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11305         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11306         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11307         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11308         _IO_adjust_column_internal, _IO_default_uflow_internal,
11309         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11310         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11311         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11312         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11313         _IO_file_close_it_internal, _IO_file_underflow_internal,
11314         _IO_file_overflow_internal, _IO_file_attach_internal,
11315         _IO_file_fopen_internal, _IO_file_sync_internal,
11316         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11317         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11318         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11319         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11320         _IO_seekpos_unlocked): Likewise.
11321         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11322         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11323
11324 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11325
11326         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11327         argument in xmalloc size computation.
11328
11329 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11330
11331         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11332         math_opt_barrier and math_force_eval macros.
11333
11334 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11335
11336         [BZ #3306]
11337         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11338         * sysdeps/i386/fpu/math_private.h: New file.
11339         * sysdeps/x86_64/fpu/math_private.h: New file.
11340         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11341         math_force_eval macros.  Use "+m" constraint on asm rather than
11342         "=m" and "m".
11343         * math/s_nextafter.c (__nextafter): Likewise.
11344         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11345         Likewise.
11346         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11347         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11348         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11349         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11350         math_opt_barrier and math_force_eval macros.
11351         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11352         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11353         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11354         (__nexttoward): Use math_opt_barrier and
11355         math_force_eval macros.  Use "+m" constraint on asm rather than
11356         "=m" and "m".  Only use asm to force double result if
11357         FLT_EVAL_METHOD is 2.
11358         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11359         (__nexttowardf): Use math_opt_barrier and
11360         math_force_eval macros.  Use "+m" constraint on asm rather than
11361         "=m" and "m".  Only use asm to force double result if
11362         FLT_EVAL_METHOD is not 0.
11363         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11364         (__nexttowardf): Use math_opt_barrier and
11365         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11366         x to float using asm.
11367         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11368         (__nldbl_nexttowardf): Use math_opt_barrier and
11369         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11370         x to float using asm.
11371         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11372         (__nexttowardf): Use math_opt_barrier and math_force_eval
11373         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11374         * math/bug-nextafter.c (zero, inf): New variables.
11375         (main): Add new tests.
11376         * math/bug-nexttoward.c (zero, inf): New variables.
11377         (main): Add new tests.
11378
11379 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11380
11381         [BZ #3427]
11382         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11383         exceptions both in SW and MXCSR.
11384         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11385         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11386         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11387         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11388         in MXCSR if SSE is available.
11389         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11390         and ldsodefs.h.
11391         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11392         Fix comment typo.
11393         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11394         Return 0 rather than 1.
11395         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11396         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11397         * math/test-fenv.c (feholdexcept_tests): New function.
11398         (main): Call it.
11399
11400 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11401
11402         [BZ #3427]
11403         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11404         in SW.
11405
11406 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11407
11408         [BZ #4344]
11409         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11410         Reported by David Anderson <davea42@earthlink.net>.
11411
11412 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11413
11414         * posix/sys/wait.h: Remove unnecessary forward declaration.
11415
11416 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11417
11418         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11419         with obj->do_servers after first_shoot.
11420
11421 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11422
11423         * posix/Makefile (routines): Add sched_cpucount.
11424         (tests): Add tst-cpucount.
11425         * posix/sched_cpucount.c: New file.
11426         * posix/tst-cpucount.c: New file.
11427         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11428         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11429         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11430         * posix/sched.h: Define CPU_COUNT.
11431
11432 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11433
11434         * posix/fnmatch.c (STRUCT): Define.
11435         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11436         * posix/fnmatch_loop.c (struct STRUCT): New type.
11437         (FCT): Add ends argument.  If ends != NULL and normal * is
11438         seen in the pattern, store current pattern and string pointers
11439         and return.  Adjust recursive calls.
11440         (EXT): Adjust FCT callers.
11441         (STRUCT): Undef at the end of the file.
11442         * posix/Makefile (tests): Add tst-fnmatch2.
11443         * posix/tst-fnmatch2.c: New test.
11444
11445 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11446
11447         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11448         and 1 on failure.
11449
11450         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11451         Change last argument to unsigned int.
11452
11453 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11454
11455         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11456
11457 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11458
11459         * config.h.in (HAVE_LIBCAP): Add.
11460         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11461         sys/capabilities.h.
11462         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11463         free_caps.  Cast away const from 4th cap_set_flag argument.
11464
11465 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11466
11467         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11468         GLIBC_2.6.
11469         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11470         Add sync_file_range.
11471         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11472
11473 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11474
11475         * sysdeps/powerpc/bits/atomic.h
11476         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11477         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11478         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11479         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11480         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11481         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11482         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11483         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11484         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11485         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11486         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11487         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11488         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11489         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11490         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11491         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11492         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11493         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11494         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11495         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11496
11497 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11498
11499         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11500         (__cache_line_size): Define the variable here.  Add
11501         attribute_hidden, remove weak_extern.
11502         (__libc_start_main): Set __cache_line_size
11503         unconditionally.
11504         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11505         (__cache_line_size): Define the variable here.  Add
11506         attribute_hidden, remove weak_extern.
11507         (DL_PLATFORM_AUXV): Set __cache_line_size
11508         unconditionally.
11509         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11510         weak_extern, add attribute_hidden.
11511         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11512         defined in ld.so.
11513         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11514         definition.
11515         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11516
11517 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11518
11519         [BZ #4276]
11520         * timezone/africa: Update from tzdata2007d.
11521         * timezone/asia: Likewise.
11522         * timezone/australasia: Likewise.
11523         * timezone/backward: Likewise.
11524         * timezone/europe: Likewise.
11525         * timezone/iso3166.tab: Likewise.
11526         * timezone/leapseconds: Likewise.
11527         * timezone/northamerica: Likewise.
11528         * timezone/southamerica: Likewise.
11529         * timezone/zone.tab: Likewise.
11530
11531         * timezone/private.h: Update from tzcode2007d.
11532         * timezone/zdump.c: Likewise.
11533         * timezone/zic.c: Likewise.
11534
11535 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11536
11537         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11538         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11539         variables.
11540         (nis_server_cache_search, nis_server_cache_add): New functions.
11541         (__nisfind_server): Use them.  Add dbp and flags argument, if
11542         call __nisbind_create.
11543         (__nisbind_create): Add server_used and current_ep arguments,
11544         only call __nis_findfastest if server_used is ~0.
11545         (__do_niscall2, __prepare_niscall): Adjust callers.
11546         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11547         ckey_cache_euid, ckey_cache_lock): New variables.
11548         (get_ckey): New function.
11549         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11550         __pmap_getnisport.  Save __pmap_getnisport result in
11551         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11552         key.
11553         * nis/nis_lookup.c (nis_lookup): Likewise.
11554         * nis/nis_table.c (nis_list): Likewise.
11555         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11556         prototypes.
11557
11558         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11559         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11560         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11561         _nss_nisplus_getservbyport_r): Likewise.
11562         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11563         _nss_nisplus_getnetbyaddr_r): Likewise.
11564         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11565         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11566         _nss_nisplus_getntohost_r): Likewise.
11567         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11568         _nss_nisplus_getrpcbynumber_r): Likewise.
11569
11570 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11571
11572         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11573         * configure: Rebuilt.
11574
11575         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11576         bit-fields.
11577         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11578
11579 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11580
11581         [BZ #2831]
11582         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11583         bit-fields.
11584
11585 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11586
11587         * nscd/gai.c: Include alloca.h.
11588         (__libc_use_alloca): Define.
11589
11590 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11591
11592         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11593         smaller scopes.
11594         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11595         (DL_DST_REQUIRED): Adjust user.
11596
11597         * include/dlfcn.h (struct link_map): New forward decl.
11598
11599         * inet/getnameinfo.c: Include stddef.h.
11600         (getnameinfo): Use offsetof.
11601
11602         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11603
11604         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11605
11606         * string/strerror_l.c: Include stdlib.h.
11607
11608         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11609         * config.make.in (gnu89-inline-CFLAGS): New variable.
11610         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11611         -std=gnu99.
11612         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11613         * argp/argp.h: Use it.
11614         * bits/mathinline.h: Likewise.
11615         * bits/sigset.h: Likewise.
11616         * bits/string.h: Likewise.
11617         * ctype/ctype.h: Likewise.
11618         * hurd/hurd.h: Likewise.
11619         * hurd/hurd/fd.h: Likewise.
11620         * hurd/hurd/port.h: Likewise.
11621         * hurd/hurd/signal.h: Likewise.
11622         * hurd/hurd/threadvar.h: Likewise.
11623         * hurd/hurd/userlink.h: Likewise.
11624         * io/sys/stat.h: Likewise.
11625         * libio/bits/stdio.h: Likewise.
11626         * libio/bits/stdio2.h: Likewise.
11627         * mach/lock-intern.h: Likewise.
11628         * mach/mach/mig_support.h: Likewise.
11629         * math/bits/cmathcalls.h: Likewise.
11630         * posix/bits/unistd.h: Likewise.
11631         * socket/bits/socket2.h: Likewise.
11632         * stdlib/bits/stdlib.h: Likewise.
11633         * stdlib/stdlib.h: Likewise.
11634         * string/argz.h: Likewise.
11635         * string/bits/string2.h: Likewise.
11636         * string/bits/string3.h: Likewise.
11637         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11638         * sysdeps/generic/inttypes.h: Likewise.
11639         * sysdeps/generic/machine-lock.h: Likewise.
11640         * sysdeps/generic/machine-sp.h: Likewise.
11641         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11642         * sysdeps/i386/i486/bits/string.h: Likewise.
11643         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11644         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11645         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11646         * sysdeps/mach/i386/machine-lock.h: Likewise.
11647         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11648         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11649         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11650         * sysdeps/s390/bits/string.h: Likewise.
11651         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11652         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11653         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11654         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11655         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11656         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11657         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11658         * wcsmbs/bits/wchar2.h: Likewise.
11659         * wcsmbs/wchar.h: Likewise.
11660         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11661         __extern_inline definition.
11662
11663 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11664
11665         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11666         NULL.
11667
11668         [BZ #3919]
11669         * math/libm-test.inc (log_test): Test -Inf and NaN.
11670         (log10_test, log1p_test, log2_test): Test -Inf.
11671         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11672         FE_INVALID when argument is qNaN.
11673         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11674         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11675         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11676         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11677         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11678         testb $4, %ah and jump if non-zero.
11679         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11680         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11681
11682         [BZ #4101]
11683         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11684         ancestors with the same depths.
11685         Patch by Niels Moeller <nisse@lysator.liu.se>.
11686         (filter_doc): Don't crash if argp is NULL.
11687         * argp/Makefile (tests): Add tst-argp2.
11688         * argp/tst-argp2.c: New test.
11689
11690         [BZ #4130]
11691         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11692         open_not_cancel_2.
11693         (updwtmp_file): Likewise.
11694
11695         [BZ #4181]
11696         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11697         (inet6_opt_append): Don't check extlen is big enough if extbuf
11698         is NULL.
11699         (inet6_opt_finish): Likewise.
11700         * inet/Makefile (tests): Add test-inet6_opt.
11701         * inet/test-inet6_opt.c: New test.
11702
11703         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11704         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11705         NLMSG_ERR.  Instead use a page sized buffer.
11706         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11707         buffer.
11708
11709 2007-03-14  Richard Henderson  <rth@redhat.com>
11710
11711         * sysdeps/alpha/fpu/s_llround.c: New file.
11712         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11713         * sysdeps/alpha/fpu/s_lround.c: New file.
11714         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11715         * sysdeps/alpha/fpu/s_round.c: New file.
11716         * sysdeps/alpha/fpu/s_roundf.c: New file.
11717         * sysdeps/alpha/fpu/s_trunc.c: New file.
11718         * sysdeps/alpha/fpu/s_truncf.c: New file.
11719
11720         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11721         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11722         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11723         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11724         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11725         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11726
11727         * sysdeps/alpha/fpu/s_fmax.S: New file.
11728         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11729         * sysdeps/alpha/fpu/s_fmin.S: New file.
11730         * sysdeps/alpha/fpu/s_fminf.S: New file.
11731         * sysdeps/alpha/fpu/s_isnan.c: New file.
11732         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11733         * sysdeps/alpha/fpu/s_llrint.c: New file.
11734         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11735         * sysdeps/alpha/fpu/s_lrint.c: New file.
11736         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11737         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11738         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11739
11740         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11741         (__fdimf, fdimf, __fdim, fdim): Remove.
11742         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11743         (__isnanf, __isnan, __isnanl): New.
11744
11745 2007-03-13  Richard Henderson  <rth@redhat.com>
11746
11747         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11748
11749 2007-03-13  Richard Henderson  <rth@redhat.com>
11750
11751         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11752         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11753         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11754         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11755         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11756         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11757
11758 2007-03-13  Richard Henderson  <rth@redhat.com>
11759
11760         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11761         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11762         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11763         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11764         Move to dl-auxv.h; initialize instead of extern weak.
11765         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11766         weak symbol.
11767         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11768         Extern instead of initialized.
11769
11770 2007-03-13  Richard Henderson  <rth@redhat.com>
11771
11772         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11773         __sigsuspend_nocancel.
11774
11775 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11776
11777         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11778         172.16/12 address range.
11779
11780 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11781
11782         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11783         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11784         message.
11785
11786 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11787
11788         [BZ #4069]
11789         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11790         earlier.
11791         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11792
11793         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11794         for x qNaN and y either +-inf or non-integer value.
11795         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11796         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11797         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11798
11799 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11800
11801         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11802         from sysdep_headers.
11803
11804 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11805
11806         * time/tzfile.c (find_transition): Instead of a linear search try to
11807         guess the transition index, use a linear search if the result is at
11808         most 10 transitions away from the guess or binary search otherwise.
11809
11810 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11811
11812         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11813         memory reallocation.
11814
11815 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11816
11817         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11818         and fix some typos.
11819         Optimize use of TOLOWER.
11820
11821         [BZ #3325]
11822         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11823         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11824         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11825
11826         [BZ #3458]
11827         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11828         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11829
11830         [BZ #4076]
11831         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11832         (open_dir_stream): Likewise.
11833         * io/Makefile (tests): Add bug-ftw5.
11834         * io/bug-ftw5.c: New file.
11835
11836         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11837         * nscd/servicescache.c (cache_addserv): Likewise.
11838
11839         * nscd/grpcache.c (cache_addgr): In case a record changed on
11840         refresh, adjust key_copy.
11841
11842         [BZ #4074]
11843         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11844         refresh, adjust key_copy.
11845
11846         [BZ #4070]
11847         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11848         special cases.
11849         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11850
11851 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11852
11853         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11854         optimization.
11855
11856         * stdio-common/vfscanf.c: Small cleanups throughout.
11857
11858 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11859
11860         [BZ #3325]
11861         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11862         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11863         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11864         Patch by Jared Casper <jaredcasper@gmail.com>.
11865
11866         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11867         * sysdeps/unix/opendir.c: Likewise.
11868         * sysdeps/unix/readdir.c: Likewise.
11869
11870         [BZ #2211]
11871         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11872         point numbers.
11873         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11874
11875         * stdio-common/vfscanf.c: Fix problems in width accounting.
11876         * stdio-common/tst-sscanf.c (double_tests): New tests.
11877         (main): Hook them up.
11878
11879         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11880         More simplifications of floating-point reader.
11881
11882         * stdio-common/Makefile (tests): Add tst-swscanf.
11883         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11884         testing.
11885         * stdio-common/tst-swscanf.c: New file.
11886
11887 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11888
11889         [BZ #2633]
11890         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11891         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11892         Remove using for __jmp_buf_tag.
11893         * locale/locale.h (struct lconv): Also define in std namespace.
11894         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11895
11896         [BZ #3842]
11897         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11898         using __libc_enable_secure.
11899
11900         [BZ #3818]
11901         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11902
11903         [BZ #3745]
11904         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11905         of names for ellipsises.
11906
11907         [BZ #3348]
11908         * malloc/memusage.sh: Cleanups.
11909         * debug/xtrace.sh: Quoting and trap changes.
11910
11911 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11912
11913         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11914
11915         * locale/iso-3166.def: Update entry for Serbia.
11916         * locale/iso-4217.def: Define RSD, remove CSD.
11917
11918         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11919         and 64-bit operations.
11920
11921         [BZ #4040]
11922         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11923         16-bit operations.
11924
11925         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11926         of writev.
11927
11928 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11929
11930         [BZ #3991]
11931         * assert/assert.h (assert): Simplify.
11932         (assert_perror): Likewise.
11933         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11934
11935         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11936         reqdata.
11937
11938         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11939         change: don't pass NULL in place of an integer.
11940
11941 2007-02-02  Bruno Haible  <bruno@clisp.org>
11942
11943         [BZ #3954]
11944         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11945         Add mapping for U+327E.
11946         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11947         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11948         mapping of 0xD9 0xE8.
11949         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11950         mapping of U+327E.
11951         Reported by Jungshik Shin <jungshik@google.com>.
11952
11953         [BZ #3955]
11954         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11955         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11956         Reported by Jungshik Shin <jungshik@google.com>.
11957
11958 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11959
11960         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11961         byte variants.
11962
11963         [BZ #4040]
11964         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11965         byte variants.  Patch mostly be tom@tommay.net.
11966
11967 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11968
11969         [BZ #3996]
11970         * posix/glob.c (attribute_hidden): Define if not defined.
11971         (glob): Unescape dirname, filename or username when needed and not
11972         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11973         is NULL.  Handle unescaped [ in pattern without closing ].
11974         Don't pass GLOB_CHECK down to recursive glob for directories.
11975         (__glob_pattern_type): New function.
11976         (__glob_pattern_p): Implement using __glob_pattern_type.
11977         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11978         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11979         Remove unreachable code.
11980         * posix/globtest.sh: Add a couple of new tests.
11981
11982 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11983
11984         * po/ru.po: Update from translation team.
11985
11986 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11987
11988         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11989         to the list of i486+ CPUs.
11990         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11991
11992 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11993
11994         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11995         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11996         references.
11997
11998 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11999
12000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12001
12002         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12003         * resolv/res_mkquery.c: Define __res_nopt.
12004         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12005         try adding EDNS0 record.
12006         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12007         EDNS0 record was send make sure we don't try it again.
12008         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12009         * include/resolv.h: Declare __res_nopt.
12010
12011 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12012
12013         [BZ #3944]
12014         * time/strptime_l.c (__strptime_internal): Set have_mon for
12015         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12016         have been computed from tm_yday and tm_year.  Don't crash
12017         in day_of_the_week or day_of_the_year if not have_mon
12018         and tm_mon contains bogus value.
12019         * time/Makefile (tests): Add tst-strptime3.
12020         * time/tst-strptime3.c: New test.
12021
12022 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12023
12024         [BZ #3957]
12025         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12026         bit for RE_HAT_LISTS_NOT_NEWLINE.
12027         (build_charclass_op): Remove bogus comment.
12028         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12029         * posix/bug-regex27.c: New test.
12030         * posix/bug-regex28.c: New test.
12031
12032 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12033
12034         * po/sv.po: Update from translation team.
12035
12036 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12037
12038         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12039
12040 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12041
12042         * include/locale.h (__uselocale): Add libc_hidden_proto.
12043         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12044
12045         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12046         gettimeofday.
12047
12048 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12049
12050         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12051         returning.
12052         (PTR_DEMANGLE): Real definition now that it's not the same as
12053         PRT_MANGLE anymore.
12054         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12055
12056         * string/strerror_l.c: New file.
12057         * string/Makefile (routines): Add strerror_l.
12058         * string/string.h: Declare strerror_l.
12059         * string/Versions: Export strerror_l for GLIBC_2.6.
12060
12061 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12062
12063         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12064         as parameter.  Construct request record.  Try sending request
12065         before the first poll use, it usually succeeds.  Adjust all
12066         callers.
12067         * nscd/nscd-client.h: Define MAXKEYLEN.
12068         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12069
12070 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12071
12072         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12073         from return value.
12074         * nscd/nscd_helper.c: Include string.h.
12075         (__nscd_cache_search): Remove const qualifier from return value.
12076         On strict alignment architectures check hash entry and data head
12077         alignment.
12078         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12079         mmapped data during GC cycle contains garbage.  If
12080         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12081         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12082         dropped to 0.
12083         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12084         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12085         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12086         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12087         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12088
12089 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12090
12091         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12092
12093 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12094
12095         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12096         names not numbers in cfi_*.
12097
12098 2007-01-26  Andreas Jaeger  <aj@suse.de>
12099
12100         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12101         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12102         Correct values of PER_HPUX and PER_OSF4.
12103
12104 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12105
12106         * elf/dl-minimal.c: Undefine _itoa first.
12107         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12108         * malloc/mtrace.c: Revert last change.
12109         * posix/wordexp.c: Likewise.
12110
12111 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12112
12113         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12114         and __geode__ to the list of i486+ CPUs.
12115         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12116
12117 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12118
12119         * stdio-common/_itoa.c: Include <limits.h>.
12120         * stdio-common/_itowa.c: Likewise.
12121
12122 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12123
12124         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12125         platforms.
12126         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12127         64-bit platforms.
12128         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12129         possible.
12130         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12131         if possible.
12132
12133         [BZ #3902]
12134         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12135         * stdio-common/Makefile (tests): Add bug17.
12136         * stdio-common/bug17.c: New file.
12137
12138 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12139
12140         * iconvdata/brf.c: New file.
12141         * iconvdata/testdata/BRF: New file.
12142         * iconvdata/testdata/BRF..UTF8: New file.
12143         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12144         * iconvdata/Makefile: Add rules to build BRF.
12145         * iconvdata/TESTS: Add BRF entry.
12146         * iconvdata/gconv-modules: Likewise.
12147         * iconvdata/tst-tables.sh: Likewise.
12148
12149 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12150
12151         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12152         type `long long int', not `long int'.
12153         (wcstoq): Likewise.
12154
12155 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12156
12157         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12158         of values on 64-bit platforms which are too large.
12159
12160 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12161             Joe Kerian  <jkerian@us.us.ibm.com>
12162
12163         [BZ #2749]
12164         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12165         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12166         (__copysignl): Use signbit() for comparison.
12167         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12168         SET_LDOUBLE_WORDS64.
12169
12170         [BZ #2423, #2749]
12171         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12172         (__ceill): Remove calls to fegetround(), fesetround().
12173         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12176
12177 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12178
12179         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12180
12181         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12182
12183 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12184
12185         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12186         demangle pointer.
12187         * csu/libc-start.c: Likewise.
12188
12189 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12190
12191         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12192         really work anyway.
12193
12194 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12195
12196         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12197         users.
12198         (handle_request): Remove unnecessary tests.
12199
12200         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12201
12202 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12203
12204         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12205         workbits in semi-raw fraction.
12206
12207         * math/test-misc.c: Add new tests.
12208
12209 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12210
12211         * math/basic-test.c: Include test-skeleton.c.
12212         (TEST_TRUNC): Define.
12213         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12214         (main): Rename to ...
12215         (do_test): ...this.  Run new tests.
12216         (TEST_FUNCTION): Define.
12217
12218 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12219             Joe Kerian  <jkerian@us.us.ibm.com>
12220
12221         [BZ #2749]
12222         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12223         handling for high words.
12224         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12225         and overflow for infinity.
12226
12227 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12228
12229         * nscd/connections.c (handle_request): Add a __builtin_expect.
12230
12231         * nscd/connections.c (serv2db): Change type into structure which
12232         also says whether this is a request for data.  Renamed to
12233         servinfo.  All users changed.
12234         (handle_request): Much simpler test whether we should search the cache.
12235
12236         * nscd/connections.c (handle_request): Fix thinko in selinux test
12237         invocation.
12238
12239         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12240         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12241         it before getting dl_load_lock and then relock.
12242         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12243         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12244         case we unlocked the scope.
12245         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12246         _dl_lookup_symbol_x in case we locked the scope.
12247         (_dl_profile_fixup): Likewise.
12248         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12249         set DL_LOOKUP_SCOPE_LOCK.
12250
12251 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12252
12253         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12254         CFLAGS-getsrvbynpt_r.c.
12255         * nscd/getsrvbynm_r.c: New file.
12256         * nscd/getsrvbypt_r.c: New file.
12257         * nscd/nscd_getserv_r.c: New file.
12258         * nscd/servicescache.c: New file.
12259         * nscd/Makefile (routines): Add nscd_getserv_r.
12260         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12261         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12262         CFLAGS-getsrvbypt_r.c.
12263         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12264         table.  Add entries for services database.
12265         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12266         services database.
12267         (dbs): Add .reset_res and servdb initialization.
12268         (serv2db): Add entries for services database.
12269         (verify_persistent_db): Accept dbnr == servdb.
12270         (invalidate_cache): Rewrite database name recognition to use a table.
12271         Call res_init() if .reset_res is set for database.
12272         (handle_request): Add code to handle services database.
12273         * nscd/gai.c: Don't define __getservbyname_r.
12274         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12275         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12276         (serv_response_header): Define.
12277         (struct datahead): Add serv_response_header member.
12278         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12279         using table.
12280         * nscd/nscd.conf: Add entries for services database.
12281         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12282         Declare serv_iov_disabled.
12283         Declare addservbyname, readdservbyname, addservbyport, and
12284         readdservbyport.
12285         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12286         (find_db): Fix error message.
12287         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12288         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12289         * nscd/selinux.c (perms): Add entries for services database.
12290         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12291         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12292
12293         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12294         * nscd/hstcache.c: Likewise.
12295         * nscd/pwdcache.c: Likewise.
12296
12297         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12298         computation of keylen.
12299
12300         * include/string.h: Only redefine strndupa if this is really for
12301         libc code.
12302
12303 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12304
12305         * nscd/nscd_gethst_r.c: Minor cleanups.
12306
12307         * nscd/connections.c (handle_request): Check selinux permissions
12308         for all non-admin commands.
12309
12310         * sysdeps/i386/i486/bits/atomic.h: Define
12311         atomic_compare_and_exchange_val_acq,
12312         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12313         using __sync_* built-ins for gcc >= 4.1.
12314         * sysdeps/x86_64/bits/atomic.h: Likewise.
12315
12316         [BZ #3840]
12317         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12318         and .oS.d files.
12319
12320 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12321
12322         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12323         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12324         (do_test): Check errno and exit(0) if ENOSYS.
12325
12326 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12327
12328         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12329         thousands separators.
12330         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12331         * stdlib/tst-strtod4.c: New test.
12332
12333         [BZ #3855]
12334         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12335         hexadecimal digit should accept just the initial 0.
12336         * stdlib/tst-strtod2.c (tests): New variable.
12337         (do_test): Run several tests rather than just one.
12338
12339 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12340
12341         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12342         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12343
12344 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12345
12346         * io/fts.c: Make sure fts_cur is always valid after return from
12347         fts_read.
12348         Patch by Miloslav Trmac <mitr@redhat.com>.
12349
12350 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12351
12352         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12353         (R_MIPS_NUM): Bump by 1.
12354
12355 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12356
12357         * posix/execvp.c: Include alloca.h.
12358         (allocate_scripts_argv): Renamed to...
12359         (scripts_argv): ... this.  Don't allocate buffer here nor count
12360         arguments.
12361         (execvp): Use alloca if possible.
12362         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12363         * posix/tst-vfork3.c: New test.
12364
12365 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12366
12367         * string/Makefile (tst-strxfrm2-ENV): Define.
12368         * stdlib/Makefile (tst-strtod3-ENV): Define.
12369
12370 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12371
12372         * posix/getconf.c: Update copyright year.
12373         * nss/getent.c: Likewise.
12374         * iconv/iconvconfig.c: Likewise.
12375         * iconv/iconv_prog.c: Likewise.
12376         * elf/ldconfig.c: Likewise.
12377         * catgets/gencat.c: Likewise.
12378         * csu/version.c: Likewise.
12379         * elf/ldd.bash.in: Likewise.
12380         * elf/sprof.c (print_version): Likewise.
12381         * locale/programs/locale.c: Likewise.
12382         * locale/programs/localedef.c: Likewise.
12383         * nscd/nscd.c (print_version): Likewise.
12384         * debug/xtrace.sh: Likewise.
12385         * malloc/memusage.sh: Likewise.
12386         * malloc/mtrace.pl: Likewise.
12387         * debug/catchsegv.sh: Likewise.
12388
12389 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12390
12391         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12392         attempts.
12393
12394 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12395
12396         * posix/wordexp.c: Remove some unnecessary tests.
12397
12398 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12399
12400         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12401         blacklist the group till after we look it up.
12402
12403 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12404
12405         * include/atomic.h (atomic_forced_read): New macro.
12406
12407 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12408
12409         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12410
12411 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12412
12413         * nss/getXXbyYY_r.c: Include atomic.h.
12414         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12415         add atomic_write_barrier () in between.
12416
12417         * stdlib/Makefile (tests): Add tst-makecontext.
12418         * stdlib/tst-makecontext.c: New test.
12419
12420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12421         (__makecontext): Don't realign uc_mcontext.uc_regs.
12422
12423 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12424
12425         * elf/dl-support.c: Include dl-procinfo.h.
12426         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12427         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12428         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12429         Define.
12430         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12431         hardcoded constants.
12432         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12433         PPC_PLATFORM_* macros for array designators.
12434
12435 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12436
12437         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12438         names to the beginning.
12439         (_dl_powerpc_platforms): Add "power6x".
12440         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12441         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12442         (_DL_PLATFORMS_COUNT): Increase.
12443         (_dl_string_platform): Handle power6x case.
12444         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12445         PPC_FEATURE_POWER6_EXT): Define.
12446         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12447
12448 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12449
12450         [BZ #3747]
12451         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12452         [-2^31 .. 2^31) range.
12453         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12454         targets.
12455         * stdlib/tst-rand48-2.c: New test.
12456         * stdlib/Makefile (tests): Add tst-rand48-2.
12457
12458 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12459
12460         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12461
12462 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12463
12464         * misc/tst-pselect.c (do_test): Make sure the helper process is
12465         terminating when the test is aborted.
12466
12467 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12468
12469         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12470         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12471         Handle relatime mount option.
12472
12473         [BZ #2337]
12474         * libio/Makefile (tests): Add tst-setvbuf1.
12475         * libio/tst-setvbuf1.c: New file.
12476
12477 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12478
12479         [BZ #2337]
12480         * libio/genops.c (__uflow): Fix a typo.
12481         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12482         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12483         the narrow buffer size.
12484
12485 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12486
12487         [BZ #2337]
12488         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12489         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12490         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12491         in _flags.
12492         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12493         _IO_wstr_finish): Likewise.
12494         * libio/wmemstream.c (open_wmemstream): Likewise.
12495         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12496         even for wide streams.
12497
12498 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12499
12500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12501         kernel-features.h.
12502
12503 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12504
12505         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12506         separators also if no non-zero digits found.
12507         * stdlib/Makefile (tests): Add tst-strtod3.
12508
12509 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12510
12511         [BZ #3632]
12512         * include/features.h: Fix comment about default value for
12513         _POSIX_C_SOURCE.
12514
12515         [BZ #3664]
12516         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12517         empty parsed strings.
12518         * stdlib/Makefile (tests): Add tst-strtod2.
12519         * stdlib/tst-strtod2.c: New file.
12520
12521         [BZ #3673]
12522         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12523         computation.
12524         * stdlib/Makefile (tests): Add tst-atof2.
12525         * stdlib/tst-atof2.c: New file.
12526
12527         [BZ #3674]
12528         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12529         correctly if removing trailing zero of hex-float.
12530         * stdlib/Makefile (tests): Add tst-atof1.
12531         * stdlib/tst-atof1.c: New file.
12532
12533 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12534
12535         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12536         Start searching for next comma at p rather than rest.
12537         * misc/Makefile (tests): Add tst-mntent2.
12538         * misc/tst-mntent2.c: New test.
12539
12540         * misc/getusershell.c (initshells): Check for integer overflows.
12541         Make strings buffer one bigger as fgets always succeeds when second
12542         argument is 1.  Don't use calloc for shells array.  Disallow
12543         / as shell.
12544
12545 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12546
12547         * malloc/memusage.c: Handle realloc with new size of zero and
12548         non-NULL pointer correctly.
12549         (me): Really write first record twice.
12550         (struct entry): Make format bi-arch safe.
12551         (dest): Write out more realloc statistics.
12552         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12553
12554 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12555
12556         * nis/nis_subr.c (nis_getnames): Revert last change.
12557
12558 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12559
12560         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12561         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12562         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12563         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12564         ENOTTY.
12565         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12566         * io/tst-ttyname_r.c: New test.
12567
12568 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12569
12570         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12571
12572 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12573
12574         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12575         jump table entries.
12576
12577 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12578
12579         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12580         `clone' function to ensure proper unwinding stop of gdb.
12581         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12582
12583 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12584
12585         * nscd/nscd.init: Remove obsolete and commented-out -S option
12586         handling.
12587
12588 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12589
12590         [BZ #3514]
12591         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12592
12593         [BZ #3515]
12594         * manual/string.texi (strtok): Remove duplicate paragraph.
12595
12596 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12597
12598         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12599         libgcc not supporting `rflags' unwinding (register # >= 17).
12600
12601 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12602
12603         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12604         succeeded.
12605
12606 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12607             Jakub Jelinek  <jakub@redhat.com>
12608             Jan Kratochvil  <jan.kratochvil@redhat.com>
12609
12610         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12611         unwind information.
12612         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12613         'restore_rt' even in the 'signal' directory.
12614         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12615
12616 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12617
12618         [BZ #3559]
12619         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12620         malloc crashed.  Don't allocate memory unnecessarily in each
12621         loop.
12622
12623 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12624
12625         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12626
12627 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12628
12629         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12630
12631 2006-11-18  Bruno Haible  <bruno@clisp.org>
12632
12633         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12634         __sysconf only after having tried to call getgroups32.
12635
12636 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12637
12638         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12639         addresses for IPv4 queries if they can be mapped.
12640
12641 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12642
12643         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12644         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12645         (signmask): Add .size directive.
12646         (othermask): Add .type directive.
12647
12648 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12649
12650         * po/nl.po: Update from translation team.
12651
12652         * timezone/zdump.c: Redo fix for BZ #3137.
12653
12654 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12655
12656         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12657         to first_unused after parsing :include: file.
12658
12659 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12660
12661         * timezone/africa: Update from tzdata2006o.
12662         * timezone/antarctica: Likewise.
12663         * timezone/asia: Likewise.
12664         * timezone/australasia: Likewise.
12665         * timezone/backward: Likewise.
12666         * timezone/europe: Likewise.
12667         * timezone/iso3166.tab: Likewise.
12668         * timezone/northamerica: Likewise.
12669         * timezone/southamerica: Likewise.
12670         * timezone/zone.tab: Likewise.
12671
12672         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12673         on machines with 64-bit time_t.
12674
12675         * timezone/checktab.awk: Update from tzcode2006o.
12676         * timezone/ialloc.c: Likewise.
12677         * timezone/private.h: Likewise.
12678         * timezone/scheck.c: Likewise.
12679         * timezone/tzfile.h: Likewise.
12680         * timezone/tzselect.ksh: Likewise.
12681         * timezone/zdump.c: Likewise.
12682         * timezone/zic.c: Likewise.
12683
12684         [BZ #3483]
12685         * elf/ldconfig.c (main): Call setlocale and textdomain.
12686         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12687
12688         [BZ #3480]
12689         * manual/argp.texi: Fix typos.
12690         * manual/charset.texi: Likewise.
12691         * manual/errno.texi: Likewise.
12692         * manual/filesys.texi: Likewise.
12693         * manual/lang.texi: Likewise.
12694         * manual/maint.texi: Likewise.
12695         * manual/memory.texi: Likewise.
12696         * manual/message.texi: Likewise.
12697         * manual/resource.texi: Likewise.
12698         * manual/search.texi: Likewise.
12699         * manual/signal.texi: Likewise.
12700         * manual/startup.texi: Likewise.
12701         * manual/stdio.texi: Likewise.
12702         * manual/sysinfo.texi: Likewise.
12703         * manual/syslog.texi: Likewise.
12704         * manual/time.texi: Likewise.
12705         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12706
12707         [BZ #3465]
12708         * sunrpc/clnt_raw.c: Minimal message improvements.
12709         * sunrpc/pm_getmaps.c: Likewise.
12710         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12711         * nis/nis_print_group_entry.c: Likewise.
12712         * locale/programs/repertoire.c: Likewise.
12713         * locale/programs/charmap.c: Likewise.
12714         * malloc/memusage.sh: Likewise.
12715         * elf/dl-deps.c: Likewise.
12716         * locale/programs/ld-collate.c: Likewise.
12717         * libio/vswprintf.c: Likewise.
12718         * malloc/memusagestat.c: Likewise.
12719         * sunrpc/auth_unix.c: Likewise.
12720         * sunrpc/rpc_main.c: Likewise.
12721         * nscd/cache.c: Likewise.
12722         * locale/programs/repertoire.c: Unify output messages.
12723         * locale/programs/charmap.c: Likewise.
12724         * locale/programs/ld-ctype.c: Likewise.
12725         * locale/programs/ld-monetary.c: Likewise.
12726         * locale/programs/ld-numeric.c: Likewise.
12727         * locale/programs/ld-time.c: Likewise.
12728         * elf/ldconfig.c: Likewise.
12729         * nscd/selinux.c: Likewise.
12730         * elf/cache.c: Likewise.
12731         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12732
12733         [BZ #3451]
12734         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12735         change atomic.
12736         (ceil): Likewise.
12737
12738 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12739
12740         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12741         if N is one bigger than return value.
12742         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12743         and l1 last arguments, if buf is defined, verify the return value
12744         equals to strlen (buf) and verify no byte beyond passed length
12745         is modified.
12746
12747 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12748
12749         * po/sv.po: Update from translation team.
12750
12751 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12752
12753         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12754         noinline attribute.
12755
12756 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12757
12758         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12759         noinline attribute.
12760
12761         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12762         Use __new_sys_siglist instead of _sys_siglist_internal as
12763         second macro argument.
12764         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12765         strong_alias.
12766
12767 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12768
12769         [BZ #3493]
12770         * posix/unistd.h (sysconf): Remove const attribute.
12771
12772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12773         temporary or deprecated addresses.
12774         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12775
12776         * string/Makefile (tests): Add tst-strxfrm2.
12777         * string/tst-strxfrm2.c: New file.
12778
12779 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12780
12781         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12782         rather than r->r_brk.
12783
12784 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12785
12786         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12787         optimization even if needed > n.
12788
12789         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12790         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12791         return false, otherwise return true.
12792         (cache_rpath): Return decompose_rpath return value.
12793
12794 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12795
12796         * include/libc-symbols.h (declare_symbol): Rename to...
12797         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12798         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12799         .size directive.
12800         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12801         changes.
12802         * sysdeps/gnu/siglist.c: Likewise.
12803
12804 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12805
12806         * sysdeps/powerpc/fpu/bits/mathinline.h
12807         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12808         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12809
12810 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12811
12812         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12813         Update handling of cache descriptor 0x49 for new models.
12814         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12815         Likewise.
12816
12817 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12818
12819         * malloc/memusage.c (dest): Reset not_me back to false after
12820         printing statistics.
12821
12822 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12823
12824         * configure.in: Work around ld --help change and avoid -z relro
12825         test completely if the architecture doesn't care about security.
12826
12827 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12828
12829         * po/sv.po: Update from translation team.
12830
12831 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12832
12833         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12834         generate compatibility version.
12835
12836 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12837
12838         * configure.in: Relax -z relro requirement a bit.
12839
12840         * po/sv.po: Update from translation team.
12841
12842 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12843
12844         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12845         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12846         * elf/dl-close.c (_dl_close_worker): Likewise.
12847         * elf/dl-open.c (_dl_open_worker): Likewise.
12848         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12849
12850 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12851
12852         * configure.in: Require assembler support for visibility, compiler
12853         support for visibility and aliases, linker support for various -z
12854         options.
12855         * Makeconfig: Remove conditional code which now is unnecessary.
12856         * config.h.in: Likewise.
12857         * config.make.in: Likewise.
12858         * dlfcn/Makefile: Likewise.
12859         * elf/Makefile: Likewise.
12860         * elf/dl-load.c: Likewise.
12861         * elf/rtld.c: Likewise.
12862         * include/libc-symbols.h: Likewise.
12863         * include/stdio.h: Likewise.
12864         * io/Makefile: Likewise.
12865         * io/fstat.c: Likewise.
12866         * io/fstat64.c: Likewise.
12867         * io/fstatat.c: Likewise.
12868         * io/fstatat64.c: Likewise.
12869         * io/lstat.c: Likewise.
12870         * io/lstat64.c: Likewise.
12871         * io/mknod.c: Likewise.
12872         * io/mknodat.c: Likewise.
12873         * io/stat.c: Likewise.
12874         * io/stat64.c: Likewise.
12875         * libio/stdio.c: Likewise.
12876         * nscd/Makefile: Likewise.
12877         * stdlib/Makefile: Likewise.
12878         * stdlib/atexit.c: Likewise.
12879         * sysdeps/generic/ldsodefs.h: Likewise.
12880         * sysdeps/i386/dl-machine.h: Likewise.
12881         * sysdeps/i386/sysdep.h: Likewise.
12882         * sysdeps/i386/i686/memcmp.S: Likewise.
12883         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12884         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12885         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12886
12887         * Makerules: USE_TLS support is now default.
12888         * tls.make.c: Likewise.
12889         * csu/Versions: Likewise.
12890         * csu/libc-start.c: Likewise.
12891         * csu/libc-tls.c: Likewise.
12892         * csu/version.c: Likewise.
12893         * dlfcn/dlinfo.c: Likewise.
12894         * elf/dl-addr.c: Likewise.
12895         * elf/dl-cache.c: Likewise.
12896         * elf/dl-close.c: Likewise.
12897         * elf/dl-iteratephdr.c: Likewise.
12898         * elf/dl-load.c: Likewise.
12899         * elf/dl-lookup.c: Likewise.
12900         * elf/dl-object.c: Likewise.
12901         * elf/dl-open.c: Likewise.
12902         * elf/dl-reloc.c: Likewise.
12903         * elf/dl-support.c: Likewise.
12904         * elf/dl-sym.c: Likewise.
12905         * elf/dl-sysdep.c: Likewise.
12906         * elf/dl-tls.c: Likewise.
12907         * elf/ldconfig.c: Likewise.
12908         * elf/rtld.c: Likewise.
12909         * elf/tst-tls-dlinfo.c: Likewise.
12910         * elf/tst-tls1.c: Likewise.
12911         * elf/tst-tls10.h: Likewise.
12912         * elf/tst-tls14.c: Likewise.
12913         * elf/tst-tls2.c: Likewise.
12914         * elf/tst-tls3.c: Likewise.
12915         * elf/tst-tls4.c: Likewise.
12916         * elf/tst-tls5.c: Likewise.
12917         * elf/tst-tls6.c: Likewise.
12918         * elf/tst-tls7.c: Likewise.
12919         * elf/tst-tls8.c: Likewise.
12920         * elf/tst-tls9.c: Likewise.
12921         * elf/tst-tlsmod1.c: Likewise.
12922         * elf/tst-tlsmod13.c: Likewise.
12923         * elf/tst-tlsmod13a.c: Likewise.
12924         * elf/tst-tlsmod14a.c: Likewise.
12925         * elf/tst-tlsmod2.c: Likewise.
12926         * elf/tst-tlsmod3.c: Likewise.
12927         * elf/tst-tlsmod4.c: Likewise.
12928         * elf/tst-tlsmod5.c: Likewise.
12929         * elf/tst-tlsmod6.c: Likewise.
12930         * include/errno.h: Likewise.
12931         * include/link.h: Likewise.
12932         * include/tls.h: Likewise.
12933         * locale/global-locale.c: Likewise.
12934         * locale/localeinfo.h: Likewise.
12935         * malloc/arena.c: Likewise.
12936         * malloc/hooks.c: Likewise.
12937         * malloc/malloc.c: Likewise.
12938         * resolv/Versions: Likewise.
12939         * sysdeps/alpha/dl-machine.h: Likewise.
12940         * sysdeps/alpha/libc-tls.c: Likewise.
12941         * sysdeps/generic/ldsodefs.h: Likewise.
12942         * sysdeps/generic/tls.h: Likewise.
12943         * sysdeps/i386/dl-machine.h: Likewise.
12944         * sysdeps/ia64/dl-machine.h: Likewise.
12945         * sysdeps/ia64/libc-tls.c: Likewise.
12946         * sysdeps/mach/hurd/fork.c: Likewise.
12947         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12948         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12949         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12950         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12951         * sysdeps/s390/libc-tls.c: Likewise.
12952         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12953         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12954         * sysdeps/sh/dl-machine.h: Likewise.
12955         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12956         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12957         * sysdeps/x86_64/dl-machine.h: Likewise.
12958
12959         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12960         split out locking and parameter checking.
12961         (_dl_close): Call _dl_close_worker after locking and checking.
12962         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12963         _dl_close.
12964         * elf/Makefile: Add rules to build and run tst-thrlock.
12965         * elf/tst-thrlock.c:  New file.
12966
12967         [BZ #3426]
12968         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12969         reality.
12970
12971         [BZ #3429]
12972         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12973         we are sure we do not need it anymore for _dl_close.  Also move
12974         the asserts inside the lock region.
12975         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12976
12977 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12978
12979         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12980         argument.
12981         (_dl_lookup_symbol_x): Adjust caller.
12982
12983         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12984         _ns_global_scope.
12985         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12986
12987         * elf/dl-libc.c: Revert l_scope name changes.
12988         * elf/dl-load.c: Likewise.
12989         * elf/dl-object.c: Likewise.
12990         * elf/rtld.c: Likewise.
12991         * elf/dl-close.c (_dl_close): Likewise.
12992         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12993         always use __rtld_mrlock_{change,done}.  Always free old scope list
12994         here if not l_scope_mem.
12995         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12996         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12997         the lookup and __rtld_mrlock_unlock it after the lookup.
12998         * elf/dl-sym.c: Likewise.
12999         * include/link.h (struct r_scoperec): Remove.
13000         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13001         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13002
13003 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13004
13005         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13006
13007 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13008
13009         * configure.in: Disable building profile libraries by default.
13010
13011 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13012
13013         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13014         as signed longs, check for x_base + pos overflow.
13015         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13016         * sunrpc/tst-xdrmem2.c: New test.
13017
13018 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13019
13020         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13021         _dl_lookup_symbol_x code.
13022
13023 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13024
13025         * elf/dl-runtime.c: Include sysdep-cancel.h.
13026         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13027         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13028         instead of catomic_* macros.
13029         * elf/dl-sym.c: Include sysdep-cancel.h.
13030         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13031         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13032         * elf/dl-close.c: Include sysdep-cancel.h.
13033         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13034         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13035         * elf/dl-open.c: Include sysdep-cancel.h.
13036         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13037         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13038
13039 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13040
13041         [BZ #3313]
13042         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13043         fastbin rather than end of fastbin array.
13044
13045 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13046
13047         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13048         body macro.
13049         * sysdeps/x86_64/bits/atomic.h
13050         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13051         (catomic_decrement): Use correct body macro.
13052
13053 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13054
13055         * include/atomic.h: Add a unique prefix to all local variables
13056         in macros.
13057         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13058
13059 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13060
13061         [BZ #3369]
13062         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13063         and 7.
13064
13065 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13066
13067         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13068
13069 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13070
13071         [BZ #3313]
13072         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13073         determine highest fast bin to consolidate, always look into all of
13074         them.
13075         (do_check_malloc_state): Only require for empty bins for large
13076         sizes in main arena.
13077
13078         * libio/stdio.h: Add more __wur attributes.
13079
13080         * elf/dl-minimal.c (realloc): Optimize last patch.
13081
13082 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13083
13084         [BZ #3352]
13085         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13086         and use memcpy() if it does.
13087
13088 2006-11-12  Andreas Jaeger  <aj@suse.de>
13089
13090         [BZ #2510]
13091         * manual/search.texi (Hash Search Function): Clarify.
13092         (Array Search Function): Clarify.
13093
13094 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13095
13096         [BZ #2830]
13097         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13098         shifting.
13099         * math/atest-exp2.c (read_mpn_hex): Likewise.
13100         * math/atest-sincos.c (main): Likewise.
13101
13102 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13103
13104         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13105         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13106         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13107         version GLIBC_2.6.
13108         * Versions.def: Add GLIBC_2.6 for libc.
13109
13110         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13111
13112         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13113
13114 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13115
13116         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13117
13118         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13119
13120         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13121         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13122
13123 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13124
13125         * include/atomic.c: Define catomic_* operations.
13126         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13127         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13128         * malloc/memusage.c: Likewise.
13129         * gmon/mcount.c: Likewise.
13130         * elf/dl-close.c: Likewise.
13131         * elf/dl-open.c: Likewise.
13132         * elf/dl-profile.c: Likewise.
13133         * elf/dl-sym.c: Likewise.
13134         * elf/dl-runtime.c: Likewise.
13135         * elf/dl-fptr.c: Likewise.
13136         * resolv/res_libc.c: Likewise.
13137
13138 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13139
13140         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13141         components which lack them.
13142
13143         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13144         at least one entry consisting of the parameter concatenated with
13145         the domain.
13146
13147 2006-10-10  Roland McGrath  <roland@frob.com>
13148
13149         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13150         * sysdeps/mach/hurd/futimes.c: Likewise.
13151         * sysdeps/mach/hurd/lutimes.c: Likewise.
13152
13153 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13154             Jakub Jelinek  <jakub@redhat.com>
13155
13156         Implement reference counting of scope records.
13157         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13158         from the list in objects which remain.  Always allocate new scope
13159         record.
13160         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13161         don't resize, allocate a new one.
13162         * elf/dl-runtime.c: Update reference counters before using a scope
13163         array.
13164         * elf/dl-sym.c: Likewise.
13165         * elf/dl-libc.c: Adjust for l_scope name change.
13166         * elf/dl-load.c: Likewise.
13167         * elf/dl-object.c: Likewise.
13168         * elf/rtld.c: Likewise.
13169         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13170         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13171         Add l_scoperec_lock.
13172         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13173         * sysdeps/generic/rtld-lowlevel.h: New file.
13174
13175         * include/atomic.h: Rename atomic_and to atomic_and_val and
13176         atomic_or to atomic_or_val.  Define new macros atomic_and and
13177         atomic_or which do not return values.
13178         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13179         Various cleanups.
13180         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13181
13182         * po/sv.po: Update from translation team.
13183
13184 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13185
13186         * Versions.def: Add GLIBC_2.6 to libpthread.
13187
13188         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13189         (versioned_symbol): Likewise.
13190         (compat_symbol): Likewise.
13191
13192         * po/tr.po: Update from translation team.
13193
13194 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13195
13196         * nis/Banner: Removed.  It's been integral part forever and the
13197         author info is incomplete anyway.
13198         * libio/Banner: Likewise.
13199
13200         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13201         code, make sure the nis_freeresult call doesn't crash and that the
13202         result is reported correctly.
13203
13204 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13205
13206         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13207         when callback is NULL.
13208
13209         * nis/Versions (libnss_nisplus): Add
13210         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13211         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13212         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13213         _nss_create_tablename): Rename to...
13214         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13215         ... these.  No longer static.
13216         (internal_setgrent): Adjust users.
13217         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13218         Don't use locking around _nss_grp_create_tablename call.
13219         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13220
13221 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13222
13223         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13224
13225 2006-10-06  Andreas Jaeger  <aj@suse.de>
13226
13227         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13228
13229 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13230
13231         * po/pl.po: Update from translation team.
13232
13233         * nscd/nscd.c (main): Fix typo in message.
13234         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13235
13236 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13237
13238         [BZ #3291]
13239         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13240         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13241         (__sigprocmask): Define.
13242
13243 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13244
13245         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13246         used.
13247
13248 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13249
13250         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13251         in oldtotal and newtotal calculation.
13252         * nscd/nscd-client.h (struct mapped_database): Add datasize
13253         field.
13254         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13255         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13256         increased.
13257         (__nscd_cache_search): Add checks to make sure we never reference
13258         data beyond the current mapping.
13259
13260 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13261
13262         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13263         variables const to avoid compiler warnings.
13264
13265         * io/fts.c (fts_close): Remove redundant checks.
13266         (fts_build): Likewise.
13267         (fts_palloc): Likewise.
13268
13269         * manual/message.texi (Advanced gettext functions,
13270         Using gettextized software): Fix typos.
13271
13272 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13273
13274         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13275         explain why there are no leaks.
13276
13277 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13278
13279         * libio/wmemstream.c: Include <wchar.h>.
13280         * libio/bug-wmemstream1.c: Likewise.
13281         * libio/tst-wmemstream1.c: Likewise.
13282         * libio/tst-wmemstream2.c: Likewise.
13283
13284         * version.h (RELEASE): Bump to 2.5.
13285         * README: Regenerated.
13286
13287         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13288
13289         [BZ #3273]
13290         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13291         found no group members.
13292         Patch by Petr Baudis.
13293
13294 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13295
13296         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13297         assert bootstrap_map.l_tls_modid is zero.
13298         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13299         if USE___THREAD.
13300
13301 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13302
13303         * libio/stdio.h: Move open_wmemstream prototype to ...
13304         * wcsmbs/wchar.h: ... here.
13305
13306 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13307
13308         [BZ #3252]
13309         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13310         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13311         __{,l}chown to handle the rest.
13312         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13313         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13314         __{,l}chown to handle the rest.
13315         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13316         i386/fchownat.c.
13317         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13318         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13319
13320         [BZ #3253]
13321         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13322         time, rather allocate increasingly bigger arrays of pointers, if
13323         possible with alloca, if too large with malloc.
13324
13325 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13326
13327         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13328
13329         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13330
13331 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13332
13333         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13334         home addresses.
13335         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13336         IFA_F_HOMEADDRESS flag for interfaces.
13337         * include/ifaddrs.h (struct in6addrinfo): Define
13338         in6ai_homeaddress.
13339
13340 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13341
13342         [BZ #3225]
13343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13344         PTR_DEMANGLE3): Define.
13345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13346         PTR_DEMANGLE3): Likewise.
13347         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13348         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13349         Likewise.
13350         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13351
13352 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13353
13354         * po/libc.pot: Regenerated.
13355         * po/be.po: Updated.
13356         * po/ca.po: Likewise.
13357         * po/cs.po: Likewise.
13358         * po/da.po: Likewise.
13359         * po/de.po: Likewise.
13360         * po/el.po: Likewise.
13361         * po/en_GB.po: Likewise.
13362         * po/es.po: Likewise.
13363         * po/fi.po: Likewise.
13364         * po/fr.po: Likewise.
13365         * po/gl.po: Likewise.
13366         * po/hr.po: Likewise.
13367         * po/hu.po: Likewise.
13368         * po/ja.po: Likewise.
13369         * po/ko.po: Likewise.
13370         * po/nb.po: Likewise.
13371         * po/nl.po: Likewise.
13372         * po/pl.po: Likewise.
13373         * po/pt_BR.po: Likewise.
13374         * po/ru.po: Likewise.
13375         * po/rw.po: Likewise.
13376         * po/sk.po: Likewise.
13377         * po/sv.po: Likewise.
13378         * po/tr.po: Likewise.
13379         * po/zh_CN.po: Likewise.
13380         * po/zh_TW.po: Likewise.
13381
13382         [BZ #3137]
13383         * iconv/iconv_prog.c (main): Fix spelling in error message.
13384         * iconv/iconvconfig.c (main): Likewise.
13385         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13386         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13387         * locale/programs/localedef.c (main): Likewise.
13388         * locale/programs/repertoire.c (repertoire_read): Likewise.
13389         * timezone/zdump.c (main): Likewise.
13390         * nscd/connections.c (handle_request): Fix spelling in log message.
13391         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13392
13393 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13394
13395         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13396         interfaces.
13397
13398 2006-09-20  Andreas Jaeger  <aj@suse.de>
13399
13400         * math/libm-test.inc (lrint_test_upward): Fix typo.
13401
13402 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13403
13404         [BZ #2592]
13405         * math/libm-test.inc (lrint_test_tonearest): New function.
13406         (lrint_test_towardzero): New function.
13407         (lrint_test_downward): New function.
13408         (lrint_test_upward): New function.
13409         (main): Run these new tests.
13410         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13411         of values near to 0.
13412         (two52): Use double not long double.
13413         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13414         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13415         (two23): Use float not double.
13416         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13417         (two23): Use float not double.
13418         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13419         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13420         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13421         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13422
13423 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13424
13425         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13426         Cast sp to unsigned long to avoid compiler warning.
13427         Use __makecontext_ret function instead of a trampoline on the stack.
13428         (__makecontext_ret): New function.
13429         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13430
13431 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13432
13433         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13434         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13435         bits.
13436
13437 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13438
13439         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13440         sure no reference to the unloaded map's search list remains in the
13441         dependency's scope.
13442
13443 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13444
13445         * elf/Makefile: Add rules to build and run unload7 test.
13446         * elf/unload7.c: New test.
13447         * elf/unload7mod1.c: New file.
13448         * elf/unload7mod2.c: New file.
13449
13450 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13451
13452         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13453         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13454         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13455         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13456         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13457         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13458         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13459         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13460         PTRACE_GETEVENTMSG): Likewise.
13461         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13462         values.
13463
13464 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13465
13466         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13467         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13468         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13469         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13470
13471 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13472
13473         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13474         write '\0' to the fd.
13475         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13476         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13477         Change regs to unsigned long pointer from unsigned int, fix fscr
13478         offset.
13479
13480 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13481
13482         * io/Makefile (CFLAGS-fstatat.c): Set.
13483         (CFLAGS-fstatat64.c): Likewise.
13484         (CFLAGS-mknodat.c): Likewise.
13485
13486         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13487         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13489         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13490
13491 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13492             Steven Munroe  <sjmunroe@us.ibm.com>
13493
13494         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13495         names to the beginning.  Rename "cell" to "cellbe".
13496         (_dl_powerpc_platforms): New.
13497         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13498         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13499         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13500         (_DL_HWCAP_PLATFORM): Define to new mask.
13501         (_dl_platform_string, _dl_string_platform): New functions.
13502         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13503         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13504
13505 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13506
13507         [BZ #2526]
13508         * README.libm: Fix a thinko in sqrt algorithm description.
13509
13510         [BZ #3143]
13511         * manual/string.texi (argz_delete): Fix prototype.
13512         Patch by <alpt@freaknet.org>.
13513
13514 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13515
13516         [BZ #3138]
13517         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13518         * io/tst-fcntl.c (do_prepare): Likewise.
13519         * posix/tst-exec.c (do_prepare): Likewise.
13520         * posix/tst-preadwrite.c (do_prepare): Likewise.
13521         * posix/tst-spawn.c (do_prepare): Likewise.
13522         * posix/tst-truncate.c (do_prepare): Likewise.
13523         * rt/tst-aio.c (do_prepare): Likewise.
13524         * rt/tst-aio64.c (do_prepare): Likewise.
13525         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13526         size_t.
13527
13528 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13529
13530         [BZ #2821]
13531         * time/mktime.c (guess_time_tm): Fix overflow detection.
13532         * time/Makefile (tests): Add bug-mktime1.
13533         * time/bug-mktime1.c: New file.
13534
13535         [BZ #3189, #3188]
13536         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13537         (mremap): Likewise.
13538
13539 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13540
13541         [BZ #1006]
13542         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13543         Ensure relocation doesn't clobber any bits outside of the
13544         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13545         R_SPARC_HI22 and R_SPARC_H44.
13546
13547         [BZ #2775]
13548         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13549         (long) (MINSIZE + nb - old_size) is positive.
13550
13551         * malloc/arena.c (grow_heap): When growing bail even if new_size
13552         is negative.
13553
13554         [BZ #3155]
13555         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13556         stack below r1.
13557
13558 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13559
13560         * posix/regex_internal.c (re_string_reconstruct): Handle
13561         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13562         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13563         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13564         re_string_context_at.
13565         * posix/Makefile: Add rules to build and run bug-regex26 test.
13566         * posix/bug-regex26.c: New test.
13567
13568         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13569         rather than col_sym_free.  Move seqp declaration earlier.
13570
13571         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13572
13573 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13574
13575         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13576         decl before first goto out.
13577
13578 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13579
13580         * Makerules (shlib.lds): If have-hash-style, put .hash section
13581         at the end of the RO segment.
13582
13583 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13584
13585         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13586         style hash table format is used.
13587
13588 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13589
13590         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13591         randomization rather than before.
13592         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13593
13594 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13595
13596         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13597
13598         * malloc/malloc.c (_int_malloc): Use full list insert and not
13599         shortcut which assumes the list is empty for large requests
13600         too.
13601
13602         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13603
13604 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13605
13606         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13607         and offout arguments to the prototype.
13608         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13609         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13610         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13611         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13612         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13613         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13614         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13615         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13616
13617 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13618
13619         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13620
13621         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13622         dlopen parameters.
13623
13624 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13625
13626         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13627         only if herrno is NETDB_INTERNAL.  Handle errors other than
13628         ERANGE outside of the loops, handle TRY_AGAIN.
13629
13630         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13631         if other's ctype category was missing.
13632         * locale/programs/ld-collate.c (collate_read): Return if
13633         copy_locale's collate category is missing.
13634
13635 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13636
13637         [BZ #2684]
13638         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13639         arenas if allocation failed.
13640         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13641
13642 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13643
13644         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13645         waste bins[0..1].
13646         (malloc_state): Reduce bins size by 2.
13647         (_int_malloc): Fix test for large enough buffer for early termination.
13648         When no unsorted block matches perfectly and an exiting block has
13649         to be split, use full list insert and not shortcut which assumes
13650         the list is empty.
13651
13652         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13653         failure.
13654
13655 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13656
13657         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13658         do anything.
13659
13660         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13661         symbol require exact match (these are PLTs).
13662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13663         (_dl_ppc64_addr_sym_match): Likewise.
13664
13665         [BZ #2683]
13666         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13667         If symbol has a value use it.
13668         * elf/tst-dladdr1.c: New file.
13669         * elf/Makefile: Add rules to build and run tst-addr1.
13670
13671 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13672
13673         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13674         keeps failing and heap growth or new heap creation isn't
13675         successful either.
13676         * malloc/tst-malloc.c (main): Add new tests.
13677
13678 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13679
13680         [BZ #2734]
13681         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13682         as in the x86-64 code to use bswap.
13683
13684 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13685
13686         [BZ #2680]
13687         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13688         __USE_UNIX98.
13689         * posix/bits/unistd.h: Likewise.
13690
13691 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13692
13693         [BZ #2751]
13694         * string/strchr.c: Add cast to avoid warning.
13695
13696 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13697
13698         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13699         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13700         limit is needed to avoid the exploding of the address space
13701         requirement for secondary heaps.
13702         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13703         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13704
13705 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13706
13707         [BZ #3018]
13708         * Makerules (depfiles): Handle extra-test-objs the same as
13709         extra-objs.
13710         (common-mostlyclean): Likewise.
13711         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13712         instead.
13713         * elf/Makefile (extra-objs): Likewise.
13714         * stdlib/Makefile (extra-objs): Likewise.
13715
13716 2006-08-14  Eric Blake  <ebb9@byu.net>
13717
13718         [BZ #3044]
13719         * misc/error.h: Assume C89 or better.
13720         * misc/error.c: Likewise.
13721
13722 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13723
13724         [BZ #3040]
13725         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13726         __ASSUME_ATFCTS is defined.
13727
13728 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13729
13730         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13731         to sort in each call.
13732
13733         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13734         is empty simply return and use next service.
13735         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13736
13737         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13738         tells us when not finding a charmap file is an error.
13739         * locale/programs/charmap.h: Adjust charmap_read prototype.
13740         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13741         cannot find a charmap.
13742         * locale/programs/localedef.c (main): Adjust charmap_read call.
13743
13744 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13745
13746         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13747         sysdeps/posix/pause.c implementation instead.
13748
13749 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13750
13751         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13752         to EPERM.
13753
13754 2006-08-13  Andreas Schwab  <schwab@suse.de>
13755
13756         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13757         Don't clobber caller's LRSAVE.
13758         (_dl_prof_resolve): Likewise.
13759
13760 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13761
13762         [BZ #1996]
13763         * libio/memstream.c (open_memstream): Allocate initial buffer with
13764         calloc.
13765         * libio/wmemstream.c (open_wmemstream): Likewise.
13766         * libio/strops.c: Pretty printing.
13767         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13768         (enlarge_userbuf): New function.
13769         (_IO_str_seekoff): Call it if seek position is larger than current
13770         buffer.
13771         * libio/wstrops.c: Likewise.
13772         * libio/vasprintf.c: Add comment as to why we do not have to use
13773         calloc instead of malloc to allocate initial buffer.
13774         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13775         * libio/bug-memstream1.c: New file.
13776         * libio/bug-wmemstream1.c: New file.
13777
13778 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13779
13780         * libio/wstrops.c: Remove dead macro definitions and comments.
13781         * libio/strops.c: Likewise.
13782
13783         [BZ #2764]
13784         * login/utmpname.c (__utmpname): Remove unnecessary test.
13785
13786 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13787
13788         [BZ #2832]
13789         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13790         0s from integers.
13791
13792 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13793
13794         [BZ #2987]
13795         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13796         for CPU clocks.
13797         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13798         setting of CPU clocks.
13799
13800 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13801
13802         [BZ #2841]
13803         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13804         since C99 requires the result to promote to 'int' when uint_least8_t
13805         and uint_least16_t promote to 'int'.
13806
13807 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13808
13809         [BZ #3013]
13810         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13811         lenght of one output field, correct bitmask creation.
13812         * locale/programs/ld-time.c: Add alignment.
13813
13814         [BZ #2997]
13815         * misc/error.c: Add space between program name and message if file
13816         name is missing.
13817
13818 2006-08-03  Eric Blake  <ebb9@byu.net>
13819
13820         [BZ #2998]
13821         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13822
13823 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13824
13825         * malloc/memusagestat.c: Silence warnings.
13826
13827         * malloc/malloc.c: Dynamically size mmap treshold if the program
13828         frees mmaped blocks.
13829         Patch by Valerie Henson and Arjan van de Ven.
13830
13831 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13832
13833         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13834         __USE_GNU.
13835
13836         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13837         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13838         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13839         Only provide var definitions in strtol_l (or for *ull*
13840         in strtoll_l).
13841
13842         * stdio-common/bug16.c (tests): New array.
13843         (do_tests): Allow the first hexadecimal digit
13844         to be 1, 2, 4 or 8.  Do 3 additional tests.
13845
13846         * sysdeps/s390/fpu/libm-test-ulps: Update.
13847
13848         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13849         fchownat syscall if available.
13850         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13851         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13852         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13853
13854 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13855
13856         * nis/nis_xdr.c: Avoid some function calls.
13857
13858 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13859             Ulrich Drepper  <drepper@redhat.com>
13860
13861         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13862         short cut if only one name component is stripped away.
13863
13864 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13865
13866         * nis/nis_call.c: Minor cleanups throughout.
13867         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13868         (first_shoot): Add search_parent_first parameter.  Only if it is set
13869         search parent server first.
13870         If directory for table found through cold start cache is not the same
13871         as referenced in the cache, don't use it.
13872         (__nisfind_server): Take additional parameter.  Pass it on to
13873         first_shoot.
13874         (__prepare_niscall): Adjust __nisfind_server call.
13875         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13876         * nis/nis_table.c: Adjust __nisfind_server call.
13877         * nis/nis_lookup.c: Likewise.
13878         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13879
13880 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13881
13882         [BZ #2182]
13883         * math/s_cacosh.c: Return values from positive branch.
13884         * math/s_cacoshf.c: Likewise.
13885         * math/s_cacoshl.c: Likewise.
13886
13887         [BZ #2883]
13888         * sysvipc/sys/msg.h: Change return value to ssize_t.
13889         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13890         * sysvipc/msgrcv.c: Likewise.
13891         * include/sys/msg.h: Likewise.
13892
13893         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13894         test introduced in patch for bz #661.
13895         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13896         element for NEWGROUPS.
13897
13898         [BZ #2908]
13899         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13900         'f', use '1' as leading digit not '\1'.
13901         * stdio-common/Makefile (tests): Add bug16.
13902         * stdio-common/bug16.c: New file.
13903
13904         [BZ #2914]
13905         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13906         and don't try to open it.  The patch introducing the macro
13907         contained a bug and used the same file name as the new file
13908         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13909         this out completely.
13910
13911         [BZ #2926]
13912         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13913         Patch by Jerry James <Jerry.James@usu.edu>.
13914
13915         * rt/Makefile (tests): Add tst-clock2.
13916         * rt/tst-clock2.c: New file.
13917
13918         [BZ #2978]
13919         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13920         function and its parameters and pass it to new thread.
13921         (__gai_notify): Add support for alternative waiting for completion.
13922         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13923         waiting for completion.
13924         * resolv/getaddrinfo_a.c: Likewise.
13925         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13926         waiting for completion is used.
13927         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13928         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13929         * resolv/gai_error.c: Likewise.
13930         * resolv/gai_sigqueue.c: Likewise.
13931
13932 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13933
13934         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13935         errno to EBADF and return MACH_PORT_NULL.
13936
13937 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13938
13939         [BZ #2980]
13940         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13941
13942 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13943
13944         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13945         walk them instead of the symbol table.
13946
13947 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13948
13949         [BZ #2098]
13950         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13951         status of NSS calls, not the number of returned entries.
13952
13953         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13954         request_key, keyctl.
13955
13956 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13957
13958         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13959
13960 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13961
13962         * elf/tst-auditmod1.c: Fix typo in #error.
13963
13964 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13965
13966         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13967
13968         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13969
13970 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13971
13972         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13973         that the directory is empty even on non-POSIX filesystems.
13974
13975 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13976
13977         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13978
13979         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13980         the backend NSS module.  If backend setgrent call failed, don't have
13981         internal_setgrent fail.  Just remember this until it is needed.
13982         * nis/nss_compat/compat-pwd.c: Likewise.
13983         * nis/nss_compat/compat-spwd.c: Likewise.
13984
13985 2006-07-30  Roland McGrath  <roland@redhat.com>
13986
13987         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13988         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13989         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13990         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13991
13992         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13993         (nanosleep_not_cancel): New macro.
13994         (sigsuspend_not_cancel): new macro.
13995         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13996         (do_sigsuspend): Define as inline.
13997         (__sigsuspend): Always use do_sigsuspend.
13998         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13999         * include/signal.h: Declare __sigsuspend_nocancel.
14000         * sysdeps/posix/pause.c
14001         [! NO_CANCELLATION] (__pause_nocancel): New function.
14002
14003         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14004         * include/time.h (__nanosleep_nocancel): Likewise.
14005
14006 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14007
14008         * locale/programs/localedef.c (add_to_readlist): Rename local
14009         variables to avoid confusion.
14010
14011         * locale/programs/charmap.c (charmap_read): Emit error message if
14012         charmap couldn't be found or read.
14013
14014 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14015
14016         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14017         __ASSUME_FUTEX_LOCK_PI.
14018         * include/time.h: Declare __nanosleep_nocancel.
14019         * include/unistd.h: Declare __pause_nocancel.
14020
14021         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14022         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14023         get the __stack_chk_fail_local definition when it's needed.
14024
14025 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14026
14027         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14028         * dlfcn/bug-atexit3.c: New file.
14029         * dlfcn/bug-atexit3-lib.cc: New file.
14030
14031         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14032         used when the namespace is not the base namespace.
14033
14034 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14035
14036         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14037         (__new_exitfn): Bump it in every successful call.
14038         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14039         more exit handlers, call them right away.
14040         * stdlib/exit.h: Declare __new_exitfn_called.
14041
14042 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14043
14044         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14045         calling registered handler.
14046
14047         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14048         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14049         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14050         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14051         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14053         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14054         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14055
14056 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14057
14058         * elf/dl-lookup.c (dl_new_hash): New functions.
14059         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14060         value here.  Compute new-style hash value.  Pass new hash value
14061         and reference to variable with the old value to do_lookup_x.
14062         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14063         old-style hash table.
14064         (_dl_debug_bindings): Pass new hash value and reference to variable
14065         with the old value to do_lookup_x.
14066         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14067         new-style hash value and change old-style hash value parameter to
14068         be a reference.  Reoganize functions to determine whether
14069         new-style hash table is available.  Only fall back on old-style
14070         table.  If old-style hash value is needed, compute it here.
14071         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14072         entry.
14073         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14074         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14075         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14076         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14077         * Makeconfig: If linker supports --hash-style option add it to all
14078         linker command lines to build DSOs.
14079         * config.make.in: Define have-hash-style.
14080         * configure.in: Test whether linker supports --hash-style option.
14081
14082         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14083         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14084
14085 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14086
14087         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14088         auditing.
14089
14090         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14091         RPATH of main map twice.
14092
14093 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14094
14095         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14096         look further, return original strings.
14097         (_nl_find_msg): Do not return found translation if the conversion
14098         failed.  Either signal the string is unusable or that something went
14099         wrong and the original should be used.
14100
14101 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14102
14103         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14104
14105 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14106
14107         [BZ #2766]
14108         * misc/insremque.c (insque): Handle prev == NULL.
14109         * misc/Makefile (tests): Add tst-insremque.
14110         * misc/tst-insremque.c: New test.
14111
14112 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14113
14114         [BZ #2792]
14115         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14116         conflict with DL_DST_REQUIRED.
14117
14118 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14119
14120         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14121         match what Solaris does.
14122
14123 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14124
14125         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14126         local_setegid instead of seteuid and setegid.
14127         * sysdeps/generic/local-setxid.h: New file.
14128         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14129
14130         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14131
14132         * string/Makefile (tests): Add bug-envz1.
14133         * string/bug-envz1.c: New file.
14134
14135 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14136
14137         * posix/regex_internal.c (re_string_skip_chars): If no character has
14138         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14139         to the byte which couldn't be converted.
14140         (re_string_reconstruct): Don't clear valid_raw_len before calling
14141         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14142         tip_context using re_string_context_at.
14143         * posix/Makefile: Add rules to build and run bug-regex25 test.
14144         * posix/bug-regex25.c: New test.
14145
14146 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14147
14148         [BZ #2703]
14149         * string/envz.c (envz_strip): Correct erroneously reversed src
14150         and dest parameters to memmove() invocation.
14151
14152 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14153
14154         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14155         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14156         to make sure the database has been already invalidated.
14157         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14158         after the cache has been invalidated.  Use pthread_mutex_lock rather
14159         than pthread_mutex_trylock if fd != -1.
14160         * nscd/connections.c (invalidate_cache): Add fd argument, write
14161         response to fd if not calling prune_cache, pass fd to prune_cache.
14162         (handle_request): Adjust invalidate_cache caller.
14163         (nscd_run): Pass -1 as fd to prune_cache.
14164
14165 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14166
14167         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14168         the correct place.
14169
14170 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14171
14172         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14173         * nscd/cache.c (prune_cache): Take prunelock before starting the
14174         work.  Just return in case it is already taken.
14175         * nscd/connections.c (dbs): Initialize .prunelock.
14176
14177 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14178
14179         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14180         copying.  No need to allocate new array for group members.  Just
14181         move the pointers and update the size.
14182
14183         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14184         Avoid memory leak in case realloc fails.  Simplification for
14185         better code generation.
14186
14187         Avoid deprecation warning because of libc_hidden_proto for
14188         inet6_option_alloc.
14189         * inet/inet6_option.c (option_alloc): Renamed from
14190         inet6_option_alloc.  Made static.
14191         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14192         (inet6_option_append): Call option_alloc.
14193         * include/netinet/in.h: Remove libc_hidden_proto for
14194         inet6_option_alloc.
14195
14196         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14197         for cleanup when cb!=NULL [Coverity CID 233].
14198
14199 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14200
14201         [BZ #2693]
14202         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14203         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14204         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14205         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14206         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14207         and inet6_rth_getaddr.
14208         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14209         array.
14210         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14211         Mark inet6_option_* interfaces as deprecated.
14212         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14213         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14214         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14215         inet6_rth_segments, and inet6_rth_getaddr.
14216         * inet/inet6_opt.c: New file.
14217         * inet/inet6_rth.c: New file.
14218
14219         * inet/netinet/icmp6.h: Pretty printing.
14220
14221         [BZ #2683]
14222         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14223
14224 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14225
14226         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14227         doing it all here.  When server does not know the answer do not
14228         fail immediate, try parent first.
14229
14230         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14231         overflow test.
14232
14233 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14234
14235         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14236         from __do_niscall.
14237         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14238         and exported.
14239         (__follow_path): New function.  Split out from nis_list.
14240         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14241         _xdr_nis_result.
14242         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14243         _xdr_nis_result.
14244         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14245         and __follow_path.
14246         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14247         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14248         from libnsl for version GLIBC_PRIVATE.
14249         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14250         Remove entry parameter from _nss_nisplus_parse_pwent and
14251         _nss_nisplus_parse_grent.
14252         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14253         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14254         again.  Rewrite getpwent handling to not use nis_first_entry and
14255         nis_next_entry.  Roll out own niscall handling.
14256         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14257
14258         * sunrpc/xdr_rec.c: Fix typo in comment.
14259
14260 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14261
14262         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14263         handling.
14264
14265         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14266         to allocate memory for my_pollfd.  Better initialization of
14267         cb_is_running.  Use TEMP_FAILURE_RETRY.
14268
14269         * malloc/memusage.sh (memusageso): Add quotes.
14270         (memusagestat): Likewise.
14271         * debug/xtrace.sh (pcprofileso): Likewise.
14272         (pcprofiledump): Likewise.
14273         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14274         replacement.
14275         * malloc/Makefile ($(objpfx)memusage): Likewise.
14276
14277         * nis/nis_callback.c (__nis_create_callback): Calls to
14278         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14279         asprintf call fails.
14280
14281         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14282         no uninitialized memory is passed to sendto.
14283
14284 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14285
14286         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14287         of snprintf+strdup.  Handle OOM.
14288         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14289         cb->serv together.  Remove now obsolete free calls.
14290         (__nis_destroy_callback): Remove now obsolete free call.
14291
14292 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14293
14294         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14295         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14296         and ULA respectively). Set precedence for IPv4 address to 10 as
14297         defined in RFC3484 for preferring IPv6.
14298         * posix/gai.conf: Update to match the new default tables.
14299
14300 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14301
14302         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14303         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14304         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14305         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14306
14307         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14308         Removed.
14309         (init_nss_interface): Remove initialization of these variables.
14310
14311 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14312
14313         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14314         nis_free_directory forward to avoid duplication.
14315
14316 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14317
14318         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14319         rec_dirsearch returning NULL.
14320         (first_shoot): Handle __nis_finddirectory returning NULL.
14321         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14322
14323         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14324         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14325
14326 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14327
14328         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14329         pid changed.
14330
14331 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14332
14333         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14334
14335         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14336         * nscd/nscd_getgr_r.c: Likewise.
14337
14338         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14339
14340         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14341         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14342
14343         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14344
14345         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14346
14347         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14348
14349         * include/rpc/auth.h: Mark xdr_des_block_internal and
14350         xdr_opaque_auth_internal as hidden.
14351
14352         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14353         hidden.
14354
14355         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14356
14357         * misc/getusershell.c (okshells): Don't use static initializers,
14358         do it dynamically.
14359
14360         * stdlib/fmtmsg.c (keywords): Change type of len element to
14361         uint32_t to not waste space on 64bit machines.
14362
14363         * locale/setlocale.c: Change _nl_category_names into a string.
14364         Add new _nl_category_name_idxs.  Change all users.
14365         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14366         Declare _nl_category_name_idxs.
14367         * locale/findlocale.c: Adjust for _nl_category_names change.
14368         * locale/loadlocale.c: Likewise.
14369         * locale/newlocale.c: Likewise.
14370         * intl/dcigettext.c: Likewise.
14371
14372         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14373         (add_alias2): ...here.  New function.
14374         (__gconv_read_conf): Simplify builtin alias handling.
14375         (builtin_aliases): Convert to string to avoid relocations.
14376         * iconv/gconv_builtin.h: Add comment about correct formatting.
14377
14378 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14379
14380         * resolv/res_debug.c (loc_ntoa): Make error const.
14381
14382 2006-05-14  Andreas Schwab  <schwab@suse.de>
14383
14384         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14385
14386 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14387
14388         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14389         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14390         sizeof (cpu_set_t).
14391
14392 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14393
14394         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14395
14396         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14397
14398         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14399         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14400
14401         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14402         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14403
14404         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14405         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14406         xdr_cback_data.
14407
14408         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14409         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14410         xdr_ypupdate_args.
14411
14412         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14413         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14414
14415         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14416         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14417
14418         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14419         * include/rpcsvc/nis_callback.h: New file.
14420
14421         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14422         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14423
14424         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14425         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14426
14427         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14428         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14429
14430         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14431         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14432
14433         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14434         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14435         xdr_ypdelete_args.
14436
14437         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14438         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14439
14440         * nis/nis_error.c: Remove table of strings.  Use position
14441         independent mechanism.
14442         * nis/nis_error.h: New file.
14443
14444 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14445
14446         * locale/programs/ld-time.c (time_finish): If wide era name or
14447         format aren't provided, set both wname and wformat to L"".
14448
14449 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14450
14451         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14452         results if the call was succesful.
14453
14454         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14455
14456         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14457         as hidden.
14458
14459 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14460
14461         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14462
14463 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14464
14465         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14466         caller makes sure this is not the case.
14467         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14468
14469 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14470
14471         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14472         calls.
14473
14474         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14475         [Coverity CID 229, 230]
14476
14477         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14478         DGETTEXT calls.
14479         (hol_help): Likewise.  [Coverity CID 226, 227]
14480
14481         * string/argz-replace.c (__argz_replace): Unconditionally call
14482         free on SRC.  [Coverity CID 225]
14483
14484         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14485         the return value of __nis_default_owner and __nis_default_group,
14486         it has been especially allocated.  [Coverity CID 224]
14487
14488         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14489         searchgroup and searchowner.  Significantly simplified.
14490         (__nis_default_owner): Remove duplication.  Do not locally copy the
14491         string before duplicating it.
14492         (__nis_default_group): Likewise.
14493
14494         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14495         we must clear the variable before calling __nisfind_server.
14496
14497         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14498         nis_getnames.  [Coverity CID 223]
14499
14500         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14501         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14502
14503         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14504         allocate memory for the input to add_bytes.  [Coverity CID 221]
14505
14506         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14507         was allocated here.  [Coverity CID 219, 220]
14508
14509         * posix/getconf.c (print_all): Free confstr data after printing.
14510         [Coverity CID 218]
14511
14512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14513         list allocation fails.  [Coverity CID 215]
14514
14515         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14516         [Coverity CID 213]
14517
14518         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14519         string is NULL.  [Coverity CID 212]
14520         * argp/Makefile: Add rules to build and run bug-argp1.
14521         * argp/bug-argp1.c: New file.
14522
14523         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14524         end of string.
14525         * stdlib/canonicalize.c (__realpath): Likewise.
14526
14527         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14528         pointer.  [Coverity CID 206]
14529
14530         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14531         in statically linked code.
14532         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14533         statically built code, be prepared to have no link map.
14534         [Coverity CID 205]
14535
14536         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14537         dgettext calls. [Coverity CID 204]
14538
14539         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14540         the one user.
14541         (uparam_names): Reduce size.  Avoid relative relocations.
14542         Moved to read-only segment.
14543         (fill_in_uparams): Update for new layout.
14544
14545         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14546         assumed to always be != NULL. [Coverity CID 202]
14547
14548         * argp/argp-help.c (hol_entry_help): Remove some dead code
14549         [Coverity CID 200].
14550
14551         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14552         away a few more unconditional yperr2nss calls.
14553         (_nss_nis_getservbyname_r): Likewise.
14554
14555 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14556
14557         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14558         architectures.
14559
14560         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14561         that unused memory passed to sendto is nevertheless initialized.
14562
14563         [BZ #2499]
14564         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14565         possibly unaligned memory accesses.
14566
14567         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14568         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14569         and __putlong respectively.  Correct buffer overflow check for
14570         NS_NOTIFY_OP.
14571
14572         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14573
14574         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14575         (send_dg): Rewrite error handling to be more compact and avoid
14576         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14577
14578         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14579
14580         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14581         instead of ns_get16.
14582         (res_queriesmatch): Likewise.  Minor optimization.
14583
14584         [BZ #2499]
14585         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14586         __libc_res_nsend might reallocate the buffer for the answer.  In
14587         this case we have to reload the HP pointer.
14588
14589 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14590
14591         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14592         some branch prediction hints.
14593
14594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14595         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14596         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14597         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14600         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14601         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14602
14603 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14604
14605         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14606         by a GOT relocation to make Scrt1.o position independent.
14607         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14608
14609         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14610         six system call parameters.
14611         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14612
14613 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14614
14615         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14616         malloc&bzero.
14617
14618         * sunrpc/svc_udp.c (BZERO): Remove definition.
14619         (CALLOC): Define.
14620         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14621
14622         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14623         (des_SPtrans): Use uint32_t type.
14624         (des_skb): Likewise.
14625
14626         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14627
14628 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14629
14630         [BZ #2509]
14631         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14632         on 32-bit arches.
14633
14634 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14635
14636         * locale/programs/ld-address.c (address_finish): Fix one more
14637         place where the iso639 array might be accessed beyond the limits.
14638
14639 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14640
14641         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14642         filling it for the first time.
14643
14644         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14645         Adjust all callers.
14646         Free res object content before returning.
14647
14648         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14649
14650         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14651         client->cl_auth.
14652
14653         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14654         cleanup for initial thread, just the free call on TVP.
14655
14656         * nscd/gai.c (__getline): Define.
14657
14658
14659 See ChangeLog.16 for earlier changes.