power7-optimized 64-bit and 32-bit memcpy
[glibc.git] / ChangeLog
blob218545435a07297a4ae3e76e3d46464c507d15ad
1 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
3         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
4         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
6 2010-03-09  David S. Miller  <davem@davemloft.net>
8         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
9         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
10         64-bit ones.
12         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
14         * sysdeps/sparc/sparc32/strlen.S: Optimize.
15         * sysdeps/sparc/sparc64/strlen.S: Likewise.
16         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
17         XCC): Delete definitions, not needed.
19 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
21         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22         Little follow-up patch from last change.
24 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
26         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
27         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
29 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
31         * resolv/res_send.c: Fixed DEBUG statements.
32         Moved tmpbuf declaration to block beginning and
33         updated pointer names used in multiple DprintQ() calls
35 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
37         * config.make.in (config-asflags-i686): Define.
38         * configure.in: Substitute libc_cv_as_i686.
39         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
40         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
41         if assembler supports -mtune=i686.
42         (ASFLAGS-.oX): Likewise.
44 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
46         * elf/elf.h (R_X86_64_SIZE32): Define.
47         (R_X86_64_SIZE64): Define.
49 2010-03-02  Richard Guenther  <rguenther@suse.de>
51         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
52         is sign-extending.
54 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
56         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
57         the kernel headers.
59 2010-03-04  David S. Miller  <davem@davemloft.net>
61         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
63         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
64         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
66 2010-03-03  David S. Miller  <davem@davemloft.net>
68         * math/math_private.h (INSERT_WORDS64): Fix argument order.
70 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
72         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
74 2010-03-03  David S. Miller  <davem@davemloft.net>
76         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
77         pass '1' for 't' argument to sparc_fixup_plt.
78         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
79         Likewise.
80         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
81         (sparc_fixup_plt): Document 't' argument.  Enable branch
82         optimization and use v9 branches when possible.  Explain why we
83         cannot unconditionally patch the branch into the first PLT
84         instruction.
85         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
86         argument.  Use v9 branches when possible.  Explain why we can in
87         fact unconditionally use a branch in the first PLT instruction
88         here.
90 2010-02-28  Roland McGrath  <roland@redhat.com>
92         * elf/elf.h (NT_X86_XSTATE): New macro.
94 2010-02-25  David S. Miller  <davem@davemloft.net>
96         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
97         * sysdeps/sparc/sparc64/align-cpy.S: New.
98         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
99         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
100         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
101         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
102         Remove.
103         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
104         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
105         Remove.
106         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
107         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
108         Remove.
110         * sysdeps/sparc/sparc32/bcopy.c: Delete.
111         * sysdeps/sparc/sparc32/memmove.c: Delete.
112         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
113         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
114         * sysdeps/sparc/sparc64/bcopy.c: Delete.
115         * sysdeps/sparc/sparc64/memmove.c: Delete.
116         * sysdeps/sparc/sparc64/memcopy.h: New.
117         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
118         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
119         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
120         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
121         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
123         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
124         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
125         gen-as-const-headers.
126         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
127         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
128         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
129         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
130         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
131         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
132         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
133         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
134         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
135         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
136         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
137         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
138         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
139         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
140         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
141         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
142         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
143         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
144         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
145         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
146         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
147         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
148         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
149         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
151 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
153         [BZ #11332]
154         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
155         and cfi_restore_state only if USE_AS_STRNCMP is defined.
157 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
159         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
161 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
163         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
164         (bk_write_less32bytes_2): Renamed to ...
165         (bk_write_less48bytes): This.
166         Use unsigned conditional jumps.
167         Correct unwind info.
168         Use add/sub instead of lea if possible.
169         (shl_0_gobble_cache_loop_tail): Removed.
170         (large_page): Properly adjust ECX.
172         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
173         conditional jumps.
174         Correct unwind info.
176         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
177         punpcklbw.
178         Use unsigned conditional jumps.
179         (128bytesormore_nt): Renamed to ...
180         (128bytesormore_endof_L1): This.
181         Use add instead of lea if possible.
182         Correct unwind info.
183         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
184         punpcklbw.
185         Use unsigned conditional jumps.
186         Use add instead of lea if possible.
187         Correct unwind info.
189 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
191         [BZ #11319]
192         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
193         undoing the stream because _IO_FINISH doesn't report failures.
195         [BZ #5553]
196         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
197         (public_pVALLOc): Likewise.
198         Patch by Petr Baudis.
200 2010-02-22  Jim Meyering  <meyering@redhat.com>
202         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
204         * manual/charset.texi: Adjust grammar.
206         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
207         * manual/charset.texi (Selecting the Conversion): Likewise.
208         * manual/getopt.texi (Getopt Long Options): Likewise.
209         * manual/memory.texi (Resizing the Data Segment): Likewise.
210         * manual/message.texi (GUI program problems): Likewise.
211         * manual/resource.texi (CPU Affinity): Likewise.
212         * manual/stdio.texi (Streams and Threads): Likewise.
213         * manual/time.texi (High Accuracy Clock): Likewise.
215 2009-02-20  David S. Miller  <davem@davemloft.net>
217         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
218         Adjust rela->r_offset by l->l_addr when rewriting PLT.
220         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
221         test end of buffer.
223         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
224         (__makecontext): Adjust arg counter properly when copying arg
225         stack slots.
227 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
229         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
230         Adjust rela->r_offset by l->l_addr when rewriting PLT.
232 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
234         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
235         non-existent `tiocsctty_port'.
237 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
239         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
240         instead of FEATURE_OFFSET.
241         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
243         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
244         Fix one unwind info problem.
246         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
248         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
250 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
251             Ulrich Drepper  <drepper@redhat.com>
253         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
254         Clean up a bit.
256 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
258         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
259         (tiocsctty_port): ...this new function.
261         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
262         `ioctl_handler_t'.
264 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
266         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
267         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
268         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
269         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
271         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
272         undefined code.
274 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
276         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
277         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
278         memcmp-c, memcmp-ssse3, and memcmp-sse4.
279         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
280         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
281         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
282         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
283         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
284         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
285         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
286         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
287         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
288         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
290 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
292         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
293         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
294         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
295         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
296         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
297         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
298         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
299         is not supported.
300         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
301         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
302         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
303         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
304         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
305         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
306         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
307         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
308         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
309         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
310         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
311         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
312         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
313         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
314         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
315         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
316         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
318         Likewise.
319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
320         Likewise.
321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
322         Likewise.
323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
324         Likewise.
325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
327 2010-02-12  Alan Modra  <amodra@gmail.com>
329         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
330         Define and use for __powerpc64__ too.
331         [__powerpc__] (TLS_LD): Add r3 to clobbers.
332         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
333         [__powerpc64__] (TLS_GD): Make __result r3 reg.
334         [__powerpc64__] (TLS_IE): Relax output constraint.
336 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
338         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
339         instructions cu21 and cu24.  Add well-formedness checking
340         parameter and adjust the software implementation.
341         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
343 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
345         [BZ #11271]
346         * io/ftw.c (ftw_startup): Close descriptor for initial directory
347         after changing back to it.
349 2010-02-05  David S. Miller  <davem@davemloft.net>
351         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
352         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
353         ifunc relocs.
354         (elf_machine_lazy_rel): Likewise.
355         (sparc_fixup_plt): Pull out to...
356         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
357         * sysdeps/sparc/sparc32/dl-irel.h: New file.
358         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
359         ifunc relocs.
360         (elf_machine_lazy_rel): Likewise.
361         (sparc64_fixup_plt): Pull out to...
362         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
363         * sysdeps/sparc/sparc64/dl-irel.h: New file.
365 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
367         * elf/elf.h: Define m68k TLS relocations.
369 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
371         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
372         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
373         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
374         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
376         64-bit power7 fpu path.
377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
378         32-bit power7 fpu math.
380 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
382         * sysdeps/i386/rshift.S: More compact unwind information.
384         * sysdeps/i386/lshift.S: Fix unwind information.
386 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
388         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
389         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
390         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
391         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
392         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
393         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
394         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
395         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
396         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
397         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
398         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
399         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
401 2010-02-08  Andreas Schwab  <schwab@redhat.com>
403         * include/fenv.h: Add hidden proto for fegetenv.
404         * math/fegetenv.c: Add hidden alias.
405         * sysdeps/i386/fpu/fegetenv.c: Likewise.
406         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
407         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
408         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
409         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
410         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
411         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
413 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
415         [BZ #11230]
416         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
417         during recovery.
419 2010-01-26  Andreas Schwab  <schwab@redhat.com>
421         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
422         interface.
423         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
424         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
425         utmpx interface.
427         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
428         entry for 2.12.
430 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
432         [BZ #11235]
433         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
434         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
435         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
436         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
437         MS_ACTIVE, and MS_NOUSER.
438         (MS_RMT_MASK): Update according to current kernels.
440         [BZ #11242]
441         * misc/getusershell.c (initshells): Allocate one more byte in input
442         buffer so that fgets doesn't loop undefinitely.
444 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
446         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
447         __libc_use_alloca tells us not to.  Fix memory leak in an error
448         situation.  Based partially on patch by Jim Meyering.
450 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
452         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
453         get_phys_pages, get_avphys_pages): Add weak aliases.
455 2010-01-25  Andreas Schwab  <schwab@redhat.com>
457         * iconv/iconv_prog.c (write_output): Fix check for open failure.
459 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
461         [BZ #11200]
462         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
463         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
465 2010-01-22  Jim Meyering  <jim@meyering.net>
467         [BZ #11193]
468         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
469         buffer length computation.
471         [BZ #11192]
472         * posix/regexec.c (re_copy_regs): Don't leak when allocation
473         of the start buffer succeeds but allocation of the "end" one fails.
475         [BZ #11191]
476         * posix/regexec.c (re_search_2_stub): Check for overflow
477         when adding the sizes of the two strings.
479         [BZ #11190]
480         * posix/regexec.c (re_search_internal): Avoid overflow
481         in computing re_malloc buffer size.
483         [BZ #11189]
484         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
485         in computing re_malloc buffer size.
487         [BZ #11188]
488         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
489         in size calculation.
491         [BZ #11187]
492         * posix/regexec.c (re_search_2_stub): Use simpler method than
493         boolean for freeing internal storage.
495 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
497         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
498         failed mbrtowc call.
500 2010-01-22  Jim Meyering  <jim@meyering.net>
502         [BZ #11186]
503         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
504         fits in wchar_t.  Problem reported by Eric Blake.
506         [BZ #11185]
507         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
508         and stores into set-but-not-used local, "q".
510         [BZ #11184]
511         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
512         detection test.  Patch by Paul Eggert.
514         [BZ #11183]
515         * posix/regex_internal.c (re_string_realloc_buffers):
516         Detect and handle internal overflow.  Patch by Paul Eggert
518 2010-01-20  Andreas Schwab  <schwab@redhat.com>
520         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
521         (CHECK_SP): Fix check for alternate stack.
522         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
523         (CHECK_SP): Likewise.
525 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
527         * sysdeps/i386/i686/multiarch/memmove.S: Also check
528         bit_Fast_Rep_String when SHARED isn't defined.
530 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
532         [BZ #11194]
533         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
535 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
537         * sysdeps/mach/hurd/bits/libc-lock.h
538         (__rtld_lock_recursive_t): New type.
539         (__rtld_lock_initialize): New macro.
541 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
543         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
544         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
548 2010-01-18  Andreas Schwab  <schwab@redhat.com>
550         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
551         definitions of O_DSYNC and O_RSYNC.
553         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
554         casting d_tag.
556         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
557         dynamic entry types.
559 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
561         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
562         constant.
563         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
564         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
565         overflow.
566         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
568         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
569         math_opt_barrier and math_force_eval macros.
571 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
573         * posix/regcomp.c: Fix a few more cases of ignored return values.
574         * posix/regex_internal.c: Likewise.
575         * posix/regexec.c: Likewise.
577         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
578         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
579         if _XOPEN_SOURCE is not defined as well.
581 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
583         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
584         high gprs kernel facility.
585         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
586         Added high gprs check for DSOs.
587         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
588         new elf header flag.
590 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
592         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
593         dl_main.
594         * elf/dl-open.c (_dl_sysdep_start): Likewise..
595         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
596         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
597         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
598         started.
600 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
602         [BZ #11027]
603         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
604         to RFC 2474.
605         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
607         [BZ #11141]
608         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
609         addresses.
611         [BZ #11127]
612         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
613         re_node_set_insert failure; return REG_ESPACE.
614         Patch by Paul Eggert.
616         * bits/confname.h: Make pre-C99-safe.
618 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
620         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
621         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
622         files are found by GCC.
624 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
626         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
627         brk, and sbrk.
629         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
630         index, and rindex.
632         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
634         * Versions.def: Add GLIBC_2.12 for libpthread.
636         [BZ #11126]
637         * malloc/malloc.c (malloc_info): Initialize malloc if not already
638         done.  Handle empty bin lists.
640         * posix/unistd.h: Change getpagesize and getdtablesize declaration
641         visibility some more.
643         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
645         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
647         [BZ #11120]
648         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
649         needed outside libc.
651 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
653         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
655 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
657         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
659 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
661         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
663 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
665         * conform/data/complex.h-data: Test for POSIX2008.
667         * conform/data/ctype.h-data: Fix POSIX testing.
669         * conform/data/dirent.h-data: ino_t only needed for XSI.
671         * grp/grp.h: Declare getgrent and endgrent for XPG7.
673         * conform/data/inttypes.h-data: Use same types as the headers.
675         * resolv/netdb.h: Don't define old resolver macros for XPG7.
677         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
679         * conform/conformtest.pl: Implement tag for allow-header.
680         Fix newline handling in allow-header implementation.
682         * conform/data/time.h-data: Use allow-header instead of duplicating
683         information.
685         * conform/data/time.h-data: Allow sigevent tag.
687         * posix/sched.h: Define time_t and pid_t for XPG7.
689 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
691         * sysdeps/i386/i686/bcopy.S: New file.
693         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
695         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
696         and END_CHK.
697         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
698         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
699         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
701         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
703         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
704         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
705         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
706         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
707         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
708         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
709         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
710         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
711         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
712         * sysdeps/i386/i686/multiarch/bzero.S: New file.
713         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
714         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
715         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
716         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
717         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
718         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
719         * sysdeps/i386/i686/multiarch/memmove.S: New file.
720         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
721         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
722         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
723         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
724         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
725         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
726         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
727         * sysdeps/i386/i686/multiarch/memset.S: New file.
728         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
730         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
731         (END_CHK): Likewise.
733         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
734         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
735         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
737         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
738         for 0x0e and 0x80.
739         (__x86_64_data_cache_size): New.
740         (init_cacheinfo): Set __x86_64_data_cache_size.
742         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
743         on bit_Fast_Rep_String for Intel Core i7.
745         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
746         (index_Fast_Rep_String): Likewise.
747         (FEATURE_INDEX_1): Likewise.
748         (FEATURE_INDEX_MAX): Likewise.
749         (cpu_features): Add feature.
751 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
753         * conform/data/sys/select.h-data: Fix up for XPG7.
755 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
757         * posix/sys/wait.h: Don't define W* macros etc. if
758         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
760 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
762         * io/sys/stat.h: Declare fchmod for XPG7.
763         * conform/data/sys/stat.h-data: Fix up for XPG7.
765         * termios/termios.h: Define pid_t for XPG7.
767         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
768         * conform/data/tgmath.h-data: Likewise.
770         * conform/data/time.h-data: Fix POSIX tests.
772         * conform/data/wchar.h-data: Fix up XPG7 tests.
774         * include/features.h: Fix __USE_ISOC95 handling.
776         * conform/data/wordexp.h-data: Fix typo in last change.
778         * conform/data/unistd.h-data: Fix up older POSIX tests.
780         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
781         * posix/unistd.h: Likewise.
783         * posix/unistd.h: Include environments.h also for XPG6 and up.
784         Define intptr_t for XPG6 and up.
785         Fix up for XPG7.
786         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
788         * conform/data/sys/types.h-data: Fix up for XPG7.
790         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
791         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
792         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
793         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
794         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
795         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
796         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
797         * sysdeps/unix/sysv/bits/stat.h: Likewise.
798         * sysdeps/mach/hurd/bits/stat.h: Likewise.
800         * bits/confname.h: Fix typo in last change.
802         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
804 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
806         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
807         and SA_RESETHAND now available in Base.
808         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
809         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
810         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
811         * conform/data/signal.h-data: Update for XPG7.
813         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
815         * string/strings.h: Don't declare obsolete functions for XPG7.
816         Declare ffs only for XSI.
817         * conform/data/strings.h-data: Update for XPG7.
819 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
821         [BZ #11125]
822         * libio/stdio.h: Define va_list, off_t, and ssize_t.
824         * posix/glob.h: Define size_t.
826         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
828         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
830 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
832         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
833         be self-contained.
835         * conform/data/stdio.h-data: Expect off_t and ssize_t.
837 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
839         * libio/stdio.h: Define va_list also for XPG7.
841         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
842         * conform/data/ctype.h-data: Likewise.
843         * conform/data/dirent.h-data: Likewise.
844         * conform/data/errno.h-data: Likewise.
845         * conform/data/fcntl.h-data: Likewise.
846         * conform/data/fmtmsg.h-data: Likewise.
847         * conform/data/fnmatch.h-data: Likewise.
848         * conform/data/ftw.h-data: Likewise.
849         * conform/data/glob.h-data: Likewise.
850         * conform/data/grp.h-data: Likewise.
851         * conform/data/iconv.h-data: Likewise.
852         * conform/data/langinfo.h-data: Likewise.
853         * conform/data/libgen.h-data: Likewise.
854         * conform/data/limits.h-data: Likewise.
855         * conform/data/locale.h-data: Likewise.
856         * conform/data/math.h-data: Likewise.
857         * conform/data/monetary.h-data: Likewise.
858         * conform/data/mqueue.h-data: Likewise.
859         * conform/data/ndbm.h-data: Likewise.
860         * conform/data/netdb.h-data: Likewise.
861         * conform/data/pthread.h-data: Likewise.
862         * conform/data/pwd.h-data: Likewise.
863         * conform/data/regex.h-data: Likewise.
864         * conform/data/sched.h-data: Likewise.
865         * conform/data/search.h-data: Likewise.
866         * conform/data/semaphore.h-data: Likewise.
867         * conform/data/setjmp.h-data: Likewise.
868         * conform/data/signal.h-data: Likewise.
869         * conform/data/spawn.h-data: Likewise.
870         * conform/data/stdio.h-data: Likewise.
871         * conform/data/stdlib.h-data: Likewise.
872         * conform/data/string.h-data: Likewise.
873         * conform/data/strings.h-data: Likewise.
874         * conform/data/sys/ipc.h-data: Likewise.
875         * conform/data/sys/msg.h-data: Likewise.
876         * conform/data/sys/resource.h-data: Likewise.
877         * conform/data/sys/sem.h-data: Likewise.
878         * conform/data/sys/shm.h-data: Likewise.
879         * conform/data/sys/socket.h-data: Likewise.
880         * conform/data/sys/stat.h-data: Likewise.
881         * conform/data/sys/time.h-data: Likewise.
882         * conform/data/sys/types.h-data: Likewise.
883         * conform/data/sys/uio.h-data: Likewise.
884         * conform/data/sys/wait.h-data: Likewise.
885         * conform/data/syslog.h-data: Likewise.
886         * conform/data/tar.h-data: Likewise.
887         * conform/data/termios.h-data: Likewise.
888         * conform/data/time.h-data: Likewise.
889         * conform/data/ulimit.h-data: Likewise.
890         * conform/data/unistd.h-data: Likewise.
891         * conform/data/utmpx.h-data: Likewise.
892         * conform/data/wchar.h-data: Likewise.
893         * conform/data/wctype.h-data: Likewise.
894         * conform/data/wordexp.h-data: Likewise.
896         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
897         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
898         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
899         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
900         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
901         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
902         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
903         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
904         * sysdeps/unix/sysv/bits/stat.h: Likewise.
905         * sysdeps/mach/hurd/bits/stat.h: Likewise.
907         * stdlib/stdlib.h: Define wait-related bits for XPG7.
908         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
909         Declare mkstemp and getsubopt for XPG7.
910         Declare posix_openpt for XPG6 XSI.
912         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
913         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
915         * string/string.h: Declare strdup for XPG7.
917 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
919         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
920         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
922         * dirent/dirent.h: Really fix feature selection.
924         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
925         Fix all users.
926         * locale/C-address.c: Fix all users.
927         * locale/C-collate.c: Likewise.
928         * locale/C-ctype.c: Likewise.
929         * locale/C-identification.c: Likewise.
930         * locale/C-measurement.c: Likewise.
931         * locale/C-messages.c: Likewise.
932         * locale/C-monetary.c: Likewise.
933         * locale/C-name.c: Likewise.
934         * locale/C-numeric.c: Likewise.
935         * locale/C-paper.c: Likewise.
936         * locale/C-telephone.c: Likewise.
937         * locale/C-time.c: Likewise.
938         * locale/findlocale.c: Likewise.
939         * locale/global-locale.c: Likewise.
940         * locale/loadarchive.c: Likewise.
941         * locale/loadlocale.c: Likewise.
942         * locale/nl_langinfo_l.c: Likewise.
943         * locale/setlocale.c: Likewise.
944         * locale/xlocale.c: Likewise.
945         * locale/xlocale.h: Likewise.
946         * stdio-common/vfscanf.c: Likewise.
947         * stdlib/strfmon_l.c: Likewise.
948         * stdlib/strtod_l.c: Likewise.
949         * stdlib/strtol_l.c: Likewise.
950         * string/strcoll_l.c: Likewise.
951         * string/strxfrm_l.c: Likewise.
952         * time/alt_digit.c: Likewise.
953         * time/asctime.c: Likewise.
954         * time/era.c: Likewise.
955         * time/lc-time-cleanup.c: Likewise.
956         * time/strftime_l.c: Likewise.
957         * time/strptime_l.c: Likewise.
958         * wcsmbs/wcsmbsload.c: Likewise.
959         * wcsmbs/wcsmbsload.h: Likewise.
961         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
962         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
963         for XPG7.
964         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
965         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
966         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
967         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
968         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
969         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
971 2010-01-07  Roland McGrath  <roland@redhat.com>
973         * elf/elf.h (PN_XNUM): New macro.
975         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
976         literal 2.
978 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
980         * dirent/dirent.h: Fix typo in feature selection macro use.
982 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
984         [BZ #11115]
985         * stdlib/tst-makecontext3.c: New file.
986         * stdlib/Makefile (tests): Add new test.
988         * stdlib/tst-setcontext.c (check_called): Fix a typo.
990 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
992         * configure.in: Enable multi-arch by default if the assembler
993         supports gnu_indirect_function symbol type and the architecture
994         supports it.
996 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
998         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
999         is defined.
1001 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1003         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1004         MACH_PORT_NULL when id != cttyid.
1006 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1008         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1009         __mach_port_deallocate on rootdevid.
1011 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1013         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1014         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1015         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1016         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1018 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1020         [BZ #10992]
1021         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1022         Patch by Eric Blake <ebb9@byu.net>.
1024 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1026         [BZ #11093]
1027         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1028         POLLWRBAND also for POSIX 2008.
1029         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1030         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1032         * include/link.h (struct link_map): Move l_used into its own word.
1033         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1034         still zero.
1035         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1036         never really used.
1038 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1040         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1041         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1042         check processor feature.
1043         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1044         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1045         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1046         (index_SSE2): Likewise.
1048 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1050         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1051         if __ASSEMBLER__ is defined.
1052         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1053         (bit_SSE4_2): Likewise.
1054         (index_SSSE3): Likewise.
1055         (index_SSE4_2): Likewise.
1056         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1057         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1058         check processor feature.
1059         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1060         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1061         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1062         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1063         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1064         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1065         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1067 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1069         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1071 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1073         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1075 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1077         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1078         O_DSYNC to match 2.6.33+ kernels.
1079         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1080         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1082         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1083         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1084         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1086 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1088         [BZ #11000]
1089         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1090         *herrnop before returning.
1091         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1092         Likewise.
1093         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1094         TRYAGAIN errors separately.
1095         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1096         *name4_r after functions.
1098 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1100         [BZ #11046]
1101         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1102         version check.
1104 2009-11-05  Bruno Haible  <bruno@clisp.org>
1106         [BZ #11056]
1107         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1108         argv argument as non-NULL.
1109         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1111 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1113         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1114         recvmmsg.
1115         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1116         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1118 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1120         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1121         registers.
1122         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1123         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1124         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1126 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1128         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1129         SCHED_RESET_ON_FORK.
1131 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1133         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1134         only used on truly ancient kernel if configuration requires a more
1135         recent kernel.
1137 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1139         [BZ #3662]
1140         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1141         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1143         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1144         pass it on to __ptsname_internal.
1145         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1146         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1147         All the code from __ptsname_r but take additional parameter.  Use that
1148         instead of pointer to local stat64 variable.
1149         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1150         variable.
1151         * include/stdlib.h: Declare __ptsname_internal.
1153         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1154         before the exec.
1155         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1156         * login/programs/pt_chown.c (main): Don't print message on errors
1157         when doing real work.
1159         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1160         once.
1162         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1163         irel relocations split out from...
1164         (__libc_csu_init): ...here.
1165         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1167 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1169         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1170         for timestamps also if __USE_XOPEN2K8.
1171         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1172         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1173         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1174         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1176 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1178         * nscd/connections.c (restart): Try harder to re-exec.
1180         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1182         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1183         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1184         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1185         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1186         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1187         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1189         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1190         Define.
1191         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1193 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1195         [BZ #10162]
1196         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1197         than software pipeline.  Properly recover from shorter read.
1199 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1201         [BZ #10958]
1202         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1203         initialized before using it.
1204         (_IO_putwc_unlocked): Likewise.
1206         [BZ #10918]
1207         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1208         in cast to not throw away const-ness of parameters.
1209         (__CPU_EQUAL_S): Likewise.
1210         (__CPU_OP_S): Likewise.
1212         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1213         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1214         this gratuitous change and we have to keep compatibility.
1215         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1216         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1217         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1218         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1219         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1220         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1222 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1224         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1225         of parameters of sync_file_range.
1226         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1227         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1228         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1229         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1230         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1231         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1233 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1235         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1236         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1237         is defined.
1238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1239         file.
1241 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1243         * posix/bug-regex30.c: New file.
1244         * posix/Makefile: Add rules to build and run bug-regex30.
1245         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1246         character lead bytes when there is a range in a COMPLEX_BRACKET.
1247         Reported by Oleg Bylatov.
1249 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1251         [BZ #10969]
1252         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1253         * locale/tst-duplocale.c: New file.
1254         * locale/Makefile (tests): Add tst-duplocale.
1256         [BZ #10968]
1257         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1258         Patch by Bruno Haible <bruno@clisp.org>.
1259         * locale/tst-locname.c: New file.
1260         * locale/Makefile (tests): Add tst-locname.
1262         [BZ #10972]
1263         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1264         constants from recent kernels.
1265         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1266         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1267         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1268         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1269         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1270         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1272 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1274         [BZ #10162]
1275         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1276         software pipeline.
1278 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1280         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1281         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1282         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1284 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1286         * posix/bug-regex29.c: Include stdio.h.
1288 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1290         [BZ #10939]
1291         * Versions.def: Define GLIBC_2.12 for libc.
1292         * manual/errno.texi: Add ERFKILL entry.
1293         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1294         for 2.12.
1295         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1296         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1298         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1299         F_GETOWN_EX definitions according to corrected kernel definitions.
1300         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1301         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1302         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1304         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1305         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1307 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1309         * version.h: Bump for 2.12 development.
1311 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1313         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1314         out of buffer space.
1315         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1316         map_v4v6_hostent running out of space.
1318 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1320         * string/bits/string3.h (memset): If the second parameter is constant
1321         and zero there is likely no transposition.
1322         Patch by Caolan McNamara <caolanm@redhat.com.
1324 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1326         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1327         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1329 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1331         * malloc/memusagestat.c (main): Fix spelling in an error message.
1333 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1335         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1336         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1338 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1341         readahead.
1343 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1345         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1346         relocate opd entry when resolving prelink conflicts.
1348 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1350         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1351         when -D_FILE_OFFSET_BITS=64.
1353         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1354         of last two arguments when -D_FILE_OFFSET_BITS=64.
1355         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1356         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1357         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1358         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1359         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1360         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1362 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1364         [BZ #4457]
1365         * sysdeps/generic/libgcc_s.h: New file.
1366         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1368 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1370         * malloc/hooks.c (free_check): Restore locking and call _int_free
1371         appropriately.
1373 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1375         * version.h (VERSION): Bump for 2.11 release.
1376         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1378         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1380         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1382         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1383         to avoid warning.
1384         * stdlib/tst-strtoll.c (tests): Likewise.
1386         [BZ #9986]
1387         * time/strftime_l.c (__strftime_internal): Allow %OC.
1389         * misc/mkostemps.c: New file.
1390         * misc/mkostemps64.c: New file.
1392 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1394         * locale/programs/locale-spec.c: Include <error.h> and
1395         <libintl.h>.
1397         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1399 2009-10-28  Roland McGrath  <roland@redhat.com>
1401         * Makefile (dist-prepare): New target.
1402         (tag-for-dist): Target removed.
1403         (glibc-%.tar): Pattern rule removed.
1404         (%.tar): New pattern rule, does simple use of git archive.
1405         (dist-version): Remove variable definition.
1406         (dist): Just depend on that.  Add .tar.xz dependency.
1407         If dist-version variable not set on command line, depend on
1408         dist-prepare, re-invoke with dist-version set via git describe.
1410         * Makerules (%.xz): New pattern rule.
1412 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1414         * elf/ifuncdep2.c: Include ifunc-sel.h.
1415         (global): Delete.
1416         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1417         * elf/ifuncmain1.c (global): Delete.
1418         * elf/ifuncmain1vis.c: Likewise.
1419         * elf/ifuncmain2.c: Likewise.
1420         * elf/ifuncmain5.c: Likewise.
1421         * elf/ifuncmod3.c: Likewise.
1422         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1423         (foo_ifunc): Use ifunc_one.
1424         * elf/ifuncmain7.c: Likewise.
1425         * elf/ifuncmod1.c: Include ifunc-sel.h.
1426         (global): Define protected var.
1427         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1428         * elf/ifuncmod5.c: Likewise.
1429         * sysdeps/generic/elf/ifunc-sel.h: New file.
1430         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1432 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1434         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1435         (R_PPC_REL16*): Correct comments.
1436         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1437         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1438          R_PPC64_REL16_HA): Define.
1439         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1440         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1441         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1442         Delete unused "reloc" param.
1443         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1444         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1445         Delete "reloc" param.
1446         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1447         R_PPC_IRELATIVE.
1448         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1449         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1450         relocations.
1452 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1454         [BZ #10315]
1455         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1456         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1457         UDP_ENCAP_L2TPINUDP.
1459         [BZ #10349]
1460         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1461         parameter, specifying length of prefix.
1462         * stdio-common/tempname.c: Likewise.
1463         * include/stdio.h: Adjust prototypes.
1464         * libio/oldtmpfile.c: Adjust caller.
1465         * misc/mkdtemp.c: Likewise.
1466         * misc/mkostemp.c: Likewise.
1467         * misc/mkostemp64.c: Likewise.
1468         * misc/mkstemp.c:  Likewise.
1469         * misc/mkstemp64.c: Likewise.
1470         * misc/mktemp.c: Likewise.
1471         * stdio-common/tempnam.c: Likewise.
1472         * stdio-common/tmpfile.c: Likewise.
1473         * stdio-common/tmpnam.c: Likewise.
1474         * stdio-common/tmpnam_r.c: Likewise.
1475         * misc/mkstemps.c: New file.
1476         * misc/mkstemps64.c: New file.
1477         * stdlib/stdlib.h: Add prototypes.
1478         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1479         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1481 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1483         * locale/iso-639.def: Add sml entry.
1485         [BZ #10391]
1486         * resolv/res_send.c (send_dg): Initialize resplen.
1488         [BZ #10446]
1489         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1490         definition to the kernel's.
1491         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1493 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1495         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1496         offsets and record sizes in assert()s and response sending.
1497         * nscd/grpcache.c: Likewise.
1498         * nscd/hstcache.c: Likewise.
1499         * nscd/initgrcache.c: Likewise.
1500         * nscd/pwdcache.c: Likewise.
1502 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1504         [BZ #10540]
1505         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1506         /etc/hosts does not exist set errnop and herrnop appropriately.
1507         Patch by Steve Langasek <vorlon@debian.org>.
1509         [BZ #10553]
1510         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1511         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1513         [BZ #10564]
1514         * login/utmp_file.c (TIMEOUT): Increase to 10.
1516         [BZ #10609]
1517         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1518         for file names in case the syscall is not available.
1519         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1520         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1521         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1522         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1523         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1524         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1525         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1526         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1527         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1528         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1529         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1530         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1531         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1532         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1533         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1534         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1535         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1537         [BZ #10643]
1538         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1539         creation filed, remove the request from the 'requests' list and signal
1540         the caller that the request is finished.
1542         [BZ #10692]
1543         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1544         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1546         [BZ #10713]
1547         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1548         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1550         [BZ #10780]
1551         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1552         overflows the int return type.
1554         [BZ #10717]
1555         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1556         have to compute maxsize_total, we have to update the variables, and
1557         the also_total handling must happen after the repair.
1559         [BZ #10742]
1560         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1561         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1563 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1565         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1566         errno is always set when returning unsuccessfully.
1568 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1570         * malloc/memusage.c (update_data): Fix index wraparound handling
1571         so that buffer_cnt is actually reset.
1573 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1575         [BZ #10784]
1576         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1577         of the directory we look at into the static buffer if there is one
1578         at the start of the loop.
1580         [BZ #10789]
1581         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1582         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1584         [BZ #10840]
1585         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1586         __ASSUME_F_GETOWN_EX.
1587         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1588         if possible.
1589         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1591         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1592         and f_owner_ex.
1593         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1594         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1595         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1596         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1597         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1600         [BZ #10847]
1601         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1602         getutmpx symbol.
1604         [BZ #10823]
1605         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1606         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1608 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1610         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1612 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1614         [BZ #10817]
1615         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1616         Reported by Ray Chason.
1618 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1620         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1621         strend-sse4.
1622         * sysdeps/x86_64/multiarch/strchr.S: New file.
1623         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1624         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1626 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1628         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1630 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1632         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1633         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1634         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1635         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1636         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1637         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1638         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1639         __ieee751_expl to handle overflow.
1641 2009-10-14  David S. Miller  <davem@davemloft.net>
1643         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1644         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1646 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1648         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1649         !USE_MULTIARCH.
1651 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1653         [BZ #10730]
1654         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1655         Patch in part by Steve Ward <planet36@gmail.com>.
1657         [BZ #10731]
1658         * stdlib/rand_r.c: Fix typo.
1660         * po/cs.po: Update from translation team.
1662 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1664         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1665         returning if RTLD_NOLOAD.
1667 2009-10-06  Roland McGrath  <roland@redhat.com>
1669         * sysdeps/x86_64/multiarch/strstr-c.c
1670         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1672         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1673         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1675         * sysdeps/x86_64/multiarch/init-arch.h
1676         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1677         (HAS_CPU_FEATURE): New macro.
1678         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1679         * sysdeps/x86_64/multiarch/init-arch.c
1680         (__get_cpu_features): #undef it before definition.
1682 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1684         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1685         first_weekday to 1 and first_workday to 2.
1687 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1689         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1690         F_GETOWN_EX.
1691         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1692         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1694         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1695         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1696         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1698 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1700         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1701         * stdio-common/vfprintf.c: Likewise.
1703 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1705         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1706         (mkdirat): Call __directory_name_split_at instead of
1707         __directory_name_split.
1709 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1711         * locale/programs/locale-spec.c (locale_special): If nothing matches
1712         fail with an appropriate message.
1714 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1716         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1717         and XX.
1719 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1721         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1722         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1724 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1726         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1728 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1730         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1731         character size elements in step data.
1733 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1735         * po/hu.po: Update from translation team.
1736         * po/vi.po: Likewise.
1738 2009-09-19  Roland McGrath  <roland@redhat.com>
1740         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1742 2009-09-15  Roland McGrath  <roland@redhat.com>
1744         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1745         * nptl/sysdeps/pthread/configure: Regenerated.
1746         * nptl/sysdeps/x86_64/configure: Regenerated.
1747         * sysdeps/unix/sysv/linux/configure: Regenerated.
1748         * sysdeps/x86_64/elf/configure: Regenerated.
1750         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1752         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1753         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1754         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1755         * configure: Regenerated.
1757 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1759         * posix/getconf.c (main): Handle -- on command line.
1761 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1763         * configure.in: Support binutils 2.100 and 3.0.
1765 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1767         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1768         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1769         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1770         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1772 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1774         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1775         unnamed_section_defined field.
1776         (collate_read): Test and set unnamed_section_defined.
1778         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1779         _POSIX2_LINE_MAX.
1781 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1783         * configure.in: Support binutils 2.20.
1785 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1787         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1788         __strstr_ia32): Add attribute_hidden.
1790 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1792         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1793         parsing of group entry.
1795 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1797         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1798         external buffer.  Always discard readahead in internal buffer.
1799         * libio/Makefile (tests): Add bug-wsetpos.
1800         * libio/bug-wsetpos.c: New file.
1802 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1804         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1805         Add attribute_hidden.
1806         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1807         __strcasestr_sse2): Likewise.
1808         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1809         (__fma_fma): Make static.
1810         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1811         (__fmaf_fma): Make static.
1813 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1815         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1816         reformulate in-buffer optimisation check to match code in
1817         _IO_new_file_seekoff.
1819 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1821         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1822         to srwi in 32-bit memcpy for power6.
1824 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1826         * include/stdio.h: Declare hidden proto for fflush.
1827         * libio/iofflush.c: Add hidden weak alias for fflush.
1829 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1831         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1832         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1834 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1836         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1838 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1840         [BZ #10560]
1841         * malloc/malloc.c: Add local assert definition to avoid problems with
1842         memory allocation in the real one.
1844 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1846         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1847         Removed.
1848         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1849         turn off SSSE3 on Atom.
1851 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1853         * stdlib/tst-strtol.c (tests): More tests.
1854         * stdlib/tst-strtoll.c (tests): Likewise.
1856 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1858         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1860         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1862 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1864         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1865         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1867         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1869         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1871         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1873 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1875         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1877 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1879         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1880         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1882         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1884         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1885         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1887         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1888         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1890         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1891         leftover YMM_SIZE definition.
1893 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1895         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1896         union.
1897         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1898         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1899         Redefine.
1900         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1902         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1903         and SET_FLOAT_WORD definitions.
1905 2009-08-24  Roland McGrath  <roland@redhat.com>
1907         * sysdeps/unix/syscall-template.S: New file.
1908         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1909         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1910         (compile-syscall): Pass mkdep and -g options as normal.
1911         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1912         (common-generated): Don't add them here.
1914 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1916         * math/s_fdim.c: In case of overflows set errno.
1917         * math/s_fdimf.c: Likewise.
1918         * math/s_fdiml.c: Likewise.
1920         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1921         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1922         are using the inline optimizations.
1924         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1925         (__signbitf): Likewise.
1927 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1929         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1930         terminated.
1931         * posix/Makefile (tests): Add bug-regex29.
1932         * posix/bug-regex29.c: New file.
1934         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1935         older POSIX versions are selected.
1937         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1938         as well.
1939         * stdio-common/printf_fphex.c: Likewise.
1940         * stdio-common/tstdiomisc.c: Add more tests.
1942         * locale/locale.h: Include xlocale.h and the thread-local locale
1943         declarations for XPG7, not XPG6.
1945 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1947         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1948         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1951         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1952         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1954 2009-08-20  Roland McGrath  <roland@redhat.com>
1956         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1957         Use l_addr instead of l_map_start (dli_fbase).
1958         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1959         address when there is no proximate symbol.
1960         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1961         Likewise.
1963 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1965         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1967 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1969         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1970         Also handle SIGINT.  In that case only do the cleanup and then
1971         re-raise the signal.
1972         (main): Install handler for SIGINT.
1974 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1976         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1977         clobber list.
1979 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1981         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1982         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1983         tst-auditmod7b.c.
1984         (tests): Add tst-audit6 tst-audit7.
1985         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1986         tst-auditmod7a tst-auditmod7b.
1987         ($(objpfx)tst-audit6): New.
1988         ($(objpfx)tst-audit6.out): Likewise.
1989         ($(objpfx)tst-audit7): Likewise.
1990         ($(objpfx)tst-audit7.out): Likewise.
1991         (tst-audit6-ENV): Likewise.
1992         (tst-audit7-ENV): Likewise.
1993         (CFLAGS-tst-auditmod6b.c): Likewise.
1994         (CFLAGS-tst-auditmod6c.c): Likewise.
1995         (CFLAGS-tst-auditmod7b.c): Likewise.
1996         * elf/tst-audit6.c: New file.
1997         * elf/tst-audit7.c: New file.
1998         * elf/tst-auditmod6a.c: New file.
1999         * elf/tst-auditmod6b.c: New file.
2000         * elf/tst-auditmod6c.c: New file.
2001         * elf/tst-auditmod7a.c: New file.
2002         * elf/tst-auditmod7b.c: New file.
2003         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2004         saving and restoring SSE/AVX registers to ...
2005         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2007 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2009         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2010         only if SHARED is defined.
2011         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2013 2009-08-03  Jim Meyering  <meyering@redhat.com>
2015         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2017 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2019         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2020         section as the other functions for this architecture.
2021         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2023 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2025         * sysdeps/x86_64/strcmp.S: Add support to compile with
2026         USE_SSSE3.  In this case palignr is used.
2027         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2028         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2029         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2030         Add strcmp-ssse3 and strncmp-ssse3.
2031         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2032         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2034         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2035         warning through fake initialization.
2037 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2039         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2041 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2043         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2044         unique symbols.
2046 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2048         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2049         EBX from EAX = 1.  Handle EAX = 11.
2051 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2053         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2054         inside ''.
2056 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2058         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2059         hidden IFUNC functions.
2060         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2062         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2064         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2065         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2066         strcasestr-c.
2067         (CFLAGS-strcspn-c.c): Define.
2068         (CFLAGS-strpbrk-c.c): Define.
2069         (CFLAGS-strspn-c.c): Define.
2070         (CFLAGS-strstr.c): Define.
2071         (CFLAGS-strcasestr.c): Define.
2072         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2073         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2074         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2075         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2076         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2077         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2078         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2079         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2080         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2081         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2082         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2083         -16L instead of 0xfffffffffffffff0L.
2084         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2086 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2088         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2090 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2092         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2093         another rewrite.  Much smaller and faster.
2094         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2096         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2097         ss_flags from the correct location.
2099 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2101         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2102         * sysdeps/i386/i686/cacheinfo.c: New file.
2103         * sysdeps/i386/i686/multiarch/Makefile: New file.
2104         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2105         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2106         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2107         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2108         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2109         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2110         (__cpuid_count): New. Provide the default.
2111         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2112         (__x86_64_preferred_memory_instruction): Define only if
2113         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2114         (intel_check_word): Use __cpuid.
2115         (handle_intel): Likewise.
2116         (handle_amd): Likewise.
2117         (__cache_sysconf): Likewise.
2118         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2119         (__cache_sysconf): Likewise.
2120         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2121         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2122         (get_common_indeces): Use __cpuid.
2123         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2124         if ENABLE_SSSE3_ON_ATOM is not defined.
2125         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2126         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2127         popcnt instead of popcntq.
2129 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2131         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2133 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2135         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2136         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2137         which always causes a compile error.
2139         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2141         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2142         comes from...
2143         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2144         which always causes a compile error.
2146         * debug/Makefile (tests): Add tst-longjmp_chk2.
2147         * debug/tst-longjmp_chk2.c: New file.
2149         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2150         Remove incorrect use of BP_SYM.
2151         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2152         here now since it is more complex than just a simple check.
2154         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2155         we make no more progress.
2157 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2159         * math/s_fma.c: Don't define alias if __fma is a macro.
2160         * math/s_fmaf.c: Likewise.
2161         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2162         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2163         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2165         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2166         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2167         New macro HAS_FMA.
2168         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2169         function.
2170         * include/libc-symbols.h (libm_ifunc): Define.
2171         * sysdeps/x86_64/multiarch/Versions: New file.
2173         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2175 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2177         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2179 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2181         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2182         call that registers used in calling conventions need to be preserved.
2183         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2184         to preserve register content if necessary.
2185         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2186         (_dl_x86_64_restore_sse): New function.
2187         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2188         is allowed to modify xmm/ymm registers.
2190         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2191         application's perspective.
2192         * stdio-common/scanf17.c: Likewise.
2194 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2196         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2197         size to memsz.
2198         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2199         here.
2200         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2201         two steps to catch bugs.
2203 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2205         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2206         determines which files are used in runtime lookups and only checks
2207         those for SSE use.
2208         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2209         testing.
2210         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2211         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2212         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2213         take a while.
2215         * elf/dl-open.c: Move _dl_scope_free to...
2216         * elf/dl-scope.c: ...here.  New file.
2217         * elf/Makefile (dl-routines): Add scope.
2219         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2220         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2221         RES_USE_DNSSEC.
2222         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2223         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2224         all the places we handled RES_USE_EDNS0 only before.
2225         Patch by Adam Tkac <atkac@redhat.com>.
2227 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2229         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2230         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2231         Update size when reallocating.
2233 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2235         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2236         functions used in ld.so modify xmm/ymm registers.
2237         * sysdeps/x86_64/Makefile:  Hook new test up.
2238         * sysdeps/x86_64/rtld-memchr.c: New file.
2239         * sysdeps/x86_64/rtld-memcmp.c: New file.
2240         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2241         * sysdeps/x86_64/rtld-strchr.S: New file.
2242         * sysdeps/x86_64/rtld-strlen.S: New file.
2243         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2244         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2246 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2248         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2249         strncmp-c.
2250         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2251         (exit): Likewise.
2252         (Byte1): Likewise.
2253         (Byte2): Likewise.
2254         (Byte3): Likewise.
2255         (Byte4): Likewise.
2256         (Byte5): Likewise.
2257         (Byte6): Likewise.
2258         (next_8_bytes): Likewise.
2259         (Byte0): Remove commented out codes.
2260         (unaligned_table): Align jump table at 8 bytes.
2261         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2262         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2263         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2264         * sysdeps/x86_64/strncmp.S: New file.
2266 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2268         [BZ #10422]
2269         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2270         kernels, dropped when eventfd2 support was added.
2271         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2272         kernels, dropped when signalfd4 support was added.
2273         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2274         added, name them.
2276         [BZ #10452]
2277         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2278         replies up.
2280         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2282 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2284         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2285         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2287         [BZ #10448]
2288         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2289         callback we must touch the status to avoid using stale value.
2291         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2292         compiled in.
2294 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2296         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2297         /lib/modules/* headers anymore.  We have sane headers in the standard
2298         place now.
2300 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2302         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2303         "etf3enh" and "highgprs" added.
2304         (_dl_s390_platforms): "z10" added.
2305         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2306         Increased for the new entries.
2307         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2308         HWCAP_S390_HIGH_GPRS added.
2310         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2311         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2312         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2313         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2314         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2316 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2318         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2319         avoid additional cpuid instructions.  Most of the information is
2320         stored somewhere.
2322         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2323         cache descriptors.
2324         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2326         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2327         SSSE3 bit for Atoms.
2328         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2329         here anymore.
2331         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2332         structure before copying it to avoid warning.
2333         * posix/tst-rfc3484-2.c (do_test): Likewise.
2334         * posix/tst-rfc3484-3.c (do_test): Likewise.
2336         [BZ #10416]
2337         * include/unistd.h: Make header file suitable for C++ test cases.
2338         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2340         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2341         stack alignment in the exit code.
2343         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2344         potentially be zero.
2346         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2347         unique symbol definition.
2348         Patch by Jakub Jelinek.
2349         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2350         make sure the object with the definition cannot be unloaded.  Adjust
2351         a few types.
2352         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2353         the unique symbol hash table should not be const.
2355 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2357         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2358         unnecesary variables.  Comment fixes.
2360 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2363         Use NONASCII_CASE information provided by the locale to determine
2364         whether optimized string load function can be used.  Minor cleanups.
2366 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2368         * string/strcasestr.c (STRCASESTR): New macro.
2369         (__strcasestr): Renamed to ..
2370         (STRCASESTR): ...this.
2371         * string/strstr.c (STRSTR): New macro.
2372         (strstr): Renamed to ..
2373         (STRSTR): ...this.
2374         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2375         strstr-c strcasestr-c
2376         (CFLAGS-strstr.c): New.
2377         (CFLAGS-strcasestr.c): Likewise.
2378         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2379         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2380         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2381         * sysdeps/x86_64/multiarch/strstr.c: New file.
2383 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2385         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2386         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2387         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2388         _NL_CTYPE_NONASCII_CASE.
2389         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2390         field.
2391         (ctype_finish): Check whether there are any 8-bit characters outside
2392         the range ASCII has or whether the mapping isn't the same as for
2393         ASCII (±0x20).  Set nonascii_case appropriately.
2394         (ctype_output): Add output handler for nonascii_case.
2396 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2398         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2399         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2401 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2403         [BZ #10360]
2404         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2405         0xffff in the EDNS0 record.
2407 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2409         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2410         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2411         is written before the list head update.
2412         Patch by Andreas Schwab <aschwab@redhat.com>.
2414 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2415             Jakub Jelinek  <jakub@redhat.com>
2417         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2418         corruption thread-safe.
2420 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2422         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2423         overrides atomic_compare_and_exchange_val_rel, define to
2424         atomic_compare_and_exchange_val_rel by default, otherwise default
2425         to catomic_compare_and_exchange_val_acq.
2426         (catomic_compare_and_exchange_bool_rel): If arch overrides
2427         atomic_compare_and_exchange_bool_rel, define to
2428         atomic_compare_and_exchange_bool_rel by default.
2429         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2430         Use catomic_compare_and_exchange_val_rel instead of
2431         catomic_compare_and_exchange_val_acq.
2433 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2435         * sysdeps/generic/ldsodefs.h: Add prototype for
2436         _dl_higher_prime_number.
2437         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2439         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2440         restoring of ymm registers a bit.
2442 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2444         * sysdeps/x86_64/memcmp.S: New file.
2446 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2448         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2449         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2450         pointers in writable memory.
2452 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2454         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2455         * config.make.in: Add config-cflags-avx entry.
2456         * configure.in: Substitute libc_cv_cc_avx.
2457         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2458         * elf/tst-audit4.c: New file.
2459         * elf/tst-audit5.c: New file.
2460         * elf/tst-auditmod4a.c: New file.
2461         * elf/tst-auditmod4b.c: New file.
2462         * elf/tst-auditmod5a.c: New file.
2463         * elf/tst-auditmod5b.c: New file.
2464         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2465         link-defines.sym.
2466         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2467         (La_x86_64_vector): Likewise.
2468         (La_x86_64_regs): Append lr_vector.
2469         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2470         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2471         saving and restoring SSE registers to ...
2472         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2473         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2474         <link-defines.h>.
2475         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2476         La_x86_64_regs.  Allocate extra space and jump to memory at
2477         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2478         (save_and_restore_vector_sse): New.
2479         (save_and_restore_vector_avx): Likewise.
2480         (check_avx): Likewise.
2481         (save_and_restore_vector): Likewise.
2482         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2483         HAVE_AVX_SUPPORT.
2484         * sysdeps/x86_64/link-defines.sym: New file.
2486 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2488         * elf/do-lookup.h: Removed after folding content into...
2489         * elf/dl-lookup.c: ...here.
2491         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2493 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2495         * configure.in: Check for gnu_unique_symbol symbol type.
2496         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2497         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2498         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2499         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2500         change.
2501         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2502         unique symbol table.
2503         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2504         for first namespace.
2505         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2506         unique symbol hash table.
2507         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2508         * elf/tst-unique1.c: New file.
2509         * elf/tst-unique1mod1.c: New file.
2510         * elf/tst-unique1mod2.c: New file.
2511         * elf/tst-unique2.c: New file.
2512         * elf/tst-unique2mod1.c: New file.
2513         * elf/tst-unique2mod2.c: New file.
2515 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2517         * elf/elf.h (STB_GNU_UNIQUE): Define.
2519         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2520         from...
2521         * include/inline-hashtab.h: ...here.
2522         (htab_expand): Adjust for renamed function.  Correct memory handling.
2524 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2526         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2528 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2530         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2531         (PPC_FEATURE_HAS_VSX): Likewise.
2533 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2535         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2536         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2538         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2539         aligned to 16 byte boundaries.
2540         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2541         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2542         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2544 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2546         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2547         * config.make.in (config-cflags-sse4): New variable.
2548         * configure.in: Substitute libc_cv_cc_sse4.
2549         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2550         HAVE_SSE4_SUPPORT.
2551         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2552         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2553         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2554         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2555         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2556         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2557         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2558         * sysdeps/x86_64/multiarch/strspn.S: New file.
2560 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2562         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2563         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2564         (tests): Add tst-audit3 for x86_64.
2565         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2566         ($(objpfx)tst-audit3): Define.
2567         ($(objpfx)tst-audit3.out): Define.
2568         (tst-audit3-ENV): Define.
2569         * elf/tst-audit3.c: New file.
2570         * elf/tst-auditmod3a.c: New file.
2571         * elf/tst-auditmod3b.c: New file.
2572         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2573         and restore xmm6.
2575         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2576         (__stpncpy): Renamed to ...
2577         (STPNCPY): This.
2578         (stpncpy): Create alias only if STPNCPY is not defined.
2579         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2580         defined.
2581         (strncpy): Renamed to ...
2582         (STRNCPY): This.
2583         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2584          stpncpy-c strncpy-c for string.
2585         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2586         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2587         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2588         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2589         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2590         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2592 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2594         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2595         adding to fast bin list.
2597 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2599         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2600         inet_makeaddr.  This worked only with class-based networks.
2601         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2602         Likewise.
2604         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2605         recognize all types.
2606         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2607         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2608         be in host byte order.
2610 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2612         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2613         (MODEL_OFFSET): Define.
2614         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2615         family and model.
2616         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2617         out common code into new function get_common_indeces. Determine
2618         extended family and model for Intel processors.
2620 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2622         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2623         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2624         option.
2625         * resolv/res_send.c (reopen): New function.  Broken out of...
2626         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2627         fallback mechanism.  If single-request fails switch to
2628         single-request-reopen mode which opens a new socket for the second
2629         request.
2631 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2633         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2634         (CHECK_SP): Use it.
2636 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2638         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2639         for saved registers.
2640         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2641         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2642         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2644 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2646         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2648 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2650         * po/id.po: Update from translation team.
2652         * po/bg.po: Update from translation team.
2654 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2656         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2657         defined.
2658         (strncmp): Renamed to STRNCMP.
2659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2660         strncmp-c for string.
2661         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2662         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2663         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2664         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2666 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2668         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2669         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2670         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2671         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2672         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2673         ifuncmain7static.c.
2674         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2675         ifuncmain7static, and ifuncmain7picstatic.
2676         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2677         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2678         $(objpfx)ifuncmain7pie.out.
2679         (modules-names): Add ifuncmod5 ifuncmod6
2680         (ifuncmod5.so-no-z-defs): Define.
2681         (ifuncmod6.so-no-z-defs): Define.
2682         (CFLAGS-ifuncmain5pic.c): Define.
2683         (CFLAGS-ifuncmain5picstatic.c): Define.
2684         (CFLAGS-ifuncmain5staticpic.c): Define.
2685         (CFLAGS-ifuncdep5pic.c): Define.
2686         (CFLAGS-ifuncmain7pic.c): Define.
2687         (CFLAGS-ifuncmain7picstatic.c): Define.
2688         (CFLAGS-ifuncmain1staticpie.c): Define.
2689         (CFLAGS-ifuncmain5pie.c): Define.
2690         (CFLAGS-ifuncmain6pie.c): Define.
2691         (CFLAGS-ifuncmain7pie.c): Define.
2692         ($(objpfx)ifuncmain1staticpie.out): Define.
2693         ($(objpfx)ifuncmain1staticpie): Define.
2694         ($(objpfx)ifuncmain5pie.out): Define.
2695         ($(objpfx)ifuncmain5pie): Define.
2696         ($(objpfx)ifuncmain6pie.out): Define.
2697         ($(objpfx)ifuncmain6pie): Define.
2698         ($(objpfx)ifuncmain5): Define.
2699         ($(objpfx)ifuncmain5pic): Define.
2700         ($(objpfx)ifuncmain5static): Define.
2701         ($(objpfx)ifuncmain5staticpic): Define.
2702         ($(objpfx)ifuncmain5picstatic): Define.
2703         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2704         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2705         ifuncmain6pie.out.
2706         * elf/b/elf/ifuncmain1staticpie.c: New file.
2707         * elf/ifuncdep5.c: New file.
2708         * elf/ifuncdep5pic.c: New file.
2709         * elf/ifuncmain5.c: New file.
2710         * elf/ifuncmain5pic.c: New file.
2711         * elf/ifuncmain5picstatic.c: New file.
2712         * elf/ifuncmain5pie.c: New file.
2713         * elf/ifuncmain5static.c: New file.
2714         * elf/ifuncmain5staticpic.c: New file.
2715         * elf/ifuncmain6pie.c: New file.
2716         * elf/ifuncmain7.c: New file.
2717         * elf/ifuncmain7pic.c: New file.
2718         * elf/ifuncmain7picstatic.c: New file.
2719         * elf/ifuncmain7pie.c: New file.
2720         * elf/ifuncmain7static.c: New file.
2721         * elf/ifuncmod5.c: New file.
2722         * elf/ifuncmod6.c: New file.
2724 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2726         [BZ #10085]
2727         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2728         (nss_endgrent): New variable.
2729         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2730         fields. Change type of files to bool and adjust all users.
2731         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2732         (internal_endgrent): Call nss_endgrent if necessary.
2733         (add_group): New function.  Broken out of...
2734         (check_and_add_group): ...here.
2735         (getgrent_next_nss): Remove test that any callback is available.
2736         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2737         callback.  If there is no blacklist we can trust the results returned
2738         by the initgroups_dyn callback.  In case there is a callback and we
2739         find a group entry for the group ID but it doesn't contain the
2740         correct member, switch to the slow mode and use getgrent_r.
2741         (internal_getgrent_r): When we see a +: entry, determine whether
2742         there is any callback and which we can use the initgroups_dyn
2743         callback.
2745 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2747         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2748         (_int_free): Likewise.
2750         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2751         AF_IEEE802154.
2752         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2753         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2754         and ARPHRD_IEEE802154_PHY.
2756         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2757         relative to generic Linux version.
2759 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2761         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2762         ($(objpfx)ifuncmain1vispie): Likewise.
2764 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2766         * login/Makefile: Build pt_chown as PIE.
2768 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2770         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2771         a format string.
2772         * elf/sln.c (usage): Likewise.
2773         * malloc/memusage.sh (do_help): Likewise.
2774         * nss/getent.c (more_help): Likewise.
2775         * posix/getconf.c (main): Likewise.
2776         * sunrpc/rpcinfo.c (usage): Likewise.
2777         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2779 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2781         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2782         those needed.
2783         * login/Makefile: If necessary link pt_chown with -lcap.
2784         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2785         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2787 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2789         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2790         comparisons.
2791         * string/test-memchr.c (do_random_tests): Test very large lengths
2792         as well.
2794 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2796         * Makeconfig (+link-pie): Define.
2797         (+prectorS): Define.
2798         (+postctorS): Define.
2799         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2800         * nscd/Makefile ($(objpfx)nscd): Likewise.
2802 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2804         [BZ #10107]
2805         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2806         with cmplwi.
2807         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2809 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2811         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2812         into ...
2813         * sysdeps/unix/grantpt.c: ...here.
2815 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2817         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2818         chmod if it is necessary.
2820         [BZ #10166]
2821         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2822         when the slave device is in devpts or devfs.
2824         [BZ #10183]
2825         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2827         [BZ #10195]
2828         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2829         of nd_opt_home_agent_info_preference to uint16_t.
2830         Patch by Arnaud Ebalard <arno@natisbad.org>.
2832         [BZ #10207]
2833         * nss/getent.c: Add support for printing gshadow data.
2835         [BZ #10203]
2836         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2837         not just the currently used one and those which follow.
2838         Patch by Joe Landers <jlanders@vmware.com>.
2840         [BZ #10196]
2841         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2842         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2843         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2845         [BZ #10217]
2846         * stdlib/abort.c: Define variable __abort_msg.
2847         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2848         * include/stdlib.h: Declare __abort_msg.
2849         * assert/assert-perr.c: Don't free buffer for message immediately.
2850         Store atomically in __abort_msg and free old buffer if necessary.
2851         * assert/assert.c: Likewise.
2852         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2853         store pointer in __abort_msg, and possibly free old string.
2854         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2856         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2858         [BZ #10211]
2859         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2860         handle leap seconds if they are available.
2861         Patch by Akinori Hattori <hattya@gentoo.org>.
2863         * timezone/tzselect.ksh: Update from tzcode2009i.
2864         * timezone/zdump.c: Likewise.
2865         * timezone/zic.c: Likewise.
2867         * timezone/africa: Update from tzdata2009i.
2868         * timezone/antarctica: Likewise.
2869         * timezone/asia: Likewise.
2870         * timezone/australasia: Likewise.
2871         * timezone/backward: Likewise.
2872         * timezone/etcetera: Likewise.
2873         * timezone/europe: Likewise.
2874         * timezone/factory: Likewise.
2875         * timezone/iso3166.tab: Likewise.
2876         * timezone/leapseconds: Likewise.
2877         * timezone/northamerica: Likewise.
2878         * timezone/pacificnew: Likewise.
2879         * timezone/solar87: Likewise.
2880         * timezone/solar88: Likewise.
2881         * timezone/solar89: Likewise.
2882         * timezone/southamerica: Likewise.
2883         * timezone/systemv: Likewise.
2884         * timezone/yearistype: Likewise.
2885         * timezone/zone.tab: Likewise.
2887 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2889         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2890         STT_GNU_IFUNC symbol or in 8 into type_class.
2892         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2893         instead of Elf64_Addr.
2895 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2897         * po/sv.po: Update from translation team.
2899         [BZ #10229]
2900         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2901         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2902         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2903         the C version.
2905 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2907         * Versions.def: Add GLIBC_2.11 for libpthread.
2909 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2911         * resolv/res_send.c (send_dg): Remember we switched to
2912         single-request mode.
2914 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2916         * dlfcn/dlfcn.h: Remove comma at end of enum.
2917         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2919         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2920         parsing mode string.
2922 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2924         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2926         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2928         * sysdeps/x86_64/multiarch/strlen.S: New file.
2929         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2930         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2931         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2932         content.
2934         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2935         is defined.
2937 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2939         * sysdeps/x86_64/strlen.S: Minor optimizations.
2941 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2943         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2944         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2945         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2946         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2947         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2948         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2949         ifuncmain3.c, ifuncmod3.c,.
2950         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2951         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2952         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2953         ifuncmain4picstatic.
2954         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2955         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2956         ifuncmain3, ifuncmain4.
2957         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2958         $(objpfx)ifuncmain1vispie.out.
2959         (modules-names): Add ifuncmod1 ifuncmod3.
2960         (generated): Add ifuncmain1pie ifuncmain1pie.out
2961         ifuncmain1vispie ifuncmain1vispie.out.
2962         Define rules to build and run the tests.
2963         * elf/ifuncdep1.c: New file.
2964         * elf/ifuncdep1pic.c: New file.
2965         * elf/ifuncdep2.c: New file.
2966         * elf/ifuncdep2pic.c: New file.
2967         * elf/ifuncmain1.c: New file.
2968         * elf/ifuncmain1pic.c: New file.
2969         * elf/ifuncmain1picstatic.c: New file.
2970         * elf/ifuncmain1pie.c: New file.
2971         * elf/ifuncmain1static.c: New file.
2972         * elf/ifuncmain1staticpic.c: New file.
2973         * elf/ifuncmain1vis.c: New file..
2974         * elf/ifuncmain1vispic.c: New file..
2975         * elf/ifuncmain1vispie.c: New file.
2976         * elf/ifuncmain2.c: New file.
2977         * elf/ifuncmain2pic.c: New file.
2978         * elf/ifuncmain2picstatic.c: New file.
2979         * elf/ifuncmain2static.c: New file.
2980         * elf/ifuncmain3.c: New file.
2981         * elf/ifuncmain4.c: New file.
2982         * elf/ifuncmain4picstatic.c: New file.
2983         * elf/ifuncmain4static.c: New file.
2984         * elf/ifuncmod1.c: New file.
2985         * elf/ifuncmod3.c: New file.
2987 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2989         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2991 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2993         [BZ #10221]
2994         * posix/Makefile (routines): Add execvpe.
2995         * posix/Versions: Export execvpe for GLIBC_2.11.
2996         * posix/execvp.c: Now only a wrapper.  Move code to...
2997         * posix/execvpe.c: ...here.  New file.
2998         * posix/unistd.h: Declare execvpe.
3000 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3002         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3003         for STT_GNU_IFUNC handling for efficiency.
3004         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3006         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3007         _exit.
3008         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3010 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3012         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3013         for !SHARED.
3015 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3017         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3018         is not defined.
3019         (__rela_iplt_start): New declaration.
3020         (__rela_iplt_end): Likewise.
3021         (__rel_iplt_start): Likewise.
3022         (__rel_iplt_end): Likewise.
3023         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3024         * elf/elf.h (R_386_IRELATIVE): New macro.
3025         (R_X86_64_IRELATIVE): New macro.
3026         (R_386_NUM): Updated.
3027         (R_X86_64_NUM): Likewise.
3028         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3029         (libc_ifunc_hidden_def): New macro.
3030         * sysdeps/generic/dl-irel.h: New file.
3031         * sysdeps/i386/dl-irel.h: New file.
3032         * sysdeps/x86_64/dl-irel.h: New file.
3033         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3034         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3035         Handle R_386_IRELATIVE.
3036         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3037         (elf_machine_lazy_rela): Likewise.
3038         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3039         R_X86_64_IRELATIVE.
3040         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3042 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3044         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3045         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3046         are no differences.  If an architecture has bits in CPUID index 1
3047         meaning different things the values for the COMMON_CPUID_INDEX_1
3048         index must not be set.
3049         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3050         (HAS_POPCOUNT): ...this.  New macro.
3051         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3052         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3053         to set the value for Intel and AMD architectures.
3054         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3055         INTEL_CPUID_INDEX_1.
3056         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3057         change.
3059 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3061         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3062         and $build.
3064 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3066         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3067         (__expm1l): Set errno to ERANGE on overflow.
3068         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3069         (__tanl): Set errno to EDOM for Â±Inf.
3070         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3071         (__cosl): Set errno to EDOM for Â±Inf.
3072         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3073         (__sinl): Set errno to EDOM for Â±Inf.
3075         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3076         defined, use it.
3077         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3078         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3079         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3081 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3083         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3084         code accessing it.
3085         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3087 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3089         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3090         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3091         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3092         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3094         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3095         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3096         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3097         defined.
3098         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3099         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3101 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3103         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3104         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3105         is, either do nothing at all if __ASSUME_ACCEPT4, or
3106         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3107         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3108         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3109         define.
3110         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3111         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3112         internal_accept4 in socket directory.
3114 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3116         * sysdeps/ia64/configure.in: New file.
3118 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3120         [BZ #10162]
3121         * sysdeps/ia64/memchr.S: Use speculative load.
3123         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3124         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3125         use it.
3127         * sysdeps/i386/__longjmp.S: Add .text.
3128         * sysdeps/x86_64/__longjmp.S: Likewise.
3130 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3132         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3133         __ASSUME_ACCEPT4 for IA-64.
3135 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3137         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3139         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3140         (SOCKOP_accept4): Define.
3142 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3144         Sun approved the change of the license.
3145         * sunrpc/auth_des.c: Replace license text.
3146         * sunrpc/auth_none.c: Likewise.
3147         * sunrpc/auth_unix.c: Likewise.
3148         * sunrpc/authdes_prot.c: Likewise.
3149         * sunrpc/authuxprot.c: Likewise.
3150         * sunrpc/bindrsvprt.c: Likewise.
3151         * sunrpc/clnt_gen.c: Likewise.
3152         * sunrpc/clnt_perr.c: Likewise.
3153         * sunrpc/clnt_raw.c: Likewise.
3154         * sunrpc/clnt_simp.c: Likewise.
3155         * sunrpc/clnt_tcp.c: Likewise.
3156         * sunrpc/clnt_udp.c: Likewise.
3157         * sunrpc/clnt_unix.c: Likewise.
3158         * sunrpc/des_crypt.c: Likewise.
3159         * sunrpc/des_soft.c: Likewise.
3160         * sunrpc/get_myaddr.c: Likewise.
3161         * sunrpc/getrpcport.c: Likewise.
3162         * sunrpc/key_call.c: Likewise.
3163         * sunrpc/key_prot.c: Likewise.
3164         * sunrpc/openchild.c: Likewise.
3165         * sunrpc/pm_getmaps.c: Likewise.
3166         * sunrpc/pm_getport.c: Likewise.
3167         * sunrpc/pmap_clnt.c: Likewise.
3168         * sunrpc/pmap_prot.c: Likewise.
3169         * sunrpc/pmap_prot2.c: Likewise.
3170         * sunrpc/pmap_rmt.c: Likewise.
3171         * sunrpc/rpc/auth.h: Likewise.
3172         * sunrpc/rpc/auth_unix.h: Likewise.
3173         * sunrpc/rpc/clnt.h: Likewise.
3174         * sunrpc/rpc/des_crypt.h: Likewise.
3175         * sunrpc/rpc/key_prot.h: Likewise.
3176         * sunrpc/rpc/netdb.h: Likewise.
3177         * sunrpc/rpc/pmap_clnt.h: Likewise.
3178         * sunrpc/rpc/pmap_prot.h: Likewise.
3179         * sunrpc/rpc/pmap_rmt.h: Likewise.
3180         * sunrpc/rpc/rpc.h: Likewise.
3181         * sunrpc/rpc/rpc_des.h: Likewise.
3182         * sunrpc/rpc/rpc_msg.h: Likewise.
3183         * sunrpc/rpc/svc.h: Likewise.
3184         * sunrpc/rpc/svc_auth.h: Likewise.
3185         * sunrpc/rpc/types.h: Likewise.
3186         * sunrpc/rpc/xdr.h: Likewise.
3187         * sunrpc/rpc_clntout.c: Likewise.
3188         * sunrpc/rpc_cmsg.c: Likewise.
3189         * sunrpc/rpc_common.c: Likewise.
3190         * sunrpc/rpc_cout.c: Likewise.
3191         * sunrpc/rpc_dtable.c: Likewise.
3192         * sunrpc/rpc_hout.c: Likewise.
3193         * sunrpc/rpc_main.c: Likewise.
3194         * sunrpc/rpc_parse.c: Likewise.
3195         * sunrpc/rpc_parse.h: Likewise.
3196         * sunrpc/rpc_prot.c: Likewise.
3197         * sunrpc/rpc_sample.c: Likewise.
3198         * sunrpc/rpc_scan.c: Likewise.
3199         * sunrpc/rpc_scan.h: Likewise.
3200         * sunrpc/rpc_svcout.c: Likewise.
3201         * sunrpc/rpc_tblout.c: Likewise.
3202         * sunrpc/rpc_util.c: Likewise.
3203         * sunrpc/rpc_util.h: Likewise.
3204         * sunrpc/rpcinfo.c: Likewise.
3205         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3206         * sunrpc/rpcsvc/key_prot.x: Likewise.
3207         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3208         * sunrpc/rpcsvc/mount.x: Likewise.
3209         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3210         * sunrpc/rpcsvc/rex.x: Likewise.
3211         * sunrpc/rpcsvc/rstat.x: Likewise.
3212         * sunrpc/rpcsvc/rusers.x: Likewise.
3213         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3214         * sunrpc/rpcsvc/spray.x: Likewise.
3215         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3216         * sunrpc/rtime.c: Likewise.
3217         * sunrpc/svc.c: Likewise.
3218         * sunrpc/svc_auth.c: Likewise.
3219         * sunrpc/svc_authux.c: Likewise.
3220         * sunrpc/svc_raw.c: Likewise.
3221         * sunrpc/svc_run.c: Likewise.
3222         * sunrpc/svc_simple.c: Likewise.
3223         * sunrpc/svc_tcp.c: Likewise.
3224         * sunrpc/svc_udp.c: Likewise.
3225         * sunrpc/svc_unix.c: Likewise.
3226         * sunrpc/svcauth_des.c: Likewise.
3227         * sunrpc/xcrypt.c: Likewise.
3228         * sunrpc/xdr.c: Likewise.
3229         * sunrpc/xdr_array.c: Likewise.
3230         * sunrpc/xdr_float.c: Likewise.
3231         * sunrpc/xdr_mem.c: Likewise.
3232         * sunrpc/xdr_rec.c: Likewise.
3233         * sunrpc/xdr_ref.c: Likewise.
3234         * sunrpc/xdr_sizeof.c: Likewise.
3235         * sunrpc/xdr_stdio.c: Likewise.
3237         * po/da.po: Update from translation team.
3239 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3241         * sysdeps/sh/____longjmp_chk.S: New file.
3242         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3243         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3245 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3246             Ulrich Drepper  <drepper@redhat.com>
3248         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3249         (__nscd_cache_search): Assume each entry in the
3250         hash chain needs one hashentry and half of datahead.  Use
3251         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3253 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3255         * posix/sys/wait.h: Fix typos.  Pretty printing.
3256         * stdlib/stdlib.h: Likewise.  Correct comments.
3258         [BZ #10159]
3259         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3261         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3262         patch.
3264 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3266         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3267         Use it if we absolutely cannot reach any more correct list elements
3268         because that many do not fit into the currently mapped database.
3270 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3272         * nscd/nscd_helper.c: Include stddef.h.
3273         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3274         in a couple of places.  Return NULL if trail is not less than
3275         datasize, don't consider dataheads with length smaller than
3276         offsetof (struct datahead, data) + datalen.
3277         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3278         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3279         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3280         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3281         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3282         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3283         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3285         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3286         Rename ...
3287         (fallocate64): ... to this.
3288         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3289         Rename ...
3290         (fallocate64): ... to this.
3291         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3292         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3293         fallocate64@@GLIBC_2.10.
3294         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3295         fallocate64@@GLIBC_2.11.
3296         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3298         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3299         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3301         * nscd/selinux.c (nscd_avc_destroy): Removed.
3302         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3303         * nscd/nscd.c (termination_handler): Don't call
3304         nscd_avc_destroy.
3306 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3308         * include/atomic.h: Formatting.
3309         (catomic_compare_and_exchange_val_acq): Don't define if already
3310         defined by bits/atomic.h.
3312 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3314         * math/libm-test.inc (expm1_test): Add test for range error.
3316         * Versions.def: Add GLIBC_2.11 for libc.
3317         * debug/Makefile (routines): Add longjmp_chk.
3318         Add rules to build and run tst-longjmp_chk.
3319         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3320         * debug/longjmp_chk.c: New file.
3321         * debug/tst-longjmp_chk.c: New file.
3322         * include/bits/setjmp2.: New file.
3323         * include/stdio.h: Mark __fortify_fail as internal_function.
3324         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3325         * setjmp/bits/setjmp2.h: New file.
3326         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3327         of the aliases.
3328         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3329         defined.
3330         * sysdeps/i386/____longjmp_chk.S: New file.
3331         * sysdeps/x86_64/____longjmp_chk.S: New file.
3332         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3333         * sysdeps/x86_64/__longjmp.S: Likewise.
3335         * version.h: Bump for 2.11 development.
3337         * elf/check-execstack.c: New file.
3338         * elf/Makefile: Add rules to build and run check-execstack.
3340 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3342         * version.h (VERSION): Bump to 2.10.1.
3344         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3345         compatibility functions.
3346         * nss/getXXent_r.c: Likewise.
3347         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3348         * gshadow/getsgnam_r.c: Likewise.
3349         * gshadow/Version: Remove duplicate entries.
3351         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3352         for recent processor.
3353         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3354         Likewise.
3356 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3358         * version.h (VERSION): Bump for 2.10 release.
3359         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3361         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3362         same place we add ASFLAGS-config.
3364 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3366         [BZ #10128]
3367         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3368         or FORMERR and the other NOERROR, don't raise an error.
3370 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3372         [BZ #10118]
3373         * Makeconfig (+asflags): New variable based upon ASFLAG or
3374         asflags-cpu.
3375         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3376         * config.make.in (asflags-cpu): Add variable based upon
3377         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3378         the assembler.
3379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3380         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3381         recognizes power6 instruction set due to passing -mcpu=power6 from
3382         --with-cpu=power6 when compiling .S files.
3383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3384         Likewise.
3385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3386         Likewise.
3387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3388         Likewise.
3390 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3392         * string/stratcliff.c (do_test): Test for zero length
3393         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3394         at the end of the page.
3396 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3398         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3400         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3401         count is zero.
3403         * po/da.po: Update from translation team.
3405 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3407         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3408         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3410 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3412         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3413         and READ_IMPLIES_EXEC.
3415 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3417         * po/da.po: Update from translation team.
3419 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3421         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3422         comment change.
3424 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3426         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3427         to MAP_ANON in PROT_NONE mmap64 call.
3428         (open_archive): Likewise.
3429         (file_data_available_p): Use mmap64 instead of mremap.
3430         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3431         Attempt to reserve address space after mmap64 region.
3433 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3435         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3436         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3437         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3439         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3440         atanh should set ERANGE.
3442         [BZ #10087]
3443         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3444         result of lookup to make call to implement STT_GNU_IFUNC.
3445         (_dl_profile_fixup): Likewise.
3446         Patch by H.J. Lu <hjl.tools@gmail.com>.
3448         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3449         warning.
3451         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3452         from definition.
3454         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3455         label if it is not used.
3457         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3458         of gmon_hist_hdr and gmon_hdr structures and use them.
3459         * elf/sprof.c: Likewise.
3461         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3462         warning.
3464         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3466         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3467         to avoid cast.
3469         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3470         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3471         to avoid warnings.
3472         (iruserok_af): Use ss_family instead of casts.
3474         * gmon/gmon.c (write_hist): Define real-type variant of
3475         gmon_hist_hdr structure and use it.
3476         (write_gmon): Likewise for gmon_hdr.
3478         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3479         function if we are not going to define it.
3480         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3482         * inet/inet6_option.c (option_alloc): Add temporary variable to
3483         avoid warning.
3485         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3486         name of VTable element.
3487         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3488         * libio/iovsscanf.c: Likewise.
3489         * libio/vasprintf.c: Likewise.
3490         * libio/vsnprintf.c: Likewise.
3491         * stdio-common/isoc99_vsscanf.c: Likewise.
3492         * stdlib/strfmon_l.c: Likewise.
3493         * debug/vasprintf_chk.c: Likewise.
3494         * debug/vsnprintf_chk.c: Likewise.
3495         * debug/vsprintf_chk.c: Likewise.
3497         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3498         function pointers.
3500 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3502         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3504 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3506         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3508         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3509         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3510         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3511         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3512         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3513         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3514         * math/libm-test.inc: Add tests for errno after tan calls with
3515         Â±Inf.
3517         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3518         errno value vor pow(+-0,neg).
3519         * math/libm-test.inc (pow_test): Add tests for errno value for
3520         pole errors.
3522         * math/w_fmod.c: Also handle x=±Inf as error.
3523         * math/w_fmodf.c: Likewise.
3524         * math/w_fmodl.c: Likewise.
3525         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3526         x=±Inf or y=0.
3528         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3529         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3530         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3531         * sysdeps/i386/fpu/s_sin.S: Likewise.
3532         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3533         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3534         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3535         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3536         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3537         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3538         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3539         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3540         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3541         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3542         Â±Inf.
3544         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3545         ERANGE for underflows.
3546         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3548         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3549         the 2001 revision.
3551         * libio/tst-widetext.input: Remove surrogates.
3553         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3555         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3556         for lgamma should set errno to ERANGE, not EDOM.
3557         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3559 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3561         [BZ #10093]
3562         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3563         UTF-16 surrogates.
3565         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3566         space when temporarily mapping the whole content of the old file.
3568         [BZ #10100]
3569         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3570         not zero.
3572 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3574         * iconvdata/sjis.c (BODY): Don't advance inptr before
3575         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3576         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3577         two byte chars.
3579 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3581         * locale/locarchive.h (struct locarhandle): Rename len field to
3582         mmaped and add new reserved field.
3583         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3584         (create_archive): Reserve address space and then map file into it.
3585         (open_archive): Likewise.
3586         (file_data_available_p): New function.
3587         (compare_from_file): New function.
3588         (close_archive): Adjust to member name changes.
3589         (add_locale): Before comparing locale data, check it is mapped.
3590         Otherwise fall back to reading from the file.
3592 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3594         * stdio-common/psiginfo.c: Include <errno.h>.
3596 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3598         [BZ #9920]
3599         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3600         to get consistency between 32 and 64 bit architectures.
3602         [BZ #10052]
3603         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3604         directory for dummy syscall rules.
3605         Patch by Chris Steinbroner <hesh@pobox.com>.
3607 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3609         [BZ #10092]
3610         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3611         MNT_EXPIRE.
3613 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3615         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3616         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3618 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3620         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3621         data from vector to temporary buffer and call PWRITEV after it
3622         instead of vice versa.
3623         * sysdeps/posix/preadv.c: Fix up comment.
3624         * misc/preadv.c: Likewise.
3625         * misc/preadv64.c: Likewise.
3626         * misc/pwritev.c: Likewise.
3627         * misc/pwritev64.c: Likewise.
3628         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3630 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3632         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3634         * shadow/Makefile (tests): Add tst-shadow.
3635         * shadow/tst-shadow.c: New file.
3637         [BZ #9955]
3638         * gshadow/Makefile: New file.
3639         * gshadow/Versions: New file.
3640         * gshadow/fgetsgent.c: New file.
3641         * gshadow/fgetsgent_r.c: New file.
3642         * gshadow/getsgent.c: New file.
3643         * gshadow/getsgent_r.c: New file.
3644         * gshadow/getsgnam.c: New file.
3645         * gshadow/getsgnam_r.c: New file.
3646         * gshadow/gshadow.h: New file.
3647         * gshadow/putsgent.c: New file.
3648         * gshadow/sgetsgent.c: New file.
3649         * gshadow/sgetsgent_r.c: New file.
3650         * gshadow/tst-gshadow.c: New file.
3651         * include/gshadow.h: New file.
3652         * Makeconfig (all-subdirs): Add gshadow.
3653         * Makefile (installed-headers): Add gshadow/gshadow.h.
3654         * nss/Makefile (databases): Add sgrp.
3655         * nss/Versions: Add gshadow functions as private exports.
3656         * nss/nsswitch.conf: Add gshadow entry.
3657         * nss/sgrp-lookup.c: New file.
3658         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3659         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3660         * nss/nss_files/files-sgrp.c: New file.
3661         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3662         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3664 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3666         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3667         * stdio-common/reg-modifier.c: Likewise.
3669 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3671         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3672         is no FPU.
3674 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3676         [BZ #10086]
3677         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3678         headers up to 2.6.30.
3680         * po/ca.po: Update from translation team.
3682 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3684         [BZ #10069]
3685         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3686         an object that uses static TLS if the TLS modid is higher than the
3687         reserve we always allocate.  At least for multi-threaded code.
3689 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3691         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3692         Numerically stable check for valid width.
3694         * locale/programs/locarchive.c (open_archive): Map the entire file
3695         and not just the administrative data.
3696         (add_locale): When we find a hash sum match compare the content
3697         to be sure.
3699         * malloc/malloc.c (malloc_info): Output address space information.
3701 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3703         * malloc/malloc.c (malloc_info): Also output system memory information.
3705         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3706         architectures have preadv/pwritev in 2.6.30.
3708         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3709         * sysdeps/posix/readv.c: Likewise.
3710         Reported by Markus Armbruster <armbru@redhat.com>.
3712         * malloc/hooks.c (top_check): Force hook value into register.
3714 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3716         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3717         calls to _dl_relocate_object.
3719 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3721         [BZ #9957]
3722         * malloc/malloc.c (force_reg): Define.
3723         (sYSMALLOc): Load hook variable into variable
3724         before test and force into register.
3725         (sYSTRIm): Likewise.
3726         (public_mALLOc): Force hook value into register.
3727         (public_fREe): Likewise.
3728         (public_rEALLOc): Likewise.
3729         (public_mEMALIGn): Likewise.
3730         (public_vALLOc): Likewise.
3731         (public_pVALLOc): Likewise.
3732         (public_cALLOc): Likewise.
3733         (__posix_memalign): Likewise.
3734         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3735         before test and force into register.
3736         * malloc/hooks.c (top_check): Likewise.
3737         (public_sET_STATe): Pretty printing.
3739         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3740         in case we only receive one reply in single-request mode.
3742 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3744         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3745         are dlopened in statically linked program even for __LM_ID_CALLER.
3747 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3749         * resolv/res_send.c (send_dg): Don't switch into single-request
3750         mode if we already are in it.
3752 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3754         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3755         are always at least 4 bytes in the returned line.
3757 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3759         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3760         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3761         instead of 8K.  Stop searching in /proc/stat after hitting first
3762         line not starting with cpu.
3763         (next_line): Truncate too long
3764         lines at buffer size * 3/4 instead of pretending there were line
3765         breaks inside of large lines.
3767 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3769         * sysdeps/x86_64/mp_clz_tab.c: New file.
3771 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3772             Ulrich Drepper  <drepper@redhat.com>
3774         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3775         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3776         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3778 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3780         * sysdeps/sh/libc-tls.c: New file.
3782         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3784 2009-04-14  Roland McGrath  <roland@redhat.com>
3786         * elf/elf.h: Add various missing ARM constants, to match binutils.
3788 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3790         Optimizations from GMP.
3791         * sysdeps/x86_64/add_n.S: New file.
3792         * sysdeps/x86_64/addmul_1.S: New file.
3793         * sysdeps/x86_64/lshift.S: New file.
3794         * sysdeps/x86_64/mul_1.S: New file.
3795         * sysdeps/x86_64/rshift.S: New file.
3796         * sysdeps/x86_64/sub_n.S: New file.
3797         * sysdeps/x86_64/submul_1.S: New file.
3799 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3801         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3802         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3803         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3804         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3806 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3808         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3809         preadv/pwritev.
3811 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3813         * sysdeps/x86-64/strrchr.S: New file.
3815 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3817         * stdio-common/printf.h (struct printf_info): Add user element.
3818         New types printf_arginfo_size_function, printf_va_arg_function.
3819         Declare register_printf_specifier, register_printf_modifier,
3820         register_printf_type.
3821         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3822         (union printf_arg): Add pa_user element.
3823         Adjust __printf_arginfo_table type.
3824         Add __printf_va_arg_table, __printf_modifier_table,
3825         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3826         declarations.
3827         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3828         If registered arginfo call failed try normal specifier.
3829         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3830         function.
3831         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3832         * stdio-common/Versions: Export register_printf_modifier,
3833         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3834         * stdio-common/reg-modifier.c: New file.
3835         * stdio-common/reg-type.c: New file.
3836         * stdio-common/reg-printf.c (__register_printf_specifier): New
3837         function.  Mostly the old __register_printf_function function but
3838         uses locking and type of third parameter changed.
3839         (__register_printf_function): Implement using
3840         __register_printf_specifier.
3841         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3842         calls to arginfo functions.  Allocate enough memory for user-defined
3843         types.  Call new va_arg functions to get user-defined types.
3844         Try installed handlers even for existing format specifiers first.
3846 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3848         * sysdeps/x86_64/rawmemchr.S: New file.
3850         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3851         Simplified code and possible copy problem fixed.
3853         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3854         function if it is not defined.  Add some necessary casts.
3855         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3857         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3858         have preadv/pwritev in 2.6.30.
3860 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3862         * malloc/malloc.c (malloc_info): New function.
3863         * malloc/malloc.h: Declare it.
3864         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3866         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3867         to avoid PLT slot.
3869         * malloc/malloc.c (_int_realloc): Add parameter with old block
3870         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3871         Adjust all callers.
3872         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3874 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3876         * sysdeps/x86_64/strchrnul.S: New file.
3878         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3879         depending libcrypt on -lfreebl3.
3881         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3882         preadv/pwritev in 2.6.30.
3884         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3885         instead of __strcasecmp.
3887         * string/stratcliff.c (do_test): Add memchr tests..
3888         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3889         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3890         first read quad word.
3892 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3894         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3895         * string/tst-svc.input: Add new test case.
3896         * string/tst-svc.expect: Adjust.
3897         * string/Makefile: Don't ignore tst-svc error.
3899         * sysdeps/x86_64/memchr.S: New file.
3901         * resolv/resolv.h (RES_SNGLKUP): Define.
3902         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3903         * resolv/res_send.c (send_dg): If we sent two requests at once and
3904         only get one reply before timeout switch to mode where we send the
3905         second request only after the first answer has been received.
3907 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3909         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3910         * sysdeps/x86_64/strchr.S: Likewise.
3912 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3914         * configure.in: We need to test for the compiler earlier.
3916         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3917         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3918         GLIBC_2.10.
3919         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3920         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3921         and pwritev.
3922         * misc/preadv.c: New file.
3923         * misc/preadv64.c: New file.
3924         * misc/pwritev.c: New file.
3925         * misc/pwritev64.c: New file.
3926         * sysdeps/posx/preadv.c: New file.
3927         * sysdeps/posx/preadv64.c: New file.
3928         * sysdeps/posx/pwritev.c: New file.
3929         * sysdeps/posx/pwritev64.c: New file.
3930         * sysdeps/unix/sysv/linux/preadv.c: New file.
3931         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3932         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3933         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3934         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3935         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3937         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3938         compatibility code.
3939         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3941         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3942         __ASSUME_COMPLETE_READV_WRITEV.
3943         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3944         with modern kernels.
3945         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3947         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3948         to free a possible malloced buffer in case of cancellation.
3949         * sysdeps/posix/writev.c: Likewise for write.
3951 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3953         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3955         * configure.in: Recognize --enable-nss-crypt.
3956         * config.make.in: Add nss-crypt entry.
3957         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3958         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3959         and include path for NSS directory to compiler for md5-crypt,
3960         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3961         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3962         function implementation, use NSS.  Introduce wrappers around the
3963         hash function calls.  Little code size optimization.
3964         * crypt/sha256-crypt.c: Likewise.
3965         * crypt/sha512-crypt.c: Likewise.
3966         * scripts/check-local-headers.sh: Ignore nss3 directory.
3968         * configure.in: Rename pic_default to libc_cv_pic_default.
3969         * config.make.in: Likewise.
3971 2009-04-01  Roland McGrath  <roland@redhat.com>
3973         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3974         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3975         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3976         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3977         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3978         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3979         (R_SPARC_NUM): Update.
3980         From Dave Miller <davem@davemloft.net>.
3982 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3984         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3986 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3988         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3989         those which are used.
3990         * elf/dl-addr.c: Likewise.
3991         * elf/dl-caller.c: Likewise.
3992         * elf/dl-fini.c: Likewise.
3993         * elf/dl-iteratephdr.c: Likewise.
3994         * elf/dl-libc.c: Likewise.
3995         * elf/dl-load.c: Likewise.
3996         * elf/dl-support.c: Likewise.
3997         * elf/dl-sym.c: Likewise.
3998         * elf/rtld.c: Likewise.
3999         * sysdeps/generic/ldsodefs.h: Likewise.
4001         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4002         * elf/dl-minimal.c: Likewise.
4003         * elf/dl-misc.c: Likewise.
4004         * elf/rtld.c: Likewise.
4005         * sysdeps/generic/ldsodefs.h: Likewise.
4007 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4009         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4010         Avoid reuse of complex expression.
4012         * po/fr.po: Update from translation team.
4014 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4016         * include/dirent.h: Yet more changes to match sort function type
4017         change.
4018         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4019         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4020         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4022 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4024         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4026 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4028         * nscd/connections.c (restart): Try to preserve the process name
4029         by reading the /proc/self/exe symlink and using the return name.
4030         Patch by Jeff Bastian <jbastian@redhat.com>.
4032 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4034         [BZ #9733]
4035         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4036         if we are not loading a new audit library.
4037         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4038         Only use profiling trampoline for auditing if we are not relocating
4039         an audit library.
4040         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4041         * elf/rtld.c: Likewise.
4042         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4044         * elf/rtld.c (dl_main): Extend help message for --audit option.
4046         [BZ #9759]
4047         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4048         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4049         * dirent/alphasort.c: Adjust implementation to type change.
4050         * dirent/alphasort64.c: Likewise.
4051         * dirent/scandir.c: Likewise.
4052         * dirent/versionsort.c: Likewise.
4053         * dirent/versionsort64.c: Likewise.
4054         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4055         declaration.
4056         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4057         declaration.
4059         [BZ #9880]
4060         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4061         correctly.  Set segleft member in output as required.
4062         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4063         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4065         [BZ #9881]
4066         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4067         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4068         * inet/Makefile (tests): Add tst-inet6_rth.
4069         * inet/tst-inet6_rth.c: New file.
4071         [BZ #5807]
4072         * string/strlen.c (strlen): Fix omission in the expression to test
4073         for NUL bytes.
4075 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4077         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4079         * elf/dl-runtime.c (reloc_offset): Define.
4080         (reloc_index): Define.
4081         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4082         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4083         computing index from reloc_offset.
4084         (_dl_call_pltexit): Likewise.
4085         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4086         the relocation index to _dl_fixup.
4087         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4088         _dl_call_pltexit.
4089         * sysdeps/x86_64/dl-runtime.c: New file.
4091         [BZ #9893]
4092         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4093         alignment of La_x86_64_regs.  Store xmm parameters.
4094         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4096         [BZ #9913]
4097         * string/strverscmp.c (__strverscmp): Fix case of different digits
4098         in fractional part of string.
4099         Patch by Jingyu Liu <jyliu@fortinet.com>.
4100         * string/Makefile (tests): Add tst-svc2.
4101         * string/tst-svc2.c: New file.
4103         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4105         * locale/iso-639.def: Add Min Nan.
4107 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4109         [BZ #9948]
4110         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4112 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4114         * elf/dl-sysdep.c (auxvars): Compress data structure.
4116         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4117         STT_GNU_IFUNC handling.
4118         (elf_machine_rela): Likewise.
4120 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4122         * config.h.in (USE_MULTIARCH): Define.
4123         * configure.in: Handle --enable-multi-arch.
4124         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4125         (_dl_fixup_profile): Likewise.
4126         * elf/do-lookup.c (dl_lookup_x): Likewise.
4127         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4128         * elf/elf.h (STT_GNU_IFUNC): Define.
4129         * include/libc-symbols.h (libc_ifunc): Define.
4130         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4131         framework in init-arch.h to get CPUID values.
4132         * sysdeps/x86_64/multiarch/Makefile: New file.
4133         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4134         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4135         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4137         * config.make.in (experimental-malloc): Define.
4138         * configure.in: Handle --enable-experimental-malloc.
4139         * malloc/Makefile: Handle experimental-malloc flag.
4140         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4141         * malloc/arena.c: Likewise.
4142         * malloc/hooks.c: Likewise.
4143         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4145 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4147         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4148         prediction.  A few size optimizations.
4150 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4152         * time/tzset.c: Optimize a bit for size.
4154 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4156         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4157         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4159         * elf/sprof.c: Avoid warning about multi-line comment.
4161 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4163         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4164         DST name.
4165         * time/tst-posixtz.c: Add tests for quoted timezone names.
4167 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4169         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4170         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4171         200809L instead of 200112L.
4172         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4173         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4175         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4176         instead of __quick_exit_funcs to __run_exit_handlers.
4177         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4178         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4179         (__cxa_at_quick_exit): Remove attribute_hidden.
4180         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4181         to __run_exit_handlers.
4182         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4183         attribute_hidden.
4185 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4187         * po/id.po: Update from translation team.
4189 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4192         .machine push; .machine "power6" and .machine pop around mtfsf
4193         insns outside of _ARCH_PWR6 define.
4194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4196         Likewise.
4197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4198         Likewise.
4199         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4200         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4201         relax_fenv_state): Likewise.
4203 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4205         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4206         cxa_at_quick_exit.
4207         (static-only-routines): Add at_quick_exit.
4208         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4209         GLIBC_2.10.
4210         * stdlib/quick_exit.c: New file.
4211         * stdlib/at_quick_exit.c: New file.
4212         * stdlib/cxa_at_quick_exit.c: New file.
4213         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4214         it appropriately.
4215         (__internal_atexit): New function.
4216         (__new_exitfn): Now takes parameter to point to the list to use.
4217         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4218         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4219         (exit): ...here.  Just call __run_exit_handlers appropriately.
4220         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4221         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4222         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4223         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4225         * po/id.po: Update from translation team.
4227 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4229         * po/ru.po: Update from translation team.
4231 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4233         * po/nl.po: Update from translation team.
4235 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4237         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4238         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4239         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4240         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4241         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4242         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4243         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4245         * po/pl.po: Update from translation team.
4247 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4249         [BZ #7083]
4250         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4251         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4252         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4253         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4254         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4255         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4256         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4257         for GLIBC_2.10.
4258         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4259         Add fallocate and fallocate64.
4261         * io/fcntl.h: Pretty printing.
4263 2009-03-02  Richard Guenther  <rguenther@suse.de>
4265         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4266         attribute also for non-C99 inline semantics variant.
4268 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4270         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4271         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4272         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4273         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4275         Likewise.
4276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4277         Likewise.
4279 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4281         * po/cs.po: Update from translation team.
4283 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4285         * po/bg.po: Update from translation team.
4286         * po/sv.po: Likewise.
4287         * po/fi.po: Likewise.
4288         * po/vi.po: Likewise.
4290 2009-02-27  Roland McGrath  <roland@redhat.com>
4292         * Makeconfig (%.v.i): Depend on Makeconfig.
4293         Exclude % lines from initial #-comment removal.
4295 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4297         * po/ko.po: Update from translation team.
4299 2009-02-26  Roland McGrath  <roland@redhat.com>
4301         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4302         avoids unused warning.
4304 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4305             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4307         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4308         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4309         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4310         and asm/user.h.  Include asm/ptrace.h.
4311         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4312         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4313         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4314         Undefine.
4315         (start_thread): Don't undefine.
4316         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4317         Define.
4319 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4321         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4322         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4323         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4324         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4325         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4326         200112L to 200809L.
4327         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4328         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4329         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4330         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4331         _SC_THREAD_ROBUST_PRIO_PROTECT.
4332         * posix/unistd.h: fexecve is in POSIX 2008.
4333         * time/time.h: strftime_l is in POSIX 2008.
4334         * io/sys/stat.h: futimens is in POSIX 2008.
4335         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4336         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4337         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4338         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4339         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4340         open_memstream, and vdprintf are in POSIX 2008.
4342 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4344         * include/features.h: Define macros for XPG7/POSIX 2008.
4345         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4346         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4347         POSIX 2008.
4348         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4349         * locale/xlocale.h: Define locale_t type.
4350         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4351         in POSIX 2008.  Don't define locale_t here.
4352         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4353         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4354         UTIME_OMIT only with __USE_ATFILE.
4355         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4356         * stdio-common/psiginfo.c: New file.
4357         * stdio-common/psiginfo-data.h: New file.
4358         * stdio-common/psiginfo-define.h: New file.
4359         * stdio-common/Makefile (routines): Add psiginfo.
4360         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4361         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4362         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4363         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4364         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4365         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4366         * io/sys/stat.h: Move mknodat definition into same conditional as
4367         mknod.
4368         * time/sys/time.h: futimesat is not among the functions accepted
4369         into the POSIX standard.
4371         * include/features.h: If no feature selection given and we select
4372         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4373         * posix/Versions: Export __posix_getopt.
4374         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4375         Use it to alternatively initialize __posixly_correct.
4376         (_getopt_internal_r): Take addition parameter.  Pass on to
4377         _getopt_initialize.
4378         (_getopt_internal): Take addition parameter.  Pass on to
4379         _getopt_internal_r.
4380         (getopt): Pass additional zero to _getopt_internal.
4381         (__posix_getopt): New function.
4382         * posix/getopt.h: Add redirection for getopt.
4383         * posix/getopt1.c (getopt_long): Pass additional zero to
4384         _getopt_internal.
4385         (getopt_long_only): Likewise.
4386         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4387         (_getopt_long_only_r): Likewise.
4388         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4389         _getopt_internal_r.
4391 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4393         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4394         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4395         * sysdeps/posix/sysconf.c (__sysconf): Handle
4396         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4397         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4399 2009-02-24  Roland McGrath  <roland@redhat.com>
4401         [BZ #9895]
4402         * README.template: Reworded not to use substituted version number.
4403         Renamed to ...
4404         * README: ... here (no longer generated).
4405         * Makefile (README): Target removed.
4407 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4409         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4410         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4411         instead.
4413         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4415         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4417 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4419         * po/bg.po: Update from translation team.
4421 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4423         * stdlib/monetary.h: Uglify function parameter names.
4424         * sunrpc/rpc/pmap_clnt.h: Likewise.
4425         * sunrpc/rpc/svc.h: Likewise.
4426         * sunrpc/rpc/xdr.h: Likewise.
4427         * sunrpc/rpc/clnt.h: Likewise.
4428         * resolv/netdb.h: Likewise.
4429         * resolv/arpa/nameser.h: Likewise.
4430         * resolv/resolv.h: Likewise.
4431         * argp/argp.h: Likewise.
4432         * locale/langinfo.h: Likewise.
4433         * io/sys/stat.h: Likewise.
4434         * posix/spawn.h: Likewise.
4435         * nis/rpcsvc/nislib.h: Likewise.
4436         * malloc/obstack.h: Likewise.
4437         * sysdeps/ia64/bits/link.h: Likewise.
4438         * sysdeps/i386/bits/link.h: Likewise.
4439         * sysdeps/s390/bits/link.h: Likewise.
4440         * sysdeps/powerpc/bits/link.h: Likewise.
4441         * sysdeps/x86_64/bits/link.h: Likewise.
4442         * sysdeps/sparc/bits/link.h: Likewise.
4443         * sysdeps/sh/bits/link.h: Likewise.
4444         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4445         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4446         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4447         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4449 2008-12-01  Fredrik Unger  <fred@tree.se>
4451         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4452         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4453         _FP_UNPACK_RAW_2, fix up first argument.
4455 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4457         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4458         (GET_NPROCS_PARSER): Change parameters and use next_line.
4459         (__get_nprocs): Rewrite to not use stdio routines.
4460         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4461         Change parameters and use next_line.
4463 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4465         [BZ #5381]
4466         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4467         Change mempool_alloc prototype.
4468         * nscd/mem.c (gc): Don't handle mem_in_flight.
4469         (mempool_alloc): Third parameter now only indicates whether this is the
4470         first call (to allocate data) or not.  If it is, get db rdlock.
4471         Release it on error.  Don't handle mem_in_flight.
4472         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4473         Adjust third parameter of mempool_alloc calls.
4474         Nothing to do here in case mempool_alloc fails.
4475         Avoid local variable shadowing parameter.  No need to get db rdlock
4476         before calling cache_add.
4477         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4478         no mem_in_flight array anymore.
4479         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4480         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4481         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4482         in case mempool_alloc fails. No need to get db rdlock before calling
4483         cache_add.
4484         * nscd/hstcache.c (cache_addhst): Likewise.
4485         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4486         * nscd/servicescache.c (cache_addserv): Likewise.
4487         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4489 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4491         * po/lt.po: Update from translation team.
4493 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4495         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4496         defined, allow additional data to be added using the optional
4497         MORE_ELF_HEADER_DATA macro.
4498         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4499         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4501 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4503         * include/atomic.h: Define catomic_and if not already defined.
4504         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4505         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4507 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4509         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4510         Change all callers.
4511         (_int_realloc): Likewise.  Third argument is now padded size
4512         All _int_* functions are now static.
4514         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4515         * malloc/arena.c: Likewise.
4516         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4517         functions.
4519         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4520         easily.
4522         * malloc/malloc.c: Add branch prediction for use of the hooks.
4524         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4526 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4528         [BZ #7095]
4529         * bits/confname.h: Add SUSv7 macros for getconf environments.
4530         * bits/environments.h: Likewise.
4531         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4532         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4533         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4534         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4535         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4536         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4537         * posix/getconf.c: Likewise.
4538         * posix/sysconf.c: Likewise.
4539         * sysdeps/posix/sysconf.c: Likewise.
4540         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4541         environments.
4543 2009-01-16  Petr Baudis  <pasky@suse.cz>
4545         [BZ #9753]
4546         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4547         even if we currently have zero nscount.
4549 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4551         [BZ #9781]
4552         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4553         the input line is too long.
4555         * po/Makefile (libc.pot): Add f_print as function taking c-format
4556         parameter.
4558         * debug/xtrace.sh: Unify translatable messages.
4559         * elf/ldd.bash.in: Likewise.
4560         * elf/sprof.c: Likewise.
4561         * locale/programs/locale.c: Likewise.
4562         * malloc/memusage.sh: Likewise.
4563         * nss/getent.c: Likewise.
4565 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4567         * debug/pcprofiledump.c (print_version,
4568         argp_program_version_hook): New function.
4569         * elf/ldconfig.c (more_help): New function.
4570         (argp): Use it.
4571         * elf/sln.c (usage): New function.
4572         (main): Support --help and --version.
4573         * malloc/memusagestat.c (print_version): New function.
4574         (argp_program_version_hook): New variable.
4575         * nscd/nscd.c (more_help): New function.
4576         (argp): Use it.
4577         * posix/getconf.c (main): Send --version output to stdout.
4578         Support --help.
4579         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4580         arguments.  All callers changed.
4581         (print_version): New function.
4582         (parseargs): Support --help and --version.
4583         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4584         changed.
4585         (print_version): New function.
4586         (main): Use getopt_long.  Support --help and --version.
4587         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4588         --version.
4590 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4592         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4593         (update_data): Fix handling of wrapping back
4594         to the beginning of the buffer.
4596         [BZ #9823]
4597         * stdio-common/psignal.c (psignal): Fix test for empty string.
4599 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4601         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4602         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4603         move _null_auth to .rodata.
4605         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4606         value of 24.
4608         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4610         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4611         today than when the original code was written.  Use larger
4612         buffers.  This also makes it unnecessary to have stat information,
4613         if this causes extra efforts.
4614         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4615         __alloc_dir.
4617 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4619         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4620         is set.
4621         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4622         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4623         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4624         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4625         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4626         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4628 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4630         * po/ru.po: Update from translation team.
4632 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4634         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4635         Add _tid slot to maintain consistency with kernel.
4637 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4639         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4640         incomplete characters at end of input buffer.
4641         * libio/Makefile (tests): Add tst-fgetwc.
4642         * libio/tst-fgetwc.c: New file.
4643         * libio/tst-fgetwc.input: New file.
4645 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4647         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4649 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4651         [BZ #9793]
4652         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4653         *OUTBUFSTART unless the whole output fit into the buffer.
4654         * iconv/Makefile (tests): Add tst-iconv4.
4655         * iconv/tst-iconv4.c: New file.
4657 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4659         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4660         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4662 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4664         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4665         newer linker scripts.
4667 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4669         [BZ #7040]
4670         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4671         inotify_rm_watch should have type int.
4673 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4675         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4676         Make aligned_restore_vmx a local symbol.
4677         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4678         Likewise.
4680 2009-01-30  Andreas Jaeger  <aj@suse.de>
4682         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4683         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4684         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4685         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4686         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4687         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4688         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4690 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4692         [BZ #9726]
4693         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4694         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4696 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4698         [BZ #9726]
4699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4700         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4702         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4704 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4706         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4707         memcpy instead of memcmp.
4708         (_dl_setup_pointer_guard): Likewise.
4710 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4712         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4713         manipulated brk, use malloc_printerr.
4714         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4715         requests.
4717 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4719         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4720         rindex): For C++ add inlines so that they can be recognized as
4721         builtins.
4722         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4724 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4725             Jakub Jelinek  <jakub@redhat.com>
4727         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4728         * wcsmbs/wchar.h: Likewise.
4730 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4732         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4733         (stackinfo_sub_sp): Define.
4735 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4737         [BZ #9750]
4738         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4739         * include/alloca.h (alloca_account): Define.
4740         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4741         (stackinfo_sub_sp): Define.
4743         * nscd/connections.c (nscd_init): If database file access fails
4744         check whether this is due to permission problems and bail in that
4745         case.
4747         [BZ #9741]
4748         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4749         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4751 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4753         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4754         Add "t" to clobber list.
4755         (INTERNAL_SYSCALL_NCS): Likewise.
4757 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4759         * nss/getent.c (print_networks): Don't print comma between aliases.
4761 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4763         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4765         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4766         the hash table.
4767         * misc/Makefile (tests): Add bug-hsearch1.
4768         * misc/bug-hsearch1.c: New file.
4770 2009-01-22  Roland McGrath  <roland@redhat.com>
4772         * Makeconfig (%.v.i): Strip trailing # comments,
4773         not only whole-line comments.
4775 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4777         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4778         one parameter.  If non-NULL use it to initialize return value.
4779         (_dl_setup_pointer_guard): New function.
4780         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4781         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4782         * elf/rtld.c (security_init): Pass _dl_random to
4783         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4784         pointer_chk_guard.
4785         * elf/dl-sysdep.c (_dl_random): New variable.
4786         (_dl_sysdep_start): Handle AT_RANDOM.
4787         (_dl_show_auxv): Likewise.
4788         * elf/dl-support.c (_dl_random): New variable.
4789         (_dl_aux_init): Handle AT_RANDOM.
4790         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4791         to _dl_setup_stack_chk_guard.
4793         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4795 2009-01-10  Roland McGrath  <roland@redhat.com>
4797         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4799 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4801         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4803         [BZ #9706]
4804         * nss/nss_files/files-parse.c (strtou32): New function.
4805         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4806         across 32-bit and 64-bit platforms.
4807         (INT_FIELD_MAYBE_NULL): Likewise.
4809 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4811         [BZ #9720]
4812         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4813         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4814         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4815         Likewise.
4817 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4819         [BZ #697]
4820         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4821         being NULL also if there are no backreferences.
4822         * posix/rxspencer/tests: Add testcases.
4824 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4826         [BZ #9697]
4827         * posix/bug-regex17.c: Add testcases.
4828         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4829         handling.
4831 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4833         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4834         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4835         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4836         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4837         for elf subdir.
4838         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4839         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4840         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4841         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4842         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4843         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4845 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4847         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4848         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4849         re_string_skip_chars, re_string_reconstruct): Likewise.
4850         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4852 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4854         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4855         adjust the buffer alignment.
4857 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4859         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4860         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4861         net/route.h.
4863         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4864         flavor to description only when flavor is not NULL.
4866         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4867         mutex after SIGIO/SIGURG lookup loop.
4869 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4871         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4873 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4875         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4876         handling.
4878 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4880         * sysdeps/unix/sysv/linux/kernel-features.h
4881         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4883         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4884         if no output is written.
4886         * version.h: Bump to 2.10 development.
4888         * posix/getconf.c: Update copyright year.
4889         * nss/getent.c: Likewise.
4890         * iconv/iconvconfig.c: Likewise.
4891         * iconv/iconv_prog.c: Likewise.
4892         * elf/ldconfig.c: Likewise.
4893         * catgets/gencat.c: Likewise.
4894         * csu/version.c: Likewise.
4895         * elf/ldd.bash.in: Likewise.
4896         * elf/sprof.c (print_version): Likewise.
4897         * locale/programs/locale.c: Likewise.
4898         * locale/programs/localedef.c: Likewise.
4899         * nscd/nscd.c (print_version): Likewise.
4900         * debug/xtrace.sh: Likewise.
4901         * malloc/memusage.sh: Likewise.
4902         * malloc/mtrace.pl: Likewise.
4903         * debug/catchsegv.sh: Likewise.
4905 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4907         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4908         script.
4910 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4912         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4913         gethostbyname4_r function call succeeded, just leave the loop.
4915         [BZ #9694]
4916         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4917         very end.
4918         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4919         * wctype/Makefile (tests): Add bug-wctypeh.
4920         * wctype/bug-wctypeh.c: New file.
4922         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4923         LOCALDOMAIN is defined.
4924         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4926         * sysdeps/x86_64/bits/select.h: New file.
4928         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4930 2008-12-21  Bruno Haible  <bruno@clisp.org>
4932         [BZ #9677]
4933         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4934         if no output is written.
4936 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4938         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4939         libc internal symbol __dup2 to avoid access through the PLT.
4941 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4943         [BZ #6545]
4944         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4945         available only for __USE_GNU.
4947         * inet/Makefile (tests): Add tst-getni2.
4948         * inet/tst-getni2.c: New file.
4950         [BZ #7080]
4951         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4952         NULL when NI_NAMEREQD is set.
4953         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4954         * inet/Makefile (tests): Add tst-getni1.
4955         * inet/tst-getni1.c: New file.
4957 2008-12-03  Petr Baudis  <pasky@suse.cz>
4959         [BZ #7067]
4960         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4961         instead of prune_lock.
4962         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4963         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4965 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4967         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4968         use.
4970         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4971         handling.
4973         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4974         after reading name server list.
4976         [BZ #7058]
4977         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4978         handling for host name aliases.
4980 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4982         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4983         instead of doing things manually.
4985 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4987         * posix/regex_internal.h (build_wcs_upper_buffer):
4988         Return type is reg_error_t.
4990 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4992         * posix/globtest.sh: Use mktemp to create temporary file and
4993         directory.
4995         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4996         sets correctly.
4997         (__CPU_CLR_S): Likewise.
4998         (__CPU_ISSET_S): Likewise.
5000 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5001             Ulrich Drepper  <drepper@redhat.com>
5003         * scripts/firstversion.awk: Use custom comparison function to compare
5004         version numbers.
5005         * scripts/versions.awk: Use sort invocation which can handle
5006         multi-digit sub-version numbers.
5008 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5010         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5011         * locale/iso-639.def: Add Chhattisgarhi entry.
5013 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5015         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5016         ESRCH return value.
5017         (_nss_dns_gethostbyname4_r): Likewise.
5018         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5019         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5020         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5021         the no_data variable.
5023         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5024         information at the correct index.
5026         * socket/sys/socket.h: Declare accept4.
5027         * socket/accept4.c: New file.
5028         * sysdeps/unix/sysv/linux/accept4.c: New file.
5029         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5030         * socket/Makefile (routines): Add accept4.
5031         * socket/Versions: Export accept4 with version GLIBC_2.10.
5032         * socket/paccept.c: Removed.
5033         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5034         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5035         * Versions.def: Define GLIBC_2.10 for libc.
5036         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5038         * nscd/connections.c: Use accept4.
5040         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5042 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5044         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5045         flag already set.
5047         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5048         not exist.
5049         * stdlib/Makefile (tests): Add tst-unsetenv1.
5050         * stdlib/tst-unsetenv1.c: New file.
5052 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5054         * login/utmp_file.c (file_writable): New variable.
5055         (setutent_file): Don't try to open file for writing.
5056         (pututline_file): Before writing, make descriptor writable if
5057         necessary.
5059 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5061         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5062         to IPv4 or IPv6 if an interface has been found.
5064 2008-11-26  Roland McGrath  <roland@redhat.com>
5066         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5067         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5069         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5070         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5071         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5073         * elf/elf.h (NT_386_IOPERM): New macro.
5074         (NT_PPC_VSX): New macro.
5076 2008-11-25  Roland McGrath  <roland@redhat.com>
5078         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5079         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5080         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5081         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5082         Subdirectories moved to ports repository.
5083         * configure.in (base_machine): Remove alpha case.
5085 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5087         * sysdeps/mach/strerror_l.c: New file.
5089 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5091         [BZ #6411]
5092         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5093         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5094         magic numbers.
5095         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5096         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5097         (relax_fenv_state): Same as above.
5098         (FPSCR_29): Reserve bit in ISA 2.05.
5099         (FPSCR_NI): Provide define for compat.
5100         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5101         magic numbers.
5102         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5103         magic numbers.
5104         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5105         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5106         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5107         access to hwcap to account for hwcap size increase to uint64_t.
5108         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5109         Likewise.
5110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5111         (*setcontext): Likewise.
5112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5113         New file.
5114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5115         New file.
5116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5117         (*setcontext): dynamically select mtfsf insn based on
5118         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5119         increase to uint64_t.
5120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5121         (*swapcontext): dynamically select mtfsf insn based on
5122         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5123         increase to uint64_t.
5124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5125         New file.
5126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5127         New file.
5128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5129         (*setcontext): dynamically select mtfsf insn based on
5130         PPC_FEATURE_HAS_DFP.
5131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5132         (*swapcontext): dynamically select mtfsf insn based on
5133         PPC_FEATURE_HAS_DFP.
5135 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5137         * version.h: Bump for 2.9 release.
5138         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5140         [BZ #7029]
5141         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5142         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5143         all the rounding.
5145 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5147         [BZ #7009]
5148         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5149         unknown request types for now.
5151 2008-11-11  Roland McGrath  <roland@redhat.com>
5153         * sysdeps/x86_64/configure: New file.
5155         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5156         * configure: Regenerated.
5158 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5160         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5161         correct instruction to remove the stack frame.
5163 2008-11-03  Michael Matz  <matz@suse.de>
5165         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5166         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5168 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5170         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5171         Remove.
5173         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5174         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5175         of the thread variable instead of void *.
5176         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5177         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5178         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5179         __libc_tsd_define arguments.
5180         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5181         __libc_tsd_address arguments.  Remove union hack.
5182         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5183         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5184         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5185         Adjust __libc_tsd_{set,get} arguments.
5186         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5187         __libc_tsd_define arguments.
5188         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5189         arguments.
5190         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5191         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5192         (LOCALE): Adjust __libc_tsd_define arguments.
5193         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5194         arguments.
5195         (LOCALE): Adjust __libc_tsd_define arguments.
5196         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5197         arguments.
5198         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5199         arguments.
5201 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5203         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5204         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5206 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5208         [BZ #6966]
5209         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5211 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5212             Ulrich Drepper  <drepper@redhat.com>
5214         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5215         definition for GCC 3.1 and later.
5217 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5219         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5220         refetch dtv, as it might have changed.
5221         * elf/Makefile: Add rules to build and run tst-tls18.
5222         * elf/tst-tls18.c: New test.
5223         * elf/tst-tlsmod18a.c: New file.
5225 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5227         [BZ #6875]
5228         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5230 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5232         [BZ #6867]
5233         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5235         [BZ #6919]
5236         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5237         Fix length of copy operation.
5239 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5241         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5242         and fix its calling convention.
5244 2008-10-07  Andreas Schwab  <schwab@suse.de>
5246         [BZ #6942]
5247         * resolv/res_send.c (send_vc): Fix last change.
5248         (send_dg): Align here as well.
5250 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5252         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5253         return value in case rlimit is RLIM_INFINITY.
5255         [BZ #6947]
5256         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5257         for UL_SETFSIZE.
5258         * resource/Makefile (tests): Add bug-ulimit1.
5259         * resource/bug-ulimit1.c: New file.
5261         [BZ #6974]
5262         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5263         without dot.  Properly terminate the string with a null byte.
5264         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5266         [BZ #6980]
5267         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5268         negative sizees.
5269         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5270         negative __size.
5272         [BZ #6995]
5273         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5275 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5277         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5278         abort if there is no initgroups_dyn function.
5280         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5281         result if any of the queries really provided an answer.
5283 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5285         * po/lt.po: Update from translation team.
5287 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5289         * po/id.po: Update from translation team.
5291 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5293         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5294         Fix tests for existence of second reply.
5296 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5298         * po/id.po: New file.
5299         Contributed by the Indonesian translation team.
5301 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5303         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5304         initialization.
5306 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5308         * elf/Makefile: Add rules to build and run tst-tls17.
5309         * elf/tst-tls17.c: New test.
5310         * elf/tst-tlsmod17a.c: New file.
5311         * elf/tst-tlsmod17b.c: Likewise.
5313 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5315         * stdlib/divmod_1.c: Use correct type for dummy variable.
5316         * stdlib/mod_1.c: Likewise.
5318 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5320         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5322 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5324         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5325         __nonnull order for C++.
5326         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5327         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5329 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5331         * stdlib/longlong.h: Update from GCC.
5333 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5334             David S. Miller  <davem@davemloft.net>
5336         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5337         make sure any registers used with 64-bit 'branch-on-register'
5338         instructions have their top 32-bits clear.
5339         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5340         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5342 2008-09-18  Andreas Schwab  <schwab@suse.de>
5344         [BZ #6942]
5345         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5346         Properly handle partial reads.
5348 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5350         * elf/elf.h (STO_MIPS_PLT): New.
5351         (R_MIPS_COPY): New.
5352         (R_MIPS_JUMP_SLOT): New.
5353         (R_MIPS_NUM): Redefine to 128.
5354         (DT_MIPS_PLTGOT): New.
5355         (DT_MIPS_RWPLT): New.
5356         (DT_MIPS_NUM): Redefine to 0x35.
5358 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5360         * timezone/africa: Update from tzdata2008f.
5361         * timezone/asia: Likewise.
5362         * timezone/australasia: Likewise.
5363         * timezone/europe: Likewise.
5364         * timezone/leapseconds: Likewise.
5365         * timezone/northamerica: Likewise.
5366         * timezone/southamerica: Likewise.
5367         * timezone/zone.tab: Likewise.
5369 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5371         * nscd/connections.c: Disable use of paccept for now.
5373 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5375         * socket/Versions: Remove paccept export for GLIBC_2.9.
5376         * socket/Makefile (routines): Remove paccept.
5377         * socket/sys/socket.h: Remove paccept declaration.
5379         * po/sv.po: Update from translation team.
5381 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5383         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5384         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5386 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5388         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5389         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5391 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5393         * sunrpc/rpc/svc.h: Declare svcfd_create.
5394         Patch by Michael Solberg <msolberg@redhat.com>.
5396 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5397             Ulrich Drepper  <drepper@redhat.com>
5399         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5400         _int_valloc fails.
5401         (public_pVALLOc): Likewise.
5403 2008-09-02  Andreas Jaeger  <aj@suse.de>
5405         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5406         commit.
5408 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5410         [BZ #6860]
5411         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5413 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5415         * Makefile (check-data): Check data directory in add-ons.
5416         * elf/Makefile (check-data): Likewise.
5418 2008-08-18  Roland McGrath  <roland@redhat.com>
5420         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5421         * configure: Regenerated.
5422         * config.make.in (cflags-cpu): New substituted variable.
5423         (with-cpu): Variable removed.
5424         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5426 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5428         [BZ #6845]
5429         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5430         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5431         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5432         redundant.  Functions which call floating point assembler operations
5433         should go into a sysdeps powerpc/fpu directory.
5435 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5437         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5438         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5440 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5442         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5444         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5445         change related to AT_EXECFN.  We cannot use that string.
5446         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5447         _dl_execfn member.
5448         * elf/dl-support.c: Remove _dl_execfn variable.
5449         (_dl_aux_init): Remove handling of AT_EXECFN.
5450         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5451         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5453 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5455         [BZ #6544]
5456         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5457         byte gets added to writes and seeks from the end use the length of
5458         the buffer and not the currently terminating NUL byte.
5460         [BZ #6634]
5461         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5462         Set to true if locking failed.
5463         (getutid_r_file): Adjust caller.
5464         (pututline_file): Likewise.  Return NULL in this case.
5465         Patch mostly by halesh.s@gmail.com.
5467 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5469         [BZ #6589]
5470         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5471         Define.
5472         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5474 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5476         [BZ #6839]
5477         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5478         macro since it is now available in elf/dynamic-link.h.
5480 2008-08-12  Roland McGrath  <roland@frob.com>
5482         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5483         in case used outside of libc.
5484         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5486 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5488         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5489         directly instead of going through dn_comp.
5491 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5493         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5494         Fix asm constraints.
5496 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5498         [BZ #6790]
5499         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5500         (IPV6_PMTUDISC_PROBE): Likewise.
5502 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5504         [BZ #6791]
5505         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5507 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5508             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5510         [BZ #6817]
5511         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5512         Added the members 'vsx' and 'arch_2_06'.
5513         (_dl_powerpc_platforms): Add the member 'power7'.
5514         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5515         to reflect the changes required by VSX and ISA 2.06.
5516         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5517         'power7'.
5518         Defined PPC_PLATFORM_POWER7.
5519         (_dl_string_platform): Add support for POWER7.
5520         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5521         capability and ISA 2.06.
5523 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5525         [BZ #6824]
5526         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5527         macro to detect use of 128 bit long double.
5528         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5530 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5532         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5534         [BZ #5794]
5535         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5536         parameters.
5537         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5538         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5540 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5542         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5543         guaranteed to be large enough to read inotify event.  Ignore
5544         EAGAIN error.  Better error message.  Add branch predicition.
5545         (main_loop_epoll): Likewise.
5547 2008-08-02  Roland McGrath  <roland@frob.com>
5549         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5550         Add memory clobbers.
5552 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5554         * manual/arith.texi: Avoid @strong{Note:}.
5555         * manual/creature.texi: Likewise.
5556         * manual/filesys.texi: Likewise.
5557         * manual/math.texi: Likewise.
5558         * manual/memory.texi: Likewise.
5559         * manual/resource.texi: Likewise.
5560         * manual/syslog.texi: Likewise.
5561         * manual/time.texi: Likewise.
5563         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5564         to prevent warning.
5566 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5568         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5569         new epoll_create1 interface.
5570         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5571         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5572         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5574         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5575         (NS_GET32): Likewise.
5577         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5578         syscalls, too.
5580         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5581         use the AT_EXECFN value if it is no absolute path.
5582         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5583         __ASSUME_AT_EXECFN.
5585         * Versions.def: Add GLIBC_2.9 to libresolv.
5586         * include/resolv.h: Remove hidden proto declarations for __ns_*
5587         functions.  Add them for __dn_count_labels and __p_secstodate.
5588         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5589         Define ns_msg_getflags macro here.
5590         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5591         and __p_secstodate.
5592         * resolv/Versions: Export functions from <arpa/nameser.h> from
5593         libresolv in version GLIBC_2.9.
5594         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5595         hidden definitions.
5596         * resolv/ns_netint.c: Likewise.
5597         * resolv/ns_parse.c: Likewise.
5598         * resolv/ns_print.c: Likewise.
5599         * resolv/ns_samedomain.c: Likewise.
5600         * resolv/ns_ttl.c: Likewise.
5601         * resolv/arpa/nameser_compat.h: Likewise.
5602         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5603         function calls.
5604         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5605         instead of ns_get16.
5606         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5607         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5608         (gaih_getanswer_slice): Likewise.
5609         * resolv/Makefile (libresolv-routines): Add ns_date.
5610         * resolv/ns_date.c: New file.
5612         * elf/Makefile (check-localplt.out): Also check libresolv and
5613         libcrypt.
5615 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5617         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5618         __ASSUME_O_CLOEXEC.
5620 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5622         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5623         buffer passed to NSS functions.
5625         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5627         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5628         Define.
5630         * misc/syslog.c (openlog_internal): Fix compile problem.
5632 2008-07-28  Roland McGrath  <roland@redhat.com>
5634         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5636 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5638         * io/ftw.c (add_object): Remove inline to avoid warning.
5640         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5642         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5643         Use it instead of locally defined resplen2 variable.
5644         (res_nsend): Adjust for __libc_res_nsend interface change.
5645         (send_vc): Initialize *resplen2 if necessary.  Read length of
5646         package into an appropriately aligned variable.  Store converted length
5647         in new variable and use it appropriately.
5648         Add branch prediction help.
5649         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5650         and pass it on to __libc_res_nsend.  Adjust all callers.
5651         (__libc_res_nsearch): Likewise.
5652         (__libc_res_nqeurydomain): Likewise.
5653         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5654         change.
5655         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5656         Define resplen2 variable and pass it to __libc_res_nsearch and then
5657         to gaih_getanswer.
5658         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5659         Add branch prediction.
5660         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5661         (gaih_getanswer): Don't decode second slice if first one failed due
5662         to a too small buffer.  Don't let not found status of second
5663         decoder shadow results of the first.
5664         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5665         and __libc_res_nquery interface changes
5666         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5667         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5668         __libc_res_nsearch, and __libc_res_nsend.
5669         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5670         change.
5671         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5672         __libc_res_nsearch interface changes.
5674 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5676         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5678         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5679         file descriptors with close-on-exec set.
5680         (exec_comm_child): Fix the case where the write end of the pipe is
5681         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5683         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5684         * io/pipe2.c: Likewise.
5685         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5686         instead of __ASSUME_PACCEPT.
5687         * include/unistd.h: Declare __have_pipe2.
5688         * libio/iopopen.c: Implement "e" flag.
5689         * libio/Makefile (tests): Add tst-popen1.
5690         * libio/tst-popen1.c: New file.
5692         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5693         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5695 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5697         [BZ #6771]
5698         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5699         success call of _IO_SEEKOFF or calls which failed because the
5700         descriptor is for a pipe.
5702         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5703         magic number.
5705         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5707         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5708         F_SETFD use if we know fopen set the flag.
5710         * login/utmp_file.c (setutent_file): Minor optimization in case
5711         O_CLOEXEC is available.
5713 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5715         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5716         * elf/Makefile: Use pie-ccflag variable.
5717         * nscd/Makefile: Likewise.
5718         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5720 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5722         [BZ #6724]
5723         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5724         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5725         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5726         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5727         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5728         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5729         utmp32, utmpx32 and login32.
5730         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5731         versions of struct utmp functions to libc and libutil.
5732         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5733         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5734         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5735         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5736         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5737         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5738         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5739         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5740         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5741         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5742         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5743         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5744         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5745         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5746         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5747         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5748         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5749         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5750         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5751         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5752         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5753         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5755 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5757         * scripts/gen-as-const.awk: Generate more widely usable code by
5758         using 64-bit arithmetic.
5760         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5761         the same treatment as narrow output code in last patch.
5763         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5765         [BZ #6763]
5766         * elf/dl-load.c (local_strdup): Remove inline.
5767         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5768         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5769         part of the object.
5771         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5773 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5775         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5776         the new syscalls, too.
5778         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5779         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5781         [BZ #6698]
5782         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5783         parameter for end of buffer.  If temporary copy is too large use
5784         malloc.
5785         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5786         interface change.
5787         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5788         string rewrite when allocating buffer.
5790         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5791         syscalls, too.
5793         * nscd/connections.c (nscd_init): Clean up fcntl call.
5795         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5796         SOCK_NONBLOCK if possible.
5798         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5799         SOCK_CLOEXEC if available.
5801         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5802         __libc_clntudp_bufcreate_internal.
5803         * include/sys/socket.h: Declare __have_sock_cloexec.
5804         * socket/Makefile (aux): Add have_sock_cloexec.
5805         * socket/have_sock_cloexec.c: New file.
5806         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5807         __libc_clntudp_bufcreate.
5808         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5809         which takes an additional parameter.  Create socket with non-blocking
5810         mode and close-on-exec flag set, if wanted.
5811         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5812         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5813         instead of clntudp_create.  The socket has already the close-on-exec
5814         flag set if SOCK_CLOEXEC is defined.
5816 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5818         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5819         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5820         appropriate.
5821         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5822         non-blocking mode by using socket, paccept, and inotify_init1.
5824         * Versions.def (glibc): Add GLIBC_2.9.
5825         * io/Makefile (routines): Add dup3 and pipe2.
5826         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5827         * io/dup3.c: New file.
5828         * io/pipe2.c: New file.
5829         * posix/unistd.h: Declare dup3 and pipe2.
5830         * socket/Makefile (routines): Add paccept.
5831         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5832         * socket/paccept.c: New file.
5833         * socket/sys/socket.h: Declare paccept.
5834         * sysdeps/unix/syscalls.list: Add entry for dup3.
5835         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5836         epoll_create2 and inotify_init1.
5837         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5838         * sysdeps/unix/sysv/linux/paccept.c: New file.
5839         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5840         possible.
5841         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5842         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5843         inotify_init1, and pipe2 entries.
5844         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5845         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5846         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5847         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5848         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5849         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5850         SOCK_NONBLOCK.
5851         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5852         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5853         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5854         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5855         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5856         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5857         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5858         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5859         EPOLL_NONBLOCK.  Declare epoll_create2.
5860         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5861         EFD_NONBLOCK.
5862         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5863         IN_NONBLOCK.  Declare inotify_init1.
5864         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5865         SFD_NONBLOCK.
5866         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5867         TFD_NONBLOCK.
5869         * elf/elf.h: Define AT_EXECFN.
5870         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5871         LD_ORIGIN_PATH.
5872         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5873         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5874         if __ASSUME_AT_EXECFN is defined.
5875         (_dl_aux_init): Handle AT_EXECFN.
5876         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5877         for 2.6.27 and up.
5878         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5879         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5880         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5881         _dl_execfn if available and avoid compatibility code if
5882         __ASSUME_AT_EXECFN is defined.
5884         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5885         _dl_discover_osversion only for older kernels.
5887 2008-07-22  Roland McGrath  <roland@frob.com>
5889         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5891 2008-07-21  Roland McGrath  <roland@frob.com>
5893         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5894         returned too much data out of line.
5896 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5898         * locale/setlocale.c (setname): Remove inline to avoid compiler
5899         warning.
5901         [BZ #6712]
5902         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5904 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5906         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5907         doesn't manage to write anything, fail.
5909         * malloc/hooks.c (__malloc_check_init): Remove printf.
5911 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5913         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5915 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5917         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5918         from inotify.
5919         (main_loop_epoll): Likewise.
5921 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5923         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5925         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5926         if DEBUG is defined.
5928         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5929         query.  Adjust buffer size computation for padding.
5931 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5933         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5934         * stdio-common/tst-setvbuf1.c: New file.
5935         * stdio-common/tst-setvbuf1.expect: New file.
5937         [BZ #6719]
5938         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5939         when selecting fully-buffered stream.
5940         Patch by Wang Xin <wxinee@gmail.com>.
5942 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5944         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5945         (__open_2): New function.
5946         (__open64_2): New alias to __open_2.
5947         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5948         (__openat_2): New function.
5949         (__openat64_2): New alias to __openat_2.
5951 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5953         [BZ #6723]
5954         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5956 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5958         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5959         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5960         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5961         __hurd_dfail.
5962         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5963         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5964         * sysdeps/mach/hurd/send.c (__send): Likewise.
5965         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5966         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5968 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5970         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5971         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5972         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5973         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5974         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5975         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5977 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5979         [BZ #6657]
5980         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5981         of %EY.
5982         Patch by Petr Baudis.
5984 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5986         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5987         Patch by Peter Jones <pjones@redhat.com>.
5989 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5991         [BZ #6654]
5992         * stdlib/canonicalize.c (__realpath): readlink can write too much
5993         into the buffer on platforms without PATH_MAX.
5995 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5997         [BZ #6653]
5998         * posix/tst-regex.c (main): Rename to...
5999         (do_test): ... this. Remove cmdline option processing.
6000         (TIMEOUT): Define.
6001         (TEST_FUNCTION): Define.
6002         (CMDLINE_OPTIONS): Define.
6004 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6006         [BZ #5210]
6007         * configure.in: Add -Werror to -fstack-protector test to catch
6008         unsupported architectures.
6009         Patch by Gilles Esponasse <g.esp@free.fr>.
6011 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6013         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6014         getcontext returns ENOSYS.
6016 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6018         * nscd/connections.c (main_loop_poll): Fix test for read error.
6019         (main_loop_epoll): Likewise.
6021 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6023         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6024         better place so it is not called when nscd is used.
6026         * nscd/connections.c: Also recognize and handle changes to the
6027         resolver configuration file.
6029 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6031         * time/strftime.c: Pass reference to tzset_called around to handle
6032         recursive calls.
6034         [BZ #6612]
6035         * time/strftime.c (__strftime_internal): Call tzset() only
6036         when printing timezone-dependent values.
6037         Based on a patch by Petr Baudis <pasky@suse.cz>.
6039         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6040         unconditionally use second gaih_getanswer_slice result.
6042         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6043         (getaddrinfo): RES must always be non-NULL.
6045 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6047         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6048         cr[34] registers.
6049         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6050         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6051         Likewise.
6052         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6053         register.
6055 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6057         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6058         fields.
6059         * nscd/connections.c (inotify_fd): New variable.
6060         (nscd_init): Try to open an inotify descriptor.
6061         If successful, watch files for databases using inotify instead of
6062         having prune threads stat the files.
6063         (nscd_run_prune): Recognize clear_cache flag being set and call
6064         prune_cache appropriately.
6065         (main_loop_poll): Add inotify descriptor to wait set and handle the
6066         reported changes.
6067         (main_loop_epoll): Likewise.
6068         * nscd/cache.c (prune_cache): Don't stat files for databases if
6069         inotify is used.
6070         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6071         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6073         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6074         fixed-size portion of the record.
6075         * nscd/servicescache.c (cache_addserv): Likewise.
6076         * nscd/pwdcache.c (cache_addpw): Likewise.
6077         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6079 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6081         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6082         out we don't use uninitialized memory.
6084         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6085         the client.
6087 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6089         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6090         ignore T_DNAME messages.
6091         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6093 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6095         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6096         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6098 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6100         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6101         instead of portstr to nscd_getserv_r.  Patch by
6102         Roman Kagan <rkagan@mail.ru>.
6104 2008-05-26  Jim Meyering  <meyering@redhat.com>
6106         Remove more useless "if" tests before "free".
6107         * include/inline-hashtab.h (htab_delete): Likewise.
6108         * libio/freopen.c (freopen): Likewise.
6109         * libio/freopen64.c (freopen64): Likewise.
6110         * locale/programs/ld-collate.c (collate_read): Likewise.
6111         * misc/fstab.c (libc_freeres_fn): Likewise.
6112         * posix/glob.c (globfree): Likewise.
6114 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6116         * string/Makefile (strop-tests): Add memmem.
6117         * string/test-memmem.c: New file.
6118         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6119         (test_init): Size buf1 according to BUF1PAGES.
6121 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6123         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6124         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6125         (CFLAGS-scanf17.c): New.
6126         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6127         * stdio-common/scanf15.c (main): Likewise.
6128         * stdio-common/scanf16.c: New file.
6129         * stdio-common/scanf17.c: New file.
6131 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6133         * resolv/res_send.c (send_dg): If we already have one of two
6134         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6135         use the one answer insted of failing.
6137 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6139         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6140         being executed on PowerPC as the expected result exceeds IBM
6141         long double 128 __LDBL_MAX__.
6143 2008-05-21  Roland McGrath  <roland@redhat.com>
6145         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6147         * Makefile (check-data): Use $(abi-name) before other guesses.
6148         Look in $(add-ons) dirs before scripts/data/.
6149         * elf/Makefile (check-data): Likewise.
6151         * scripts/soversions.awk: Grok ABI line.
6152         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6153         Emit definition for abi-name variable.
6155 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6157         * string/endian.h: Define new fixed-size hto* and *toh macros only
6158         if [__USE_BSD].
6160         * iconvdata/Depend: Add localedata.
6162 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6164         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6166 2008-05-08  David S. Miller  <davem@davemloft.net>
6168         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6169         HIDDEN_JUMPTARGET.
6170         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6171         (__SYSCALL_CLOBBERS): Remove %g* registers.
6172         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6173         (__SYSCALL_CLOBBERS): Likewise.
6174         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6175         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6177 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6179         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6180         (CALL_ERRNO_LOCATION): Define.
6181         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6182         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6183         (CALL_ERRNO_LOCATION): Define.
6184         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6185         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6186         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6188 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6190         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6191         variable.
6193 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6195         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6196         (FIRST_FRAME_POINTER): Define.
6198 2008-05-09  David S. Miller  <davem@davemloft.net>
6200         * sysdeps/sparc/sparc64/backtrace.c: New file.
6202 2008-05-14  David S. Miller  <davem@davemloft.net>
6204         * sysdeps/sparc/machine-gmon.h: New file.
6205         * sysdeps/sparc/sparc-mcount.S: Likewise.
6206         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6207         sysdep_routines in gmon directory.
6209 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6211         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6213 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6215         * resolv/res_query.c (__libc_res_nquery): In case one of two
6216         answer was too short don't try to read that answer's header.
6218         * resolv/res_send.c (send_dg): In case of timeout and there are
6219         two queries and one has been answered, return value indicating
6220         success.
6222 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6224         * nscd/cache.c (cache_add): Take additional parameter specifying
6225         whether this is in response of a cache refill.  Check alignment
6226         of package data.  Revamp waking of pruning thread.
6227         (prune_cache): Small optimization.
6228         * nscd/nscd.h: Adjust cache_add prototypes.
6229         * nscd/aicache.c: Adjust cache_add calls.
6230         * nscd/grpcache.c: Likewise.
6231         * nscd/hstcache.c: Likewise.
6232         * nscd/initgrcache.c: Likewise.
6233         * nscd/pwdcache.c: Likewise.
6234         * nscd/servicescache.c: Likewise.
6235         * nscd/connections.c (restart): Really disable cache use before
6236         exec attempt.  If it fails, reenable cache.
6237         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6238         time to max to be able to notice concurrent cache additions.  Unlock
6239         prune_lock while performing gc.  Afterwards compute wakeup time with
6240         current wakeup_time value in mind.
6242 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6244         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6246         * nscd/mem.c (gc): Correctly determine highest used array element
6247         in mark.
6249         * nscd/mem.c (markrange): Add assert to check entries are all
6250         aligned.  Small cleanup in bitmap use.
6252         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6253         blockoff of type nscd_ssize_t.
6254         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6255         (mempoll_alloc): Record block offset and not address.
6257         * nscd/mem.c (gc): Fix test for stack overuse.
6259         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6260         more asserts.
6262         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6263         entry is available, believe it.
6265         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6266         no answers return NSS_STATUS_NOTFOUND.
6267         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6268         buffer does not have any content.
6270 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6272         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6274         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6275         lookup, don't assign canon unconditionally.
6277 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6279         * string/Makefile (distribute): Add str-two-way.h.
6281 2008-03-29  Eric Blake  <ebb9@byu.net>
6283         Rewrite string searches to O(n) rather than O(n^2).
6284         * string/str-two-way.h: New file.  For linear fixed-allocation
6285         string searching.
6286         * string/memmem.c: New implementation.
6287         * string/strstr.c: New implementation.
6288         * string/strcasestr.c: New implementation.
6290 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6292         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6293         opr.ctx_type.
6294         (calc_first): Initialize constraint field.
6295         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6296         Use search_duplicated_node to avoid loops.  Fix grammar.
6297         (duplicate_node): Merge constraint field for all node types.
6298         (calc_eclosure_iter): Look at constraint field for all node types.
6299         * posix/regex_internal.c (create_cd_newstate): Don't look at
6300         create_cd_newstate.
6302 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6304         [BZ #6428]
6305         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6307         [BZ #6442]
6308         * string/endian.h: Add macros for fixed-size endian conversion.
6309         * bits/byteswap.h: Allow inclusion from <endian.h>.
6310         * sysdeps/i386/bits/byteswap.h: Likewise.
6311         * sysdeps/ia64/bits/byteswap.h: Likewise.
6312         * sysdeps/s390/bits/byteswap.h: Likewise.
6313         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6314         * string/Makefile (tests): Add tst-endian.
6315         * string/tst-endian.c: New file.
6317         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6318         Patch by Reuben Thomas.
6320 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6322         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6324 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6326         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6328         [BZ #6461]
6329         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6330         Add missing braces.
6331         (BODY for __gconv_transform_internal_ascii): Likewise.
6333         [BZ #6472]
6334         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6335         to be treated like link-local addresses.
6336         (match_prefix): Don't treat IPv4 loopback address special when
6337         converting to v4 mapped addressed.
6339         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6340         if necessary.
6341         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6342         * posix/tst-rfc3484-2.c: Likewise.
6343         * posix/tst-rfc3484-3.c: Likewise.
6345         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6346         and SCTP.
6348         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6350         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6352         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6354 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6356         * po/lt.po: New file.  From Lituanian translation team.
6358 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6360         Introduce TLS descriptors for i386 and x86_64.
6361         * include/inline-hashtab.h: New file, copied from 2005's
6362         libiberty, with fix for memory leak imported afterwards by
6363         Glauber de Oliveira Costa.
6364         * elf/tlsdeschtab.h: New file.
6365         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6366         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6367         (CHECK_STATIC_TLS): Move to...
6368         * elf/dynamic-link.h: ... this file.
6369         (TRY_STATIC_TLS): New macro.
6370         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6371         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6372         R_386_TLS_DESC): Define.
6373         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6374         binutils.
6375         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6376         R_X86_64_TLSDESC): Define.
6377         (R_386_NUM, R_X86_64_NUM): Adjust.
6378         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6379         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6380         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6381         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6382         release tlsdesc_table.
6383         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6384         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6385         (elf_machine_rel): Handle R_386_TLS_DESC.
6386         (elf_machine_rela): Likewise.
6387         (elf_machine_lazy_rel): Likewise.
6388         (elf_machine_lazy_rela): Likewise.
6389         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6390         * sysdeps/i386/dl-tlsdesc.S: New file.
6391         * sysdeps/i386/dl-tlsdesc.h: New file.
6392         * sysdeps/i386/tlsdesc.c: New file.
6393         * sysdeps/i386/tlsdesc.sym: New file.
6394         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6395         tlsdesc_table.
6396         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6397         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6398         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6399         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6400         release tlsdesc_table.
6401         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6402         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6403         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6404         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6405         (elf_machine_rela): Likewise.
6406         (elf_machine_lazy_rel): Likewise.
6407         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6408         (__tls_get_addr): Do not declare for non-shared compiles.
6409         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6410         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6411         * sysdeps/x86_64/tlsdesc.c: New file.
6412         * sysdeps/x86_64/tlsdesc.sym: New file.
6413         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6414         tlsdesc_table for both 32- and 64-bit structs.
6416 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6418         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6419         its own function.  This reduces the frame setup costs and more.
6421 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6423         [BZ #3406]
6424         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6425         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6427 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6429         * io/openat.c (__openat_2): Also pass fd to __openat.
6430         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6431         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6433         * string/tester.c (test_memcmp): Add a few more tests.
6434         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6436 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6438         * nscd/cache.c (cache_add): Before returning with failure and this
6439         is the first use of the record, mark it as unusable.
6440         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6441         reporting a failure.
6442         * nscd/grpcache.c: Likewise
6443         * nscd/hstcache.c: Likewise.
6444         * nscd/initgrcache.c: Likewise.
6445         * nscd/pwdcache.c: Likewise.
6446         * nscd/servicescache.c: Likewise.
6448 2008-05-10  Roland McGrath  <roland@redhat.com>
6450         [BZ #6505]
6451         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6453 2008-05-08  David S. Miller  <davem@davemloft.net>
6455         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6457         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6458         (__ieee754_y0l): Likewise.
6459         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6460         (__ieee754_y1l): Likewise.
6461         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6462         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6463         frexpl and ldexpl.  math_private.h provides them and the latter
6464         is not even used.
6465         (__log1pl): Use __frexpl.
6467 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6469         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6470         prototypes.
6471         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6472         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6473         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6474         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6475         af==AF_UNSPEC.
6476         (_nss_nis_gethostbyname4_r): New function.
6477         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6478         Change to also handle af==AF_UNSPEC.
6479         (get_tablename): New function.  Use it to avoid duplication.
6480         (_nss_nisplus_gethostbyname4_r): New function.
6481         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6482         available.
6483         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6484         * nss/nss.h: Define struct gaih_addrtuple.
6485         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6486         af==AF_UNSPEC.
6487         (_nss_files_gethostbyname4_r): New function.
6488         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6489         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6490         calls.
6491         * resolv/res_query.c (__libc_res_nquery): Take two additional
6492         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6493         look up IPv4 and IPv6.
6494         Change all callers.
6495         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6496         for an additional query and answer buffer.  Pass to send_vc and
6497         send_dg.
6498         (send_vc): Send possibly two requests and receive two answers.
6499         (send_dg): Likewise.
6500         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6501         __libc_res_nquery.
6502         (_nss_dns_gethostbyname4_r): New function.
6503         (gaih_getanswer_slice): Likewise.
6504         (gaih_getanswer): Likewise.
6505         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6506         __libc_res_nquery call.
6507         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6508         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6509         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6510         available.
6512 2008-05-05  David S. Miller  <davem@davemloft.net>
6514         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6515         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6517 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6519         Fix termios bit macros.
6520         Move *DLY definitions where they belong, in termios.h.
6521         Add *[0-3] definitions.
6522         Fixes confusion between VT and FF.
6523         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6524         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6525         are already defined to avoid collision with termios.h.
6526         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6527         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6528         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6529         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6530         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6531         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6532         VTDLY, VT0, VT1): New macros.
6533         [__USE_GNU] (OLCUC): Change value of macro.
6534         [__USE_XOPEN] (OFILL): New macro.
6535         [__USE_BSD] (CRTSCTS): Change value.
6536         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6537         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6538         (B7200, B14400, B28800, B76800): New macros.
6540 2008-05-01  David S. Miller  <davem@davemloft.net>
6542         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6543         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6544         (gen-as-const-headers): Add it.
6545         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6546         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6547         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6548         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6550         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6551         six system call parameters.
6552         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6554 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6556         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6557         RUSAGE_LWP.
6558         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6559         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6561 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6563         * stdlib/tst-setcontext.c: Include unistd.h.
6565 2008-04-25  David S. Miller  <davem@davemloft.net>
6567         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6568         Pass "union semun" properly in to sys_ipc, it must be passed
6569         by value, not by reference.
6571 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6573         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6574         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6575         * nscd/connections.c (mem_in_flight): Likewise.
6577         * nscd/nscd.h (dbs): Make hidden.
6579         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6580         Avoid returning -1, return 0 instead.
6582 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6584         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6586 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6588         [BZ #5209]
6589         * sysdeps/unix/sysv/linux/times.c: New file.
6591         [BZ #5381]
6592         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6593         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6594         prototype.
6595         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6596         appropriate mem_in_flight element.
6597         (gc): Take allocations which have not yet been committed to the
6598         database into account.
6599         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6600         Reset mem_in_flight before returning.
6601         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6602         cue it up in mem_in_flight_list.
6603         * nscd/aicache.c: Adjust mempool_alloc call.
6604         * nscd/grpcache.c: Likewise.
6605         * nscd/hstcache.c: Likewise.
6606         * nscd/initgrcache.c: Likewise.
6607         * nscd/pwdcache.c: Likewise.
6608         * nscd/servicescache.c: Likewise.
6609         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6610         of -fpie.
6612         * nscd/connections.c (handle_request): Provide better error message
6613         in case SELinux forbids the service.
6615         * version.h (VERSION): Bump to 2.8.90.
6617 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6619         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6621 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6623         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6624         Also use for 32-bit.
6625         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6626         __nextafter instead of nextafter to avoid local PLT.
6627         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6628         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6630         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6632         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6633         __fe_nomask_env.
6634         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6635         <fenv_libc.h> instead of <fenv.h>.
6636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6639         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6641         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6642         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6643         function from fegetexcept and make old name weak alias.
6644         * include/fenv.h: Declare __fegetexcept.
6645         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6646         fegetexcept.
6647         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6648         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6649         to fetestexcept.
6650         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6651         instead of frexpl to avoid local PLT.
6652         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6653         ilogbl to avoid local PLT.
6654         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6655         instead of ldexpl to avoid local PLT.
6656         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6657         __roundl not roundl to avoid local PLT.
6658         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6659         local PLTs.  Use __sincosl instead of separate sinl and cosl
6660         calls.
6661         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6663         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6664         version for ppc64 to 2.4.21 since without it makecontext will fail.
6666         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6667         to the ABI in use.
6668         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6669         .__tls_get_addr.
6670         [__powerpc64__] (TLS_GD): Likewise.
6672 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6674         [BZ #4997]
6675         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6676         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6677         mantissa.
6678         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6679         Likewise.  Also account for when x is an odd number between 2^52
6680         and 2^53-1.
6681         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6682         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6683         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6684         detect aforementioned erroneous conditions.
6686 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6688         * configure.in: Check for -fno-section-anchors in addition to
6689         -fno-toplevel-reorder.
6691 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6693         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6695         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6696         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6697         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6698         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6699         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6700         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6702 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6704         [BZ #5443]
6705         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6706         * time/alt_digit.c: Likewise.
6707         * wcsmbs/wcsmbsload.c: Likewise.
6709 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6711         * version.h (VERSION): Bump to 2.8.
6713         * timzeone/asia: Update from tzdata2008b.
6714         * timezone/backward: Likewise.
6715         * timezone/europe: Likewise.
6716         * timezone/northamerica: Likewise.
6717         * timezone/southamerica: Likewise.
6718         * timezone/iso3166.tab: Likewise.
6719         * timezone/leapseconds: Likewise.
6720         * timezone/zone.tab: Likewise.
6721         * timezone/private.h: Update from tzcode2008a.
6722         * timezone/zdump.c: Likewise.
6723         * timezone/zic.c: Likewise.
6725 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6727         [BZ #5741]
6728         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6729         Define additonal Data Cache Block instruction macros.
6730         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6731         Replace dcbst with dcbf and sync with sync/isync.
6733 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6735         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6736         Always set ELF_RTYPE_CLASS_PLT.
6737         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6739 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6741         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6742         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6743         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6744         For ISA 2.01 and later replace mftb with mfspr 268.
6746 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6748         [BZ #5768]
6749         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6750         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6752 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6754         [BZ #5768]
6755         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6756         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6757         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6758         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6760 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6762         * stdlib/tst-makecontext.c (othervar): New variable.
6763         (cf): Test sign extending the argument to long.
6765 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6767         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6768         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6769         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6770         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6771         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6772         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6773         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6775 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6777         * elf/Makefile (tests): Substitute tests-vis-yes here.
6778         (tests-vis-yes): Delete.
6779         (modules-name, modules-vis-yes): Similarly.
6781 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6783         [BZ #4407]
6784         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6785         Preserve sign in signgamp when x is zero.
6787 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6789         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6790         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6791         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6792         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6793         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6794         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6796 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6798         [BZ #4314]
6799         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6800         buffers.
6802         [BZ #5209]
6803         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6804         a reserved error value.
6806         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6807         value to check for correct sign extension.
6809         [BZ #5436]
6810         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6811         Copy 64-bit parameter values even though this is not required in
6812         the standard.
6814         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6815         PC save.
6817 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6819         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6820         PC save.
6822 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6824         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6826 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6828         [BZ #5998]
6829         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6830         in line-buffered stream failed.
6831         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6833 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6835         [BZ #6024]
6836         * scripts/abi-versions.awk: If the version specified by
6837         --enable-oldest-abi is older than the first version for this
6838         architecture, use the default version.
6840         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6841         as well when ignoring the whole category.
6843 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6845         [BZ #6042]
6846         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6847         ETHERTYPE_* definitions.
6848         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6850 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6852         * stdlib/mbtowc.c (__no_r_state): Remove.
6853         (mbtowc): New static state variable.  Use it instead of
6854         __no_r_state.
6855         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6856         (__wctomb_state): New hidden variable.
6857         (wctomb): Use __wctomb_state instead of __no_r_state.
6858         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6859         (__wctomb_state): New extern decl.
6860         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6862 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6864         [BZ #5475]
6865         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6867 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6869         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6871 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6873         * po/nl.po: Update from translation team.
6875 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6877         [BZ #6007]
6878         * string/strfry.c: Handle empty strings again.
6880 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6882         [BZ #5443]
6883         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6884         before looking for translation.
6885         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6886         * locale/freelocale.c: Likewise.
6887         * locale/newlocale.c: Likewise.
6888         * locale/setlocale.c: Likewise.
6889         Based partially on a patch by ryo@np.css.fujitsu.com.
6891 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6893         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6894         acquiring wrlock.  Do conv_tab allocation while holding lock.
6895         * intl/Makefile: Add rules to build and run tst-gettext6.
6896         * intl/tst-gettext6.c: New test.
6897         * intl/tst-gettext6.sh: New file.
6899 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6901         * po/nl.po: Update from translation team.
6903         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6904         provided through st_blksize, try the default size before giving up.
6906 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6908         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6910         [BZ #5939]
6911         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6913         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6914         error message.  POSIX today does not require the messages to be in
6915         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6917         [BZ #5979]
6918         * sunrpc/auth_unix.c: Unify printed strings.
6919         * sunrpc/clnt_tcp.c: Likewise.
6920         * sunrpc/clnt_udp.c: Likewise.
6921         * sunrpc/clnt_unix.c: Likewise.
6922         * sunrpc/svc_tcp.c: Likewise.
6923         * sunrpc/svc_udp.c: Likewise.
6924         * sunrpc/svc_unix.c: Likewise.
6925         * sunrpc/xdr.c: Likewise.
6926         * sunrpc/xdr_array.c: Likewise.
6927         * sunrpc/xdr_rec.c: Likewise.
6928         * sunrpc/xdr_ref.c: Likewise.
6929         * locale/programs/ld-time.c (time_finish): Unify messages.
6930         * locale/programs/locfile.c (handle_copy): Fix typo.
6931         * nscd/nscd.c (options): Fix typo.
6933         [BZ #5995]
6934         * stdlib/strtod_l.c: Use correct sign for result in one more
6935         underflow case.
6936         Patch by Eric Blake <ebb9@byu.net>.
6938 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6940         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6941         and creat system calls.
6942         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6943         call.
6944         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6945         system calls.
6946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6947         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6948         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6950 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6952         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6953         <linux/limits.h> has defined it.
6954         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6955         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6956         headers.
6957         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6958         it instead of ARG_MAX.
6960 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6962         * posix/gai.conf: Fix comment for scope nullbits.
6963         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6964         default to 128 bits for v4 mapped addresses.
6966 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6968         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6969         ptrace call to get the ieee_instruction_pointer from the kernel.
6970         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6971         ptrace call to set the ieee_instructtion_pointer.
6972         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6973         Add comment that ieee_instruction_pointer is always 0.
6975 2008-03-09  Andreas Jaeger  <aj@suse.de>
6977         [BZ #5857]
6978         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6979         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6980         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6982         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6983         (rint_test): Likewise.
6985 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6987         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6988         call.
6989         (__nisfind_server): Similar for open readColdStartFile call.
6990         Patch partially by Jim Meyering.
6991         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6992         around internal_setent call.
6994         * po/vi.po: New Vietnamese translation.
6996         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6997         ADJ_OFFSET_SS_READ.
6999         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7000         remove CLONE_STOPPED.
7002 2008-02-10  Jim Meyering  <meyering@redhat.com>
7004         Remove useless "if" before "free":
7005         * elf/ldconfig.c (parse_conf_include): Likewise.
7006         * gmon/gmon.c (weak_alias): Likewise.
7007         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7008         * inet/rcmd.c (__validuser2_sa): Likewise.
7009         * intl/bindtextdom.c (set_binding_values): Likewise.
7010         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7011         * libio/genops.c (save_for_backup): Likewise.
7012         * libio/wgenops.c (save_for_wbackup): Likewise.
7013         * locale/programs/ld-collate.c (collate_read): Likewise.
7014         * locale/programs/linereader.c (get_string): Likewise.
7015         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7016         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7017         * resolv/res_debug.c (do_section): Likewise.
7018         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7019         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7020         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7021         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7022         * time/tzset.c (tzset_internal): Likewise.
7024 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7026         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7027         of ASSEMBLER.
7029 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7031         [BZ #5903]
7032         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7033         not stream for output file.  Open output file here.
7034         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7035         and output file name.
7036         (process_fd): Likewise.
7037         (process_file): Likewise.
7038         (main): Adjust callers of changed functions.
7039         * iconv/iconv_prog.h: Adjust prototype.
7041 2008-03-09  Andreas Jaeger  <aj@suse.de>
7043         [BZ #5753]
7044         * sysdeps/ia64/ieee754.h: Use protected namespace
7045         __BIG_ENDIAN/__LITTLE_ENDIAN.
7046         * sysdeps/ieee754/ieee754.h: Likewise.
7047         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7049 2008-03-08  Roland McGrath  <roland@frob.com>
7051         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7052         ignore a signal that came from a machine exception, treat it as a
7053         fatal core-dump signal instead.
7054         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7056         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7057         Clear DF bit in thread state's eflags.
7058         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7060 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7062         [BZ #5774]
7063         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7064         of NAN(...) sequence.
7065         * stdlib/Makefile (tests): Add tst-strtod6.
7066         * stdlib/tst-strtod6.c: New file.
7068         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7070         [BZ #5762]
7071         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7072         putting offending option character in quotes.  Clean up error
7073         messages.
7074         * po/be.po: Adjust msgstr in translation file.
7075         * po/bg.po: Likewise.
7076         * po/ca.po: Likewise.
7077         * po/cs.po: Likewise.
7078         * po/da.po: Likewise.
7079         * po/de.po: Likewise.
7080         * po/es.po: Likewise.
7081         * po/fr.po: Likewise.
7082         * po/hr.po: Likewise.
7083         * po/ko.po: Likewise.
7084         * po/nl.po: Likewise.
7085         * po/rw.po: Likewise.
7086         * po/sk.po: Likewise.
7087         * po/sv.po: Likewise.
7088         * po/tr.po: Likewise.
7089         * po/zh_CN.po: Likewise.
7090         * po/zh_TW.po: Likewise.
7092         [BZ #5760]
7093         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7094         Patch by Roland Bless <roland@bless.de>.
7096         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7097         .o file.
7098         * elf/Makefile (routines): Add dl-sysdep.
7099         (elide-routines.os): Likewise.
7101 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7103         [BZ #5786]
7104         * elf/dl-sysdep.c: Undefine ROUND after use.
7105         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7106         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7107         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7108         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7109         to ...
7110         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7111         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7112         if necessary.
7113         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7115         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7116         _dl_tls_get_addr_soft element.
7117         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7118         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7119         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7120         GLRO.
7121         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7122         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7123         of internal_function.
7125         * stdlib/Makefile (aux): Add tens_in_limb.
7126         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7127         * stdlib/tens_in_limb.c: ...here.  New file.
7129         [BZ #5778]
7130         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7131         __statfs_chown_restricted.
7132         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7133         for _PC_CHOWN_RESTRICTED.
7134         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7135         Implement __statfs_chown_restricted.
7136         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7137         _POSIX_CHOWN_RESTRICTED value to zero.
7138         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7139         defined to zero.
7141         * sysdeps/x86_64/rtld-memset.c: New file.
7143 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7145         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7147         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7148         Barcelona machine.  Make default fall through branch of
7149         __x86_64_preferred_memory_instruction check as the integer code path.
7151 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7153         * sysdeps/x86_64/cacheinfo.c
7154         (__x86_64_preferred_memory_instruction): New variable.
7155         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7157         * sysdeps/x86_64/memset.S: Rewrite.
7159 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7161         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7162         __obstack_printf_chk): New prototypes.
7163         (__vasprintf_chk, __vdprintf_chk,
7164         __obstack_vprintf_chk): Likewise.
7165         Add libc_hidden_proto.
7166         * libio/obprintf.c
7167         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7168         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7169         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7170         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7171         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7172         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7173         __obstack_vprintf_chk): New prototypes.
7174         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7175         obstack_vprintf): New inlines.
7176         * debug/dprintf_chk.c: New file.
7177         * debug/vdprintf_chk.c: New file.
7178         * debug/asprintf_chk.c: New file.
7179         * debug/vasprintf_chk.c: New file.
7180         * debug/obprintf_chk.c: New file.
7181         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7182         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7183         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7184         @@GLIBC_2.8.
7185         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7186         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7187         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7188         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7189         libc_hidden_proto.
7190         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7191         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7192         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7193         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7194         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7195         @@GLIBC_2.8.
7196         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7197         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7198         obstack_vprintf_chk.
7199         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7200         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7201         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7202         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7203         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7204         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7206 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7208         [BZ #5779]
7209         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7210         Patch by Roy Marples <roy@marples.name>.
7212         [BZ #5736]
7213         * malloc/malloc.c: Fix typo in comment.
7215         [BZ #5627]
7216         * locale/iso-639.def: Add Shuswap.
7218 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7220         [BZ #5790]
7221         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7222         overwrite *h_errnop/*errnop values from getanswer_r in case of
7223         failure.
7225 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7227         [BZ #5818]
7228         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7229         (verify_persistent_db): Remove one unnecessary test and add a new one
7230         for bad configuration.
7231         (nscd_init): Improve error reported when persistent database cannot
7232         be reused.
7233         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7234         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7235         .suggested_module and .max_db_size and case config file says the
7236         values are zero.
7237         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7239         [BZ #5854]
7240         * nis/ypclnt.c (yp_order): Fix handling of return value of
7241         do_ypcall_tr call.
7242         Patch by Jeff Moyer <jmoyer@redhat.com>.
7244         * po/fr.po: Update from translation team.
7246 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7247             Carlos O'Donell <carlos@systemhalted.org>
7249         [BZ #5012]
7250         * FAQ.in: Describe why glibc needs to be compiled with
7251         optimization.
7253 2008-02-19  Roland McGrath  <roland@redhat.com>
7255         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7257 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7259         [BZ #5737]
7260         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7261         __USE_MISC is defined.
7263 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7265         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7266         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7267         sys/timerfd.h.
7268         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7269         timerfd_gettime, timerfd_settime.
7270         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7271         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7273 2008-02-08  Roland McGrath  <roland@redhat.com>
7275         * elf/elf.h (NT_PPC_SPE): New macro.
7277 2008-02-06  Roland McGrath  <roland@redhat.com>
7279         * Makerules ($(common-objpfx)sysd-rules):
7280         Depend on $(sysdep-makeconfigs).
7282 2008-01-31  Roland McGrath  <roland@redhat.com>
7284         [BZ #5442]
7285         * configure.in: Use -print-file-name if it yields a directory,
7286         for each of include and include-fixed.
7287         * configure: Regenerated.
7289         * Makeconfig (sysd-rules-targets): New variable.
7290         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7291         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7293 2008-01-30  Roland McGrath  <roland@redhat.com>
7295         * manual/libc.texinfo: Update back-cover text.
7297         * elf/elf.h (NT_386_TLS): New macro.
7299 2008-01-29  Roland McGrath  <roland@redhat.com>
7301         * Makeconfig (sysd-rules-patterns): New variable.
7302         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7303         (check-inhibit-asm): New canned sequence, replaces ...
7304         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7305         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7306         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7307         (CFLAGS-rtld): Variable removed.
7309 2008-01-24  Roland McGrath  <roland@redhat.com>
7311         * configure.in: Let configure fragments set base_os.
7312         * configure: Regenerated.
7314 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7316         * po/ko.po: Update from translation team.
7318 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7320         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7322 2008-01-12  Andreas Jaeger  <aj@suse.de>
7324         [BZ #5040]
7325         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7326         Add EPOLLRDHUP.
7328 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7330         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7331         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7332         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7334 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7336         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7337         * elf/dl-close.c (_dl_close): Check for it.
7338         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7339         (_dl_allocate_static_tls): Likewise.
7340         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7341         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7342         to it.
7343         * elf/tst-tls16.c: New file.
7344         * elf/tst-tlsmod16a.c: New file.
7345         * elf/tst-tlsmod16b.c: New file.
7346         * elf/Makefile: Add rules to build and run tst-tls16.
7348 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7350         [BZ #5628]
7351         * bits/shm.h: Fix comment describing shmid_ds.
7352         * sysdeps/gnu/bits/shm.h: Likewise.
7353         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7354         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7355         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7356         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7357         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7358         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7359         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7360         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7361         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7363         [BZ #5607]
7364         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7365         prototypes.
7366         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7367         additional suffixes.
7368         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7369         Add optional functions mq_timedreceive and mq_timedsend.
7370         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7371         * conform/data/pthread.h-data: Fix prototype of
7372         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7373         * conform/data/semaphore.h-data: Allow time.h definitions.
7374         * conform/data/signal.h-data: Likewise.
7375         * conform/data/stdio.h-data: getw and putw are not required in v6.
7376         * conform/data/stdlib.h-data: Change setstate prototype.
7377         * conform/data/string.h-data: Fix strerror_r prototype.
7378         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7379         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7380         Fix readlink prototype.
7381         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7382         in6addr_loopback.
7383         * inet/netinet/in.h: Cleanup namespace.
7384         * posix/regex.h: Likewise.
7385         * resolv/netdb.h: Likewise.
7386         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7387         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7388         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7389         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7390         of names of in in6_addr.
7391         (default_precedence): Likewise.
7392         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7393         NULL definition.
7395 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7397         * conform/data/fmtmsg.h-data: Add missing allows.
7398         * conform/data/ftw.h-data: Likewise.
7399         * conform/data/inttypes.h-data: Likewise.
7400         * conform/data/math.h-data: Likewise.
7401         * conform/data/signal.h-data: Likewise.
7402         * conform/data/net/if.h-data: Likewise.
7403         * conform/data/netinet/in.h-data: Likewise.
7404         * conform/data/sys/socket.h-data: Likewise.
7406         [BZ #5614]
7407         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7408         (__strtok_r): Simplify.
7409         * string/tester.c (test_strtok_r): Add test case for futile search
7410         with single-character seach string.
7412 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7414         * po/ko.po: Update from translation team.
7416 2008-01-11  Andreas Jaeger  <aj@suse.de>
7418         [BZ #5600]
7419         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7420         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7421         kernel header.
7423 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7425         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7426         native interface lookup in all the relevant places.
7428 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7429             Ulrich Drepper  <drepper@redhat.com>
7431         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7432         field.  Use sockaddr_in6 for source_addr.
7433         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7434         (match_prefix): Likewise.
7435         (get_label): Likewise.
7436         (get_precedence): Likewise.
7437         (rfc3484_sort): Change to use indirect access to results array.
7438         Adjust to use of sockaddr_in6.  Replace service_order test with
7439         simple index comparison.
7440         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7441         service_order field.  Adjust qsort_t calls.  Access sorted result
7442         array indirectly through order array.
7443         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7444         * posix/tst-rfc3484-2.c: Likewise.
7445         * posix/tst-rfc3484-3.c: Likewise.
7447 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7449         [BZ #5541]
7450         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7451         pollfd structures.
7452         Patch by André Cruz.
7454         [BZ #5545]
7455         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7456         (clnt_spcreateerror): Likewise.
7458         [BZ #5553]
7459         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7460         (public_mEMALIGn): Likewise.
7461         Patch mostly by Daniel Jacobowitz.
7463 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7465         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7466         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7467         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7468         * stdlib/tst-makecontext2.c: New test.
7470 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7472         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7473         defined.
7474         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7475         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7476         transliteration hooks and REINIT_PARAMS afterwards.
7477         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7478         status.
7479         (REINIT_PARAMS): Define.
7480         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7481         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7482         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7483         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7484         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7485         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7486         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7487         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7488         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7489         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7490         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7491         * iconvdata/tst-iconv7.c: New test.
7493 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7495         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7497 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7499         [BZ #5112]
7500         * nscd/connections.c (restart): Fix condition.
7502 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7504         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7505         __ctype_toupper_loc): Add __THROW.
7507 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7509         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7510         recognition of interface family.
7512         * posix/getconf.c: Update copyright year.
7513         * nss/getent.c: Likewise.
7514         * iconv/iconvconfig.c: Likewise.
7515         * iconv/iconv_prog.c: Likewise.
7516         * elf/ldconfig.c: Likewise.
7517         * catgets/gencat.c: Likewise.
7518         * csu/version.c: Likewise.
7519         * elf/ldd.bash.in: Likewise.
7520         * elf/sprof.c (print_version): Likewise.
7521         * locale/programs/locale.c: Likewise.
7522         * locale/programs/localedef.c: Likewise.
7523         * nscd/nscd.c (print_version): Likewise.
7524         * debug/xtrace.sh: Likewise.
7525         * malloc/memusage.sh: Likewise.
7526         * malloc/mtrace.pl: Likewise.
7527         * debug/catchsegv.sh: Likewise.
7529 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7531         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7532         second lookup.
7534 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7536         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7537         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7539 2007-12-17  Roland McGrath  <roland@redhat.com>
7541         * inet/ether_line.c (ether_line): Remove unused variable.
7543 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7545         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7546         and winp.
7547         * login/openpty.c (openpty): Likewise.
7548         * login/pty.h (openpty, forkpty): Likewise.
7549         * manual/terminal.texi (openpty, forkpty): Likewise.
7551 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7553         * malloc/malloc.c (public_cALLOc): For arenas other than
7554         main_arena, count all bytes inside the mprotect_size range of the
7555         heap as uninitialized.
7557 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7559         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7560         executable stacks.
7562         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7563         mTRIm for all of them.
7564         (mTRIm): Additionally iterate over all free blocks and use madvise
7565         to free memory for all those blocks which contain at least one
7566         memory page.
7567         * malloc/tst-trim1.c: New file.
7568         * malloc/Makefile (tests): Add tst-trim1.
7570         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7572 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7574         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7575         First cast argument to long
7576         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7577         Return long.
7578         (__vdso_clock_gettime): Likewise.
7579         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7580         return long.
7582 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7584         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7585         * locale/nl_langinfo_l.c: Real implementation, copied from
7586         nl_langinfo.c.
7587         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7589 2007-12-01  Jim Meyering  <meyering@redhat.com>
7591         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7592         that would inhibit utf8-optimization of a regexp containing line-
7593         or buffer-anchors, e.g., `^', `$'.
7595 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7597         * time/bug-getdate1.c (do_test): Don't use century values which
7598         aren't valid on 32-bit systems.
7600 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7602         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7603         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7604         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7605         __strcat_g, __strncat_g): Add __asm__.
7607 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7609         [BZ #5477]
7610         * io/fchmodat.c: Fix typo in stub_warning use.
7611         Patch by Petr Salinger.
7613 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7615         * iconvdata/hp-thai8.c: New file.
7616         * iconvdata/Makefile: Add rules for hp-thai8.c.
7617         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7618         * iconvdata/gconv-modules: Likewise.
7620         [BZ #5464]
7621         * iconvdata/hp-greek8.c: New file.
7622         * iconvdata/Makefile: Add rules for hp-greek8.c.
7623         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7624         * iconvdata/gconv-modules: Likewise.
7626         [BZ #5463]
7627         * iconvdata/hp-turkish8.c: New file.
7628         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7629         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7630         * iconvdata/gconv-modules: Likewise.
7632         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7633         (shrink_heap): ... this new function.
7634         (heap_trim): Call shrink_heap instead of grow_heap.
7636         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7637         case don't call alloc_perturb.
7639 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7641         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7642         possible.
7643         * sysdeps/unix/sysv/linux/kernel-features.h
7644         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7645         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7647 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7649         [BZ #5424]
7650         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7651         * stdio-common/Makefile (tests): Add bug22.
7652         * stdio-common/bug22.c: New file.
7654         [BZ #5451]
7655         * time/getdate.c: Fix filling in default values.
7656         * time/bug-getdate1.c: New file.
7657         * time/Makefile: Add rules to build and run bug-getdate1.
7659         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7660         * iconvdata/ebcdic-es.c: Likewise.
7661         * iconvdata/ebcdic-es-a.c: Likewise.
7662         * iconvdata/ebcdic-uk.c: Likewise.
7663         * iconvdata/iso8859-16.c: Likewise.
7664         * iconvdata/viscii.c: Likewise.
7665         * iconvdata/iso8859-9e.c: Likewise.
7666         * iconvdata/Makefile: Adjust appropriately.
7668         [BZ #5428]
7669         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7670         __need_wint_t.
7672 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7674         [BZ #5427]
7675         * iconvdata/hp-roman9.c: New file.
7676         * iconvdata/Makefile: Add rules for hp-roman9.c.
7677         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7678         * iconvdata/gconv-modules: Likewise.
7680         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7681         * iconvdata/Makefile: Adjust appropriately.
7683         [BZ #5441]
7684         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7685         structure, it's allocated with alloca.
7686         * stdio-common/Makefile (tests): Add bug21.
7687         * stdio-common/bug21.c: New file.
7689 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7691         [BZ #5452]
7692         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7693         keyword for gcc's braced-groups.
7695 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7697         [BZ #5454]
7698         * inet/ether_line.c: Strip hostname of whitespaces.
7699         * inet/Makefile (tests): Add tst-ether_line.
7700         * inet/tst-ether_line.c: New file.
7702 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7704         [BZ #5439]
7705         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7707         [BZ #5435]
7708         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7710         * stdlib/tst-setcontext.c: Catch the case where the links gets
7711         messed up and we do not reach main again.
7713         * po/ca.po: Update from translation team.
7715 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7717         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7718         * posix/regex.h (REG_ENOSYS): Likewise.
7719         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7721 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7723         * nscd/nscd.h (MAX_STACK_USE): Define.
7724         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7725         (gc): Initialize stack_used based on allocation in prune_cache.
7726         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7727         Clear array before use.
7729         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7730         memory allocation failed.
7731         * nscd/hstcache.c (cache_addhst): Likewise.
7732         * nscd/grpcache.c (cache_addgr): Likewise.
7733         * nscd/servicescache.c (cache_addserv): Likewise.
7734         * nscd/pwdcache.c (cache_addpw): Likewise.
7735         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7737 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7740         and creat system calls.
7742         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7744 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7746         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7747         Add netiucv/iucv.h.
7748         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7749         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7750         protocol.
7751         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7752         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7753         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7755 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7757         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7758         strncat): Define as macros to avoid compile errors.
7760         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7761         creat entries.
7763 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7765         [BZ #5382]
7766         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7767         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7768         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7769         overflow it.
7770         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7772         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7773         Return zero in case the thread library is not NPTL.
7775         [BZ #5375]
7776         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7777         initializing interface list.
7779         [BZ #5378]
7780         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7781         use result of nss_getgrgid_r if nothing was found.  For other
7782         error return with a failure.
7783         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7785         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7786         macro name.
7788 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7790         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7791         (get_scope): For IPv4 scope, use scopes table.
7792         (fini): Free scopes table if necessary.
7793         (free_scopelist): New function.
7794         (scopecmp): New function.
7795         (gaiconf_init): Also handle scopev4 entries.
7796         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7797         * posix/tst-rfc3484-2.c (do_test): Likewise.
7798         * posix/gai.conf: Document scopev4 defaults.
7799         * posix/Makefile (tests): Add tst-rfc3484-3.
7800         * posix/tst-rfc3484-3.c: New file.
7802         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7803         Teredo tunnels.
7804         * posix/gai.conf: Update for current default tables.
7806 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7808         * po/tr.po: Update from translation team.
7810 2007-11-18  Roland McGrath  <roland@frob.com>
7812         * manual/arith.texi (Remainder Functions): Spelling fix.
7813         From Shaun Silk <genix@mysoul.com.au>.
7815         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7817 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7819         * po/zh_CN.po: Update from translation team.
7821         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7822         Add sys/signalfd.h and sys/eventfd.h.
7824 2007-11-15  Bruno Haible  <bruno@clisp.org>
7826         [BZ #5346]
7827         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7828         union.
7829         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7830         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7831         it needs only fixed stack space. Delay the initialization of
7832         msgid_len until it is needed.
7834 2007-11-15  Andreas Jaeger  <aj@suse.de>
7836         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7837         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7839 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7841         * po/ko.po: Update from translation team.
7843 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7845         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7846         significantly.  The device type is also part of the ifinfomsg data.
7848         * po/sv.po: Update from translation team.
7849         * po/nl.po: Likewise.
7851         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7852         to wake up in 24 hours.
7854         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7856 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7858         * po/cs.po: Update from translation team.
7859         * po/pl.po: Likewise.
7861         * include/ifaddrs.h: Remove in6ai_temporary.
7862         (struct in6addrinfo): Add index element.
7863         Declare __check_native.
7864         * inet/Makefile (aux): Add check_native.
7865         * sysdeps/unix/sysv/linux/check_native.c: New file.
7866         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7867         IFA_F_TEMPORARY.  Pass back ifa_index.
7868         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7869         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7870         call __check_native if necessary.
7871         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7872         to sort addresses.  Pass information about the results.
7873         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7874         of rfc3484_sort interface.
7875         * posix/tst-rfc3484-2.c: Likewise.
7877         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7878         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7879         for _quicksort.
7880         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7881         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7882         on as third parameter to compare function and _quicksort.
7883         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7884         to the compare function.
7885         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7886         * Versions.def: Add GLIBC_2.8 for libc.
7888         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7889         * posix/tst-rfc3484-2.c: Likewise.
7891         * include/kernel-features.h: Moved to...
7892         * sysdeps/mach/hurd/kernel-features.h: ...here.
7894 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7896         * sysdeps/i386/i586/memcpy_chk.S: New file.
7897         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7898         * sysdeps/i386/i586/memset_chk.S: Likewise.
7900 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7902         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7903         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7904         list of interfaces.  Also store prefix length.
7905         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7906         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7907         prefix if source and destination address are in the same subnet.
7908         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7909         Always look for matching record in in6ai list.
7910         Correct source_addr_len value for IPv6->IPv4 converted records.
7912 2007-11-11  Roland McGrath  <roland@frob.com>
7914         * include/kernel-features.h: New file.
7916 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7918         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7919         complications for 64-bit platforms.
7921         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7922         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7923         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7924         open64_2.
7925         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7926         entries.
7927         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7928         * sysdeps/wordsize-64/alphasort.c: New file.
7929         * sysdeps/wordsize-64/alphasort64.c: New file.
7930         * sysdeps/wordsize-64/fseeko.c: New file.
7931         * sysdeps/wordsize-64/fseeko64.c: New file.
7932         * sysdeps/wordsize-64/ftello.c: New file.
7933         * sysdeps/wordsize-64/ftello64.c: New file.
7934         * sysdeps/wordsize-64/ftw.c: New file.
7935         * sysdeps/wordsize-64/ftw64.c: New file.
7936         * sysdeps/wordsize-64/iofgetpos.c: New file.
7937         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7938         * sysdeps/wordsize-64/iofopen.c: New file.
7939         * sysdeps/wordsize-64/iofopen64.c: New file.
7940         * sysdeps/wordsize-64/iofsetpos.c: New file.
7941         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7942         * sysdeps/wordsize-64/lockf.c: New file.
7943         * sysdeps/wordsize-64/lockf64.c: New file.
7944         * sysdeps/wordsize-64/mkostemp.c: New file.
7945         * sysdeps/wordsize-64/mkostemp64.c: New file.
7946         * sysdeps/wordsize-64/mkstemp.c: New file.
7947         * sysdeps/wordsize-64/mkstemp64.c: New file.
7948         * sysdeps/wordsize-64/scandir.c: New file.
7949         * sysdeps/wordsize-64/scandir64.c: New file.
7950         * sysdeps/wordsize-64/tmpfile.c: New file.
7951         * sysdeps/wordsize-64/tmpfile64.c: New file.
7952         * sysdeps/wordsize-64/versionsort.c: New file.
7953         * sysdeps/wordsize-64/versionsort64.c: New file.
7954         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7955         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7956         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7957         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7958         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7959         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7960         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7961         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7962         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7963         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7964         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7965         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7967         * crypt/sha256-crypt.c: Fix a comment.
7968         * crypt/sha512-crypt.c: Likewise.
7970 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7972         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7974 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7976         [BZ #5277]
7977         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7978         because output buffer is too small break, don't loop.
7979         * iconvdata/Makefile (tests): Add bug-iconv6.
7980         * iconvdata/bug-iconv6.c: New file.
7982 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7984         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7985         with size_t type.
7986         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7987         size_t.  Add casts where needed.
7989         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7990         old headers, don't call avc_has_perm if we don't have the
7991         permission information.
7993 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7995         * elf/rtld.c (dl_main): Use the page size to find the map start.
7997 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7999         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8000         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8002         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8003         when the lookup call failed.
8005         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8006         Add prune_cond and wakeup_time.
8007         (CACHE_PRUNE_INTERNAL): Define.
8008         Update declarations of prune_cache and setup_thread.
8009         * nscd/connections.c (dbs): Update initializers.
8010         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8011         (nscd_init): Default number of threads is now 4.
8012         (invalidate_cache): Take lock before calling prune_cache.
8013         (handle_request): If SELinux forbids the request, say so.
8014         (readylist_cond): Use static initializer.
8015         (nscd_run_prune): New function.  Used only by pruning threads.
8016         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8017         here.
8018         (fd_ready): Update nscd_run reference.
8019         (start_threads): No need to initialize readylist_cond.
8020         Start pruning threads separately.
8021         * nscd/nscd_setup_thread.c: Change return value type to int and always
8022         return 0.
8023         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8024         to int and return nonzero value if we can use the TID address hack.
8025         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8026         the database is later than the new entry's timeout, update the
8027         wakeup time and wake the cleanup thread.
8028         (prune_cache): Return seconds the next entry in the database is still
8029         valid.  Remove locking for pruning here.
8030         * nscd/nscd.conf: Document default number of threads.
8032 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8034         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8035         stack is properly aligned for the target function.
8036         Correct unwind info.
8038         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8039         when using auditing libraries.
8041 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8043         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8044         _nss_dns_getnetbyaddr2_r.
8045         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8046         extra parameter to getanswer_r.
8047         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8048         _nss_dns_getnetbyaddr2_r.
8050         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8051         gethstbynm3_r.
8052         * nscd/gethstbynm2_r.c: Remove.
8053         * nscd/gethstbynm3_r.c: New file.
8054         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8055         __gethostbyaddr_r.
8056         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8057         __gethostbyaddr_r compatibility wrapper.
8058         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8059         determining timeout of entry.
8060         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8061         __gethostbyaddr2_r.
8062         (addhstbyX): Pass reference to variable for TTL to lookup and
8063         cache_addhst.
8064         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8065         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8066         and __nss_next2.  Remove __nss_services_lookup.
8067         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8068         Add compat wrapper.
8069         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8070         __nss_next2.
8071         * nss/getXXent_r.c: Likewise.
8072         * nss/getnssent_r.c: Likewise.
8073         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8074         does not exist in module, try the optional second name.
8075         (__nss_next2): New function.
8076         (__nss_next): Now wrapper around __nss_next2.
8077         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8078         Declare __nss_next2.
8079         Adjust definition of db_lookup_function type.
8080         * nss/service-lookup.c: Define NO_COMPAT.
8081         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8082         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8083         * inet/ether_ntoh.c: Likewise.
8084         * sunrpc/netname.c: Likewise.
8085         * sunrpc/publickey.c: Likewise.
8086         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8087         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8088         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8089         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8090         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8092         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8094         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8096 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8098         [BZ #5204]
8099         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8100         * crypt/sha512c-test.c: Likewise.
8102         [BZ #5225]
8103         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8104         to keep track of end of %[ format string element.
8105         * stdio-common/Makefile (tests): Add bug20.
8106         * stdio-common/bug20.c: New file.
8108         [BZ #5222]
8109         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8110         path elements in counting mode.
8112 2007-10-27  Andreas Jaeger  <aj@suse.de>
8114         [BZ #5040]
8115         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8117         [BZ #3112]
8118         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8119         (__cleanup): Free shared library when exiting.
8120         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8121         (__cleanup): Free shared library when exiting.
8123 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8125         [BZ #2549]
8126         * math/libm-test.inc (check_float_internal): Support
8127         denormalized return.
8129 2007-10-23  Andreas Jaeger  <aj@suse.de>
8131         [BZ #5208]
8132         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8133         __LONG_LONG_PAIR to handle little endian byte order.
8134         Suggested by abhishekrai@google.com
8136 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8138         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8140 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8142         * nscd/cache.c (prune_cache): Move test for modified file outside
8143         of locking.
8145 2007-10-21  Andreas Jaeger  <aj@suse.de>
8147         * manual/texinfo.tex: Update to latest version.
8149         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8151         * manual/arith.texi (Status bit operations): Fix formatting.
8153         * manual/errno.texi (Error Messages): Fix formatting.
8155         * manual/sysinfo.texi (System Parameters): Fix formatting.
8157         * manual/libc.texinfo: Update VERSION and UPDATED.
8159 2007-10-19  Roland McGrath  <roland@redhat.com>
8161         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8163 2007-10-06  David S. Miller  <davem@davemloft.net>
8165         * configure.in: Add sparcv9v2 and sparc64v2.
8166         * scripts/config.sub: Likewise.
8167         * configure: Regenerate.
8168         * elf/elf.h (HWCAP_SPARC_N2): New.
8169         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8170         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8171         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8172         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8173         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8174         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8175         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8177 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8179         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8180         even if the poll result indicates there is data to read.
8181         Patch by Jeff Moyer <jmoyer@redhat.com>.
8183 2007-10-18  Roland McGrath  <roland@redhat.com>
8185         * elf/elf.h (NT_PPC_VMX): New macro.
8187 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8189         * version.h (VERSION): Set to 2.7.90.
8191 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8193         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8194         weak_alias.
8196 2007-10-17  Roland McGrath  <roland@frob.com>
8198         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8199         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8201 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8203         * version.h (VERSION): Bump to 2.7.
8204         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8206         [BZ #5186]
8207         * time/tzset.c (__tz_convert): Don't force testing for a change of
8208         TZ if not called from localtime.  But then also see whether the
8209         file changed, in case __use_tzfile is set.
8211         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8212         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8213         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8214         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8215         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8216         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8217         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8218         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8220 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8222         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8223         and admin selects to be able to replace the gai.conf file, lock
8224         data structures around the qsort call.
8226 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8228         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8229         new memset.
8230         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8231         too high for the improvements.  Implement bzero unconditionally for
8232         use in libc.
8234 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8235             Jakub Jelinek  <jakub@redhat.com>
8237         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8238         even when time_t is 32-bit.
8239         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8240         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8241         always set after the search.
8243 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8245         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8246         unreachable code on 32-bit machines.
8248 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8250         [BZ #5184]
8251         * time/strftime_l.c: Include stdbool.h.
8252         (my_strftime): New wrapper, old function renamed to...
8253         (__strftime_internal): ... new function.  Add tzset_called
8254         argument, pass it down to recursive calls, don't call tzset ()
8255         if already true, set to true after call to tzset ().
8257 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8259         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8260         into account when copying TZ string.
8262 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8264         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8265         num_transition rather than num_transitions - 1.
8267 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8269         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8270         PIC indirect jump.
8272         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8273         a local label rather than HIDDEN_JUMPTARGET.
8275 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8277         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8278         (init_cacheinfo): Initialize it.
8279         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8280         Always define bzero.
8281         Remove non-glibc code.
8282         * sysdeps/x86_64/bzero.S: Make an empty file.
8284 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8286         * sysdeps/x86_64/cacheinfo.c
8287         (__x86_64_preferred_memory_instruction): New.
8288         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8290         * sysdeps/x86_64/memset.S: Rewrite.
8292 2007-10-15  Roland McGrath  <roland@redhat.com>
8294         * po/libc.pot: Regenerated.
8296 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8298         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8299         pointers.
8301         [BZ #3425]
8302         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8303         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8304         address record to T_A/T_AAAA requests.
8306 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8308         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8310         * posix/glob.c: Add some branch prediction throughout.
8312         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8313         read from nscd.
8315         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8316         service_order.
8317         (rfc3484_sort): Make sure that even if qsort doesn't support
8318         stable sorting out sorting here is stable by comparing service_order.
8319         (getaddrinfo): Initialize service_order.
8320         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8321         service_order field to sorting structure.
8322         * posix/tst-rfc3484-2.c (do_test): Likewise.
8324         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8325         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8326         __tzset_parse_tz and updating of daylight, timezone, tzname into
8327         update_vars.
8328         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8329         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8330         happens in __tz_compute.
8331         * time/tzfile.c (__tzfile_read): Also read TZ string.
8332         (find_transition): Fold into __tzfile_compute.
8333         (__tzfile_compute): For times beyond the last transition try to
8334         use the TZ string.
8335         * timezone/tst-timezone.c: Information in daylight and tzname does
8336         change for Asia/Tokyo timezone with more concrete information.
8337         Remove the test.
8339         * include/stdio.h: Add libc_hidden_proto for ftello.
8340         * libio/ftello.c: Add libc_hidden_def.
8342         [BZ #1140]
8343         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8344         on the specified time and not the last entries in the file.  Move
8345         code to determine tzname[] to...
8346         (find_transition): ...here.  Add ugly guess for times before the
8347         first transition.
8349 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8351         [BZ #3195]
8352         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8353         no entry.
8354         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8355         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8356         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8357         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8359         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8360         read mechanism when there are no group members and avoid no-op
8361         read syscall in this case.
8363         [BZ #3242]
8364         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8365         (__readall): If reading failed due to EAGAIN error wait a bit
8366         and possibly try again.
8367         (__readvall): Likewise.
8369 2007-10-13  Bruno Haible  <bruno@clisp.org>
8371         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8372         when we cannot recode the message.
8374 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8376         [BZ #4359]
8377         * libio/__freading.c (__freading): Don't return true for
8378         write-only streams.  For read/write streams, check whether we
8379         performed a read operation already.
8380         * libio/Makefile (tests): Add tst-ext2.
8381         * libio/tst-ext2.c: New file.
8383 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8385         * locale/programs/repertoire.c (repertoire_read): Always free
8386         memory for repertoire file name [Coverity CID 270].
8388         * elf/cache.c (save_aux_cache): Free memory allocated for
8389         temporary file name [Coverity CID 267].
8391 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8393         * misc/Makefile (headers): Add bits/error.h.
8395 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8397         * posix/fnmatch_loop.c: Take rule index returned as part of
8398         findidx return value into account when accessing weights.
8399         * posix/regcomp.c: Likewise.
8400         * posix/regexec.c: Likewise.
8402         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8403         (skip_to): Fix problems with parameter of elifdef/elifndef.
8405 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8407         * iconv/gconv_simple.c: Add some branch prediction.
8409 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8411         * locale/programs/ld-collate.c (collate_read): If ignore_content
8412         and nowtok is tok_define, eat any tok_eol tokens.
8414 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8416         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8417         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8419         * inet/netinet/in.h: Don't include bits/socket.h.
8420         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8421         macro.
8422         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8424 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8426         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8427         and tok_elifndef.
8428         * locale/programs/locfile-kw.gperf: Likewise.
8429         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8431 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8433         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8434         (__find_specwc): Change into __extern_always_inline function.
8435         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8436         (__parse_one_specmb): Remove ps argument.
8437         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8438         Adjust __find_specmb and __parse_one_specmb callers.
8439         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8440         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8441         Removed.
8442         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8443         caller.
8445 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8447         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8448         with some Pentium Ds.
8450 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8452         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8453         __read not read.
8454         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8455         __write not write.
8457 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8459         [BZ #181]
8460         * locale/C-time.c: Set week_1stday data to 19971201.
8461         * locale/programs/ld-time.c (time_finish): Default for
8462         first_workday is Monday.
8464         [BZ #2633]
8465         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8467         [BZ #5103]
8468         * posix/glob.c (glob): Recognize patterns starting \/.
8469         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8470         (main): Add test for pattern starting \/.
8472         * misc/error.h: Use __const instead of const.
8473         * misc/bits/error.h: Likewise.
8475 2007-10-07  Andreas Jaeger  <aj@suse.de>
8477         * include/bits/error.h: New file.
8479         * misc/bits/error.h (error_at_line): Fix prototype.
8481 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8483         [BZ #3924]
8484         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8485         more little bugs in creating the stack frame when pltexit has to
8486         be called.
8488         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8489         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8491         [BZ #4407]
8492         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8493         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8494         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8495         * math/libm-test.inc: Add test for this case.
8497         [BZ #5010]
8498         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8499         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8500         map service succeeded.
8501         (svc_is_mapped): New function.
8502         (svc_unregister): Use it before trying to unmap service.
8504 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8506         * timezone/zic.c: Update from tzcode2007h.
8508         [BZ #5063]
8509         * timezone/africa: Update from tzdata2007h.
8510         * timezone/antarctica: Likewise.
8511         * timezone/asia: Likewise.
8512         * timezone/australasia: Likewise.
8513         * timezone/europe: Likewise.
8514         * timezone/leapseconds: Likewise.
8515         * timezone/northamerica: Likewise.
8516         * timezone/southamerica: Likewise.
8517         * timzeone/zone.tab: Likewise.
8519         [BZ #5104]
8520         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8522         [BZ #5113]
8523         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8524         avoid warning with -Wconversion.
8525         (__strndup): Likewise.
8526         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8528         [BZ #5112]
8529         * nscd/connections.c (restart): Don't resync if database is
8530         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8532         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8533         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8535         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8536         evetnfd_read, eventfd_write.
8537         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8538         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8539         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8540         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8541         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8542         eventfd_write for GLIBC_2.7.
8544         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8545         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8546         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8547         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8549 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8551         * stdlib/msort.c: Include stdint.h.
8552         (struct msort_param): New type.
8553         (msort_with_tmp): Use struct msort_param pointer for unchanging
8554         parameters.  Add optimized handling for several common sizes
8555         and indirect sorting mode.
8556         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8557         sorting.
8558         Suggested by Belazougui Djamel .
8560         * stdlib/Makefile (tests): Add tst-qsort2.
8561         * stdlib/tst-qsort2.c: New test.
8563 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8565         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8566         for dup2 in case another thread races with the current one.  Retry
8567         in this case.
8569         * misc/error.h: Remove support for use outside of libc.  We have to
8570         include <features.h> now.  Include <bits/error.h> if possible.
8571         * misc/bits/error.h: New file.
8573 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8575         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8576         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8577         __extern_always_inline functions unconditionally, drop macros.
8579         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8580         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8581         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8583         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8584         add __artificial__ attribute.
8586 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8588         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8589         backward to forward direction.
8591         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8593         [BZ #645]
8594         * locale/programs/ld-collate.c (collate_finish): Compare against last
8595         used section which is known to have rules defined.
8596         (collate_read): After order_start, correctly record order of sections
8597         and queue sections up.
8599 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8601         [BZ #5071]
8602         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8603         the same number of pages.
8604         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8606         * locale/programs/ld-collate.c (collate_read): After initial copy
8607         statement, continue in state 0.
8609         * include/stdio_ext.h (__fsetlocking): Define as macro.
8611 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8613         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8614         of section order.
8616         * po/pt_BR.po: Fix typo.
8618 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8620         * iconvdata/Makefile (modules): Add ISO8859-9E.
8621         (distribute): Add iso8859-9e.c.
8622         (gen-8bit-gap-modules): Add iso8859-9e.
8623         * iconvdata/iso8859-9e.c: New file.
8624         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8625         * iconvdata/TESTS: Likewise.
8626         * iconvdata/tst-tables.sh: Likewise.
8628         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8630         * locale/iso-639.def: Add several new entries.
8632 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8634         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8635         void * pointers instead of struct link_map **.
8636         (_dl_scope_free): Change argument type to void *.
8637         * include/link.h (struct link_map): Change type of l_reldeps
8638         to struct link_map_reldeps, move l_reldepsact into that
8639         struct too.
8640         * elf/dl-deps.c: Include atomic.h.
8641         (_dl_map_object_deps): Only change l->l_initfini when it is
8642         fully populated, use _dl_scope_free for freeing it.  Optimize
8643         removal of libs from reldeps by using l_reserved flag, when
8644         some removal is needed, allocate a new list instead of
8645         reallocating and free the old with _dl_scope_free.  Adjust
8646         for l_reldeps and l_reldepsact changes.
8647         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8648         searching in l_initfini and l_reldeps without holding dl_load_lock.
8649         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8650         l_reldepsact changes.
8651         * elf/dl-close.c (_dl_close_worker): Likewise.
8652         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8654 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8656         * iconvdata/Makefile (modules): Add KOI8-RU.
8657         (distribute): Add koi8-ru.c.
8658         (gen-8bit-gap-modules): Add koi8-ru.
8659         * iconvdata/koi8-ru.c: New file.
8660         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8661         * iconvdata/TESTS: Likewise.
8662         * iconvdata/tst-tables.sh: Likewise.
8664         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8666 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8668         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8669         with __warning__/__error__ attributes.
8670         (__warnattr): Define.
8671         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8672         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8673         __warnattr.
8674         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8675         of __*_chk if compile time detectable overflow is found.
8676         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8677         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8678         with __warnattr.
8679         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8680         instead of __*_chk if compile time detectable overflow is found.
8681         (__gets_alias): Rename to...
8682         (__gets_warn): ... this.  Add __warnattr.
8683         (gets): Call __gets_warn instead of __gets_alias.
8684         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8685         aliases with __warnattr.
8686         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8687         time detectable overflow is found.
8688         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8689         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8690         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8691         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8692         __getdomainname_chk_warn): New aliases with __warnattr.
8693         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8694         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8695         __*_chk_warn instead of __*_chk if compile time detectable overflow
8696         is found.
8697         (__getgroups_chk): Rename argument to __listlen from listlen.
8698         (__getwd_alias): Rename to...
8699         (__getwd_warn): ... this.  Add __warnattr.
8700         (getwd): Call __getwd_warn instead of __getwd_alias.
8701         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8702         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8703         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8704         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8705         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8706         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8707         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8708         compile time detectable overflow is found.
8709         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8710         to use __*_chk or not.
8711         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8712         in comparisons which function should be called and in __*_chk*
8713         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8714         detectable overflow is found.
8715         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8716         __*_chk argument.
8717         * debug/tst-chk1.c (do_test): Add a few more tests.
8719 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8721         [BZ #5058]
8722         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8723         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8724         (_nl_unload_domain): Finalize conversions_lock.
8725         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8726         handling table of known conversions.
8728 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8730         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8731         close_not_cancel_no_status instead of close.
8733 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8735         [BZ #5028]
8736         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8737         nrules != 0 for multibyte chars.
8739 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8741         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8742         Provide better error message in case the type is unknown.
8744         [BZ #4963]
8745         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8746         * string/stratcliff.c: Make usable to test wide char functions.
8747         * wcsmbs/wcsatcliff.c: New file.
8748         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8750         [BZ #4972]
8751         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8752         (distribute): Add mac-centraleurope.c.
8753         (gen-8bit-gap-modules): Add mac-centraleurope.
8754         * iconvdata/mac-centraleurope.c: New file.
8755         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8756         * iconvdata/TESTS: Likewise.
8757         * iconvdata/tst-tables.sh: Likewise.
8759         [BZ #5043]
8760         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8762 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8764         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8765         from __x86_64_core_cache_size_half.
8766         (init_cacheinfo): Compute shared cache size for AMD processors with
8767         shared L3 correctly.
8768         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8769         name change.
8770         Patch in large parts by Evandro Menezes.
8772 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8774         * elf/dl-lookup.c (add_dependency): Handle failing memory
8775         allocation for dependency list.  Remove unnecessary check.
8777         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8778         open/close when determining source addresses.
8780         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8781         sha512-crypt, and sha512.
8782         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8783         (distribute): Add sha256.h and sha512.h.
8784         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8785         and call the appropriate code.
8786         * crypt/sha256-crypt.c: New file.
8787         * crypt/sha256.c: New file.
8788         * crypt/sha256.h: New file.
8789         * crypt/sha256c-test.c: New file.
8790         * crypt/sha256test.c: New file.
8791         * crypt/sha512-crypt.c: New file.
8792         * crypt/sha512.c: New file.
8793         * crypt/sha512.h: New file.
8794         * crypt/sha512c-test.c: New file.
8795         * crypt/sha512test.c: New file.
8797 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8799         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8800         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8801         __syslog_chk.
8803 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8805         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8806         %as in fscanf format strings.
8808         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8809         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8810         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8811         Likewise.
8812         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8813         Likewise.
8815         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8816         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8817         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8818         * elf/dl-sym.c (do_sym): Likewise.
8819         * include/link.h (struct link_map): Add l_serial field.
8820         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8821         * elf/dl-lookup.c (add_dependency): Add flags argument.
8822         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8823         flags, use THREAD_GSCOPE_RESET_FLAG before and
8824         THREAD_GSCOPE_SET_FLAG after
8825         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8826         Don't dereference map until it has been found on some list.
8827         If map->l_serial changed, return -1.
8829 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8831         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8832         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8833         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8834         libc_hidden_proto.
8835         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8836         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8837         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8838         add libc_hidden_proto.
8839         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8840         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8841         conformance requested.
8842         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8843         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8844         conformance requested.
8845         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8846         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8847         conformance requested.
8848         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8849         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8850         ISO C99 or POSIX conformance requested.
8851         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8852         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8853         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8854         and __isoc99_vsscanf@@GLIBC_2.7.
8855         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8856         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8857         (tests): Add scanf14.
8858         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8859         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8860         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8861         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8862         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8863         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8864         from using internal headers.
8865         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8866         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8867         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8868         and __isoc99_vswscanf@@GLIBC_2.7.
8869         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8870         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8871         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8872         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8873         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8874         * stdio-common/isoc99_scanf.c: New file.
8875         * stdio-common/isoc99_vsscanf.c: New file.
8876         * stdio-common/isoc99_vscanf.c: New file.
8877         * stdio-common/isoc99_vfscanf.c: New file.
8878         * stdio-common/isoc99_fscanf.c: New file.
8879         * stdio-common/isoc99_sscanf.c: New file.
8880         * wcsmbs/isoc99_fwscanf.c: New file.
8881         * wcsmbs/isoc99_vswscanf.c: New file.
8882         * wcsmbs/isoc99_swscanf.c: New file.
8883         * wcsmbs/isoc99_wscanf.c: New file.
8884         * wcsmbs/isoc99_vwscanf.c: New file.
8885         * wcsmbs/isoc99_vfwscanf.c: New file.
8886         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8887         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8888         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8889         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8890         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8891         * stdio-common/scanf14.c: New test.
8892         * stdio-common/scanf15.c: New test.
8893         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8894         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8895         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8896         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8897         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8898         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8899         __nldbl___isoc99_scanf@@GLIBC_2.7,
8900         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8901         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8902         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8903         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8904         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8905         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8906         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8907         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8908         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8909         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8910         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8911         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8912         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8913         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8914         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8915         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8916         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8917         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8918         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8919         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8920         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8921         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8922         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8923         functions.
8924         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8925         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8926         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8927         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8928         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8929         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8930         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8931         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8932         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8933         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8934         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8935         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8937         * stdio-common/Makefile (tests): Add scanf13.
8938         (scanf13-ENV): New.
8939         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8940         m modifier followed by l.
8941         (STRING_ARG): Add width argument.
8942         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8943         <case L_('C')>: Handle %mlc and %mC.
8944         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8945         arguments.
8946         * stdio-common/scanf13.c: New test.
8948         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8949         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8951 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8953         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8954         type and __THROW marker of splice, vmsplice, and tee.
8955         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8956         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8957         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8958         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8959         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8960         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8961         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8962         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8963         as cancellation points.
8965 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8967         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8968         parse more than three parts of the version number.
8970 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8972         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8973         modifier.  Patch by Jakub Jelinek.
8975 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8977         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8978         call_fallocate in misc subdir.
8979         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8980         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8981         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8982         instead of __fallocate64.
8983         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8985 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8987         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8988         * rt/Makefile (headers): Add bits/mqueue2.h.
8989         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8990         optimizing with GCC and __va_arg_pack_len is defined.
8991         * rt/bits/mqueue2.h: New file.
8992         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8993         (mq_open): New strong_alias.
8994         (__mq_open_2): New function.
8995         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8996         (mq_open): New strong_alias.
8997         (__mq_open_2): New function.
8998         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8999         * Versions.def (librt): Add GLIBC_2.7 version.
9000         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9001         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9003         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9004         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9005         is defined rather than when not C++.
9006         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9007         __openat64_alias): New redirects.
9008         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9009         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9010         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9011         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9012         functions instead of function-like macros.
9014 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9016         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9017         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9018         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9020 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9022         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9023         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9025 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9027         * inet/tst-network.c: Increment ERRORS for failing tests.
9029 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9031         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9032         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9033         implement as __extern_always_inline function.
9034         (vsyslog): Define as __extern_always_inline function unconditionally.
9035         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9036         When __va_arg_pack is defined, implement as __extern_always_inline
9037         functions.
9038         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9039         __extern_always_inline functions unconditionally.
9040         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9041         bits/stdio2.h will be included.
9042         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9043         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9044         implement as __extern_always_inline functions.
9045         (vswprintf, vwprintf, vfwprintf): Define as
9046         __extern_always_inline functions unconditionally.
9047         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9049 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9051         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9052         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9053         attribute.
9054         * include/features.h (__USE_EXTERN_INLINES): Define only when
9055         __extern_inline is defined.
9056         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9057         is defined instead of when not __cplusplus.
9058         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9059         is defined instead of when not __cplusplus.
9060         * socket/sys/socket.h: Include bits/socket2.h when
9061         __extern_always_inline is defined instead of when not __cplusplus.
9062         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9063         is defined instead of when not __cplusplus.
9064         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9065         is defined instead of when not __cplusplus.
9066         * string/string.h: Include bits/string3.h when __extern_always_inline
9067         is defined instead of when not __cplusplus.
9068         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9069         is defined instead of when not __cplusplus.
9070         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9071         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9072         is not defined.
9073         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9074         defined __extern_always_inline instead of !defined __cplusplus.
9075         * libio/bits/stdio-ldbl.h: Likewise.
9076         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9077         * misc/bits/syslog.h (syslog): Don't define for C++.
9078         (vsyslog): Use __extern_always_inline function for C++ instead of
9079         a macro.
9080         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9081         whenever that macro is defined.
9082         (vprintf): Don't provide the inline for C++.
9083         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9084         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9085         define the macros for C++.
9086         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9087         __extern_always_inline functions for C++.
9088         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9089         stat64, lstat64, fstat64, fstatat64): Don't define if not
9090         __USE_EXTERN_INLINES.
9091         * wcsmbs/bits/wchar2.h: Fix #error message.
9092         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9093         (vswprintf, vwprintf, vfwprintf): Define using
9094         __extern_always_inline functions for C++.
9095         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9096         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9097         strncpy, strcat, strncat): Define as __extern_always_inline
9098         functions instead of macros for C++.
9099         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9100         defined __extern_inline.
9101         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9102         to __extern_inline whenever that macro is defined.
9103         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9104         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9105         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9106         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9107         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9108         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9109         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9110         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9111         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9112         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9113         prototypes.  Only provide __extern_inline routines if
9114         __USE_EXTERN_INLINES.
9115         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9116         tests.
9117         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9118         For now avoid some *printf tests in C++.  Skip all testing
9119         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9120         is not.
9121         * debug/tst-chk4.cc: New file.
9122         * debug/tst-chk5.cc: New file.
9123         * debug/tst-chk6.cc: New file.
9124         * debug/tst-lfschk4.cc: New file.
9125         * debug/tst-lfschk5.cc: New file.
9126         * debug/tst-lfschk6.cc: New file.
9127         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9128         prototypes in C++.
9129         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9130         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9131         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9133 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9135         * po/cs.po: Update from translation team.
9137 2007-09-11  Roland McGrath  <roland@redhat.com>
9139         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9140         compiling.
9142 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9144         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9146 2007-09-05  Roland McGrath  <roland@redhat.com>
9148         * manual/signal.texi (Signaling Another Process): Typo fix.
9149         From Karl Berry <karl@freefriends.org>.
9151 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9153         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9154         zero if not defined.
9155         (make_request): Recognize optimistic addresses and treat them like
9156         deprecated addresses.
9157         Reported by Neil Horman <nhorman@redhat.com>.
9159 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9161         * nscd/connections.c (send_ro_fd): Also transfer file size.
9162         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9163         file size don't call fstat.
9165         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9166         ahead and map the file.  This should always be correct and we can
9167         catch problems later.
9169 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9171         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9172         prototypes.
9173         (__fread_alias, __fread_unlocked_alias): New aliases.
9174         (fread): New extern inline.
9175         (fread_unlocked): Likewise.  Undef macro before definition of
9176         the inline function.
9177         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9178         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9179         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9180         and __fread_unlocked_chk@@GLIBC_2.7.
9181         * debug/fread_chk.c: New file.
9182         * debug/fread_u_chk.c: New file.
9183         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9185 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9187         * sysdeps/unix/sysv/linux/syscalls.list
9188         (personality): Change caller to EXTRA.
9190 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9192         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9193         to keep gcc quiet.
9194         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9196         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9197         NDEBUG is defined.
9199         * Makerules: Use -p option with mkdir.
9201         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9202         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9203         (_xdr_directory_obj): Likewise.
9204         (xdr_entry_obj): Likewise.
9205         (xdr_group_obj): Likewise.
9206         (xdr_link_obj): Likewise.
9207         (xdr_table_obj): Likewise.
9208         (_xdr_nis_result): Likewise.
9209         (_xdr_ns_request): Likewise.
9210         (_xdr_ib_request): Likewise.
9211         (_xdr_nis_taglist): Likewise.
9212         (xdr_cback_data): Likewise.
9213         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9214         (xdr_ypresp_maplist): Likewise.
9216         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9218         * posix/regex_internal.h: Prevent some declarations and definitions
9219         to be seen when used in tests.
9221         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9222         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9224         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9226         * config.make.in (datarootdir): Add to shut up configure.
9228         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9229         associativity for fully-associative caches.
9231         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9232         requests.  Fill on more associativity values for L2.
9233         Patch mostly by Evandro Menezes.
9235 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9237         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9238         (_libc_vdso_platform_setup): Avoid using exported variable by using
9239         alias.
9241         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9243         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9244         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9245         defined.
9247 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9249         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9250         align stack for call if pltexit is to be used.
9252         [BZ #3924]
9253         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9254         align for function call in case pltexit has to be called later.
9256         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9257         implicit atomic operation when storing function pointer.
9258         (_dl_runtime_profile): Likewise.
9260 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9262         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9263         NIS_NOTFOUND.
9265 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9267         [BZ #4566]
9268         * string/strtok.c: Fix typo in comment.
9270         [BZ #4582]
9271         * debug/segfault.c: Fix typos in comments.
9273         [BZ #4588]
9274         * stdio-common/tempnam.c: Fix comment, it is not checked that
9275         TMPDIR points to a writable directory.
9277         [BZ #4726]
9278         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9279         memory allocated for the name server address.
9281         [BZ #4946]
9282         * nscd/connections.c (handle_request): Using sendfile always
9283         requires that mmap is used for the database.
9284         Patch by Petr Baudis <pasky@suse.cz>.
9286         [BZ #4905]
9287         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9288         suddenly has two or more addresses, ignore it and remove the old
9289         entry.
9291         [BZ #4814]
9292         * resolv/res_hconf.c: Prepare for compiling outside libc.
9293         * nscd/res_hconf.c: New file.
9294         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9295         the new file.
9296         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9297         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9299         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9301         [BZ #4925]
9302         * debug/pcprofiledump.c: Turn on internationalization by calling
9303         setlocale.  Patch mostly by Benno Schulenberg.
9305         [BZ #4936]
9306         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9307         the state.
9308         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9309         * iconvdata/bug-iconv5.c: New file.
9311 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9313         [BZ #4896]
9314         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9315         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9316         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9317         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9318         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9319         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9320         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9321         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9323 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9325         [BZ #4937]
9326         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9327         lookup loop.  Suggested by John Reiser.
9329 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9331         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9333 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9335         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9336         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9337         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9338         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9339         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9340         to...
9341         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9343 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9345         * po/nl.po: Update from translation team.
9347 2007-08-16  Andreas Jaeger  <aj@suse.de>
9349         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9350         Reported by Peter Festner <peter.festner@ewetel.net>.
9352 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9354         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9356 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9358         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9359         to check for undefined symbols.
9361         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9362         If the syscall fails, set errno to the actual returned error number
9363         rather than EINVAL.
9364         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9365         arguments are incorrect, set errno to EINVAL, if the syscall
9366         fails, set errno to the actual returned error number.
9368         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9369         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9371         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9372         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9373         file.
9374         (ASI_PNF, ASI_BLK_P): Don't define.
9375         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9376         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9377         file.
9378         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9379         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9380         file.
9382 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9384         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9385         FE_UNDERFLOW on Niagara CPUs.
9387         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9388         exceptions.
9390 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9392         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9393         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9394         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9395         flush should be used or not inside of the function.
9396         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9398         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9399         __thread_start): Use HIDDEN_JUMPTARGET.
9400         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9401         __thread_start): Likewise.
9402         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9404         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9405         Add libc_hidden_proto.
9406         (STRTOF): Add libc_hidden_proto.
9407         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9408         (strtold_l, wcstold_l): Use them as second argument for
9409         long_double_symbol.
9411 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9413         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9415 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9417         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9419 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9421         * po/bg.po: New file.  From the translation team.
9423 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9425         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9426         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9427         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9428         when each feature was introduced.
9430         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9431         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9432         (CHECK_HASH): New macro.
9433         (PREPARE_VERSION): Use it.
9435         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9436         prototype if not __ASSUME_PSELECT.
9437         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9438         prototype if not __ASSUME_PPOLL.
9440         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9442         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9443         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9444         is defined.
9446 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9448         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9449         (_libc_vdso_platform_setup): If vDSO is not available point
9450         __vdso_gettimeofday to the vsyscall.
9451         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9452         __vdso_gettimeofday instead of vsyscall.
9454 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9456         * nscd/servicescache.c: Include kernel-features.h.
9457         * nscd/gai.c: Likewise.
9458         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9459         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9460         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9461         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9462         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9463         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9464         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9465         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9466         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9468 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9470         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9471         and _dl_get_origin defines anymore.
9473         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9474         Build fix for systems which might lack POSIX timer support.
9476         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9477         (_libc_vdso_platform_setup): Mangle function pointers before storing
9478         them.
9479         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9480         Demangle vdso pointer before use.
9481         (INTERNAL_VSYSCALL): Likewise.
9483         * elf/cache.c (primes): Mark as const.
9484         Noted by Roland McGrath.
9486 2007-08-01  Andreas Jaeger  <aj@suse.de>
9487             Jakub Jelinek  <jakub@redhat.com>
9489         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9490         (options): Add option.
9491         (parse_opt): Handle option.
9492         (manual_link): Adjust process_file caller.  Call implicit_soname.
9493         (search_dir): Formatting.  Use and populate auxiliary cache.
9494         (main): Load and save auxiliary cache.
9495         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9496         stat64 from fstat64 to caller.
9497         (implicit_soname): New function.
9498         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9499         leave *soname as NULL.
9500         * elf/cache.c: Include libgen.h.
9501         (print_entry, print_cache, compare, save_cache, add_to_cache):
9502         Formatting and cleanups.
9503         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9504         aux_cache_file): New structures.
9505         (AUX_CACHEMAGIC): Define.
9506         (primes): New array.
9507         (aux_hash_size, aux_hash): New variables.
9508         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9509         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9510         load_aux_cache, save_aux_cache): New functions.
9511         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9512         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9513         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9514         (process_file): Adjust prototype.
9516 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9518         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9519         with __need_size_t.
9521 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9523         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9524         r_found_version structure as second parameter.
9525         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9526         (_dl_vdso_vsym): Change type of second parameter accordingly.
9527         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9528         (_libc_vdso_platform_setup): Adjust.
9529         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9530         (_libc_vdso_platform_setup): Likewise.
9532         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9533         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9534         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9535         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9536         * csu/libc-start.c: Pretty printing.
9537         Use VDSO_SETUP if defined.
9538         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9539         and let generic code call into _libc_vdso_platform_setup.
9540         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9541         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9542         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9543         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9544         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9545         for GLIBC_PRIVATE.
9546         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9547         (sysdep_rountines): Add dl-vdso.
9549         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9550         of routines.
9552         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9553         attribute_hidden to __vdso_gettimeofday prototype.
9555 2007-08-12  Roland McGrath  <roland@redhat.com>
9557         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9558         From: Karl Berry <karl@freefriends.org>.
9560 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9562         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9563         an atime update for the files we read.
9565 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9567         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9569         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9570         instead of mkstemp.
9572         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9573         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9574         * misc/mkostemp.c: New file.
9575         * misc/mkostemp64.c: New file.
9576         * stdlib/stdlib.h: Declare the new functions.
9577         * sysdeps/posix/tempname.c: Add new parameter which is added to
9578         the flags for open.  Remove __GT_BIGFILE handling.
9579         * stdio-common/tempname.c: Likewise.
9580         * include/stdio.h: Adjust __gen_tempname prototype.
9581         Renumber __GT_* constants.
9582         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9583         * misc/mkdtemp.c: Likewise.
9584         * misc/mkstemp.c: Likewise.
9585         * misc/mkstemp64.c: Likewise.
9586         * misc/mktemp.c: Likewise.
9587         * stdio-common/tempnam.c: Likewise.
9588         * stdio-common/tmpfile.c: Likewise.
9589         * stdio-common/tmpfile64.c: Likewise.
9590         * stdio-common/tmpnam.c: Likewise.
9591         * stdio-common/tmpnam_r.c: Likewise.
9593 2007-08-10  Roland McGrath  <roland@frob.com>
9595         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9596         New macros.
9597         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9598         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9600 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9602         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9603         possible.
9604         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9605         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9606         * nss/nss_files/files-have_o_cloexec.c: New file.
9608         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9609         available.
9611 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9613         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9614         ___new_wcstold_l): New weak aliases.
9615         (strtold_l, wcstold_l): Use them as second argument for
9616         long_double_symbol.
9618 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9620         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9621         register in test for error.
9623         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9624         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9626         * po/sv.po: Update from translation team.
9628 2007-08-06  Roland McGrath  <roland@redhat.com>
9630         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9631         Remove __strto*_l inlines.
9632         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9633         * stdlib/strtod.c: Add libc_hidden_def.
9634         * stdlib/strtod_l.c: Likewise.
9635         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9636         for __new_strtold and __new_wcstold.
9637         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9638         __STRTOF, STRTOF.
9639         * stdlib/strtol.c: Add libc_hidden_def.
9640         * stdlib/strtol_l.c: Likewise.
9641         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9642         strtoq.
9644         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9646         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9647         * scripts/data/localplt-generic.data: ... here.
9648         * elf/Makefile (check-data): Get generic file if no other.
9649         ($(objpfx)check-localplt.out): Make target unconditional.
9651         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9652         Use ElfW(Nhdr).
9654 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9656         * po/zh_CN.po: Updated translation from translation team.
9658 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9661         Don't use CGOTSETUP and CGOTRESTORE macros.
9663 2007-08-04  Roland McGrath  <roland@redhat.com>
9665         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9667 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9669         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9670         __extension__ around the whole statement expression.
9672 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9674         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9675         elements during initialization.
9677         * po/pl.po: Updated translation from translation team.
9678         * po/tr.po: Likewise.
9679         * po/nl.po: Likewise.
9681 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9683         * rt/aio.h: Add __nonnull attributes.
9685 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9687         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9688         * stdlib/Makefile (tests): Add tst-strtod5.
9689         (tst-strtod5-ENV): New.
9690         * stdlib/tst-strtod5.c: New file.
9692         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9693         failed.
9694         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9695         on failure.
9697         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9698         allocated.
9700 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9702         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9703         numbers.
9705 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9707         * io/Makefile (aux): Add have_o_cloexec.
9708         * include/fcntl.h: Declare __have_o_cloexec.
9709         * io/have_o_cloexec.c: New file.
9710         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9711         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9712         fcntl call if not necessary.
9713         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9714         of local variable.
9716         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9717         Avoid memset, add explicit initialization.
9718         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9719         to the end and change into zero-sized array.
9720         Move lock member to fill a hole on 64-bit platforms.
9722         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9723         inline functions.
9724         * include/stdlib.h: Add __strto*_internal prototypes here.
9725         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9726         inline functions.
9727         * include/wchar.h: Add __wcsto*_internal prototypes.
9728         * sysdeps/generic/inttypes.h: No need to protect the declaration
9729         of the __strto*_internal and __wcsto*_internal members here.
9731         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9733 2007-08-02  Roland McGrath  <roland@redhat.com>
9735         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9736         $(inst_bindir)/getconf if possible.
9738         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9739         (generated): Add it.
9740         ($(inst_libexecdir)/getconf): Use it.
9742 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9744         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9745         /proc is faster and sufficient.  /sys is still needed for
9746         __get_nprocs_conf.
9748 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9750         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9751         syscall as __fallocate64.
9752         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9753         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9755 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9757         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9758         value.
9760         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9761         if off_t is different rank from size_t.
9763         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9764         uw_frame_state_for): Avoid type punning warnings.
9765         * sysdeps/generic/unwind-dw2-fde-glibc.c
9766         (_Unwind_IteratePhdrCallback): Likewise.
9767         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9768         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9769         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9770         pointers.
9772 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9774         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9775         total processors using sysfs.
9776         (__get_nprocs): Use sysfs to determine which processors are online.
9778 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9780         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9781         syscall arguments count.
9783         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9785 2007-07-30  Roland McGrath  <roland@redhat.com>
9787         * manual/libc.texinfo: Update copyrights, formatting magic, and
9788         @dircategory.  From Karl Berry <karl@freefriends.org>.
9790 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9792         [BZ #4860]
9793         * io/Makefile (headers): Add bits/fcntl2.h.
9795         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9796         using gcc builtin.
9797         (__CPU_EQUAL_S): Likewise.
9799         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9800         (tests): Add tst-cpuset.
9801         * posix/sched_cpualloc.c: New file.
9802         * posix/sched_cpufree.c: New file.
9803         * posix/tst-cpuset.c: New file.
9804         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9805         GLIBC_2.7.
9806         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9807         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9808         macros.  Define CPU_*_S macros.
9810 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9812         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9813         entry.
9815         [BZ #4858]
9816         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9817         #.0g and value rounded to 1.0.
9818         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9820 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9822         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9823         for int_frac_digits and frac_digits.
9825         * login/logout.c (logout): Avoid aliasing violation.
9826         * login/logwtmp.c (logwtmp): Likewise.
9828         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9830         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9831         to avoid warning.
9832         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9833         warning.
9834         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9835         warning.
9836         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9837         to avoid warnings.
9839         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9840         void **.
9841         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9843         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9844         char * to avoid warning.
9845         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9847         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9849         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9850         allocate_arrays): Cast second argument to charmap_find_symbol
9851         to char * to avoid warnings.
9853         * locale/programs/repertoire.c (repertoire_new_char): Change
9854         from_nr, to_nr and cnt to unsigned long, adjust printf format
9855         string.
9857         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9858         Cast second argument to new_element to char * to avoid warnings.
9860         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9862         * intl/gettextP.h (struct loaded_domain): Change plural to const
9863         struct expression *.
9864         * intl/plural-eval.c (plural_eval): Change first argument to
9865         const struct expression *.
9866         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9867         argument to const struct expression **.
9868         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9869         prototypes.
9870         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9871         in call to __gettext_free_exp.
9873         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9874         unitialized wstring/wpattern var warnings.
9876         * posix/runtests.c (struct a_test): Make data field const char *.
9878         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9879         vars if not LDBL_MANT_DIG >= 106.
9881         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9883         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9884         __find_specmb to avoid warning.
9886         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9888         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9889         to avoid warnings.
9891         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9892         initializer.
9894         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9895         tv var when it will be actually used.
9897         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9898         to avoid warnings.
9900         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9901         char array resp. pointer.
9902         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9903         char array.
9904         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9905         to const unsigned char **.
9906         (ucs4_to_cns11643): Change second argument to unsigned char *.
9907         * iconvdata/euc-tw.c (BODY): Change endp type to
9908         const unsigned char *.
9909         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9910         to unsigned char *.
9911         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9912         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9913         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9914         types to unsigned char pointers/arrays instead of char.
9915         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9916         to unsigned char *.
9917         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9918         * iconvdata/jis0212.h: Include assert.h.
9919         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9920         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9921         of trying to handle that.
9922         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9923         shut up a warning.
9924         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9925         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9926         two dimensional const unsigned char arrays.
9927         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9928         Initialize endp to inptr to shut up a warning.
9930 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9932         [BZ #4772]
9933         * time/strptime_l.c (__strptime_internal): Silently ignore
9934         strftime modifiers and field width in recursive calls.
9936         * include/time.h (enum ptime_locale_status): Remove.
9937         (__strptime_internal): Remove decided and era_cnt arguments,
9938         add statep argument.
9939         * time/strptime_l.c (__strptime_internal): Remove decided
9940         and era_cnt arguments, add statep argument.  Don't recompute
9941         any fields in recursive calls, only update caller's tm
9942         and state, if recursive call fails, don't change tm nor
9943         any state.
9944         (get_alt_number): Adjust.
9945         (recursive): Adjust caller.
9946         (strptime): Likewise.
9947         * time/strptime.c (strptime): Likewise.
9949 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9951         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9952         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9953         if from and to charsets are the same.
9954         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9955         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9956         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9958 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9960         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9961         Don't define wint_t when __need_mbstate_t unless it
9962         is necessary.
9963         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9964         in the typedef if possible.
9965         * wctype/wctype.h (wint_t): Define by including
9966         wchar.h with __need_wint_t instead of including stddef.h
9967         with __need_wint_t and as fallback definining it ourselves.
9968         * iconv/gconv.h (__need_wint_t): Define before including
9969         wchar.h.
9970         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9971         or _GLIBCPP_USE_WCHAR_T.
9972         (__need_wchar_t): Don't define
9973         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9974         (__need_wint_t): Don't define before including stddef.h,
9975         define before including wchar.h only if _LIBC or
9976         _GLIBCPP_USE_WCHAR_T.
9977         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9978         * sysdeps/mach/hurd/_G_config.h: Likewise.
9979         * sysdeps/generic/_G_config.h: Likewise.
9980         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9981         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9982         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9983         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9985 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9987         * sysdeps/posix/posix_fallocate64.c: Undefine
9988         __posix_fallocate64_l64 before alias handling.
9989         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9990         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9991         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9992         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9994         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9996 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9998         * locale/programs/ld-collate.c (atwc): New variable.
9999         (add_to_tablewc): New toplevel function, moved from collate_output.
10000         (collate_output): Remove add_to_tablewc nested function.
10002         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10003         (name_insert): New function.
10004         (write_output): Remove hash_table and hash_size vars and name_insert
10005         nested function.
10007 2007-07-24  Roland McGrath  <roland@redhat.com>
10009         * Makerules (install-others-programs-nosubdir): New target.
10010         (install-no-libc.a-nosubdir): Depend on it.
10012         * iconv/Makefile (install-others-programs): Set this instead of
10013         install-others.
10014         * login/Makefile (install-others-programs): Likewise.
10015         * posix/Makefile (install-others-programs): Likewise.
10017         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10018         dependencies.
10020 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10022         * io/Makefile (tests): Add tst-posix_fallocate.
10023         * io/tst-posix_fallocate.c: New file.
10025         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10026         __ASSUME_FALLOCATE.
10028 2007-07-22  Roland McGrath  <roland@frob.com>
10030         * hurd/getdport.c: Add missing copyright year update.
10032         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10033         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10035 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10037         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10039         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10040         O_CLOEXEC is needed.
10041         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10042         Avoid additional fcntl to set O_CLOEXEC if not needed.
10043         * nis/nss_compat/compat-initgroups.c: Likewise.
10044         * nis/nss_compat/compat-pwd.c: Likewise.
10045         * nis/nss_compat/compat-spwd.c: Likewise.
10047 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10049         [BZ #3665]
10050         * manual/errno.texi: Change ECANCELED value to 119.
10052         [BZ #4610]
10053         * mach/lock-intern.h: Include <sys/cdefs.h>.
10055         [BZ #4178]
10056         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10057         reading A.
10059         [BZ #4126]
10060         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10061         to __sigsuspend.
10063         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10065 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10067         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10068         `__ASSEMBLER__'.
10069         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10071 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10073         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10074         descriptor received from nscd.
10076         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10078         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10079         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10080         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10081         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10082         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10083         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10085 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10087         [BZ #4816]
10088         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10090         [BZ #4813]
10091         * login/forkpty.c (forkpty): Close master and slave fds on
10092         fork failure.  Patch by
10093         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10095 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10097         * include/features.h (__USE_ISOC95): New define.
10098         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10099         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10100         for -std=iso9899:199409.
10101         * CONFORMANCE: Remove comments about unsupported AMD1.
10103 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10105         * sysdeps/ia64/sched_cpucount.c: New file.
10106         * sysdeps/powerpc/sched_cpucount.c: New file.
10108         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10109         __BEGIN_DECLS/__END_DECLS around the prototype.
10110         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10111         pointer to const cpu_set_t.
10113         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10114         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10115         __need_size_t and include stddef.h.
10116         * sysvipc/sys/msg.h: Likewise.
10117         * posix/sched.h: Likewise.
10118         * hurd/hurd/signal.h (__need_size_t): Define.
10120         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10121         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10122         no longer defines wint_t or wchar_t.
10124         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10125         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10126         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10127         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10128         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10129         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10130         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10131         * debug/printf_chk.c (__printf_chk): Likewise.
10132         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10133         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10135         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10136         Define.
10138         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10139         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10141 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10143         [BZ #4792]
10144         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10145         * malloc/malloc.h (realloc): Likewise.
10147         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10148         if one of proc_file_chain streams has that fileno.
10149         * stdio-common/Makefile (tests): Add tst-popen2.
10150         * stdio-common/tst-popen2.c: New test.
10152 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10154         * elf/ldconfig.c: Allow GPLv2 or any later version.
10155         * elf/readlib.c: Likewise.
10156         * elf/chroot_canon.c: Likewise.
10157         * elf/cache.c: Likewise.
10158         * nscd/mem.c: Likewise.
10159         * nscd/getpwuid_r.c: Likewise.
10160         * nscd/grpcache.c: Likewise.
10161         * nscd/aicache.c: Likewise.
10162         * nscd/getsrvbynm_r.c: Likewise.
10163         * nscd/nscd.c: Likewise.
10164         * nscd/servicescache.c: Likewise.
10165         * nscd/getsrvbypt_r.c: Likewise.
10166         * nscd/initgrcache.c: Likewise.
10167         * nscd/gethstbyad_r.c: Likewise.
10168         * nscd/gethstbynm2_r.c: Likewise.
10169         * nscd/getgrnam_r.c: Likewise.
10170         * nscd/nscd_setup_thread.c: Likewise.
10171         * nscd/getpwnam_r.c: Likewise.
10172         * nscd/gai.c: Likewise.
10173         * nscd/connections.c: Likewise.
10174         * nscd/dbg_log.c: Likewise.
10175         * nscd/cache.c: Likewise.
10176         * nscd/hstcache.c: Likewise.
10177         * nscd/nscd_conf.c: Likewise.
10178         * nscd/getgrgid_r.c: Likewise.
10179         * nscd/pwdcache.c: Likewise.
10180         * catgets/gencat.c: Likewise.
10181         * locale/programs/linereader.h: Likewise.
10182         * locale/programs/locarchive.c: Likewise.
10183         * locale/programs/ld-paper.c: Likewise.
10184         * locale/programs/locfile-kw.h: Likewise.
10185         * locale/programs/ld-address.c: Likewise.
10186         * locale/programs/xmalloc.c: Likewise.
10187         * locale/programs/ld-time.c: Likewise.
10188         * locale/programs/localedef.c: Likewise.
10189         * locale/programs/simple-hash.c: Likewise.
10190         * locale/programs/xstrdup.c: Likewise.
10191         * locale/programs/ld-numeric.c: Likewise.
10192         * locale/programs/locfile-kw.gperf: Likewise.
10193         * locale/programs/ld-collate.c: Likewise.
10194         * locale/programs/charmap-kw.gperf: Likewise.
10195         * locale/programs/charmap.h: Likewise.
10196         * locale/programs/charmap-kw.h: Likewise.
10197         * locale/programs/config.h: Likewise.
10198         * locale/programs/locfile.c: Likewise.
10199         * locale/programs/ld-ctype.c: Likewise.
10200         * locale/programs/charmap.c: Likewise.
10201         * locale/programs/ld-messages.c: Likewise.
10202         * locale/programs/repertoire.h: Likewise.
10203         * locale/programs/locale.c: Likewise.
10204         * locale/programs/ld-name.c: Likewise.
10205         * locale/programs/linereader.c: Likewise.
10206         * locale/programs/locfile.h: Likewise.
10207         * locale/programs/3level.h: Likewise.
10208         * locale/programs/ld-monetary.c: Likewise.
10209         * locale/programs/ld-measurement.c: Likewise.
10210         * locale/programs/charmap-dir.c: Likewise.
10211         * locale/programs/ld-identification.c: Likewise.
10212         * locale/programs/localedef.h: Likewise.
10213         * locale/programs/charmap-dir.h: Likewise.
10214         * locale/programs/repertoire.c: Likewise.
10215         * locale/programs/simple-hash.h: Likewise.
10216         * locale/programs/ld-telephone.c: Likewise.
10217         * locale/programs/locale-spec.c: Likewise.
10218         * locale/programs/locfile-token.h: Likewise.
10219         * posix/getconf.c: Likewise.
10220         * iconv/dummy-repertoire.c: Likewise.
10221         * iconv/iconv_charmap.c: Likewise.
10222         * iconv/iconvconfig.c: Likewise.
10223         * iconv/iconv_prog.c: Likewise.
10224         * malloc/memusagestat.c: Likewise.
10225         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10227 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10229         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10230         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10231         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10232         check for the first argument.
10234 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10236         [BZ #4775]
10237         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10238         (__tgmath_real_type): Fix if expr is const int or other const
10239         qualified integral type.
10240         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10241         expressions and handle const qualified arguments.
10242         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10243         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10244         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10245         statement expressions.
10246         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10247         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10248         (__TGMATH_UNARY_IMAG): Define.
10249         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10250         * math/Makefile (tests): Add test-tgmath2.
10251         (CFLAGS-test-tgmath2.c): Add.
10252         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10253         count_cfloat, count_cldouble): New variables.
10254         (NCCALLS): Define.
10255         (main): Check number of complex calls as well.
10256         (F(compile_test)): Add complex tests and tests with const qualified
10257         arguments.
10258         (y, z, ccount): Define.
10259         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10260         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10261         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10262         F(cproj)): New functions.
10263         * math/test-tgmath2.c: New test.
10265 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10267         [BZ #4776]
10268         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10269         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10270         instead output ".".
10271         * dlfcn/Makefile (distribute): Add glreflib3.c.
10272         (module-names): Add glreflib3.
10273         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10274         glreflib1.so.
10275         (LDFLAGS_glreflib3.so): New.
10276         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10277         glreflib1.so.
10278         * dlfcn/glreflib3.c: New file.
10280         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10281         returned -1, return NULL.
10282         * intl/explodename.c (_nl_explode_name): Return -1 if
10283         _nl_normalize_codeset failed.
10285 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10287         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10288         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10289         and avoid branch misspredicts for > 31 bytes memset case.
10290         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10291         Remove toc ref to __cache_line_size.
10293         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10294         to get ISA-V2.0 branch hints.
10295         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10296         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10297         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10298         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10299         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10300         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10301         Remove toc ref to __cache_line_size.
10303         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10304         Include math_ldbl_opt.h.
10306 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10308         [BZ #4773]
10309         * time/strptime_l.c (__strptime_internal): Implement greedy
10310         matching of weekday and month names.
10312 2007-07-09  Roland McGrath  <roland@redhat.com>
10314         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10315         (ELF_NOTE_ABI): Use it.
10316         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10318 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10320         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10321         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10323 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10325         [BZ #4745]
10326         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10327         in loop to look for conversion specifier to avoid testing of
10328         wrong errno value.
10329         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10330         * stdio-common/bug18.c: New file.
10331         * stdio-common/bug18a.c: New file.
10332         * stdio-common/bug19.c: New file.
10333         * stdio-common/bug19a.c: New file.
10335 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10337         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10338         running awk script.
10340 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10342         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10343         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10344         Return NULL if mmap failed instead of asserting it does not.
10345         (calloc): Check for integer overflow.
10347         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10348         than LONG_MAX / 10.
10350 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10352         [BZ #4702]
10353         * nis/nss-default.c: Include errno.h.
10354         (init): Preserve errno.
10356 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10358         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10360 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10362         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10364 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10366         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10368 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10370         * sysdeps/s390/dl-procinfo.c: New file.
10371         * sysdeps/s390/dl-procinfo.h: New file.
10372         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10374 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10376         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10377         in PT_NOTE segments with multiple notes.
10378         * elf/readelflib.c (process_elf_file): Likewise.
10380 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10382         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10383         ISO C compliant.
10385 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10387         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10389 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10391         * include/link.h: Don't include rtld-lowlevel.h.
10392         (struct link_map): Remove l_scope_lock.
10393         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10394         (_dl_scope_free_list): New field (variable) in _rtld_global.
10395         (DL_LOOKUP_SCOPE_LOCK): Remove.
10396         (_dl_scope_free): New prototype.
10397         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10398         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10399         (_dl_profile_fixup): Likewise.
10400         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10401         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10402         THREAD_GSCOPE_RESET_FLAG around it.
10403         * elf/dl-close.c (_dl_close_worker): Don't use
10404         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10405         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10406         scopes were queued or if l_scope_mem has been abandoned.
10407         * elf/dl-open.c (_dl_scope_free): New function.
10408         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10409         * elf/dl-support.c (_dl_scope_free_list): New variable.
10410         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10411         Remove DL_LOOKUP_SCOPE_LOCK handling.
10412         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10413         handling.
10414         * elf/dl-object.c (_dl_new_object): Don't use
10415         __rtld_mrlock_initialize.
10417 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10419         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10420         to fill in holes
10421         (rtld_global_ro): Likewise.
10423 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10425         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10426         Move PT_LOAD checking to...
10427         (_dl_addr_inside_object): ... here, new function.
10428         * elf/dl-sym.c (do_sym): If not l_contiguous,
10429         call _dl_addr_inside_object.
10430         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10431         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10432         * elf/dl-open.c (dl_open_worker): Likewise.
10433         (_dl_addr_inside_object): New function if IS_IN_rtld.
10434         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10435         holes are present or are PROT_NONE protected.
10436         * include/link.h (struct link_map): Add l_contiguous field.
10437         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10439 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10440             Tomas Janousek  <tjanouse@redhat.com>
10441             Ulrich Drepper  <drepper@redhat.com>
10443         [BZ #4647]
10444         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10445         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10446         socket.
10447         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10448         unused member a bitmap.
10449         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10450         servers are configured.
10452 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10454         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10456 2007-06-17  Andreas Schwab  <schwab@suse.de>
10458         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10460 2007-06-16  Andreas Jaeger  <aj@suse.de>
10462         [BZ #4125]
10463         * sysdeps/unix/sysv/linux/sys/ptrace.h
10464         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10465         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10466         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10467         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10468         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10469         Define.
10470         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10471         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10472         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10473         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10475 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10477         [BZ #4599]
10478         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10479         determining whether there are IPv4/IPv6 addresses, ignore loopback
10480         addresses.
10482 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10484         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10485         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10486         as the return type.  Change type of "r" variable to CMPtype.
10487         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10488         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10489         * soft-fp/gedf2.c (__gedf2): Likewise.
10490         * soft-fp/gesf2.c (__gesf2): Likewise.
10491         * soft-fp/getf2.c (__getf2): Likewise.
10492         * soft-fp/ledf2.c (__ledf2): Likewise.
10493         * soft-fp/lesf2.c (__lesf2): Likewise.
10494         * soft-fp/letf2.c (__letf2): Likewise.
10495         * soft-fp/unorddf2 (__unorddf2): Likewise.
10496         * soft-fp/unordsf2 (__unordsf2): Likewise.
10497         * soft-fp/unordtf2 (__unordtf2): Likewise.
10499 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10501         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10502         make sure gcc doesn't mess around with this.
10504 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10506         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10508 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10510         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10511         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10512         at most once per _dl_close_worker.
10514 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10516         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10517         __sched_cpucount as const.
10518         * posix/sched_cpucount.c: Adjust.
10520         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10521         instruction for counting bits.
10522         * sysdeps/x86_64/sched_cpucount.c: New file.
10524 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10526         * configure.in: Avoid variable named BASH.
10527         * config.make.in: Likewise.
10528         Patch in part by Mike Frysinger.
10530 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10532         [BZ #4586]
10533         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10534         pseudo-zeros as zero.
10535         * sysdeps/x86_64/ldbl2mpn.c: New file.
10536         * sysdeps/ia64/ldbl2mpn.c: New file.
10538 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10540         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10541         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10542         Remove unreachable code at the end.
10544 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10546         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10547         ldbl-128ibm in comment.
10548         (fpclassifyl): Correct classification of denormals.
10549         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10550         return value for MIN denormal. Rewrite using long double math too
10551         correctly handle denormals and canonicalize the results.
10553 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10555         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10556         (__mpn_construct_long_double): Fix conversion where result ought
10557         to be smaller than __LDBL_MIN__, or the low double should be
10558         denormal.  Fix decision where to negate low double - honor round
10559         to even rules.
10560         * stdio-common/tst-sprintf2.c: Include string.h.
10561         (COMPARE_LDBL): Define.
10562         (TEST): Also test whether a string hexadecimal float representation
10563         can be parsed back to the number.
10564         (main): Add a couple of further tests.
10566 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10568         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10569         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10570         is non-zero, but smaller than 2 * __DBL_MIN__.
10571         * stdio-common/tst-sprintf2.c: New test.
10572         * stdio-common/Makefile (tests): Add tst-sprintf2.
10574         * math/test-misc.c (main): Don't run last batch of tests with
10575         IBM long double format.
10577 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10579         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10580         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10581         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10582         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10583         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10584         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10585         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10586         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10587         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10588         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10591         New file.
10592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10593         New file.
10594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10595         New file.
10596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10597         New file.
10598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10599         New file.
10600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10602         New file.
10603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10604         New file.
10605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10606         New file.
10607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10608         New file.
10609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10610         New file.
10612 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10614         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10615         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10616         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10617         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10618         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10619         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10620         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10621         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10623 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10625         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10626         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10627         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10628         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10629         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10630         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10631         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10632         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10634 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10636         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10637         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10638         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10639         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10641 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10643         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10644         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10646 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10648         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10649         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10650         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10651         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10653 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10655         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10656         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10658 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10660         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10661         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10663         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10664         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10665         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10668 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10670         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10671         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10672         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10673         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10675 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10677         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10678         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10679         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10680         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10681         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10682         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10684 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10686         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10687         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10688         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10689         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10691 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10693         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10694         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10695         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10696         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10697         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10698         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10699         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10700         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10701         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10702         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10703         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10704         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10705         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10706         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10707         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10708         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10710 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10712         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10713         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10715 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10717         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10718         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10720 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10722         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10723         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10724         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10725         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10726         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10727         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10728         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10729         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10730         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10731         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10733 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10735         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10737 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10739         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10740         branch miss-predicts. Ensure that cache line crossing does not impact
10741         dispatch grouping.
10743 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10745         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10746         "../../powerpc32/power4/memcopy.h".
10747         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10748         "../../powerpc32/power4/wordcopy.c".
10750 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10752         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10753         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10754         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10755         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10756         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10757         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10759 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10761         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10763 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10765         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10766         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10767         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10768         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10769         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10770         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10771         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10772         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10774 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10776         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10778 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10780         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10781         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10782         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10783         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10784         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10785         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10786         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10788 2007-05-29  Roland McGrath  <roland@redhat.com>
10790         * po/Makefile (po-sed-cmd): New variable.
10791         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10793 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10795         * crypt/md5-crypt.c: Fix comment.
10797         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10798         of crashing.  When this is the case or if the reply is malformed,
10799         don't try to close the new file descriptor since it does not
10800         exist.
10801         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10803 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10805         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10806         if __NR_utimensat is not defined.
10808 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10810         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10812 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10814         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10815         (open): Fix comment typos.  Don't call __open_2 if flags
10816         is a compile time constant without O_CREAT.
10817         (__open64_2): Add nonnull attribute.
10818         (open64): Fix comment typos.  Don't call __open64_2 if flags
10819         is a compile time constant without O_CREAT.
10820         (__openat_2): Add nonnull attribute, fix nonnull attribute
10821         on redirect.
10822         (openat): Fix comment typos.  Don't call __openat_2 if flags
10823         is a compile time constant without O_CREAT.
10824         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10825         on redirect.
10826         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10827         is a compile time constant without O_CREAT.
10829 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10831         * Makerules (sysd-rules): Define PTW for ptw-* files.
10832         * Versions: Define GLIBC_2.7 for libc.
10833         * include/stdio.h: Declare __fortify_fail.
10834         * debug/fortify_fail.c: New file.
10835         * debug/Makefile (routines): Add fortify_fail.
10836         * debug/chk_fail.c: Use __fortify_fail.
10837         * debug/stack_chk_fail.c: Likewise.
10838         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10839         __openat64_2 for GLIBC_2.7.
10840         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10841         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10842         and fails if necessary.
10843         * io/open64.c: Likewise.
10844         * io/openat.c: Likewise.
10845         * io/openat64.c: Likewise.
10846         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10847         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10848         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10849         * io/bits/fcntl2.h: New file.
10850         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10851         __openat64_2.
10852         * include/bits/fcntl2.h: New file.
10853         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10854         Add open_2.
10855         * sysdeps/unix/sysv/linux/open_2.c: New file.
10857 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10859         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10860         as second parameter to handle_intel.
10862         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10863         the entry.
10865         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10866         handling to ...
10867         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10868         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10869         cacheinfo.
10870         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10871         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10872         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10874         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10876 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10878         [BZ #4525]
10879         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10880         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10881         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10883         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10885         [BZ #4514]
10886         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10887         reinitialize workend at the start of each do_positional format spec
10888         loop, free workstart before do_positional loops.
10889         (printf_unknown): Fix size of work_buffer.
10890         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10892         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10893         (public_sET_STATe): If ms->version < 3, put all chunks into
10894         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10895         chunks.
10897         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10898         * malloc/hooks.c: Likewise.
10899         * malloc/arena.c: Likewise.
10900         * malloc/malloc.c (do_check_malloc_state): Don't assert
10901         n_mmaps is not greater than n_mmaps_max.  This removes the need
10902         for the previous change.
10904         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10905         2007-05-07 commit.
10907 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10909         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10910         Define for kernel >= 2.6.22.
10912 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10914         * elf/dl-close.c (_dl_close_worker): When removing object from
10915         global scope, wait for all lookups to finish afterwards.
10916         * elf/dl-open.c (add_to_global): When global scope array must
10917         grow, allocate a new one and free old array only after all
10918         lookups finish.
10919         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10920         (_dl_lookup_symbol_x): Likewise.
10921         * elf/dl-support.c: Define _dl_wait_lookup_done.
10922         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10923         _dl_wait_lookup_done.
10925         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10926         not overlapping with arena.
10928         * malloc/mcheck.c (reallochook): If size==0, free the block.
10930         * rt/tst-shm.c: Use fstat64 instead of fstat.
10932         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10933         __NR_sync_file_range is not defined.
10935 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10937         Dummy files to prevent stub versions from being used.
10938         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10939         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10940         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10941         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10943         * version.h (VERSION): Set to 2.6.90.
10945 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10947         * version.h (VERSION): Define to 2.6.
10948         * include/features.h (__GLIBC_MINOR__): Define to 6.
10950         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10952         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10953         sizes.
10955 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10957         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10958         number of mmaps.  n_mmaps_max is the target.
10959         * malloc/hooks.c: Likewise.
10960         * malloc/arena.c: Likewise.
10962 2007-05-12  Andreas Jaeger  <aj@suse.de>
10964         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10965         getpid.
10967 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10969         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10970         adding new variables.
10972         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10973         optimize.  Completely extend global scope array before making the
10974         new entries visible.
10976 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10978         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10979         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10980         tst-getcpu.
10982         * include/link.h: Move l_version and l_nversion members around to
10983         fill gaps.
10985         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10987         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10988         (__sched_setaffinity_new): If syscall was successful and
10989         RESET_VGETCPU_CACHE is defined, use it before returning.
10990         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10992         * io/sys/stat.h: Make sure struct timespec is defined for
10993         __USE_ATFILE.
10995         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10996         UTIME_OMIT.
10997         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10998         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10999         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11000         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11001         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11002         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11003         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11004         * io/sys/stat.h: Declare utimensat, futimens.
11005         * io/utimensat.c: New file.
11006         * io/futimens.c: New file.
11007         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11008         * sysdeps/unix/sysv/linux/futimens.c: New file.
11009         * io/Makefile (routines): Add utimensat, futimens.
11010         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11011         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11012         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11013         available.
11015         * include/sys/cdefs.h: Redefine __nonnull so that test for
11016         incorrect parameters in the libc code itself are not omitted.
11018 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11020         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11021         exception in addition to inexact when asked to raise only FE_INEXACT.
11023         [BZ #3427]
11024         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11025         in *envp.
11027 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11029         [BZ #4403]
11030         * string/strfry.c (strfry): Make result more random.
11032 2007-05-07  Richard Henderson  <rth@redhat.com>
11034         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11035         if __NO_LONG_DOUBLE_MATH.
11036         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11037         available in the compiler, add .arch directive to the assembly.
11039 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11041         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11042         compat_symbol to GLIBC_2_1.
11043         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11044         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11045         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11046         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11047         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11048         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11049         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11050         libc, not libm.
11051         (__isnanl): New compat_symbol.
11053 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11054             Jakub Jelinek  <jakub@redhat.com>
11056         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11057         (new_heap): Initialize mprotect_size.
11058         (grow_heap): When growing, only mprotect from mprotect_size till
11059         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11060         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11062 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11063             Peter Bergner  <bergner@us.ibm.com>
11065         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11066         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11067         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11068         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11069         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11070         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11071         Call __fe_mask_env() if all FP exceptions disabled.
11072         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11073         from old FPSCR to new fenv to propagate DFP rounding modes.
11074         Call __fe_mask_env() if FP exceptions previously enabled.
11075         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11076         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11077         transitioning from all exceptions disabled to any exception enabled
11078         or visa versa.
11079         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11080         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11081         when transitioning from all exceptions disabled to any exception
11082         enabled or visa versa.
11083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11090 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11092         [BZ #4465]
11093         * posix/unistd.h: Remove __THROW from fdatasync.
11095 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11097         [BZ #4465]
11098         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11100 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11102         * stdio-common/vfprintf.c (process_string_arg): Optimize
11103         ridiculous precision in wide char code printing multi-byte string.
11104         Reported by Jim Meyering <jim@meyering.net>.
11106         [BZ #4131]
11107         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11108         boundaries to work around systems with overlapping binary loading.
11109         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11111 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11113         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11114         __mbsnrtowcs after last change.
11116         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11117         (get_ident): Likewise.
11119 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11121         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11122         with setting the sticky bit.
11123         * math/test-misc.c (main): Add more truncation tests.
11125 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11127         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11128         double in the function declaration.
11129         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11130         double in the function declaration.
11131         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11132         float in the function declaration.
11133         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11134         float in the function declaration.
11136         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11137         denormal operands.  Do not generate FP_EX_DENORM exception.
11138         (FP_UNPACK_RAW_EP): Ditto.
11139         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11140         undefined _FP_UNPACK_RAW_E.
11141         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11142         undefined _FP_UNPACK_RAW_EP.
11143         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11144         undefined _FP_PACK_RAW_E.
11145         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11146         undefined _FP_PACK_RAW_EP.
11148         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11149         _FP_FRAC_COPY_2.
11150         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11151         _FP_FRAC_COPY_4.
11153 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11154             Jakub Jelinek  <jakub@redhat.com>
11156         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11157         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11158         this case.
11159         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11161 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11163         * math/test-misc.c (main): Add tests for rounding long double
11164         values close to smallest double denormalized value to double.
11166 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11168         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11169         condition for truncating to 0.  Set sticky bit for such
11170         truncation.
11172 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11174         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11175         fixed length array for ignore.
11177 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11179         [BZ #4438]
11180         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11181         stack for large precisions.
11182         * stdio-common/test-vfprintf.c (main): Add test for large
11183         precision.
11185 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11187         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11188         for exponent 0.
11189         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11191         [BZ #4439]
11192         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11193         account in the size check.
11194         * resolv/tst-inet_ntop.c: New test.
11195         * resolv/Makefile (tests): Add tst-inet_ntop.
11197 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11198             Jakub Jelinek  <jakub@redhat.com>
11200         [BZ #4349]
11201         * malloc/malloc.c: Keep separate list for first blocks on the bin
11202         lists with a given size.  This helps skipping over list elements
11203         we know won't fit in two places.
11204         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11206 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11208         [BZ #4102]
11209         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11210         label to Teredo tunnel addresses 2001://32.
11212 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11214         * locale/programs/ld-collate.c (collate_read): Allow order_start
11215         after copy.
11217         * locale/programs/ld-collate.c (collate_read): Fix printing of
11218         error message.
11220         [BZ #3213]
11221         * locale/C-translit.h.in: Add entry for U2044.
11223         [BZ #4342]
11224         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11225         hexa-decimal floats without exponent.
11226         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11228 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11230         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11231         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11232         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11233         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11234         GLIBC_2.6.
11235         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11236         Add sched_getcpu.
11238 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11240         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11241         of 0 after the out_fail label.
11243 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11245         [BZ #4406]
11246         * iconv/gconv_charset.h (strip): Allow ':'.
11247         * iconv/iconv_open.c (iconv_open): Adjust comment.
11249 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11251         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11252         version.
11254 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11256         [BZ #4381]
11257         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11258         alignment of buffer and tmp_buffer.
11259         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11260         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11261         alignment of buffer.
11262         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11263         bigger than INT_MAX.
11264         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11265         h_errnop arguments.  Fail if buflen is too small.
11266         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11268 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11270         [BZ #4405]
11271         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11272         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11274 2007-04-22  Roland McGrath  <roland@redhat.com>
11276         * elf/elf.h (NT_PRXFPREG): New macro.
11278 2007-04-19  Andreas Jaeger  <aj@suse.de>
11280         [BZ #3905]
11281         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11282         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11283         Added.
11285 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11287         * include/sys/mman.h: Mark madvise hidden.
11288         * misc/madvise.c: Add libc_hidden_def.
11290 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11292         * nis/nis_domain_of.c (__nis_domain_of): New function.
11293         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11294         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11295         * nis/nis_call.c (rec_dirsearch): Likewise.
11296         (first_shoot): Likewise.  Remove search_parent_first argument.
11297         (struct nis_server_cache): Rename search_parent_first field
11298         to search_parent.
11299         (nis_server_cache_search, nis_server_cache_add): Rename
11300         search_parent_first argument to search_parent.
11301         (__nisfind_server): Likewise.  If search_parent, call
11302         __nis_domain_of.
11304 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11306         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11308 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11310         [BZ #4368]
11311         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11313 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11315         [BZ #4364]
11316         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11318 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11320         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11321         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11322         current number of locales in SUPPORTED.
11323         (create_archive): Initialize serial.
11324         (enlarge_archive): Preserve aliases rather than duplicating
11325         their locrecs.
11327 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11329         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11330         after _IO_un_link, not before it.
11332         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11333         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11334         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11336 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11338         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11339         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11340         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11341         Remove __THROW.
11342         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11343         _IO_file_xsgetn_maybe_mmap): Likewise.
11344         * libio/oldfileops.c (old_do_write): Likewise.
11345         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11346         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11347         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11348         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11349         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11350         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11351         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11352         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11353         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11354         _IO_file_underflow, _IO_file_underflow_mmap,
11355         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11356         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11357         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11358         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11359         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11360         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11361         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11362         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11363         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11364         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11365         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11366         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11367         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11368         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11369         _IO_adjust_column_internal, _IO_default_uflow_internal,
11370         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11371         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11372         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11373         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11374         _IO_file_close_it_internal, _IO_file_underflow_internal,
11375         _IO_file_overflow_internal, _IO_file_attach_internal,
11376         _IO_file_fopen_internal, _IO_file_sync_internal,
11377         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11378         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11379         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11380         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11381         _IO_seekpos_unlocked): Likewise.
11382         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11383         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11385 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11387         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11388         argument in xmalloc size computation.
11390 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11392         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11393         math_opt_barrier and math_force_eval macros.
11395 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11397         [BZ #3306]
11398         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11399         * sysdeps/i386/fpu/math_private.h: New file.
11400         * sysdeps/x86_64/fpu/math_private.h: New file.
11401         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11402         math_force_eval macros.  Use "+m" constraint on asm rather than
11403         "=m" and "m".
11404         * math/s_nextafter.c (__nextafter): Likewise.
11405         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11406         Likewise.
11407         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11408         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11409         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11410         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11411         math_opt_barrier and math_force_eval macros.
11412         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11413         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11414         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11415         (__nexttoward): Use math_opt_barrier and
11416         math_force_eval macros.  Use "+m" constraint on asm rather than
11417         "=m" and "m".  Only use asm to force double result if
11418         FLT_EVAL_METHOD is 2.
11419         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11420         (__nexttowardf): Use math_opt_barrier and
11421         math_force_eval macros.  Use "+m" constraint on asm rather than
11422         "=m" and "m".  Only use asm to force double result if
11423         FLT_EVAL_METHOD is not 0.
11424         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11425         (__nexttowardf): Use math_opt_barrier and
11426         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11427         x to float using asm.
11428         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11429         (__nldbl_nexttowardf): Use math_opt_barrier and
11430         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11431         x to float using asm.
11432         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11433         (__nexttowardf): Use math_opt_barrier and math_force_eval
11434         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11435         * math/bug-nextafter.c (zero, inf): New variables.
11436         (main): Add new tests.
11437         * math/bug-nexttoward.c (zero, inf): New variables.
11438         (main): Add new tests.
11440 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11442         [BZ #3427]
11443         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11444         exceptions both in SW and MXCSR.
11445         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11446         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11447         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11448         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11449         in MXCSR if SSE is available.
11450         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11451         and ldsodefs.h.
11452         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11453         Fix comment typo.
11454         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11455         Return 0 rather than 1.
11456         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11457         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11458         * math/test-fenv.c (feholdexcept_tests): New function.
11459         (main): Call it.
11461 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11463         [BZ #3427]
11464         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11465         in SW.
11467 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11469         [BZ #4344]
11470         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11471         Reported by David Anderson <davea42@earthlink.net>.
11473 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11475         * posix/sys/wait.h: Remove unnecessary forward declaration.
11477 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11479         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11480         with obj->do_servers after first_shoot.
11482 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11484         * posix/Makefile (routines): Add sched_cpucount.
11485         (tests): Add tst-cpucount.
11486         * posix/sched_cpucount.c: New file.
11487         * posix/tst-cpucount.c: New file.
11488         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11489         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11490         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11491         * posix/sched.h: Define CPU_COUNT.
11493 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11495         * posix/fnmatch.c (STRUCT): Define.
11496         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11497         * posix/fnmatch_loop.c (struct STRUCT): New type.
11498         (FCT): Add ends argument.  If ends != NULL and normal * is
11499         seen in the pattern, store current pattern and string pointers
11500         and return.  Adjust recursive calls.
11501         (EXT): Adjust FCT callers.
11502         (STRUCT): Undef at the end of the file.
11503         * posix/Makefile (tests): Add tst-fnmatch2.
11504         * posix/tst-fnmatch2.c: New test.
11506 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11508         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11509         and 1 on failure.
11511         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11512         Change last argument to unsigned int.
11514 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11516         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11518 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11520         * config.h.in (HAVE_LIBCAP): Add.
11521         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11522         sys/capabilities.h.
11523         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11524         free_caps.  Cast away const from 4th cap_set_flag argument.
11526 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11528         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11529         GLIBC_2.6.
11530         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11531         Add sync_file_range.
11532         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11534 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11536         * sysdeps/powerpc/bits/atomic.h
11537         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11538         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11539         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11540         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11541         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11542         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11543         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11544         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11545         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11546         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11547         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11548         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11549         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11550         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11551         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11552         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11553         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11554         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11555         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11556         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11558 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11560         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11561         (__cache_line_size): Define the variable here.  Add
11562         attribute_hidden, remove weak_extern.
11563         (__libc_start_main): Set __cache_line_size
11564         unconditionally.
11565         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11566         (__cache_line_size): Define the variable here.  Add
11567         attribute_hidden, remove weak_extern.
11568         (DL_PLATFORM_AUXV): Set __cache_line_size
11569         unconditionally.
11570         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11571         weak_extern, add attribute_hidden.
11572         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11573         defined in ld.so.
11574         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11575         definition.
11576         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11578 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11580         [BZ #4276]
11581         * timezone/africa: Update from tzdata2007d.
11582         * timezone/asia: Likewise.
11583         * timezone/australasia: Likewise.
11584         * timezone/backward: Likewise.
11585         * timezone/europe: Likewise.
11586         * timezone/iso3166.tab: Likewise.
11587         * timezone/leapseconds: Likewise.
11588         * timezone/northamerica: Likewise.
11589         * timezone/southamerica: Likewise.
11590         * timezone/zone.tab: Likewise.
11592         * timezone/private.h: Update from tzcode2007d.
11593         * timezone/zdump.c: Likewise.
11594         * timezone/zic.c: Likewise.
11596 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11598         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11599         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11600         variables.
11601         (nis_server_cache_search, nis_server_cache_add): New functions.
11602         (__nisfind_server): Use them.  Add dbp and flags argument, if
11603         call __nisbind_create.
11604         (__nisbind_create): Add server_used and current_ep arguments,
11605         only call __nis_findfastest if server_used is ~0.
11606         (__do_niscall2, __prepare_niscall): Adjust callers.
11607         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11608         ckey_cache_euid, ckey_cache_lock): New variables.
11609         (get_ckey): New function.
11610         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11611         __pmap_getnisport.  Save __pmap_getnisport result in
11612         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11613         key.
11614         * nis/nis_lookup.c (nis_lookup): Likewise.
11615         * nis/nis_table.c (nis_list): Likewise.
11616         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11617         prototypes.
11619         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11620         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11621         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11622         _nss_nisplus_getservbyport_r): Likewise.
11623         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11624         _nss_nisplus_getnetbyaddr_r): Likewise.
11625         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11626         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11627         _nss_nisplus_getntohost_r): Likewise.
11628         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11629         _nss_nisplus_getrpcbynumber_r): Likewise.
11631 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11633         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11634         * configure: Rebuilt.
11636         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11637         bit-fields.
11638         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11640 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11642         [BZ #2831]
11643         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11644         bit-fields.
11646 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11648         * nscd/gai.c: Include alloca.h.
11649         (__libc_use_alloca): Define.
11651 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11653         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11654         smaller scopes.
11655         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11656         (DL_DST_REQUIRED): Adjust user.
11658         * include/dlfcn.h (struct link_map): New forward decl.
11660         * inet/getnameinfo.c: Include stddef.h.
11661         (getnameinfo): Use offsetof.
11663         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11665         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11667         * string/strerror_l.c: Include stdlib.h.
11669         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11670         * config.make.in (gnu89-inline-CFLAGS): New variable.
11671         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11672         -std=gnu99.
11673         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11674         * argp/argp.h: Use it.
11675         * bits/mathinline.h: Likewise.
11676         * bits/sigset.h: Likewise.
11677         * bits/string.h: Likewise.
11678         * ctype/ctype.h: Likewise.
11679         * hurd/hurd.h: Likewise.
11680         * hurd/hurd/fd.h: Likewise.
11681         * hurd/hurd/port.h: Likewise.
11682         * hurd/hurd/signal.h: Likewise.
11683         * hurd/hurd/threadvar.h: Likewise.
11684         * hurd/hurd/userlink.h: Likewise.
11685         * io/sys/stat.h: Likewise.
11686         * libio/bits/stdio.h: Likewise.
11687         * libio/bits/stdio2.h: Likewise.
11688         * mach/lock-intern.h: Likewise.
11689         * mach/mach/mig_support.h: Likewise.
11690         * math/bits/cmathcalls.h: Likewise.
11691         * posix/bits/unistd.h: Likewise.
11692         * socket/bits/socket2.h: Likewise.
11693         * stdlib/bits/stdlib.h: Likewise.
11694         * stdlib/stdlib.h: Likewise.
11695         * string/argz.h: Likewise.
11696         * string/bits/string2.h: Likewise.
11697         * string/bits/string3.h: Likewise.
11698         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11699         * sysdeps/generic/inttypes.h: Likewise.
11700         * sysdeps/generic/machine-lock.h: Likewise.
11701         * sysdeps/generic/machine-sp.h: Likewise.
11702         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11703         * sysdeps/i386/i486/bits/string.h: Likewise.
11704         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11705         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11706         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11707         * sysdeps/mach/i386/machine-lock.h: Likewise.
11708         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11709         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11710         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11711         * sysdeps/s390/bits/string.h: Likewise.
11712         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11713         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11714         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11715         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11716         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11717         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11718         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11719         * wcsmbs/bits/wchar2.h: Likewise.
11720         * wcsmbs/wchar.h: Likewise.
11721         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11722         __extern_inline definition.
11724 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11726         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11727         NULL.
11729         [BZ #3919]
11730         * math/libm-test.inc (log_test): Test -Inf and NaN.
11731         (log10_test, log1p_test, log2_test): Test -Inf.
11732         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11733         FE_INVALID when argument is qNaN.
11734         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11735         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11736         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11737         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11738         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11739         testb $4, %ah and jump if non-zero.
11740         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11741         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11743         [BZ #4101]
11744         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11745         ancestors with the same depths.
11746         Patch by Niels Moeller <nisse@lysator.liu.se>.
11747         (filter_doc): Don't crash if argp is NULL.
11748         * argp/Makefile (tests): Add tst-argp2.
11749         * argp/tst-argp2.c: New test.
11751         [BZ #4130]
11752         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11753         open_not_cancel_2.
11754         (updwtmp_file): Likewise.
11756         [BZ #4181]
11757         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11758         (inet6_opt_append): Don't check extlen is big enough if extbuf
11759         is NULL.
11760         (inet6_opt_finish): Likewise.
11761         * inet/Makefile (tests): Add test-inet6_opt.
11762         * inet/test-inet6_opt.c: New test.
11764         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11765         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11766         NLMSG_ERR.  Instead use a page sized buffer.
11767         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11768         buffer.
11770 2007-03-14  Richard Henderson  <rth@redhat.com>
11772         * sysdeps/alpha/fpu/s_llround.c: New file.
11773         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11774         * sysdeps/alpha/fpu/s_lround.c: New file.
11775         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11776         * sysdeps/alpha/fpu/s_round.c: New file.
11777         * sysdeps/alpha/fpu/s_roundf.c: New file.
11778         * sysdeps/alpha/fpu/s_trunc.c: New file.
11779         * sysdeps/alpha/fpu/s_truncf.c: New file.
11781         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11782         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11783         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11784         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11785         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11786         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11788         * sysdeps/alpha/fpu/s_fmax.S: New file.
11789         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11790         * sysdeps/alpha/fpu/s_fmin.S: New file.
11791         * sysdeps/alpha/fpu/s_fminf.S: New file.
11792         * sysdeps/alpha/fpu/s_isnan.c: New file.
11793         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11794         * sysdeps/alpha/fpu/s_llrint.c: New file.
11795         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11796         * sysdeps/alpha/fpu/s_lrint.c: New file.
11797         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11798         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11799         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11801         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11802         (__fdimf, fdimf, __fdim, fdim): Remove.
11803         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11804         (__isnanf, __isnan, __isnanl): New.
11806 2007-03-13  Richard Henderson  <rth@redhat.com>
11808         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11810 2007-03-13  Richard Henderson  <rth@redhat.com>
11812         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11813         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11814         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11815         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11816         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11817         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11819 2007-03-13  Richard Henderson  <rth@redhat.com>
11821         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11822         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11823         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11824         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11825         Move to dl-auxv.h; initialize instead of extern weak.
11826         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11827         weak symbol.
11828         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11829         Extern instead of initialized.
11831 2007-03-13  Richard Henderson  <rth@redhat.com>
11833         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11834         __sigsuspend_nocancel.
11836 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11838         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11839         172.16/12 address range.
11841 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11843         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11844         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11845         message.
11847 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11849         [BZ #4069]
11850         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11851         earlier.
11852         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11854         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11855         for x qNaN and y either +-inf or non-integer value.
11856         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11857         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11858         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11860 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11862         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11863         from sysdep_headers.
11865 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11867         * time/tzfile.c (find_transition): Instead of a linear search try to
11868         guess the transition index, use a linear search if the result is at
11869         most 10 transitions away from the guess or binary search otherwise.
11871 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11873         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11874         memory reallocation.
11876 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11878         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11879         and fix some typos.
11880         Optimize use of TOLOWER.
11882         [BZ #3325]
11883         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11884         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11885         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11887         [BZ #3458]
11888         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11889         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11891         [BZ #4076]
11892         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11893         (open_dir_stream): Likewise.
11894         * io/Makefile (tests): Add bug-ftw5.
11895         * io/bug-ftw5.c: New file.
11897         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11898         * nscd/servicescache.c (cache_addserv): Likewise.
11900         * nscd/grpcache.c (cache_addgr): In case a record changed on
11901         refresh, adjust key_copy.
11903         [BZ #4074]
11904         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11905         refresh, adjust key_copy.
11907         [BZ #4070]
11908         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11909         special cases.
11910         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11912 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11914         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11915         optimization.
11917         * stdio-common/vfscanf.c: Small cleanups throughout.
11919 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11921         [BZ #3325]
11922         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11923         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11924         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11925         Patch by Jared Casper <jaredcasper@gmail.com>.
11927         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11928         * sysdeps/unix/opendir.c: Likewise.
11929         * sysdeps/unix/readdir.c: Likewise.
11931         [BZ #2211]
11932         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11933         point numbers.
11934         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11936         * stdio-common/vfscanf.c: Fix problems in width accounting.
11937         * stdio-common/tst-sscanf.c (double_tests): New tests.
11938         (main): Hook them up.
11940         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11941         More simplifications of floating-point reader.
11943         * stdio-common/Makefile (tests): Add tst-swscanf.
11944         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11945         testing.
11946         * stdio-common/tst-swscanf.c: New file.
11948 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11950         [BZ #2633]
11951         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11952         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11953         Remove using for __jmp_buf_tag.
11954         * locale/locale.h (struct lconv): Also define in std namespace.
11955         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11957         [BZ #3842]
11958         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11959         using __libc_enable_secure.
11961         [BZ #3818]
11962         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11964         [BZ #3745]
11965         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11966         of names for ellipsises.
11968         [BZ #3348]
11969         * malloc/memusage.sh: Cleanups.
11970         * debug/xtrace.sh: Quoting and trap changes.
11972 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11974         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11976         * locale/iso-3166.def: Update entry for Serbia.
11977         * locale/iso-4217.def: Define RSD, remove CSD.
11979         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11980         and 64-bit operations.
11982         [BZ #4040]
11983         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11984         16-bit operations.
11986         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11987         of writev.
11989 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11991         [BZ #3991]
11992         * assert/assert.h (assert): Simplify.
11993         (assert_perror): Likewise.
11994         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11996         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11997         reqdata.
11999         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12000         change: don't pass NULL in place of an integer.
12002 2007-02-02  Bruno Haible  <bruno@clisp.org>
12004         [BZ #3954]
12005         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12006         Add mapping for U+327E.
12007         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12008         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12009         mapping of 0xD9 0xE8.
12010         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12011         mapping of U+327E.
12012         Reported by Jungshik Shin <jungshik@google.com>.
12014         [BZ #3955]
12015         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12016         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12017         Reported by Jungshik Shin <jungshik@google.com>.
12019 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12021         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12022         byte variants.
12024         [BZ #4040]
12025         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12026         byte variants.  Patch mostly be tom@tommay.net.
12028 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12030         [BZ #3996]
12031         * posix/glob.c (attribute_hidden): Define if not defined.
12032         (glob): Unescape dirname, filename or username when needed and not
12033         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12034         is NULL.  Handle unescaped [ in pattern without closing ].
12035         Don't pass GLOB_CHECK down to recursive glob for directories.
12036         (__glob_pattern_type): New function.
12037         (__glob_pattern_p): Implement using __glob_pattern_type.
12038         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12039         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12040         Remove unreachable code.
12041         * posix/globtest.sh: Add a couple of new tests.
12043 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12045         * po/ru.po: Update from translation team.
12047 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12049         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12050         to the list of i486+ CPUs.
12051         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12053 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12055         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12056         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12057         references.
12059 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12061         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12063         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12064         * resolv/res_mkquery.c: Define __res_nopt.
12065         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12066         try adding EDNS0 record.
12067         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12068         EDNS0 record was send make sure we don't try it again.
12069         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12070         * include/resolv.h: Declare __res_nopt.
12072 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12074         [BZ #3944]
12075         * time/strptime_l.c (__strptime_internal): Set have_mon for
12076         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12077         have been computed from tm_yday and tm_year.  Don't crash
12078         in day_of_the_week or day_of_the_year if not have_mon
12079         and tm_mon contains bogus value.
12080         * time/Makefile (tests): Add tst-strptime3.
12081         * time/tst-strptime3.c: New test.
12083 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12085         [BZ #3957]
12086         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12087         bit for RE_HAT_LISTS_NOT_NEWLINE.
12088         (build_charclass_op): Remove bogus comment.
12089         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12090         * posix/bug-regex27.c: New test.
12091         * posix/bug-regex28.c: New test.
12093 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12095         * po/sv.po: Update from translation team.
12097 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12099         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12101 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12103         * include/locale.h (__uselocale): Add libc_hidden_proto.
12104         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12106         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12107         gettimeofday.
12109 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12111         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12112         returning.
12113         (PTR_DEMANGLE): Real definition now that it's not the same as
12114         PRT_MANGLE anymore.
12115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12117         * string/strerror_l.c: New file.
12118         * string/Makefile (routines): Add strerror_l.
12119         * string/string.h: Declare strerror_l.
12120         * string/Versions: Export strerror_l for GLIBC_2.6.
12122 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12124         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12125         as parameter.  Construct request record.  Try sending request
12126         before the first poll use, it usually succeeds.  Adjust all
12127         callers.
12128         * nscd/nscd-client.h: Define MAXKEYLEN.
12129         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12131 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12133         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12134         from return value.
12135         * nscd/nscd_helper.c: Include string.h.
12136         (__nscd_cache_search): Remove const qualifier from return value.
12137         On strict alignment architectures check hash entry and data head
12138         alignment.
12139         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12140         mmapped data during GC cycle contains garbage.  If
12141         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12142         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12143         dropped to 0.
12144         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12145         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12146         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12147         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12148         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12150 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12152         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12154 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12156         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12157         names not numbers in cfi_*.
12159 2007-01-26  Andreas Jaeger  <aj@suse.de>
12161         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12162         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12163         Correct values of PER_HPUX and PER_OSF4.
12165 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12167         * elf/dl-minimal.c: Undefine _itoa first.
12168         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12169         * malloc/mtrace.c: Revert last change.
12170         * posix/wordexp.c: Likewise.
12172 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12174         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12175         and __geode__ to the list of i486+ CPUs.
12176         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12178 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12180         * stdio-common/_itoa.c: Include <limits.h>.
12181         * stdio-common/_itowa.c: Likewise.
12183 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12185         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12186         platforms.
12187         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12188         64-bit platforms.
12189         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12190         possible.
12191         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12192         if possible.
12194         [BZ #3902]
12195         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12196         * stdio-common/Makefile (tests): Add bug17.
12197         * stdio-common/bug17.c: New file.
12199 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12201         * iconvdata/brf.c: New file.
12202         * iconvdata/testdata/BRF: New file.
12203         * iconvdata/testdata/BRF..UTF8: New file.
12204         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12205         * iconvdata/Makefile: Add rules to build BRF.
12206         * iconvdata/TESTS: Add BRF entry.
12207         * iconvdata/gconv-modules: Likewise.
12208         * iconvdata/tst-tables.sh: Likewise.
12210 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12212         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12213         type `long long int', not `long int'.
12214         (wcstoq): Likewise.
12216 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12218         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12219         of values on 64-bit platforms which are too large.
12221 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12222             Joe Kerian  <jkerian@us.us.ibm.com>
12224         [BZ #2749]
12225         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12226         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12227         (__copysignl): Use signbit() for comparison.
12228         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12229         SET_LDOUBLE_WORDS64.
12231         [BZ #2423, #2749]
12232         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12233         (__ceill): Remove calls to fegetround(), fesetround().
12234         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12238 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12240         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12242         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12244 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12246         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12247         demangle pointer.
12248         * csu/libc-start.c: Likewise.
12250 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12252         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12253         really work anyway.
12255 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12257         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12258         users.
12259         (handle_request): Remove unnecessary tests.
12261         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12263 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12265         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12266         workbits in semi-raw fraction.
12268         * math/test-misc.c: Add new tests.
12270 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12272         * math/basic-test.c: Include test-skeleton.c.
12273         (TEST_TRUNC): Define.
12274         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12275         (main): Rename to ...
12276         (do_test): ...this.  Run new tests.
12277         (TEST_FUNCTION): Define.
12279 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12280             Joe Kerian  <jkerian@us.us.ibm.com>
12282         [BZ #2749]
12283         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12284         handling for high words.
12285         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12286         and overflow for infinity.
12288 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12290         * nscd/connections.c (handle_request): Add a __builtin_expect.
12292         * nscd/connections.c (serv2db): Change type into structure which
12293         also says whether this is a request for data.  Renamed to
12294         servinfo.  All users changed.
12295         (handle_request): Much simpler test whether we should search the cache.
12297         * nscd/connections.c (handle_request): Fix thinko in selinux test
12298         invocation.
12300         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12301         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12302         it before getting dl_load_lock and then relock.
12303         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12304         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12305         case we unlocked the scope.
12306         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12307         _dl_lookup_symbol_x in case we locked the scope.
12308         (_dl_profile_fixup): Likewise.
12309         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12310         set DL_LOOKUP_SCOPE_LOCK.
12312 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12314         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12315         CFLAGS-getsrvbynpt_r.c.
12316         * nscd/getsrvbynm_r.c: New file.
12317         * nscd/getsrvbypt_r.c: New file.
12318         * nscd/nscd_getserv_r.c: New file.
12319         * nscd/servicescache.c: New file.
12320         * nscd/Makefile (routines): Add nscd_getserv_r.
12321         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12322         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12323         CFLAGS-getsrvbypt_r.c.
12324         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12325         table.  Add entries for services database.
12326         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12327         services database.
12328         (dbs): Add .reset_res and servdb initialization.
12329         (serv2db): Add entries for services database.
12330         (verify_persistent_db): Accept dbnr == servdb.
12331         (invalidate_cache): Rewrite database name recognition to use a table.
12332         Call res_init() if .reset_res is set for database.
12333         (handle_request): Add code to handle services database.
12334         * nscd/gai.c: Don't define __getservbyname_r.
12335         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12336         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12337         (serv_response_header): Define.
12338         (struct datahead): Add serv_response_header member.
12339         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12340         using table.
12341         * nscd/nscd.conf: Add entries for services database.
12342         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12343         Declare serv_iov_disabled.
12344         Declare addservbyname, readdservbyname, addservbyport, and
12345         readdservbyport.
12346         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12347         (find_db): Fix error message.
12348         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12349         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12350         * nscd/selinux.c (perms): Add entries for services database.
12351         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12352         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12354         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12355         * nscd/hstcache.c: Likewise.
12356         * nscd/pwdcache.c: Likewise.
12358         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12359         computation of keylen.
12361         * include/string.h: Only redefine strndupa if this is really for
12362         libc code.
12364 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12366         * nscd/nscd_gethst_r.c: Minor cleanups.
12368         * nscd/connections.c (handle_request): Check selinux permissions
12369         for all non-admin commands.
12371         * sysdeps/i386/i486/bits/atomic.h: Define
12372         atomic_compare_and_exchange_val_acq,
12373         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12374         using __sync_* built-ins for gcc >= 4.1.
12375         * sysdeps/x86_64/bits/atomic.h: Likewise.
12377         [BZ #3840]
12378         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12379         and .oS.d files.
12381 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12383         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12384         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12385         (do_test): Check errno and exit(0) if ENOSYS.
12387 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12389         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12390         thousands separators.
12391         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12392         * stdlib/tst-strtod4.c: New test.
12394         [BZ #3855]
12395         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12396         hexadecimal digit should accept just the initial 0.
12397         * stdlib/tst-strtod2.c (tests): New variable.
12398         (do_test): Run several tests rather than just one.
12400 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12402         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12403         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12405 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12407         * io/fts.c: Make sure fts_cur is always valid after return from
12408         fts_read.
12409         Patch by Miloslav Trmac <mitr@redhat.com>.
12411 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12413         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12414         (R_MIPS_NUM): Bump by 1.
12416 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12418         * posix/execvp.c: Include alloca.h.
12419         (allocate_scripts_argv): Renamed to...
12420         (scripts_argv): ... this.  Don't allocate buffer here nor count
12421         arguments.
12422         (execvp): Use alloca if possible.
12423         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12424         * posix/tst-vfork3.c: New test.
12426 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12428         * string/Makefile (tst-strxfrm2-ENV): Define.
12429         * stdlib/Makefile (tst-strtod3-ENV): Define.
12431 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12433         * posix/getconf.c: Update copyright year.
12434         * nss/getent.c: Likewise.
12435         * iconv/iconvconfig.c: Likewise.
12436         * iconv/iconv_prog.c: Likewise.
12437         * elf/ldconfig.c: Likewise.
12438         * catgets/gencat.c: Likewise.
12439         * csu/version.c: Likewise.
12440         * elf/ldd.bash.in: Likewise.
12441         * elf/sprof.c (print_version): Likewise.
12442         * locale/programs/locale.c: Likewise.
12443         * locale/programs/localedef.c: Likewise.
12444         * nscd/nscd.c (print_version): Likewise.
12445         * debug/xtrace.sh: Likewise.
12446         * malloc/memusage.sh: Likewise.
12447         * malloc/mtrace.pl: Likewise.
12448         * debug/catchsegv.sh: Likewise.
12450 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12452         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12453         attempts.
12455 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12457         * posix/wordexp.c: Remove some unnecessary tests.
12459 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12461         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12462         blacklist the group till after we look it up.
12464 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12466         * include/atomic.h (atomic_forced_read): New macro.
12468 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12470         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12472 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12474         * nss/getXXbyYY_r.c: Include atomic.h.
12475         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12476         add atomic_write_barrier () in between.
12478         * stdlib/Makefile (tests): Add tst-makecontext.
12479         * stdlib/tst-makecontext.c: New test.
12481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12482         (__makecontext): Don't realign uc_mcontext.uc_regs.
12484 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12486         * elf/dl-support.c: Include dl-procinfo.h.
12487         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12488         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12489         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12490         Define.
12491         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12492         hardcoded constants.
12493         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12494         PPC_PLATFORM_* macros for array designators.
12496 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12498         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12499         names to the beginning.
12500         (_dl_powerpc_platforms): Add "power6x".
12501         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12502         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12503         (_DL_PLATFORMS_COUNT): Increase.
12504         (_dl_string_platform): Handle power6x case.
12505         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12506         PPC_FEATURE_POWER6_EXT): Define.
12507         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12509 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12511         [BZ #3747]
12512         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12513         [-2^31 .. 2^31) range.
12514         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12515         targets.
12516         * stdlib/tst-rand48-2.c: New test.
12517         * stdlib/Makefile (tests): Add tst-rand48-2.
12519 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12521         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12523 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12525         * misc/tst-pselect.c (do_test): Make sure the helper process is
12526         terminating when the test is aborted.
12528 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12530         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12531         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12532         Handle relatime mount option.
12534         [BZ #2337]
12535         * libio/Makefile (tests): Add tst-setvbuf1.
12536         * libio/tst-setvbuf1.c: New file.
12538 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12540         [BZ #2337]
12541         * libio/genops.c (__uflow): Fix a typo.
12542         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12543         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12544         the narrow buffer size.
12546 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12548         [BZ #2337]
12549         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12550         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12551         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12552         in _flags.
12553         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12554         _IO_wstr_finish): Likewise.
12555         * libio/wmemstream.c (open_wmemstream): Likewise.
12556         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12557         even for wide streams.
12559 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12562         kernel-features.h.
12564 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12566         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12567         separators also if no non-zero digits found.
12568         * stdlib/Makefile (tests): Add tst-strtod3.
12570 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12572         [BZ #3632]
12573         * include/features.h: Fix comment about default value for
12574         _POSIX_C_SOURCE.
12576         [BZ #3664]
12577         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12578         empty parsed strings.
12579         * stdlib/Makefile (tests): Add tst-strtod2.
12580         * stdlib/tst-strtod2.c: New file.
12582         [BZ #3673]
12583         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12584         computation.
12585         * stdlib/Makefile (tests): Add tst-atof2.
12586         * stdlib/tst-atof2.c: New file.
12588         [BZ #3674]
12589         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12590         correctly if removing trailing zero of hex-float.
12591         * stdlib/Makefile (tests): Add tst-atof1.
12592         * stdlib/tst-atof1.c: New file.
12594 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12596         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12597         Start searching for next comma at p rather than rest.
12598         * misc/Makefile (tests): Add tst-mntent2.
12599         * misc/tst-mntent2.c: New test.
12601         * misc/getusershell.c (initshells): Check for integer overflows.
12602         Make strings buffer one bigger as fgets always succeeds when second
12603         argument is 1.  Don't use calloc for shells array.  Disallow
12604         / as shell.
12606 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12608         * malloc/memusage.c: Handle realloc with new size of zero and
12609         non-NULL pointer correctly.
12610         (me): Really write first record twice.
12611         (struct entry): Make format bi-arch safe.
12612         (dest): Write out more realloc statistics.
12613         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12615 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12617         * nis/nis_subr.c (nis_getnames): Revert last change.
12619 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12621         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12622         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12623         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12624         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12625         ENOTTY.
12626         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12627         * io/tst-ttyname_r.c: New test.
12629 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12631         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12633 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12635         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12636         jump table entries.
12638 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12640         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12641         `clone' function to ensure proper unwinding stop of gdb.
12642         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12644 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12646         * nscd/nscd.init: Remove obsolete and commented-out -S option
12647         handling.
12649 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12651         [BZ #3514]
12652         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12654         [BZ #3515]
12655         * manual/string.texi (strtok): Remove duplicate paragraph.
12657 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12659         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12660         libgcc not supporting `rflags' unwinding (register # >= 17).
12662 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12664         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12665         succeeded.
12667 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12668             Jakub Jelinek  <jakub@redhat.com>
12669             Jan Kratochvil  <jan.kratochvil@redhat.com>
12671         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12672         unwind information.
12673         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12674         'restore_rt' even in the 'signal' directory.
12675         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12677 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12679         [BZ #3559]
12680         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12681         malloc crashed.  Don't allocate memory unnecessarily in each
12682         loop.
12684 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12686         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12688 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12690         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12692 2006-11-18  Bruno Haible  <bruno@clisp.org>
12694         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12695         __sysconf only after having tried to call getgroups32.
12697 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12699         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12700         addresses for IPv4 queries if they can be mapped.
12702 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12704         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12705         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12706         (signmask): Add .size directive.
12707         (othermask): Add .type directive.
12709 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12711         * po/nl.po: Update from translation team.
12713         * timezone/zdump.c: Redo fix for BZ #3137.
12715 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12717         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12718         to first_unused after parsing :include: file.
12720 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12722         * timezone/africa: Update from tzdata2006o.
12723         * timezone/antarctica: Likewise.
12724         * timezone/asia: Likewise.
12725         * timezone/australasia: Likewise.
12726         * timezone/backward: Likewise.
12727         * timezone/europe: Likewise.
12728         * timezone/iso3166.tab: Likewise.
12729         * timezone/northamerica: Likewise.
12730         * timezone/southamerica: Likewise.
12731         * timezone/zone.tab: Likewise.
12733         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12734         on machines with 64-bit time_t.
12736         * timezone/checktab.awk: Update from tzcode2006o.
12737         * timezone/ialloc.c: Likewise.
12738         * timezone/private.h: Likewise.
12739         * timezone/scheck.c: Likewise.
12740         * timezone/tzfile.h: Likewise.
12741         * timezone/tzselect.ksh: Likewise.
12742         * timezone/zdump.c: Likewise.
12743         * timezone/zic.c: Likewise.
12745         [BZ #3483]
12746         * elf/ldconfig.c (main): Call setlocale and textdomain.
12747         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12749         [BZ #3480]
12750         * manual/argp.texi: Fix typos.
12751         * manual/charset.texi: Likewise.
12752         * manual/errno.texi: Likewise.
12753         * manual/filesys.texi: Likewise.
12754         * manual/lang.texi: Likewise.
12755         * manual/maint.texi: Likewise.
12756         * manual/memory.texi: Likewise.
12757         * manual/message.texi: Likewise.
12758         * manual/resource.texi: Likewise.
12759         * manual/search.texi: Likewise.
12760         * manual/signal.texi: Likewise.
12761         * manual/startup.texi: Likewise.
12762         * manual/stdio.texi: Likewise.
12763         * manual/sysinfo.texi: Likewise.
12764         * manual/syslog.texi: Likewise.
12765         * manual/time.texi: Likewise.
12766         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12768         [BZ #3465]
12769         * sunrpc/clnt_raw.c: Minimal message improvements.
12770         * sunrpc/pm_getmaps.c: Likewise.
12771         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12772         * nis/nis_print_group_entry.c: Likewise.
12773         * locale/programs/repertoire.c: Likewise.
12774         * locale/programs/charmap.c: Likewise.
12775         * malloc/memusage.sh: Likewise.
12776         * elf/dl-deps.c: Likewise.
12777         * locale/programs/ld-collate.c: Likewise.
12778         * libio/vswprintf.c: Likewise.
12779         * malloc/memusagestat.c: Likewise.
12780         * sunrpc/auth_unix.c: Likewise.
12781         * sunrpc/rpc_main.c: Likewise.
12782         * nscd/cache.c: Likewise.
12783         * locale/programs/repertoire.c: Unify output messages.
12784         * locale/programs/charmap.c: Likewise.
12785         * locale/programs/ld-ctype.c: Likewise.
12786         * locale/programs/ld-monetary.c: Likewise.
12787         * locale/programs/ld-numeric.c: Likewise.
12788         * locale/programs/ld-time.c: Likewise.
12789         * elf/ldconfig.c: Likewise.
12790         * nscd/selinux.c: Likewise.
12791         * elf/cache.c: Likewise.
12792         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12794         [BZ #3451]
12795         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12796         change atomic.
12797         (ceil): Likewise.
12799 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12801         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12802         if N is one bigger than return value.
12803         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12804         and l1 last arguments, if buf is defined, verify the return value
12805         equals to strlen (buf) and verify no byte beyond passed length
12806         is modified.
12808 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12810         * po/sv.po: Update from translation team.
12812 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12814         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12815         noinline attribute.
12817 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12819         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12820         noinline attribute.
12822         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12823         Use __new_sys_siglist instead of _sys_siglist_internal as
12824         second macro argument.
12825         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12826         strong_alias.
12828 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12830         [BZ #3493]
12831         * posix/unistd.h (sysconf): Remove const attribute.
12833         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12834         temporary or deprecated addresses.
12835         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12837         * string/Makefile (tests): Add tst-strxfrm2.
12838         * string/tst-strxfrm2.c: New file.
12840 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12842         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12843         rather than r->r_brk.
12845 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12847         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12848         optimization even if needed > n.
12850         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12851         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12852         return false, otherwise return true.
12853         (cache_rpath): Return decompose_rpath return value.
12855 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12857         * include/libc-symbols.h (declare_symbol): Rename to...
12858         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12859         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12860         .size directive.
12861         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12862         changes.
12863         * sysdeps/gnu/siglist.c: Likewise.
12865 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12867         * sysdeps/powerpc/fpu/bits/mathinline.h
12868         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12869         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12871 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12873         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12874         Update handling of cache descriptor 0x49 for new models.
12875         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12876         Likewise.
12878 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12880         * malloc/memusage.c (dest): Reset not_me back to false after
12881         printing statistics.
12883 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12885         * configure.in: Work around ld --help change and avoid -z relro
12886         test completely if the architecture doesn't care about security.
12888 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12890         * po/sv.po: Update from translation team.
12892 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12894         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12895         generate compatibility version.
12897 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12899         * configure.in: Relax -z relro requirement a bit.
12901         * po/sv.po: Update from translation team.
12903 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12905         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12906         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12907         * elf/dl-close.c (_dl_close_worker): Likewise.
12908         * elf/dl-open.c (_dl_open_worker): Likewise.
12909         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12911 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12913         * configure.in: Require assembler support for visibility, compiler
12914         support for visibility and aliases, linker support for various -z
12915         options.
12916         * Makeconfig: Remove conditional code which now is unnecessary.
12917         * config.h.in: Likewise.
12918         * config.make.in: Likewise.
12919         * dlfcn/Makefile: Likewise.
12920         * elf/Makefile: Likewise.
12921         * elf/dl-load.c: Likewise.
12922         * elf/rtld.c: Likewise.
12923         * include/libc-symbols.h: Likewise.
12924         * include/stdio.h: Likewise.
12925         * io/Makefile: Likewise.
12926         * io/fstat.c: Likewise.
12927         * io/fstat64.c: Likewise.
12928         * io/fstatat.c: Likewise.
12929         * io/fstatat64.c: Likewise.
12930         * io/lstat.c: Likewise.
12931         * io/lstat64.c: Likewise.
12932         * io/mknod.c: Likewise.
12933         * io/mknodat.c: Likewise.
12934         * io/stat.c: Likewise.
12935         * io/stat64.c: Likewise.
12936         * libio/stdio.c: Likewise.
12937         * nscd/Makefile: Likewise.
12938         * stdlib/Makefile: Likewise.
12939         * stdlib/atexit.c: Likewise.
12940         * sysdeps/generic/ldsodefs.h: Likewise.
12941         * sysdeps/i386/dl-machine.h: Likewise.
12942         * sysdeps/i386/sysdep.h: Likewise.
12943         * sysdeps/i386/i686/memcmp.S: Likewise.
12944         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12945         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12946         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12948         * Makerules: USE_TLS support is now default.
12949         * tls.make.c: Likewise.
12950         * csu/Versions: Likewise.
12951         * csu/libc-start.c: Likewise.
12952         * csu/libc-tls.c: Likewise.
12953         * csu/version.c: Likewise.
12954         * dlfcn/dlinfo.c: Likewise.
12955         * elf/dl-addr.c: Likewise.
12956         * elf/dl-cache.c: Likewise.
12957         * elf/dl-close.c: Likewise.
12958         * elf/dl-iteratephdr.c: Likewise.
12959         * elf/dl-load.c: Likewise.
12960         * elf/dl-lookup.c: Likewise.
12961         * elf/dl-object.c: Likewise.
12962         * elf/dl-open.c: Likewise.
12963         * elf/dl-reloc.c: Likewise.
12964         * elf/dl-support.c: Likewise.
12965         * elf/dl-sym.c: Likewise.
12966         * elf/dl-sysdep.c: Likewise.
12967         * elf/dl-tls.c: Likewise.
12968         * elf/ldconfig.c: Likewise.
12969         * elf/rtld.c: Likewise.
12970         * elf/tst-tls-dlinfo.c: Likewise.
12971         * elf/tst-tls1.c: Likewise.
12972         * elf/tst-tls10.h: Likewise.
12973         * elf/tst-tls14.c: Likewise.
12974         * elf/tst-tls2.c: Likewise.
12975         * elf/tst-tls3.c: Likewise.
12976         * elf/tst-tls4.c: Likewise.
12977         * elf/tst-tls5.c: Likewise.
12978         * elf/tst-tls6.c: Likewise.
12979         * elf/tst-tls7.c: Likewise.
12980         * elf/tst-tls8.c: Likewise.
12981         * elf/tst-tls9.c: Likewise.
12982         * elf/tst-tlsmod1.c: Likewise.
12983         * elf/tst-tlsmod13.c: Likewise.
12984         * elf/tst-tlsmod13a.c: Likewise.
12985         * elf/tst-tlsmod14a.c: Likewise.
12986         * elf/tst-tlsmod2.c: Likewise.
12987         * elf/tst-tlsmod3.c: Likewise.
12988         * elf/tst-tlsmod4.c: Likewise.
12989         * elf/tst-tlsmod5.c: Likewise.
12990         * elf/tst-tlsmod6.c: Likewise.
12991         * include/errno.h: Likewise.
12992         * include/link.h: Likewise.
12993         * include/tls.h: Likewise.
12994         * locale/global-locale.c: Likewise.
12995         * locale/localeinfo.h: Likewise.
12996         * malloc/arena.c: Likewise.
12997         * malloc/hooks.c: Likewise.
12998         * malloc/malloc.c: Likewise.
12999         * resolv/Versions: Likewise.
13000         * sysdeps/alpha/dl-machine.h: Likewise.
13001         * sysdeps/alpha/libc-tls.c: Likewise.
13002         * sysdeps/generic/ldsodefs.h: Likewise.
13003         * sysdeps/generic/tls.h: Likewise.
13004         * sysdeps/i386/dl-machine.h: Likewise.
13005         * sysdeps/ia64/dl-machine.h: Likewise.
13006         * sysdeps/ia64/libc-tls.c: Likewise.
13007         * sysdeps/mach/hurd/fork.c: Likewise.
13008         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13009         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13010         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13011         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13012         * sysdeps/s390/libc-tls.c: Likewise.
13013         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13014         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13015         * sysdeps/sh/dl-machine.h: Likewise.
13016         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13017         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13018         * sysdeps/x86_64/dl-machine.h: Likewise.
13020         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13021         split out locking and parameter checking.
13022         (_dl_close): Call _dl_close_worker after locking and checking.
13023         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13024         _dl_close.
13025         * elf/Makefile: Add rules to build and run tst-thrlock.
13026         * elf/tst-thrlock.c:  New file.
13028         [BZ #3426]
13029         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13030         reality.
13032         [BZ #3429]
13033         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13034         we are sure we do not need it anymore for _dl_close.  Also move
13035         the asserts inside the lock region.
13036         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13038 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13040         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13041         argument.
13042         (_dl_lookup_symbol_x): Adjust caller.
13044         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13045         _ns_global_scope.
13046         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13048         * elf/dl-libc.c: Revert l_scope name changes.
13049         * elf/dl-load.c: Likewise.
13050         * elf/dl-object.c: Likewise.
13051         * elf/rtld.c: Likewise.
13052         * elf/dl-close.c (_dl_close): Likewise.
13053         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13054         always use __rtld_mrlock_{change,done}.  Always free old scope list
13055         here if not l_scope_mem.
13056         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13057         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13058         the lookup and __rtld_mrlock_unlock it after the lookup.
13059         * elf/dl-sym.c: Likewise.
13060         * include/link.h (struct r_scoperec): Remove.
13061         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13062         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13064 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13066         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13068 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13070         * configure.in: Disable building profile libraries by default.
13072 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13074         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13075         as signed longs, check for x_base + pos overflow.
13076         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13077         * sunrpc/tst-xdrmem2.c: New test.
13079 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13081         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13082         _dl_lookup_symbol_x code.
13084 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13086         * elf/dl-runtime.c: Include sysdep-cancel.h.
13087         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13088         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13089         instead of catomic_* macros.
13090         * elf/dl-sym.c: Include sysdep-cancel.h.
13091         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13092         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13093         * elf/dl-close.c: Include sysdep-cancel.h.
13094         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13095         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13096         * elf/dl-open.c: Include sysdep-cancel.h.
13097         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13098         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13100 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13102         [BZ #3313]
13103         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13104         fastbin rather than end of fastbin array.
13106 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13108         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13109         body macro.
13110         * sysdeps/x86_64/bits/atomic.h
13111         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13112         (catomic_decrement): Use correct body macro.
13114 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13116         * include/atomic.h: Add a unique prefix to all local variables
13117         in macros.
13118         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13120 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13122         [BZ #3369]
13123         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13124         and 7.
13126 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13128         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13130 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13132         [BZ #3313]
13133         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13134         determine highest fast bin to consolidate, always look into all of
13135         them.
13136         (do_check_malloc_state): Only require for empty bins for large
13137         sizes in main arena.
13139         * libio/stdio.h: Add more __wur attributes.
13141         * elf/dl-minimal.c (realloc): Optimize last patch.
13143 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13145         [BZ #3352]
13146         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13147         and use memcpy() if it does.
13149 2006-11-12  Andreas Jaeger  <aj@suse.de>
13151         [BZ #2510]
13152         * manual/search.texi (Hash Search Function): Clarify.
13153         (Array Search Function): Clarify.
13155 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13157         [BZ #2830]
13158         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13159         shifting.
13160         * math/atest-exp2.c (read_mpn_hex): Likewise.
13161         * math/atest-sincos.c (main): Likewise.
13163 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13165         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13166         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13167         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13168         version GLIBC_2.6.
13169         * Versions.def: Add GLIBC_2.6 for libc.
13171         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13173         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13175 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13177         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13179         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13181         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13182         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13184 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13186         * include/atomic.c: Define catomic_* operations.
13187         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13188         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13189         * malloc/memusage.c: Likewise.
13190         * gmon/mcount.c: Likewise.
13191         * elf/dl-close.c: Likewise.
13192         * elf/dl-open.c: Likewise.
13193         * elf/dl-profile.c: Likewise.
13194         * elf/dl-sym.c: Likewise.
13195         * elf/dl-runtime.c: Likewise.
13196         * elf/dl-fptr.c: Likewise.
13197         * resolv/res_libc.c: Likewise.
13199 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13201         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13202         components which lack them.
13204         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13205         at least one entry consisting of the parameter concatenated with
13206         the domain.
13208 2006-10-10  Roland McGrath  <roland@frob.com>
13210         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13211         * sysdeps/mach/hurd/futimes.c: Likewise.
13212         * sysdeps/mach/hurd/lutimes.c: Likewise.
13214 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13215             Jakub Jelinek  <jakub@redhat.com>
13217         Implement reference counting of scope records.
13218         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13219         from the list in objects which remain.  Always allocate new scope
13220         record.
13221         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13222         don't resize, allocate a new one.
13223         * elf/dl-runtime.c: Update reference counters before using a scope
13224         array.
13225         * elf/dl-sym.c: Likewise.
13226         * elf/dl-libc.c: Adjust for l_scope name change.
13227         * elf/dl-load.c: Likewise.
13228         * elf/dl-object.c: Likewise.
13229         * elf/rtld.c: Likewise.
13230         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13231         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13232         Add l_scoperec_lock.
13233         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13234         * sysdeps/generic/rtld-lowlevel.h: New file.
13236         * include/atomic.h: Rename atomic_and to atomic_and_val and
13237         atomic_or to atomic_or_val.  Define new macros atomic_and and
13238         atomic_or which do not return values.
13239         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13240         Various cleanups.
13241         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13243         * po/sv.po: Update from translation team.
13245 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13247         * Versions.def: Add GLIBC_2.6 to libpthread.
13249         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13250         (versioned_symbol): Likewise.
13251         (compat_symbol): Likewise.
13253         * po/tr.po: Update from translation team.
13255 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13257         * nis/Banner: Removed.  It's been integral part forever and the
13258         author info is incomplete anyway.
13259         * libio/Banner: Likewise.
13261         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13262         code, make sure the nis_freeresult call doesn't crash and that the
13263         result is reported correctly.
13265 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13267         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13268         when callback is NULL.
13270         * nis/Versions (libnss_nisplus): Add
13271         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13272         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13273         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13274         _nss_create_tablename): Rename to...
13275         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13276         ... these.  No longer static.
13277         (internal_setgrent): Adjust users.
13278         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13279         Don't use locking around _nss_grp_create_tablename call.
13280         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13282 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13284         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13286 2006-10-06  Andreas Jaeger  <aj@suse.de>
13288         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13290 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13292         * po/pl.po: Update from translation team.
13294         * nscd/nscd.c (main): Fix typo in message.
13295         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13297 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13299         [BZ #3291]
13300         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13301         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13302         (__sigprocmask): Define.
13304 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13306         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13307         used.
13309 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13311         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13312         in oldtotal and newtotal calculation.
13313         * nscd/nscd-client.h (struct mapped_database): Add datasize
13314         field.
13315         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13316         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13317         increased.
13318         (__nscd_cache_search): Add checks to make sure we never reference
13319         data beyond the current mapping.
13321 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13323         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13324         variables const to avoid compiler warnings.
13326         * io/fts.c (fts_close): Remove redundant checks.
13327         (fts_build): Likewise.
13328         (fts_palloc): Likewise.
13330         * manual/message.texi (Advanced gettext functions,
13331         Using gettextized software): Fix typos.
13333 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13335         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13336         explain why there are no leaks.
13338 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13340         * libio/wmemstream.c: Include <wchar.h>.
13341         * libio/bug-wmemstream1.c: Likewise.
13342         * libio/tst-wmemstream1.c: Likewise.
13343         * libio/tst-wmemstream2.c: Likewise.
13345         * version.h (RELEASE): Bump to 2.5.
13346         * README: Regenerated.
13348         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13350         [BZ #3273]
13351         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13352         found no group members.
13353         Patch by Petr Baudis.
13355 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13357         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13358         assert bootstrap_map.l_tls_modid is zero.
13359         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13360         if USE___THREAD.
13362 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13364         * libio/stdio.h: Move open_wmemstream prototype to ...
13365         * wcsmbs/wchar.h: ... here.
13367 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13369         [BZ #3252]
13370         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13371         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13372         __{,l}chown to handle the rest.
13373         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13374         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13375         __{,l}chown to handle the rest.
13376         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13377         i386/fchownat.c.
13378         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13379         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13381         [BZ #3253]
13382         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13383         time, rather allocate increasingly bigger arrays of pointers, if
13384         possible with alloca, if too large with malloc.
13386 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13388         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13390         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13392 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13394         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13395         home addresses.
13396         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13397         IFA_F_HOMEADDRESS flag for interfaces.
13398         * include/ifaddrs.h (struct in6addrinfo): Define
13399         in6ai_homeaddress.
13401 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13403         [BZ #3225]
13404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13405         PTR_DEMANGLE3): Define.
13406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13407         PTR_DEMANGLE3): Likewise.
13408         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13409         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13410         Likewise.
13411         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13413 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13415         * po/libc.pot: Regenerated.
13416         * po/be.po: Updated.
13417         * po/ca.po: Likewise.
13418         * po/cs.po: Likewise.
13419         * po/da.po: Likewise.
13420         * po/de.po: Likewise.
13421         * po/el.po: Likewise.
13422         * po/en_GB.po: Likewise.
13423         * po/es.po: Likewise.
13424         * po/fi.po: Likewise.
13425         * po/fr.po: Likewise.
13426         * po/gl.po: Likewise.
13427         * po/hr.po: Likewise.
13428         * po/hu.po: Likewise.
13429         * po/ja.po: Likewise.
13430         * po/ko.po: Likewise.
13431         * po/nb.po: Likewise.
13432         * po/nl.po: Likewise.
13433         * po/pl.po: Likewise.
13434         * po/pt_BR.po: Likewise.
13435         * po/ru.po: Likewise.
13436         * po/rw.po: Likewise.
13437         * po/sk.po: Likewise.
13438         * po/sv.po: Likewise.
13439         * po/tr.po: Likewise.
13440         * po/zh_CN.po: Likewise.
13441         * po/zh_TW.po: Likewise.
13443         [BZ #3137]
13444         * iconv/iconv_prog.c (main): Fix spelling in error message.
13445         * iconv/iconvconfig.c (main): Likewise.
13446         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13447         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13448         * locale/programs/localedef.c (main): Likewise.
13449         * locale/programs/repertoire.c (repertoire_read): Likewise.
13450         * timezone/zdump.c (main): Likewise.
13451         * nscd/connections.c (handle_request): Fix spelling in log message.
13452         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13454 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13456         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13457         interfaces.
13459 2006-09-20  Andreas Jaeger  <aj@suse.de>
13461         * math/libm-test.inc (lrint_test_upward): Fix typo.
13463 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13465         [BZ #2592]
13466         * math/libm-test.inc (lrint_test_tonearest): New function.
13467         (lrint_test_towardzero): New function.
13468         (lrint_test_downward): New function.
13469         (lrint_test_upward): New function.
13470         (main): Run these new tests.
13471         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13472         of values near to 0.
13473         (two52): Use double not long double.
13474         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13475         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13476         (two23): Use float not double.
13477         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13478         (two23): Use float not double.
13479         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13480         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13481         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13482         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13484 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13486         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13487         Cast sp to unsigned long to avoid compiler warning.
13488         Use __makecontext_ret function instead of a trampoline on the stack.
13489         (__makecontext_ret): New function.
13490         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13492 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13494         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13495         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13496         bits.
13498 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13500         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13501         sure no reference to the unloaded map's search list remains in the
13502         dependency's scope.
13504 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13506         * elf/Makefile: Add rules to build and run unload7 test.
13507         * elf/unload7.c: New test.
13508         * elf/unload7mod1.c: New file.
13509         * elf/unload7mod2.c: New file.
13511 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13513         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13514         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13515         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13516         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13517         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13518         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13519         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13520         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13521         PTRACE_GETEVENTMSG): Likewise.
13522         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13523         values.
13525 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13527         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13528         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13529         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13530         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13532 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13534         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13535         write '\0' to the fd.
13536         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13537         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13538         Change regs to unsigned long pointer from unsigned int, fix fscr
13539         offset.
13541 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13543         * io/Makefile (CFLAGS-fstatat.c): Set.
13544         (CFLAGS-fstatat64.c): Likewise.
13545         (CFLAGS-mknodat.c): Likewise.
13547         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13548         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13550         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13552 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13553             Steven Munroe  <sjmunroe@us.ibm.com>
13555         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13556         names to the beginning.  Rename "cell" to "cellbe".
13557         (_dl_powerpc_platforms): New.
13558         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13559         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13560         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13561         (_DL_HWCAP_PLATFORM): Define to new mask.
13562         (_dl_platform_string, _dl_string_platform): New functions.
13563         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13564         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13566 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13568         [BZ #2526]
13569         * README.libm: Fix a thinko in sqrt algorithm description.
13571         [BZ #3143]
13572         * manual/string.texi (argz_delete): Fix prototype.
13573         Patch by <alpt@freaknet.org>.
13575 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13577         [BZ #3138]
13578         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13579         * io/tst-fcntl.c (do_prepare): Likewise.
13580         * posix/tst-exec.c (do_prepare): Likewise.
13581         * posix/tst-preadwrite.c (do_prepare): Likewise.
13582         * posix/tst-spawn.c (do_prepare): Likewise.
13583         * posix/tst-truncate.c (do_prepare): Likewise.
13584         * rt/tst-aio.c (do_prepare): Likewise.
13585         * rt/tst-aio64.c (do_prepare): Likewise.
13586         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13587         size_t.
13589 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13591         [BZ #2821]
13592         * time/mktime.c (guess_time_tm): Fix overflow detection.
13593         * time/Makefile (tests): Add bug-mktime1.
13594         * time/bug-mktime1.c: New file.
13596         [BZ #3189, #3188]
13597         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13598         (mremap): Likewise.
13600 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13602         [BZ #1006]
13603         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13604         Ensure relocation doesn't clobber any bits outside of the
13605         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13606         R_SPARC_HI22 and R_SPARC_H44.
13608         [BZ #2775]
13609         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13610         (long) (MINSIZE + nb - old_size) is positive.
13612         * malloc/arena.c (grow_heap): When growing bail even if new_size
13613         is negative.
13615         [BZ #3155]
13616         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13617         stack below r1.
13619 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13621         * posix/regex_internal.c (re_string_reconstruct): Handle
13622         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13623         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13624         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13625         re_string_context_at.
13626         * posix/Makefile: Add rules to build and run bug-regex26 test.
13627         * posix/bug-regex26.c: New test.
13629         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13630         rather than col_sym_free.  Move seqp declaration earlier.
13632         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13634 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13636         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13637         decl before first goto out.
13639 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13641         * Makerules (shlib.lds): If have-hash-style, put .hash section
13642         at the end of the RO segment.
13644 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13646         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13647         style hash table format is used.
13649 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13651         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13652         randomization rather than before.
13653         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13655 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13657         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13659         * malloc/malloc.c (_int_malloc): Use full list insert and not
13660         shortcut which assumes the list is empty for large requests
13661         too.
13663         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13665 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13667         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13668         and offout arguments to the prototype.
13669         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13670         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13671         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13672         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13673         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13674         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13675         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13676         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13678 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13680         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13682         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13683         dlopen parameters.
13685 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13687         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13688         only if herrno is NETDB_INTERNAL.  Handle errors other than
13689         ERANGE outside of the loops, handle TRY_AGAIN.
13691         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13692         if other's ctype category was missing.
13693         * locale/programs/ld-collate.c (collate_read): Return if
13694         copy_locale's collate category is missing.
13696 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13698         [BZ #2684]
13699         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13700         arenas if allocation failed.
13701         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13703 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13705         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13706         waste bins[0..1].
13707         (malloc_state): Reduce bins size by 2.
13708         (_int_malloc): Fix test for large enough buffer for early termination.
13709         When no unsorted block matches perfectly and an exiting block has
13710         to be split, use full list insert and not shortcut which assumes
13711         the list is empty.
13713         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13714         failure.
13716 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13718         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13719         do anything.
13721         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13722         symbol require exact match (these are PLTs).
13723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13724         (_dl_ppc64_addr_sym_match): Likewise.
13726         [BZ #2683]
13727         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13728         If symbol has a value use it.
13729         * elf/tst-dladdr1.c: New file.
13730         * elf/Makefile: Add rules to build and run tst-addr1.
13732 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13734         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13735         keeps failing and heap growth or new heap creation isn't
13736         successful either.
13737         * malloc/tst-malloc.c (main): Add new tests.
13739 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13741         [BZ #2734]
13742         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13743         as in the x86-64 code to use bswap.
13745 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13747         [BZ #2680]
13748         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13749         __USE_UNIX98.
13750         * posix/bits/unistd.h: Likewise.
13752 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13754         [BZ #2751]
13755         * string/strchr.c: Add cast to avoid warning.
13757 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13759         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13760         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13761         limit is needed to avoid the exploding of the address space
13762         requirement for secondary heaps.
13763         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13764         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13766 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13768         [BZ #3018]
13769         * Makerules (depfiles): Handle extra-test-objs the same as
13770         extra-objs.
13771         (common-mostlyclean): Likewise.
13772         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13773         instead.
13774         * elf/Makefile (extra-objs): Likewise.
13775         * stdlib/Makefile (extra-objs): Likewise.
13777 2006-08-14  Eric Blake  <ebb9@byu.net>
13779         [BZ #3044]
13780         * misc/error.h: Assume C89 or better.
13781         * misc/error.c: Likewise.
13783 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13785         [BZ #3040]
13786         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13787         __ASSUME_ATFCTS is defined.
13789 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13791         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13792         to sort in each call.
13794         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13795         is empty simply return and use next service.
13796         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13798         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13799         tells us when not finding a charmap file is an error.
13800         * locale/programs/charmap.h: Adjust charmap_read prototype.
13801         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13802         cannot find a charmap.
13803         * locale/programs/localedef.c (main): Adjust charmap_read call.
13805 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13807         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13808         sysdeps/posix/pause.c implementation instead.
13810 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13812         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13813         to EPERM.
13815 2006-08-13  Andreas Schwab  <schwab@suse.de>
13817         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13818         Don't clobber caller's LRSAVE.
13819         (_dl_prof_resolve): Likewise.
13821 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13823         [BZ #1996]
13824         * libio/memstream.c (open_memstream): Allocate initial buffer with
13825         calloc.
13826         * libio/wmemstream.c (open_wmemstream): Likewise.
13827         * libio/strops.c: Pretty printing.
13828         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13829         (enlarge_userbuf): New function.
13830         (_IO_str_seekoff): Call it if seek position is larger than current
13831         buffer.
13832         * libio/wstrops.c: Likewise.
13833         * libio/vasprintf.c: Add comment as to why we do not have to use
13834         calloc instead of malloc to allocate initial buffer.
13835         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13836         * libio/bug-memstream1.c: New file.
13837         * libio/bug-wmemstream1.c: New file.
13839 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13841         * libio/wstrops.c: Remove dead macro definitions and comments.
13842         * libio/strops.c: Likewise.
13844         [BZ #2764]
13845         * login/utmpname.c (__utmpname): Remove unnecessary test.
13847 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13849         [BZ #2832]
13850         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13851         0s from integers.
13853 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13855         [BZ #2987]
13856         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13857         for CPU clocks.
13858         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13859         setting of CPU clocks.
13861 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13863         [BZ #2841]
13864         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13865         since C99 requires the result to promote to 'int' when uint_least8_t
13866         and uint_least16_t promote to 'int'.
13868 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13870         [BZ #3013]
13871         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13872         lenght of one output field, correct bitmask creation.
13873         * locale/programs/ld-time.c: Add alignment.
13875         [BZ #2997]
13876         * misc/error.c: Add space between program name and message if file
13877         name is missing.
13879 2006-08-03  Eric Blake  <ebb9@byu.net>
13881         [BZ #2998]
13882         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13884 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13886         * malloc/memusagestat.c: Silence warnings.
13888         * malloc/malloc.c: Dynamically size mmap treshold if the program
13889         frees mmaped blocks.
13890         Patch by Valerie Henson and Arjan van de Ven.
13892 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13895         __USE_GNU.
13897         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13898         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13899         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13900         Only provide var definitions in strtol_l (or for *ull*
13901         in strtoll_l).
13903         * stdio-common/bug16.c (tests): New array.
13904         (do_tests): Allow the first hexadecimal digit
13905         to be 1, 2, 4 or 8.  Do 3 additional tests.
13907         * sysdeps/s390/fpu/libm-test-ulps: Update.
13909         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13910         fchownat syscall if available.
13911         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13912         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13913         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13915 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13917         * nis/nis_xdr.c: Avoid some function calls.
13919 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13920             Ulrich Drepper  <drepper@redhat.com>
13922         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13923         short cut if only one name component is stripped away.
13925 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13927         * nis/nis_call.c: Minor cleanups throughout.
13928         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13929         (first_shoot): Add search_parent_first parameter.  Only if it is set
13930         search parent server first.
13931         If directory for table found through cold start cache is not the same
13932         as referenced in the cache, don't use it.
13933         (__nisfind_server): Take additional parameter.  Pass it on to
13934         first_shoot.
13935         (__prepare_niscall): Adjust __nisfind_server call.
13936         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13937         * nis/nis_table.c: Adjust __nisfind_server call.
13938         * nis/nis_lookup.c: Likewise.
13939         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13941 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13943         [BZ #2182]
13944         * math/s_cacosh.c: Return values from positive branch.
13945         * math/s_cacoshf.c: Likewise.
13946         * math/s_cacoshl.c: Likewise.
13948         [BZ #2883]
13949         * sysvipc/sys/msg.h: Change return value to ssize_t.
13950         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13951         * sysvipc/msgrcv.c: Likewise.
13952         * include/sys/msg.h: Likewise.
13954         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13955         test introduced in patch for bz #661.
13956         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13957         element for NEWGROUPS.
13959         [BZ #2908]
13960         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13961         'f', use '1' as leading digit not '\1'.
13962         * stdio-common/Makefile (tests): Add bug16.
13963         * stdio-common/bug16.c: New file.
13965         [BZ #2914]
13966         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13967         and don't try to open it.  The patch introducing the macro
13968         contained a bug and used the same file name as the new file
13969         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13970         this out completely.
13972         [BZ #2926]
13973         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13974         Patch by Jerry James <Jerry.James@usu.edu>.
13976         * rt/Makefile (tests): Add tst-clock2.
13977         * rt/tst-clock2.c: New file.
13979         [BZ #2978]
13980         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13981         function and its parameters and pass it to new thread.
13982         (__gai_notify): Add support for alternative waiting for completion.
13983         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13984         waiting for completion.
13985         * resolv/getaddrinfo_a.c: Likewise.
13986         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13987         waiting for completion is used.
13988         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13989         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13990         * resolv/gai_error.c: Likewise.
13991         * resolv/gai_sigqueue.c: Likewise.
13993 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13995         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13996         errno to EBADF and return MACH_PORT_NULL.
13998 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14000         [BZ #2980]
14001         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14003 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14005         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14006         walk them instead of the symbol table.
14008 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14010         [BZ #2098]
14011         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14012         status of NSS calls, not the number of returned entries.
14014         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14015         request_key, keyctl.
14017 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14019         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14021 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14023         * elf/tst-auditmod1.c: Fix typo in #error.
14025 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14027         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14029         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14031 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14033         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14034         that the directory is empty even on non-POSIX filesystems.
14036 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14038         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14040         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14041         the backend NSS module.  If backend setgrent call failed, don't have
14042         internal_setgrent fail.  Just remember this until it is needed.
14043         * nis/nss_compat/compat-pwd.c: Likewise.
14044         * nis/nss_compat/compat-spwd.c: Likewise.
14046 2006-07-30  Roland McGrath  <roland@redhat.com>
14048         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14049         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14050         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14051         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14053         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14054         (nanosleep_not_cancel): New macro.
14055         (sigsuspend_not_cancel): new macro.
14056         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14057         (do_sigsuspend): Define as inline.
14058         (__sigsuspend): Always use do_sigsuspend.
14059         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14060         * include/signal.h: Declare __sigsuspend_nocancel.
14061         * sysdeps/posix/pause.c
14062         [! NO_CANCELLATION] (__pause_nocancel): New function.
14064         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14065         * include/time.h (__nanosleep_nocancel): Likewise.
14067 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14069         * locale/programs/localedef.c (add_to_readlist): Rename local
14070         variables to avoid confusion.
14072         * locale/programs/charmap.c (charmap_read): Emit error message if
14073         charmap couldn't be found or read.
14075 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14077         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14078         __ASSUME_FUTEX_LOCK_PI.
14079         * include/time.h: Declare __nanosleep_nocancel.
14080         * include/unistd.h: Declare __pause_nocancel.
14082         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14083         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14084         get the __stack_chk_fail_local definition when it's needed.
14086 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14088         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14089         * dlfcn/bug-atexit3.c: New file.
14090         * dlfcn/bug-atexit3-lib.cc: New file.
14092         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14093         used when the namespace is not the base namespace.
14095 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14097         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14098         (__new_exitfn): Bump it in every successful call.
14099         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14100         more exit handlers, call them right away.
14101         * stdlib/exit.h: Declare __new_exitfn_called.
14103 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14105         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14106         calling registered handler.
14108         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14109         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14110         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14111         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14112         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14113         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14114         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14115         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14117 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14119         * elf/dl-lookup.c (dl_new_hash): New functions.
14120         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14121         value here.  Compute new-style hash value.  Pass new hash value
14122         and reference to variable with the old value to do_lookup_x.
14123         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14124         old-style hash table.
14125         (_dl_debug_bindings): Pass new hash value and reference to variable
14126         with the old value to do_lookup_x.
14127         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14128         new-style hash value and change old-style hash value parameter to
14129         be a reference.  Reoganize functions to determine whether
14130         new-style hash table is available.  Only fall back on old-style
14131         table.  If old-style hash value is needed, compute it here.
14132         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14133         entry.
14134         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14135         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14136         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14137         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14138         * Makeconfig: If linker supports --hash-style option add it to all
14139         linker command lines to build DSOs.
14140         * config.make.in: Define have-hash-style.
14141         * configure.in: Test whether linker supports --hash-style option.
14143         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14144         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14146 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14148         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14149         auditing.
14151         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14152         RPATH of main map twice.
14154 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14156         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14157         look further, return original strings.
14158         (_nl_find_msg): Do not return found translation if the conversion
14159         failed.  Either signal the string is unusable or that something went
14160         wrong and the original should be used.
14162 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14164         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14166 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14168         [BZ #2766]
14169         * misc/insremque.c (insque): Handle prev == NULL.
14170         * misc/Makefile (tests): Add tst-insremque.
14171         * misc/tst-insremque.c: New test.
14173 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14175         [BZ #2792]
14176         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14177         conflict with DL_DST_REQUIRED.
14179 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14181         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14182         match what Solaris does.
14184 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14186         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14187         local_setegid instead of seteuid and setegid.
14188         * sysdeps/generic/local-setxid.h: New file.
14189         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14191         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14193         * string/Makefile (tests): Add bug-envz1.
14194         * string/bug-envz1.c: New file.
14196 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14198         * posix/regex_internal.c (re_string_skip_chars): If no character has
14199         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14200         to the byte which couldn't be converted.
14201         (re_string_reconstruct): Don't clear valid_raw_len before calling
14202         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14203         tip_context using re_string_context_at.
14204         * posix/Makefile: Add rules to build and run bug-regex25 test.
14205         * posix/bug-regex25.c: New test.
14207 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14209         [BZ #2703]
14210         * string/envz.c (envz_strip): Correct erroneously reversed src
14211         and dest parameters to memmove() invocation.
14213 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14215         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14216         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14217         to make sure the database has been already invalidated.
14218         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14219         after the cache has been invalidated.  Use pthread_mutex_lock rather
14220         than pthread_mutex_trylock if fd != -1.
14221         * nscd/connections.c (invalidate_cache): Add fd argument, write
14222         response to fd if not calling prune_cache, pass fd to prune_cache.
14223         (handle_request): Adjust invalidate_cache caller.
14224         (nscd_run): Pass -1 as fd to prune_cache.
14226 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14228         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14229         the correct place.
14231 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14233         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14234         * nscd/cache.c (prune_cache): Take prunelock before starting the
14235         work.  Just return in case it is already taken.
14236         * nscd/connections.c (dbs): Initialize .prunelock.
14238 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14240         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14241         copying.  No need to allocate new array for group members.  Just
14242         move the pointers and update the size.
14244         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14245         Avoid memory leak in case realloc fails.  Simplification for
14246         better code generation.
14248         Avoid deprecation warning because of libc_hidden_proto for
14249         inet6_option_alloc.
14250         * inet/inet6_option.c (option_alloc): Renamed from
14251         inet6_option_alloc.  Made static.
14252         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14253         (inet6_option_append): Call option_alloc.
14254         * include/netinet/in.h: Remove libc_hidden_proto for
14255         inet6_option_alloc.
14257         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14258         for cleanup when cb!=NULL [Coverity CID 233].
14260 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14262         [BZ #2693]
14263         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14264         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14265         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14266         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14267         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14268         and inet6_rth_getaddr.
14269         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14270         array.
14271         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14272         Mark inet6_option_* interfaces as deprecated.
14273         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14274         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14275         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14276         inet6_rth_segments, and inet6_rth_getaddr.
14277         * inet/inet6_opt.c: New file.
14278         * inet/inet6_rth.c: New file.
14280         * inet/netinet/icmp6.h: Pretty printing.
14282         [BZ #2683]
14283         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14285 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14287         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14288         doing it all here.  When server does not know the answer do not
14289         fail immediate, try parent first.
14291         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14292         overflow test.
14294 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14296         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14297         from __do_niscall.
14298         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14299         and exported.
14300         (__follow_path): New function.  Split out from nis_list.
14301         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14302         _xdr_nis_result.
14303         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14304         _xdr_nis_result.
14305         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14306         and __follow_path.
14307         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14308         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14309         from libnsl for version GLIBC_PRIVATE.
14310         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14311         Remove entry parameter from _nss_nisplus_parse_pwent and
14312         _nss_nisplus_parse_grent.
14313         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14314         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14315         again.  Rewrite getpwent handling to not use nis_first_entry and
14316         nis_next_entry.  Roll out own niscall handling.
14317         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14319         * sunrpc/xdr_rec.c: Fix typo in comment.
14321 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14323         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14324         handling.
14326         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14327         to allocate memory for my_pollfd.  Better initialization of
14328         cb_is_running.  Use TEMP_FAILURE_RETRY.
14330         * malloc/memusage.sh (memusageso): Add quotes.
14331         (memusagestat): Likewise.
14332         * debug/xtrace.sh (pcprofileso): Likewise.
14333         (pcprofiledump): Likewise.
14334         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14335         replacement.
14336         * malloc/Makefile ($(objpfx)memusage): Likewise.
14338         * nis/nis_callback.c (__nis_create_callback): Calls to
14339         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14340         asprintf call fails.
14342         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14343         no uninitialized memory is passed to sendto.
14345 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14347         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14348         of snprintf+strdup.  Handle OOM.
14349         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14350         cb->serv together.  Remove now obsolete free calls.
14351         (__nis_destroy_callback): Remove now obsolete free call.
14353 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14355         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14356         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14357         and ULA respectively). Set precedence for IPv4 address to 10 as
14358         defined in RFC3484 for preferring IPv6.
14359         * posix/gai.conf: Update to match the new default tables.
14361 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14363         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14364         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14365         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14366         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14368         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14369         Removed.
14370         (init_nss_interface): Remove initialization of these variables.
14372 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14374         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14375         nis_free_directory forward to avoid duplication.
14377 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14379         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14380         rec_dirsearch returning NULL.
14381         (first_shoot): Handle __nis_finddirectory returning NULL.
14382         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14384         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14385         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14387 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14389         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14390         pid changed.
14392 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14394         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14396         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14397         * nscd/nscd_getgr_r.c: Likewise.
14399         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14401         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14402         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14404         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14406         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14408         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14410         * include/rpc/auth.h: Mark xdr_des_block_internal and
14411         xdr_opaque_auth_internal as hidden.
14413         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14414         hidden.
14416         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14418         * misc/getusershell.c (okshells): Don't use static initializers,
14419         do it dynamically.
14421         * stdlib/fmtmsg.c (keywords): Change type of len element to
14422         uint32_t to not waste space on 64bit machines.
14424         * locale/setlocale.c: Change _nl_category_names into a string.
14425         Add new _nl_category_name_idxs.  Change all users.
14426         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14427         Declare _nl_category_name_idxs.
14428         * locale/findlocale.c: Adjust for _nl_category_names change.
14429         * locale/loadlocale.c: Likewise.
14430         * locale/newlocale.c: Likewise.
14431         * intl/dcigettext.c: Likewise.
14433         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14434         (add_alias2): ...here.  New function.
14435         (__gconv_read_conf): Simplify builtin alias handling.
14436         (builtin_aliases): Convert to string to avoid relocations.
14437         * iconv/gconv_builtin.h: Add comment about correct formatting.
14439 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14441         * resolv/res_debug.c (loc_ntoa): Make error const.
14443 2006-05-14  Andreas Schwab  <schwab@suse.de>
14445         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14447 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14449         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14450         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14451         sizeof (cpu_set_t).
14453 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14455         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14457         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14459         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14460         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14462         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14463         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14465         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14466         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14467         xdr_cback_data.
14469         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14470         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14471         xdr_ypupdate_args.
14473         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14474         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14476         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14477         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14479         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14480         * include/rpcsvc/nis_callback.h: New file.
14482         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14483         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14485         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14486         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14488         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14489         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14491         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14492         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14494         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14495         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14496         xdr_ypdelete_args.
14498         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14499         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14501         * nis/nis_error.c: Remove table of strings.  Use position
14502         independent mechanism.
14503         * nis/nis_error.h: New file.
14505 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14507         * locale/programs/ld-time.c (time_finish): If wide era name or
14508         format aren't provided, set both wname and wformat to L"".
14510 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14512         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14513         results if the call was succesful.
14515         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14517         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14518         as hidden.
14520 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14522         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14524 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14526         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14527         caller makes sure this is not the case.
14528         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14530 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14532         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14533         calls.
14535         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14536         [Coverity CID 229, 230]
14538         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14539         DGETTEXT calls.
14540         (hol_help): Likewise.  [Coverity CID 226, 227]
14542         * string/argz-replace.c (__argz_replace): Unconditionally call
14543         free on SRC.  [Coverity CID 225]
14545         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14546         the return value of __nis_default_owner and __nis_default_group,
14547         it has been especially allocated.  [Coverity CID 224]
14549         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14550         searchgroup and searchowner.  Significantly simplified.
14551         (__nis_default_owner): Remove duplication.  Do not locally copy the
14552         string before duplicating it.
14553         (__nis_default_group): Likewise.
14555         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14556         we must clear the variable before calling __nisfind_server.
14558         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14559         nis_getnames.  [Coverity CID 223]
14561         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14562         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14564         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14565         allocate memory for the input to add_bytes.  [Coverity CID 221]
14567         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14568         was allocated here.  [Coverity CID 219, 220]
14570         * posix/getconf.c (print_all): Free confstr data after printing.
14571         [Coverity CID 218]
14573         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14574         list allocation fails.  [Coverity CID 215]
14576         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14577         [Coverity CID 213]
14579         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14580         string is NULL.  [Coverity CID 212]
14581         * argp/Makefile: Add rules to build and run bug-argp1.
14582         * argp/bug-argp1.c: New file.
14584         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14585         end of string.
14586         * stdlib/canonicalize.c (__realpath): Likewise.
14588         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14589         pointer.  [Coverity CID 206]
14591         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14592         in statically linked code.
14593         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14594         statically built code, be prepared to have no link map.
14595         [Coverity CID 205]
14597         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14598         dgettext calls. [Coverity CID 204]
14600         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14601         the one user.
14602         (uparam_names): Reduce size.  Avoid relative relocations.
14603         Moved to read-only segment.
14604         (fill_in_uparams): Update for new layout.
14606         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14607         assumed to always be != NULL. [Coverity CID 202]
14609         * argp/argp-help.c (hol_entry_help): Remove some dead code
14610         [Coverity CID 200].
14612         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14613         away a few more unconditional yperr2nss calls.
14614         (_nss_nis_getservbyname_r): Likewise.
14616 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14618         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14619         architectures.
14621         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14622         that unused memory passed to sendto is nevertheless initialized.
14624         [BZ #2499]
14625         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14626         possibly unaligned memory accesses.
14628         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14629         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14630         and __putlong respectively.  Correct buffer overflow check for
14631         NS_NOTIFY_OP.
14633         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14635         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14636         (send_dg): Rewrite error handling to be more compact and avoid
14637         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14639         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14641         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14642         instead of ns_get16.
14643         (res_queriesmatch): Likewise.  Minor optimization.
14645         [BZ #2499]
14646         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14647         __libc_res_nsend might reallocate the buffer for the answer.  In
14648         this case we have to reload the HP pointer.
14650 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14652         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14653         some branch prediction hints.
14655         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14656         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14657         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14658         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14659         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14660         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14661         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14662         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14664 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14666         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14667         by a GOT relocation to make Scrt1.o position independent.
14668         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14670         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14671         six system call parameters.
14672         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14674 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14676         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14677         malloc&bzero.
14679         * sunrpc/svc_udp.c (BZERO): Remove definition.
14680         (CALLOC): Define.
14681         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14683         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14684         (des_SPtrans): Use uint32_t type.
14685         (des_skb): Likewise.
14687         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14689 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14691         [BZ #2509]
14692         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14693         on 32-bit arches.
14695 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14697         * locale/programs/ld-address.c (address_finish): Fix one more
14698         place where the iso639 array might be accessed beyond the limits.
14700 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14702         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14703         filling it for the first time.
14705         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14706         Adjust all callers.
14707         Free res object content before returning.
14709         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14711         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14712         client->cl_auth.
14714         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14715         cleanup for initial thread, just the free call on TVP.
14717         * nscd/gai.c (__getline): Define.
14720 See ChangeLog.16 for earlier changes.