elf.h: Add missing R_X86_64_*64 relocs.
[glibc.git] / ChangeLog
blobc3fda93de90992705ae3f8b5e04e731bd9c7f312
1 2010-03-11  Roland McGrath  <roland@redhat.com>
3         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
4         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
6 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
8         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
9         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
11 2010-03-09  David S. Miller  <davem@davemloft.net>
13         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
14         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
15         64-bit ones.
17         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
19         * sysdeps/sparc/sparc32/strlen.S: Optimize.
20         * sysdeps/sparc/sparc64/strlen.S: Likewise.
21         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
22         XCC): Delete definitions, not needed.
24 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
26         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27         Little follow-up patch from last change.
29 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
31         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
32         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
34 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
36         * resolv/res_send.c: Fixed DEBUG statements.
37         Moved tmpbuf declaration to block beginning and
38         updated pointer names used in multiple DprintQ() calls
40 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
42         * config.make.in (config-asflags-i686): Define.
43         * configure.in: Substitute libc_cv_as_i686.
44         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
45         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
46         if assembler supports -mtune=i686.
47         (ASFLAGS-.oX): Likewise.
49 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
51         * elf/elf.h (R_X86_64_SIZE32): Define.
52         (R_X86_64_SIZE64): Define.
54 2010-03-02  Richard Guenther  <rguenther@suse.de>
56         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
57         is sign-extending.
59 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
61         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
62         the kernel headers.
64 2010-03-04  David S. Miller  <davem@davemloft.net>
66         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
68         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
69         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
71 2010-03-03  David S. Miller  <davem@davemloft.net>
73         * math/math_private.h (INSERT_WORDS64): Fix argument order.
75 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
77         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
79 2010-03-03  David S. Miller  <davem@davemloft.net>
81         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
82         pass '1' for 't' argument to sparc_fixup_plt.
83         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
84         Likewise.
85         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
86         (sparc_fixup_plt): Document 't' argument.  Enable branch
87         optimization and use v9 branches when possible.  Explain why we
88         cannot unconditionally patch the branch into the first PLT
89         instruction.
90         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
91         argument.  Use v9 branches when possible.  Explain why we can in
92         fact unconditionally use a branch in the first PLT instruction
93         here.
95 2010-02-28  Roland McGrath  <roland@redhat.com>
97         * elf/elf.h (NT_X86_XSTATE): New macro.
99 2010-02-25  David S. Miller  <davem@davemloft.net>
101         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
102         * sysdeps/sparc/sparc64/align-cpy.S: New.
103         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
104         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
105         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
106         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
107         Remove.
108         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
109         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
110         Remove.
111         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
112         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
113         Remove.
115         * sysdeps/sparc/sparc32/bcopy.c: Delete.
116         * sysdeps/sparc/sparc32/memmove.c: Delete.
117         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
118         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
119         * sysdeps/sparc/sparc64/bcopy.c: Delete.
120         * sysdeps/sparc/sparc64/memmove.c: Delete.
121         * sysdeps/sparc/sparc64/memcopy.h: New.
122         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
123         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
124         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
125         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
126         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
128         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
129         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
130         gen-as-const-headers.
131         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
132         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
133         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
134         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
135         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
136         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
137         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
138         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
139         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
140         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
141         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
142         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
143         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
144         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
145         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
146         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
147         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
148         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
149         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
150         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
151         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
152         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
153         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
154         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
156 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
158         [BZ #11332]
159         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
160         and cfi_restore_state only if USE_AS_STRNCMP is defined.
162 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
164         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
166 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
168         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
169         (bk_write_less32bytes_2): Renamed to ...
170         (bk_write_less48bytes): This.
171         Use unsigned conditional jumps.
172         Correct unwind info.
173         Use add/sub instead of lea if possible.
174         (shl_0_gobble_cache_loop_tail): Removed.
175         (large_page): Properly adjust ECX.
177         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
178         conditional jumps.
179         Correct unwind info.
181         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
182         punpcklbw.
183         Use unsigned conditional jumps.
184         (128bytesormore_nt): Renamed to ...
185         (128bytesormore_endof_L1): This.
186         Use add instead of lea if possible.
187         Correct unwind info.
188         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
189         punpcklbw.
190         Use unsigned conditional jumps.
191         Use add instead of lea if possible.
192         Correct unwind info.
194 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
196         [BZ #11319]
197         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
198         undoing the stream because _IO_FINISH doesn't report failures.
200         [BZ #5553]
201         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
202         (public_pVALLOc): Likewise.
203         Patch by Petr Baudis.
205 2010-02-22  Jim Meyering  <meyering@redhat.com>
207         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
209         * manual/charset.texi: Adjust grammar.
211         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
212         * manual/charset.texi (Selecting the Conversion): Likewise.
213         * manual/getopt.texi (Getopt Long Options): Likewise.
214         * manual/memory.texi (Resizing the Data Segment): Likewise.
215         * manual/message.texi (GUI program problems): Likewise.
216         * manual/resource.texi (CPU Affinity): Likewise.
217         * manual/stdio.texi (Streams and Threads): Likewise.
218         * manual/time.texi (High Accuracy Clock): Likewise.
220 2009-02-20  David S. Miller  <davem@davemloft.net>
222         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
223         Adjust rela->r_offset by l->l_addr when rewriting PLT.
225         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
226         test end of buffer.
228         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
229         (__makecontext): Adjust arg counter properly when copying arg
230         stack slots.
232 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
234         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
235         Adjust rela->r_offset by l->l_addr when rewriting PLT.
237 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
239         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
240         non-existent `tiocsctty_port'.
242 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
244         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
245         instead of FEATURE_OFFSET.
246         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
248         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
249         Fix one unwind info problem.
251         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
253         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
255 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
256             Ulrich Drepper  <drepper@redhat.com>
258         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
259         Clean up a bit.
261 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
263         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
264         (tiocsctty_port): ...this new function.
266         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
267         `ioctl_handler_t'.
269 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
271         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
272         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
273         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
274         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
276         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
277         undefined code.
279 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
281         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
282         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
283         memcmp-c, memcmp-ssse3, and memcmp-sse4.
284         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
285         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
286         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
287         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
288         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
289         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
290         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
291         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
292         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
293         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
295 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
297         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
298         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
299         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
300         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
301         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
302         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
303         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
304         is not supported.
305         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
306         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
307         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
308         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
309         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
310         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
311         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
312         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
313         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
314         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
315         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
316         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
317         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
318         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
319         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
320         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
321         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
323         Likewise.
324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
325         Likewise.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
327         Likewise.
328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
329         Likewise.
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
332 2010-02-12  Alan Modra  <amodra@gmail.com>
334         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
335         Define and use for __powerpc64__ too.
336         [__powerpc__] (TLS_LD): Add r3 to clobbers.
337         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
338         [__powerpc64__] (TLS_GD): Make __result r3 reg.
339         [__powerpc64__] (TLS_IE): Relax output constraint.
341 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
343         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
344         instructions cu21 and cu24.  Add well-formedness checking
345         parameter and adjust the software implementation.
346         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
348 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
350         [BZ #11271]
351         * io/ftw.c (ftw_startup): Close descriptor for initial directory
352         after changing back to it.
354 2010-02-05  David S. Miller  <davem@davemloft.net>
356         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
357         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
358         ifunc relocs.
359         (elf_machine_lazy_rel): Likewise.
360         (sparc_fixup_plt): Pull out to...
361         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
362         * sysdeps/sparc/sparc32/dl-irel.h: New file.
363         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
364         ifunc relocs.
365         (elf_machine_lazy_rel): Likewise.
366         (sparc64_fixup_plt): Pull out to...
367         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
368         * sysdeps/sparc/sparc64/dl-irel.h: New file.
370 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
372         * elf/elf.h: Define m68k TLS relocations.
374 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
376         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
377         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
378         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
379         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
381         64-bit power7 fpu path.
382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
383         32-bit power7 fpu math.
385 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
387         * sysdeps/i386/rshift.S: More compact unwind information.
389         * sysdeps/i386/lshift.S: Fix unwind information.
391 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
393         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
394         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
395         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
396         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
397         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
398         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
399         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
400         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
401         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
402         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
403         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
404         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
406 2010-02-08  Andreas Schwab  <schwab@redhat.com>
408         * include/fenv.h: Add hidden proto for fegetenv.
409         * math/fegetenv.c: Add hidden alias.
410         * sysdeps/i386/fpu/fegetenv.c: Likewise.
411         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
412         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
413         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
414         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
415         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
416         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
418 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
420         [BZ #11230]
421         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
422         during recovery.
424 2010-01-26  Andreas Schwab  <schwab@redhat.com>
426         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
427         interface.
428         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
429         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
430         utmpx interface.
432         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
433         entry for 2.12.
435 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
437         [BZ #11235]
438         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
439         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
440         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
441         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
442         MS_ACTIVE, and MS_NOUSER.
443         (MS_RMT_MASK): Update according to current kernels.
445         [BZ #11242]
446         * misc/getusershell.c (initshells): Allocate one more byte in input
447         buffer so that fgets doesn't loop undefinitely.
449 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
451         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
452         __libc_use_alloca tells us not to.  Fix memory leak in an error
453         situation.  Based partially on patch by Jim Meyering.
455 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
457         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
458         get_phys_pages, get_avphys_pages): Add weak aliases.
460 2010-01-25  Andreas Schwab  <schwab@redhat.com>
462         * iconv/iconv_prog.c (write_output): Fix check for open failure.
464 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
466         [BZ #11200]
467         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
468         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
470 2010-01-22  Jim Meyering  <jim@meyering.net>
472         [BZ #11193]
473         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
474         buffer length computation.
476         [BZ #11192]
477         * posix/regexec.c (re_copy_regs): Don't leak when allocation
478         of the start buffer succeeds but allocation of the "end" one fails.
480         [BZ #11191]
481         * posix/regexec.c (re_search_2_stub): Check for overflow
482         when adding the sizes of the two strings.
484         [BZ #11190]
485         * posix/regexec.c (re_search_internal): Avoid overflow
486         in computing re_malloc buffer size.
488         [BZ #11189]
489         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
490         in computing re_malloc buffer size.
492         [BZ #11188]
493         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
494         in size calculation.
496         [BZ #11187]
497         * posix/regexec.c (re_search_2_stub): Use simpler method than
498         boolean for freeing internal storage.
500 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
502         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
503         failed mbrtowc call.
505 2010-01-22  Jim Meyering  <jim@meyering.net>
507         [BZ #11186]
508         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
509         fits in wchar_t.  Problem reported by Eric Blake.
511         [BZ #11185]
512         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
513         and stores into set-but-not-used local, "q".
515         [BZ #11184]
516         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
517         detection test.  Patch by Paul Eggert.
519         [BZ #11183]
520         * posix/regex_internal.c (re_string_realloc_buffers):
521         Detect and handle internal overflow.  Patch by Paul Eggert
523 2010-01-20  Andreas Schwab  <schwab@redhat.com>
525         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
526         (CHECK_SP): Fix check for alternate stack.
527         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
528         (CHECK_SP): Likewise.
530 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
532         * sysdeps/i386/i686/multiarch/memmove.S: Also check
533         bit_Fast_Rep_String when SHARED isn't defined.
535 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
537         [BZ #11194]
538         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
540 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
542         * sysdeps/mach/hurd/bits/libc-lock.h
543         (__rtld_lock_recursive_t): New type.
544         (__rtld_lock_initialize): New macro.
546 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
548         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
549         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
553 2010-01-18  Andreas Schwab  <schwab@redhat.com>
555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
556         definitions of O_DSYNC and O_RSYNC.
558         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
559         casting d_tag.
561         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
562         dynamic entry types.
564 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
566         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
567         constant.
568         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
569         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
570         overflow.
571         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
573         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
574         math_opt_barrier and math_force_eval macros.
576 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
578         * posix/regcomp.c: Fix a few more cases of ignored return values.
579         * posix/regex_internal.c: Likewise.
580         * posix/regexec.c: Likewise.
582         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
583         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
584         if _XOPEN_SOURCE is not defined as well.
586 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
588         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
589         high gprs kernel facility.
590         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
591         Added high gprs check for DSOs.
592         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
593         new elf header flag.
595 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
597         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
598         dl_main.
599         * elf/dl-open.c (_dl_sysdep_start): Likewise..
600         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
601         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
602         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
603         started.
605 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
607         [BZ #11027]
608         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
609         to RFC 2474.
610         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
612         [BZ #11141]
613         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
614         addresses.
616         [BZ #11127]
617         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
618         re_node_set_insert failure; return REG_ESPACE.
619         Patch by Paul Eggert.
621         * bits/confname.h: Make pre-C99-safe.
623 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
625         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
626         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
627         files are found by GCC.
629 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
631         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
632         brk, and sbrk.
634         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
635         index, and rindex.
637         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
639         * Versions.def: Add GLIBC_2.12 for libpthread.
641         [BZ #11126]
642         * malloc/malloc.c (malloc_info): Initialize malloc if not already
643         done.  Handle empty bin lists.
645         * posix/unistd.h: Change getpagesize and getdtablesize declaration
646         visibility some more.
648         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
650         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
652         [BZ #11120]
653         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
654         needed outside libc.
656 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
658         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
660 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
662         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
664 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
666         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
668 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
670         * conform/data/complex.h-data: Test for POSIX2008.
672         * conform/data/ctype.h-data: Fix POSIX testing.
674         * conform/data/dirent.h-data: ino_t only needed for XSI.
676         * grp/grp.h: Declare getgrent and endgrent for XPG7.
678         * conform/data/inttypes.h-data: Use same types as the headers.
680         * resolv/netdb.h: Don't define old resolver macros for XPG7.
682         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
684         * conform/conformtest.pl: Implement tag for allow-header.
685         Fix newline handling in allow-header implementation.
687         * conform/data/time.h-data: Use allow-header instead of duplicating
688         information.
690         * conform/data/time.h-data: Allow sigevent tag.
692         * posix/sched.h: Define time_t and pid_t for XPG7.
694 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
696         * sysdeps/i386/i686/bcopy.S: New file.
698         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
700         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
701         and END_CHK.
702         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
703         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
704         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
706         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
708         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
709         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
710         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
711         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
712         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
713         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
714         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
715         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
716         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
717         * sysdeps/i386/i686/multiarch/bzero.S: New file.
718         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
719         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
720         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
721         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
722         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
723         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
724         * sysdeps/i386/i686/multiarch/memmove.S: New file.
725         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
726         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
727         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
728         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
729         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
730         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
731         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
732         * sysdeps/i386/i686/multiarch/memset.S: New file.
733         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
735         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
736         (END_CHK): Likewise.
738         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
739         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
740         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
742         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
743         for 0x0e and 0x80.
744         (__x86_64_data_cache_size): New.
745         (init_cacheinfo): Set __x86_64_data_cache_size.
747         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
748         on bit_Fast_Rep_String for Intel Core i7.
750         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
751         (index_Fast_Rep_String): Likewise.
752         (FEATURE_INDEX_1): Likewise.
753         (FEATURE_INDEX_MAX): Likewise.
754         (cpu_features): Add feature.
756 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
758         * conform/data/sys/select.h-data: Fix up for XPG7.
760 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
762         * posix/sys/wait.h: Don't define W* macros etc. if
763         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
765 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
767         * io/sys/stat.h: Declare fchmod for XPG7.
768         * conform/data/sys/stat.h-data: Fix up for XPG7.
770         * termios/termios.h: Define pid_t for XPG7.
772         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
773         * conform/data/tgmath.h-data: Likewise.
775         * conform/data/time.h-data: Fix POSIX tests.
777         * conform/data/wchar.h-data: Fix up XPG7 tests.
779         * include/features.h: Fix __USE_ISOC95 handling.
781         * conform/data/wordexp.h-data: Fix typo in last change.
783         * conform/data/unistd.h-data: Fix up older POSIX tests.
785         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
786         * posix/unistd.h: Likewise.
788         * posix/unistd.h: Include environments.h also for XPG6 and up.
789         Define intptr_t for XPG6 and up.
790         Fix up for XPG7.
791         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
793         * conform/data/sys/types.h-data: Fix up for XPG7.
795         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
796         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
797         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
798         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
799         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
800         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
801         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
802         * sysdeps/unix/sysv/bits/stat.h: Likewise.
803         * sysdeps/mach/hurd/bits/stat.h: Likewise.
805         * bits/confname.h: Fix typo in last change.
807         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
809 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
811         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
812         and SA_RESETHAND now available in Base.
813         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
814         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
815         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
816         * conform/data/signal.h-data: Update for XPG7.
818         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
820         * string/strings.h: Don't declare obsolete functions for XPG7.
821         Declare ffs only for XSI.
822         * conform/data/strings.h-data: Update for XPG7.
824 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
826         [BZ #11125]
827         * libio/stdio.h: Define va_list, off_t, and ssize_t.
829         * posix/glob.h: Define size_t.
831         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
833         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
835 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
837         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
838         be self-contained.
840         * conform/data/stdio.h-data: Expect off_t and ssize_t.
842 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
844         * libio/stdio.h: Define va_list also for XPG7.
846         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
847         * conform/data/ctype.h-data: Likewise.
848         * conform/data/dirent.h-data: Likewise.
849         * conform/data/errno.h-data: Likewise.
850         * conform/data/fcntl.h-data: Likewise.
851         * conform/data/fmtmsg.h-data: Likewise.
852         * conform/data/fnmatch.h-data: Likewise.
853         * conform/data/ftw.h-data: Likewise.
854         * conform/data/glob.h-data: Likewise.
855         * conform/data/grp.h-data: Likewise.
856         * conform/data/iconv.h-data: Likewise.
857         * conform/data/langinfo.h-data: Likewise.
858         * conform/data/libgen.h-data: Likewise.
859         * conform/data/limits.h-data: Likewise.
860         * conform/data/locale.h-data: Likewise.
861         * conform/data/math.h-data: Likewise.
862         * conform/data/monetary.h-data: Likewise.
863         * conform/data/mqueue.h-data: Likewise.
864         * conform/data/ndbm.h-data: Likewise.
865         * conform/data/netdb.h-data: Likewise.
866         * conform/data/pthread.h-data: Likewise.
867         * conform/data/pwd.h-data: Likewise.
868         * conform/data/regex.h-data: Likewise.
869         * conform/data/sched.h-data: Likewise.
870         * conform/data/search.h-data: Likewise.
871         * conform/data/semaphore.h-data: Likewise.
872         * conform/data/setjmp.h-data: Likewise.
873         * conform/data/signal.h-data: Likewise.
874         * conform/data/spawn.h-data: Likewise.
875         * conform/data/stdio.h-data: Likewise.
876         * conform/data/stdlib.h-data: Likewise.
877         * conform/data/string.h-data: Likewise.
878         * conform/data/strings.h-data: Likewise.
879         * conform/data/sys/ipc.h-data: Likewise.
880         * conform/data/sys/msg.h-data: Likewise.
881         * conform/data/sys/resource.h-data: Likewise.
882         * conform/data/sys/sem.h-data: Likewise.
883         * conform/data/sys/shm.h-data: Likewise.
884         * conform/data/sys/socket.h-data: Likewise.
885         * conform/data/sys/stat.h-data: Likewise.
886         * conform/data/sys/time.h-data: Likewise.
887         * conform/data/sys/types.h-data: Likewise.
888         * conform/data/sys/uio.h-data: Likewise.
889         * conform/data/sys/wait.h-data: Likewise.
890         * conform/data/syslog.h-data: Likewise.
891         * conform/data/tar.h-data: Likewise.
892         * conform/data/termios.h-data: Likewise.
893         * conform/data/time.h-data: Likewise.
894         * conform/data/ulimit.h-data: Likewise.
895         * conform/data/unistd.h-data: Likewise.
896         * conform/data/utmpx.h-data: Likewise.
897         * conform/data/wchar.h-data: Likewise.
898         * conform/data/wctype.h-data: Likewise.
899         * conform/data/wordexp.h-data: Likewise.
901         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
902         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
903         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
904         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
905         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
906         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
907         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
908         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
909         * sysdeps/unix/sysv/bits/stat.h: Likewise.
910         * sysdeps/mach/hurd/bits/stat.h: Likewise.
912         * stdlib/stdlib.h: Define wait-related bits for XPG7.
913         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
914         Declare mkstemp and getsubopt for XPG7.
915         Declare posix_openpt for XPG6 XSI.
917         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
918         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
920         * string/string.h: Declare strdup for XPG7.
922 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
924         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
925         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
927         * dirent/dirent.h: Really fix feature selection.
929         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
930         Fix all users.
931         * locale/C-address.c: Fix all users.
932         * locale/C-collate.c: Likewise.
933         * locale/C-ctype.c: Likewise.
934         * locale/C-identification.c: Likewise.
935         * locale/C-measurement.c: Likewise.
936         * locale/C-messages.c: Likewise.
937         * locale/C-monetary.c: Likewise.
938         * locale/C-name.c: Likewise.
939         * locale/C-numeric.c: Likewise.
940         * locale/C-paper.c: Likewise.
941         * locale/C-telephone.c: Likewise.
942         * locale/C-time.c: Likewise.
943         * locale/findlocale.c: Likewise.
944         * locale/global-locale.c: Likewise.
945         * locale/loadarchive.c: Likewise.
946         * locale/loadlocale.c: Likewise.
947         * locale/nl_langinfo_l.c: Likewise.
948         * locale/setlocale.c: Likewise.
949         * locale/xlocale.c: Likewise.
950         * locale/xlocale.h: Likewise.
951         * stdio-common/vfscanf.c: Likewise.
952         * stdlib/strfmon_l.c: Likewise.
953         * stdlib/strtod_l.c: Likewise.
954         * stdlib/strtol_l.c: Likewise.
955         * string/strcoll_l.c: Likewise.
956         * string/strxfrm_l.c: Likewise.
957         * time/alt_digit.c: Likewise.
958         * time/asctime.c: Likewise.
959         * time/era.c: Likewise.
960         * time/lc-time-cleanup.c: Likewise.
961         * time/strftime_l.c: Likewise.
962         * time/strptime_l.c: Likewise.
963         * wcsmbs/wcsmbsload.c: Likewise.
964         * wcsmbs/wcsmbsload.h: Likewise.
966         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
967         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
968         for XPG7.
969         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
970         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
971         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
972         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
973         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
974         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
976 2010-01-07  Roland McGrath  <roland@redhat.com>
978         * elf/elf.h (PN_XNUM): New macro.
980         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
981         literal 2.
983 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
985         * dirent/dirent.h: Fix typo in feature selection macro use.
987 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
989         [BZ #11115]
990         * stdlib/tst-makecontext3.c: New file.
991         * stdlib/Makefile (tests): Add new test.
993         * stdlib/tst-setcontext.c (check_called): Fix a typo.
995 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
997         * configure.in: Enable multi-arch by default if the assembler
998         supports gnu_indirect_function symbol type and the architecture
999         supports it.
1001 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1003         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1004         is defined.
1006 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1008         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1009         MACH_PORT_NULL when id != cttyid.
1011 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1013         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1014         __mach_port_deallocate on rootdevid.
1016 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1018         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1019         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1020         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1021         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1023 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1025         [BZ #10992]
1026         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1027         Patch by Eric Blake <ebb9@byu.net>.
1029 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1031         [BZ #11093]
1032         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1033         POLLWRBAND also for POSIX 2008.
1034         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1035         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1037         * include/link.h (struct link_map): Move l_used into its own word.
1038         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1039         still zero.
1040         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1041         never really used.
1043 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1045         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1046         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1047         check processor feature.
1048         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1049         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1050         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1051         (index_SSE2): Likewise.
1053 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1055         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1056         if __ASSEMBLER__ is defined.
1057         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1058         (bit_SSE4_2): Likewise.
1059         (index_SSSE3): Likewise.
1060         (index_SSE4_2): Likewise.
1061         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1062         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1063         check processor feature.
1064         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1065         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1066         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1067         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1068         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1069         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1070         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1072 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1074         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1076 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1078         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1080 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1082         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1083         O_DSYNC to match 2.6.33+ kernels.
1084         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1085         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1086         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1087         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1088         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1089         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1091 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1093         [BZ #11000]
1094         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1095         *herrnop before returning.
1096         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1097         Likewise.
1098         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1099         TRYAGAIN errors separately.
1100         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1101         *name4_r after functions.
1103 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1105         [BZ #11046]
1106         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1107         version check.
1109 2009-11-05  Bruno Haible  <bruno@clisp.org>
1111         [BZ #11056]
1112         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1113         argv argument as non-NULL.
1114         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1116 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1118         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1119         recvmmsg.
1120         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1121         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1123 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1125         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1126         registers.
1127         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1128         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1129         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1131 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1133         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1134         SCHED_RESET_ON_FORK.
1136 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1138         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1139         only used on truly ancient kernel if configuration requires a more
1140         recent kernel.
1142 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1144         [BZ #3662]
1145         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1146         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1148         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1149         pass it on to __ptsname_internal.
1150         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1151         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1152         All the code from __ptsname_r but take additional parameter.  Use that
1153         instead of pointer to local stat64 variable.
1154         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1155         variable.
1156         * include/stdlib.h: Declare __ptsname_internal.
1158         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1159         before the exec.
1160         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1161         * login/programs/pt_chown.c (main): Don't print message on errors
1162         when doing real work.
1164         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1165         once.
1167         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1168         irel relocations split out from...
1169         (__libc_csu_init): ...here.
1170         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1172 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1174         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1175         for timestamps also if __USE_XOPEN2K8.
1176         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1177         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1178         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1179         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1181 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1183         * nscd/connections.c (restart): Try harder to re-exec.
1185         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1187         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1188         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1189         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1190         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1191         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1192         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1194         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1195         Define.
1196         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1198 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1200         [BZ #10162]
1201         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1202         than software pipeline.  Properly recover from shorter read.
1204 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1206         [BZ #10958]
1207         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1208         initialized before using it.
1209         (_IO_putwc_unlocked): Likewise.
1211         [BZ #10918]
1212         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1213         in cast to not throw away const-ness of parameters.
1214         (__CPU_EQUAL_S): Likewise.
1215         (__CPU_OP_S): Likewise.
1217         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1218         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1219         this gratuitous change and we have to keep compatibility.
1220         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1221         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1223         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1224         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1225         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1227 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1229         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1230         of parameters of sync_file_range.
1231         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1232         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1233         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1234         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1235         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1236         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1238 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1240         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1241         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1242         is defined.
1243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1244         file.
1246 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1248         * posix/bug-regex30.c: New file.
1249         * posix/Makefile: Add rules to build and run bug-regex30.
1250         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1251         character lead bytes when there is a range in a COMPLEX_BRACKET.
1252         Reported by Oleg Bylatov.
1254 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1256         [BZ #10969]
1257         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1258         * locale/tst-duplocale.c: New file.
1259         * locale/Makefile (tests): Add tst-duplocale.
1261         [BZ #10968]
1262         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1263         Patch by Bruno Haible <bruno@clisp.org>.
1264         * locale/tst-locname.c: New file.
1265         * locale/Makefile (tests): Add tst-locname.
1267         [BZ #10972]
1268         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1269         constants from recent kernels.
1270         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1271         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1272         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1273         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1274         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1275         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1277 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1279         [BZ #10162]
1280         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1281         software pipeline.
1283 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1285         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1286         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1287         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1289 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1291         * posix/bug-regex29.c: Include stdio.h.
1293 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1295         [BZ #10939]
1296         * Versions.def: Define GLIBC_2.12 for libc.
1297         * manual/errno.texi: Add ERFKILL entry.
1298         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1299         for 2.12.
1300         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1301         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1303         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1304         F_GETOWN_EX definitions according to corrected kernel definitions.
1305         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1306         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1307         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1308         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1309         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1310         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1312 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1314         * version.h: Bump for 2.12 development.
1316 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1318         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1319         out of buffer space.
1320         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1321         map_v4v6_hostent running out of space.
1323 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1325         * string/bits/string3.h (memset): If the second parameter is constant
1326         and zero there is likely no transposition.
1327         Patch by Caolan McNamara <caolanm@redhat.com.
1329 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1331         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1332         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1334 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1336         * malloc/memusagestat.c (main): Fix spelling in an error message.
1338 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1340         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1341         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1343 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1346         readahead.
1348 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1350         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1351         relocate opd entry when resolving prelink conflicts.
1353 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1355         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1356         when -D_FILE_OFFSET_BITS=64.
1358         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1359         of last two arguments when -D_FILE_OFFSET_BITS=64.
1360         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1361         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1362         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1363         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1364         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1365         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1367 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1369         [BZ #4457]
1370         * sysdeps/generic/libgcc_s.h: New file.
1371         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1373 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1375         * malloc/hooks.c (free_check): Restore locking and call _int_free
1376         appropriately.
1378 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1380         * version.h (VERSION): Bump for 2.11 release.
1381         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1383         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1385         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1387         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1388         to avoid warning.
1389         * stdlib/tst-strtoll.c (tests): Likewise.
1391         [BZ #9986]
1392         * time/strftime_l.c (__strftime_internal): Allow %OC.
1394         * misc/mkostemps.c: New file.
1395         * misc/mkostemps64.c: New file.
1397 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1399         * locale/programs/locale-spec.c: Include <error.h> and
1400         <libintl.h>.
1402         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1404 2009-10-28  Roland McGrath  <roland@redhat.com>
1406         * Makefile (dist-prepare): New target.
1407         (tag-for-dist): Target removed.
1408         (glibc-%.tar): Pattern rule removed.
1409         (%.tar): New pattern rule, does simple use of git archive.
1410         (dist-version): Remove variable definition.
1411         (dist): Just depend on that.  Add .tar.xz dependency.
1412         If dist-version variable not set on command line, depend on
1413         dist-prepare, re-invoke with dist-version set via git describe.
1415         * Makerules (%.xz): New pattern rule.
1417 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1419         * elf/ifuncdep2.c: Include ifunc-sel.h.
1420         (global): Delete.
1421         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1422         * elf/ifuncmain1.c (global): Delete.
1423         * elf/ifuncmain1vis.c: Likewise.
1424         * elf/ifuncmain2.c: Likewise.
1425         * elf/ifuncmain5.c: Likewise.
1426         * elf/ifuncmod3.c: Likewise.
1427         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1428         (foo_ifunc): Use ifunc_one.
1429         * elf/ifuncmain7.c: Likewise.
1430         * elf/ifuncmod1.c: Include ifunc-sel.h.
1431         (global): Define protected var.
1432         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1433         * elf/ifuncmod5.c: Likewise.
1434         * sysdeps/generic/elf/ifunc-sel.h: New file.
1435         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1437 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1439         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1440         (R_PPC_REL16*): Correct comments.
1441         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1442         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1443          R_PPC64_REL16_HA): Define.
1444         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1445         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1446         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1447         Delete unused "reloc" param.
1448         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1449         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1450         Delete "reloc" param.
1451         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1452         R_PPC_IRELATIVE.
1453         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1454         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1455         relocations.
1457 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1459         [BZ #10315]
1460         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1461         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1462         UDP_ENCAP_L2TPINUDP.
1464         [BZ #10349]
1465         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1466         parameter, specifying length of prefix.
1467         * stdio-common/tempname.c: Likewise.
1468         * include/stdio.h: Adjust prototypes.
1469         * libio/oldtmpfile.c: Adjust caller.
1470         * misc/mkdtemp.c: Likewise.
1471         * misc/mkostemp.c: Likewise.
1472         * misc/mkostemp64.c: Likewise.
1473         * misc/mkstemp.c:  Likewise.
1474         * misc/mkstemp64.c: Likewise.
1475         * misc/mktemp.c: Likewise.
1476         * stdio-common/tempnam.c: Likewise.
1477         * stdio-common/tmpfile.c: Likewise.
1478         * stdio-common/tmpnam.c: Likewise.
1479         * stdio-common/tmpnam_r.c: Likewise.
1480         * misc/mkstemps.c: New file.
1481         * misc/mkstemps64.c: New file.
1482         * stdlib/stdlib.h: Add prototypes.
1483         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1484         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1486 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1488         * locale/iso-639.def: Add sml entry.
1490         [BZ #10391]
1491         * resolv/res_send.c (send_dg): Initialize resplen.
1493         [BZ #10446]
1494         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1495         definition to the kernel's.
1496         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1498 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1500         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1501         offsets and record sizes in assert()s and response sending.
1502         * nscd/grpcache.c: Likewise.
1503         * nscd/hstcache.c: Likewise.
1504         * nscd/initgrcache.c: Likewise.
1505         * nscd/pwdcache.c: Likewise.
1507 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1509         [BZ #10540]
1510         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1511         /etc/hosts does not exist set errnop and herrnop appropriately.
1512         Patch by Steve Langasek <vorlon@debian.org>.
1514         [BZ #10553]
1515         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1516         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1518         [BZ #10564]
1519         * login/utmp_file.c (TIMEOUT): Increase to 10.
1521         [BZ #10609]
1522         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1523         for file names in case the syscall is not available.
1524         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1525         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1526         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1527         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1528         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1529         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1530         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1531         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1532         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1533         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1534         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1535         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1536         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1537         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1538         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1539         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1540         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1542         [BZ #10643]
1543         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1544         creation filed, remove the request from the 'requests' list and signal
1545         the caller that the request is finished.
1547         [BZ #10692]
1548         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1549         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1551         [BZ #10713]
1552         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1553         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1555         [BZ #10780]
1556         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1557         overflows the int return type.
1559         [BZ #10717]
1560         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1561         have to compute maxsize_total, we have to update the variables, and
1562         the also_total handling must happen after the repair.
1564         [BZ #10742]
1565         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1566         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1568 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1570         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1571         errno is always set when returning unsuccessfully.
1573 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1575         * malloc/memusage.c (update_data): Fix index wraparound handling
1576         so that buffer_cnt is actually reset.
1578 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1580         [BZ #10784]
1581         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1582         of the directory we look at into the static buffer if there is one
1583         at the start of the loop.
1585         [BZ #10789]
1586         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1587         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1589         [BZ #10840]
1590         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1591         __ASSUME_F_GETOWN_EX.
1592         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1593         if possible.
1594         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1596         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1597         and f_owner_ex.
1598         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1600         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1601         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1602         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1605         [BZ #10847]
1606         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1607         getutmpx symbol.
1609         [BZ #10823]
1610         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1611         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1613 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1615         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1617 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1619         [BZ #10817]
1620         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1621         Reported by Ray Chason.
1623 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1625         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1626         strend-sse4.
1627         * sysdeps/x86_64/multiarch/strchr.S: New file.
1628         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1629         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1631 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1633         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1635 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1637         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1638         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1639         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1640         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1641         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1642         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1643         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1644         __ieee751_expl to handle overflow.
1646 2009-10-14  David S. Miller  <davem@davemloft.net>
1648         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1649         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1651 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1653         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1654         !USE_MULTIARCH.
1656 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1658         [BZ #10730]
1659         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1660         Patch in part by Steve Ward <planet36@gmail.com>.
1662         [BZ #10731]
1663         * stdlib/rand_r.c: Fix typo.
1665         * po/cs.po: Update from translation team.
1667 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1669         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1670         returning if RTLD_NOLOAD.
1672 2009-10-06  Roland McGrath  <roland@redhat.com>
1674         * sysdeps/x86_64/multiarch/strstr-c.c
1675         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1677         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1678         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1680         * sysdeps/x86_64/multiarch/init-arch.h
1681         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1682         (HAS_CPU_FEATURE): New macro.
1683         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1684         * sysdeps/x86_64/multiarch/init-arch.c
1685         (__get_cpu_features): #undef it before definition.
1687 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1689         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1690         first_weekday to 1 and first_workday to 2.
1692 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1694         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1695         F_GETOWN_EX.
1696         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1697         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1698         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1699         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1700         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1701         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1703 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1705         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1706         * stdio-common/vfprintf.c: Likewise.
1708 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1710         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1711         (mkdirat): Call __directory_name_split_at instead of
1712         __directory_name_split.
1714 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1716         * locale/programs/locale-spec.c (locale_special): If nothing matches
1717         fail with an appropriate message.
1719 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1721         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1722         and XX.
1724 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1726         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1727         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1729 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1731         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1733 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1735         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1736         character size elements in step data.
1738 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1740         * po/hu.po: Update from translation team.
1741         * po/vi.po: Likewise.
1743 2009-09-19  Roland McGrath  <roland@redhat.com>
1745         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1747 2009-09-15  Roland McGrath  <roland@redhat.com>
1749         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1750         * nptl/sysdeps/pthread/configure: Regenerated.
1751         * nptl/sysdeps/x86_64/configure: Regenerated.
1752         * sysdeps/unix/sysv/linux/configure: Regenerated.
1753         * sysdeps/x86_64/elf/configure: Regenerated.
1755         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1757         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1758         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1759         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1760         * configure: Regenerated.
1762 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1764         * posix/getconf.c (main): Handle -- on command line.
1766 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1768         * configure.in: Support binutils 2.100 and 3.0.
1770 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1772         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1773         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1774         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1775         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1777 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1779         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1780         unnamed_section_defined field.
1781         (collate_read): Test and set unnamed_section_defined.
1783         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1784         _POSIX2_LINE_MAX.
1786 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1788         * configure.in: Support binutils 2.20.
1790 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1792         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1793         __strstr_ia32): Add attribute_hidden.
1795 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1797         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1798         parsing of group entry.
1800 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1802         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1803         external buffer.  Always discard readahead in internal buffer.
1804         * libio/Makefile (tests): Add bug-wsetpos.
1805         * libio/bug-wsetpos.c: New file.
1807 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1809         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1810         Add attribute_hidden.
1811         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1812         __strcasestr_sse2): Likewise.
1813         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1814         (__fma_fma): Make static.
1815         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1816         (__fmaf_fma): Make static.
1818 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1820         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1821         reformulate in-buffer optimisation check to match code in
1822         _IO_new_file_seekoff.
1824 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1826         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1827         to srwi in 32-bit memcpy for power6.
1829 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1831         * include/stdio.h: Declare hidden proto for fflush.
1832         * libio/iofflush.c: Add hidden weak alias for fflush.
1834 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1836         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1837         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1839 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1841         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1843 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1845         [BZ #10560]
1846         * malloc/malloc.c: Add local assert definition to avoid problems with
1847         memory allocation in the real one.
1849 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1851         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1852         Removed.
1853         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1854         turn off SSSE3 on Atom.
1856 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1858         * stdlib/tst-strtol.c (tests): More tests.
1859         * stdlib/tst-strtoll.c (tests): Likewise.
1861 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1863         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1865         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1867 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1869         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1870         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1872         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1874         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1876         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1878 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1880         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1882 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1884         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1885         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1887         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1889         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1890         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1892         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1893         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1895         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1896         leftover YMM_SIZE definition.
1898 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1900         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1901         union.
1902         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1903         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1904         Redefine.
1905         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1907         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1908         and SET_FLOAT_WORD definitions.
1910 2009-08-24  Roland McGrath  <roland@redhat.com>
1912         * sysdeps/unix/syscall-template.S: New file.
1913         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1914         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1915         (compile-syscall): Pass mkdep and -g options as normal.
1916         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1917         (common-generated): Don't add them here.
1919 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1921         * math/s_fdim.c: In case of overflows set errno.
1922         * math/s_fdimf.c: Likewise.
1923         * math/s_fdiml.c: Likewise.
1925         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1926         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1927         are using the inline optimizations.
1929         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1930         (__signbitf): Likewise.
1932 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1934         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1935         terminated.
1936         * posix/Makefile (tests): Add bug-regex29.
1937         * posix/bug-regex29.c: New file.
1939         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1940         older POSIX versions are selected.
1942         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1943         as well.
1944         * stdio-common/printf_fphex.c: Likewise.
1945         * stdio-common/tstdiomisc.c: Add more tests.
1947         * locale/locale.h: Include xlocale.h and the thread-local locale
1948         declarations for XPG7, not XPG6.
1950 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1952         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1953         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1956         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1957         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1959 2009-08-20  Roland McGrath  <roland@redhat.com>
1961         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1962         Use l_addr instead of l_map_start (dli_fbase).
1963         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1964         address when there is no proximate symbol.
1965         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1966         Likewise.
1968 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1970         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1972 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1974         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1975         Also handle SIGINT.  In that case only do the cleanup and then
1976         re-raise the signal.
1977         (main): Install handler for SIGINT.
1979 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1981         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1982         clobber list.
1984 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1986         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1987         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1988         tst-auditmod7b.c.
1989         (tests): Add tst-audit6 tst-audit7.
1990         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1991         tst-auditmod7a tst-auditmod7b.
1992         ($(objpfx)tst-audit6): New.
1993         ($(objpfx)tst-audit6.out): Likewise.
1994         ($(objpfx)tst-audit7): Likewise.
1995         ($(objpfx)tst-audit7.out): Likewise.
1996         (tst-audit6-ENV): Likewise.
1997         (tst-audit7-ENV): Likewise.
1998         (CFLAGS-tst-auditmod6b.c): Likewise.
1999         (CFLAGS-tst-auditmod6c.c): Likewise.
2000         (CFLAGS-tst-auditmod7b.c): Likewise.
2001         * elf/tst-audit6.c: New file.
2002         * elf/tst-audit7.c: New file.
2003         * elf/tst-auditmod6a.c: New file.
2004         * elf/tst-auditmod6b.c: New file.
2005         * elf/tst-auditmod6c.c: New file.
2006         * elf/tst-auditmod7a.c: New file.
2007         * elf/tst-auditmod7b.c: New file.
2008         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2009         saving and restoring SSE/AVX registers to ...
2010         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2012 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2014         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2015         only if SHARED is defined.
2016         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2018 2009-08-03  Jim Meyering  <meyering@redhat.com>
2020         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2022 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2024         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2025         section as the other functions for this architecture.
2026         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2028 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2030         * sysdeps/x86_64/strcmp.S: Add support to compile with
2031         USE_SSSE3.  In this case palignr is used.
2032         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2033         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2034         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2035         Add strcmp-ssse3 and strncmp-ssse3.
2036         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2037         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2039         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2040         warning through fake initialization.
2042 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2044         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2046 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2048         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2049         unique symbols.
2051 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2053         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2054         EBX from EAX = 1.  Handle EAX = 11.
2056 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2058         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2059         inside ''.
2061 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2063         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2064         hidden IFUNC functions.
2065         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2067         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2069         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2070         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2071         strcasestr-c.
2072         (CFLAGS-strcspn-c.c): Define.
2073         (CFLAGS-strpbrk-c.c): Define.
2074         (CFLAGS-strspn-c.c): Define.
2075         (CFLAGS-strstr.c): Define.
2076         (CFLAGS-strcasestr.c): Define.
2077         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2078         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2079         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2080         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2081         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2082         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2083         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2084         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2085         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2086         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2087         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2088         -16L instead of 0xfffffffffffffff0L.
2089         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2091 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2093         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2095 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2097         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2098         another rewrite.  Much smaller and faster.
2099         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2101         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2102         ss_flags from the correct location.
2104 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2106         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2107         * sysdeps/i386/i686/cacheinfo.c: New file.
2108         * sysdeps/i386/i686/multiarch/Makefile: New file.
2109         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2110         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2111         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2112         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2113         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2114         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2115         (__cpuid_count): New. Provide the default.
2116         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2117         (__x86_64_preferred_memory_instruction): Define only if
2118         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2119         (intel_check_word): Use __cpuid.
2120         (handle_intel): Likewise.
2121         (handle_amd): Likewise.
2122         (__cache_sysconf): Likewise.
2123         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2124         (__cache_sysconf): Likewise.
2125         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2126         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2127         (get_common_indeces): Use __cpuid.
2128         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2129         if ENABLE_SSSE3_ON_ATOM is not defined.
2130         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2131         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2132         popcnt instead of popcntq.
2134 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2136         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2138 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2140         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2141         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2142         which always causes a compile error.
2144         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2146         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2147         comes from...
2148         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2149         which always causes a compile error.
2151         * debug/Makefile (tests): Add tst-longjmp_chk2.
2152         * debug/tst-longjmp_chk2.c: New file.
2154         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2155         Remove incorrect use of BP_SYM.
2156         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2157         here now since it is more complex than just a simple check.
2159         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2160         we make no more progress.
2162 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2164         * math/s_fma.c: Don't define alias if __fma is a macro.
2165         * math/s_fmaf.c: Likewise.
2166         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2167         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2168         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2170         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2171         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2172         New macro HAS_FMA.
2173         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2174         function.
2175         * include/libc-symbols.h (libm_ifunc): Define.
2176         * sysdeps/x86_64/multiarch/Versions: New file.
2178         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2180 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2182         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2184 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2186         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2187         call that registers used in calling conventions need to be preserved.
2188         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2189         to preserve register content if necessary.
2190         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2191         (_dl_x86_64_restore_sse): New function.
2192         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2193         is allowed to modify xmm/ymm registers.
2195         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2196         application's perspective.
2197         * stdio-common/scanf17.c: Likewise.
2199 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2201         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2202         size to memsz.
2203         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2204         here.
2205         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2206         two steps to catch bugs.
2208 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2210         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2211         determines which files are used in runtime lookups and only checks
2212         those for SSE use.
2213         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2214         testing.
2215         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2216         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2217         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2218         take a while.
2220         * elf/dl-open.c: Move _dl_scope_free to...
2221         * elf/dl-scope.c: ...here.  New file.
2222         * elf/Makefile (dl-routines): Add scope.
2224         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2225         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2226         RES_USE_DNSSEC.
2227         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2228         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2229         all the places we handled RES_USE_EDNS0 only before.
2230         Patch by Adam Tkac <atkac@redhat.com>.
2232 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2234         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2235         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2236         Update size when reallocating.
2238 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2240         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2241         functions used in ld.so modify xmm/ymm registers.
2242         * sysdeps/x86_64/Makefile:  Hook new test up.
2243         * sysdeps/x86_64/rtld-memchr.c: New file.
2244         * sysdeps/x86_64/rtld-memcmp.c: New file.
2245         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2246         * sysdeps/x86_64/rtld-strchr.S: New file.
2247         * sysdeps/x86_64/rtld-strlen.S: New file.
2248         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2249         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2251 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2253         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2254         strncmp-c.
2255         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2256         (exit): Likewise.
2257         (Byte1): Likewise.
2258         (Byte2): Likewise.
2259         (Byte3): Likewise.
2260         (Byte4): Likewise.
2261         (Byte5): Likewise.
2262         (Byte6): Likewise.
2263         (next_8_bytes): Likewise.
2264         (Byte0): Remove commented out codes.
2265         (unaligned_table): Align jump table at 8 bytes.
2266         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2267         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2268         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2269         * sysdeps/x86_64/strncmp.S: New file.
2271 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2273         [BZ #10422]
2274         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2275         kernels, dropped when eventfd2 support was added.
2276         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2277         kernels, dropped when signalfd4 support was added.
2278         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2279         added, name them.
2281         [BZ #10452]
2282         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2283         replies up.
2285         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2287 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2289         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2290         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2292         [BZ #10448]
2293         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2294         callback we must touch the status to avoid using stale value.
2296         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2297         compiled in.
2299 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2301         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2302         /lib/modules/* headers anymore.  We have sane headers in the standard
2303         place now.
2305 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2307         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2308         "etf3enh" and "highgprs" added.
2309         (_dl_s390_platforms): "z10" added.
2310         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2311         Increased for the new entries.
2312         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2313         HWCAP_S390_HIGH_GPRS added.
2315         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2316         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2317         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2318         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2319         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2321 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2323         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2324         avoid additional cpuid instructions.  Most of the information is
2325         stored somewhere.
2327         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2328         cache descriptors.
2329         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2331         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2332         SSSE3 bit for Atoms.
2333         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2334         here anymore.
2336         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2337         structure before copying it to avoid warning.
2338         * posix/tst-rfc3484-2.c (do_test): Likewise.
2339         * posix/tst-rfc3484-3.c (do_test): Likewise.
2341         [BZ #10416]
2342         * include/unistd.h: Make header file suitable for C++ test cases.
2343         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2345         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2346         stack alignment in the exit code.
2348         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2349         potentially be zero.
2351         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2352         unique symbol definition.
2353         Patch by Jakub Jelinek.
2354         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2355         make sure the object with the definition cannot be unloaded.  Adjust
2356         a few types.
2357         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2358         the unique symbol hash table should not be const.
2360 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2363         unnecesary variables.  Comment fixes.
2365 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2367         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2368         Use NONASCII_CASE information provided by the locale to determine
2369         whether optimized string load function can be used.  Minor cleanups.
2371 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2373         * string/strcasestr.c (STRCASESTR): New macro.
2374         (__strcasestr): Renamed to ..
2375         (STRCASESTR): ...this.
2376         * string/strstr.c (STRSTR): New macro.
2377         (strstr): Renamed to ..
2378         (STRSTR): ...this.
2379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2380         strstr-c strcasestr-c
2381         (CFLAGS-strstr.c): New.
2382         (CFLAGS-strcasestr.c): Likewise.
2383         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2384         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2385         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2386         * sysdeps/x86_64/multiarch/strstr.c: New file.
2388 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2390         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2391         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2392         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2393         _NL_CTYPE_NONASCII_CASE.
2394         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2395         field.
2396         (ctype_finish): Check whether there are any 8-bit characters outside
2397         the range ASCII has or whether the mapping isn't the same as for
2398         ASCII (±0x20).  Set nonascii_case appropriately.
2399         (ctype_output): Add output handler for nonascii_case.
2401 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2403         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2404         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2406 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2408         [BZ #10360]
2409         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2410         0xffff in the EDNS0 record.
2412 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2414         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2415         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2416         is written before the list head update.
2417         Patch by Andreas Schwab <aschwab@redhat.com>.
2419 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2420             Jakub Jelinek  <jakub@redhat.com>
2422         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2423         corruption thread-safe.
2425 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2427         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2428         overrides atomic_compare_and_exchange_val_rel, define to
2429         atomic_compare_and_exchange_val_rel by default, otherwise default
2430         to catomic_compare_and_exchange_val_acq.
2431         (catomic_compare_and_exchange_bool_rel): If arch overrides
2432         atomic_compare_and_exchange_bool_rel, define to
2433         atomic_compare_and_exchange_bool_rel by default.
2434         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2435         Use catomic_compare_and_exchange_val_rel instead of
2436         catomic_compare_and_exchange_val_acq.
2438 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2440         * sysdeps/generic/ldsodefs.h: Add prototype for
2441         _dl_higher_prime_number.
2442         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2444         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2445         restoring of ymm registers a bit.
2447 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2449         * sysdeps/x86_64/memcmp.S: New file.
2451 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2453         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2454         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2455         pointers in writable memory.
2457 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2459         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2460         * config.make.in: Add config-cflags-avx entry.
2461         * configure.in: Substitute libc_cv_cc_avx.
2462         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2463         * elf/tst-audit4.c: New file.
2464         * elf/tst-audit5.c: New file.
2465         * elf/tst-auditmod4a.c: New file.
2466         * elf/tst-auditmod4b.c: New file.
2467         * elf/tst-auditmod5a.c: New file.
2468         * elf/tst-auditmod5b.c: New file.
2469         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2470         link-defines.sym.
2471         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2472         (La_x86_64_vector): Likewise.
2473         (La_x86_64_regs): Append lr_vector.
2474         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2475         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2476         saving and restoring SSE registers to ...
2477         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2478         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2479         <link-defines.h>.
2480         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2481         La_x86_64_regs.  Allocate extra space and jump to memory at
2482         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2483         (save_and_restore_vector_sse): New.
2484         (save_and_restore_vector_avx): Likewise.
2485         (check_avx): Likewise.
2486         (save_and_restore_vector): Likewise.
2487         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2488         HAVE_AVX_SUPPORT.
2489         * sysdeps/x86_64/link-defines.sym: New file.
2491 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2493         * elf/do-lookup.h: Removed after folding content into...
2494         * elf/dl-lookup.c: ...here.
2496         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2498 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2500         * configure.in: Check for gnu_unique_symbol symbol type.
2501         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2502         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2503         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2504         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2505         change.
2506         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2507         unique symbol table.
2508         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2509         for first namespace.
2510         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2511         unique symbol hash table.
2512         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2513         * elf/tst-unique1.c: New file.
2514         * elf/tst-unique1mod1.c: New file.
2515         * elf/tst-unique1mod2.c: New file.
2516         * elf/tst-unique2.c: New file.
2517         * elf/tst-unique2mod1.c: New file.
2518         * elf/tst-unique2mod2.c: New file.
2520 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2522         * elf/elf.h (STB_GNU_UNIQUE): Define.
2524         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2525         from...
2526         * include/inline-hashtab.h: ...here.
2527         (htab_expand): Adjust for renamed function.  Correct memory handling.
2529 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2531         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2533 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2535         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2536         (PPC_FEATURE_HAS_VSX): Likewise.
2538 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2540         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2541         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2543         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2544         aligned to 16 byte boundaries.
2545         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2546         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2547         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2549 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2551         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2552         * config.make.in (config-cflags-sse4): New variable.
2553         * configure.in: Substitute libc_cv_cc_sse4.
2554         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2555         HAVE_SSE4_SUPPORT.
2556         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2557         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2558         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2559         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2560         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2561         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2562         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2563         * sysdeps/x86_64/multiarch/strspn.S: New file.
2565 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2567         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2568         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2569         (tests): Add tst-audit3 for x86_64.
2570         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2571         ($(objpfx)tst-audit3): Define.
2572         ($(objpfx)tst-audit3.out): Define.
2573         (tst-audit3-ENV): Define.
2574         * elf/tst-audit3.c: New file.
2575         * elf/tst-auditmod3a.c: New file.
2576         * elf/tst-auditmod3b.c: New file.
2577         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2578         and restore xmm6.
2580         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2581         (__stpncpy): Renamed to ...
2582         (STPNCPY): This.
2583         (stpncpy): Create alias only if STPNCPY is not defined.
2584         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2585         defined.
2586         (strncpy): Renamed to ...
2587         (STRNCPY): This.
2588         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2589          stpncpy-c strncpy-c for string.
2590         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2591         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2592         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2593         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2594         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2595         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2597 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2599         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2600         adding to fast bin list.
2602 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2604         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2605         inet_makeaddr.  This worked only with class-based networks.
2606         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2607         Likewise.
2609         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2610         recognize all types.
2611         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2612         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2613         be in host byte order.
2615 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2617         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2618         (MODEL_OFFSET): Define.
2619         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2620         family and model.
2621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2622         out common code into new function get_common_indeces. Determine
2623         extended family and model for Intel processors.
2625 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2627         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2628         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2629         option.
2630         * resolv/res_send.c (reopen): New function.  Broken out of...
2631         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2632         fallback mechanism.  If single-request fails switch to
2633         single-request-reopen mode which opens a new socket for the second
2634         request.
2636 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2638         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2639         (CHECK_SP): Use it.
2641 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2643         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2644         for saved registers.
2645         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2646         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2647         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2649 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2651         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2653 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2655         * po/id.po: Update from translation team.
2657         * po/bg.po: Update from translation team.
2659 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2661         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2662         defined.
2663         (strncmp): Renamed to STRNCMP.
2664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2665         strncmp-c for string.
2666         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2667         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2668         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2669         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2671 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2673         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2674         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2675         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2676         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2677         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2678         ifuncmain7static.c.
2679         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2680         ifuncmain7static, and ifuncmain7picstatic.
2681         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2682         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2683         $(objpfx)ifuncmain7pie.out.
2684         (modules-names): Add ifuncmod5 ifuncmod6
2685         (ifuncmod5.so-no-z-defs): Define.
2686         (ifuncmod6.so-no-z-defs): Define.
2687         (CFLAGS-ifuncmain5pic.c): Define.
2688         (CFLAGS-ifuncmain5picstatic.c): Define.
2689         (CFLAGS-ifuncmain5staticpic.c): Define.
2690         (CFLAGS-ifuncdep5pic.c): Define.
2691         (CFLAGS-ifuncmain7pic.c): Define.
2692         (CFLAGS-ifuncmain7picstatic.c): Define.
2693         (CFLAGS-ifuncmain1staticpie.c): Define.
2694         (CFLAGS-ifuncmain5pie.c): Define.
2695         (CFLAGS-ifuncmain6pie.c): Define.
2696         (CFLAGS-ifuncmain7pie.c): Define.
2697         ($(objpfx)ifuncmain1staticpie.out): Define.
2698         ($(objpfx)ifuncmain1staticpie): Define.
2699         ($(objpfx)ifuncmain5pie.out): Define.
2700         ($(objpfx)ifuncmain5pie): Define.
2701         ($(objpfx)ifuncmain6pie.out): Define.
2702         ($(objpfx)ifuncmain6pie): Define.
2703         ($(objpfx)ifuncmain5): Define.
2704         ($(objpfx)ifuncmain5pic): Define.
2705         ($(objpfx)ifuncmain5static): Define.
2706         ($(objpfx)ifuncmain5staticpic): Define.
2707         ($(objpfx)ifuncmain5picstatic): Define.
2708         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2709         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2710         ifuncmain6pie.out.
2711         * elf/b/elf/ifuncmain1staticpie.c: New file.
2712         * elf/ifuncdep5.c: New file.
2713         * elf/ifuncdep5pic.c: New file.
2714         * elf/ifuncmain5.c: New file.
2715         * elf/ifuncmain5pic.c: New file.
2716         * elf/ifuncmain5picstatic.c: New file.
2717         * elf/ifuncmain5pie.c: New file.
2718         * elf/ifuncmain5static.c: New file.
2719         * elf/ifuncmain5staticpic.c: New file.
2720         * elf/ifuncmain6pie.c: New file.
2721         * elf/ifuncmain7.c: New file.
2722         * elf/ifuncmain7pic.c: New file.
2723         * elf/ifuncmain7picstatic.c: New file.
2724         * elf/ifuncmain7pie.c: New file.
2725         * elf/ifuncmain7static.c: New file.
2726         * elf/ifuncmod5.c: New file.
2727         * elf/ifuncmod6.c: New file.
2729 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2731         [BZ #10085]
2732         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2733         (nss_endgrent): New variable.
2734         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2735         fields. Change type of files to bool and adjust all users.
2736         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2737         (internal_endgrent): Call nss_endgrent if necessary.
2738         (add_group): New function.  Broken out of...
2739         (check_and_add_group): ...here.
2740         (getgrent_next_nss): Remove test that any callback is available.
2741         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2742         callback.  If there is no blacklist we can trust the results returned
2743         by the initgroups_dyn callback.  In case there is a callback and we
2744         find a group entry for the group ID but it doesn't contain the
2745         correct member, switch to the slow mode and use getgrent_r.
2746         (internal_getgrent_r): When we see a +: entry, determine whether
2747         there is any callback and which we can use the initgroups_dyn
2748         callback.
2750 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2752         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2753         (_int_free): Likewise.
2755         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2756         AF_IEEE802154.
2757         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2758         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2759         and ARPHRD_IEEE802154_PHY.
2761         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2762         relative to generic Linux version.
2764 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2766         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2767         ($(objpfx)ifuncmain1vispie): Likewise.
2769 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2771         * login/Makefile: Build pt_chown as PIE.
2773 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2775         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2776         a format string.
2777         * elf/sln.c (usage): Likewise.
2778         * malloc/memusage.sh (do_help): Likewise.
2779         * nss/getent.c (more_help): Likewise.
2780         * posix/getconf.c (main): Likewise.
2781         * sunrpc/rpcinfo.c (usage): Likewise.
2782         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2784 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2786         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2787         those needed.
2788         * login/Makefile: If necessary link pt_chown with -lcap.
2789         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2790         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2792 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2794         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2795         comparisons.
2796         * string/test-memchr.c (do_random_tests): Test very large lengths
2797         as well.
2799 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2801         * Makeconfig (+link-pie): Define.
2802         (+prectorS): Define.
2803         (+postctorS): Define.
2804         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2805         * nscd/Makefile ($(objpfx)nscd): Likewise.
2807 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2809         [BZ #10107]
2810         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2811         with cmplwi.
2812         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2814 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2816         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2817         into ...
2818         * sysdeps/unix/grantpt.c: ...here.
2820 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2822         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2823         chmod if it is necessary.
2825         [BZ #10166]
2826         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2827         when the slave device is in devpts or devfs.
2829         [BZ #10183]
2830         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2832         [BZ #10195]
2833         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2834         of nd_opt_home_agent_info_preference to uint16_t.
2835         Patch by Arnaud Ebalard <arno@natisbad.org>.
2837         [BZ #10207]
2838         * nss/getent.c: Add support for printing gshadow data.
2840         [BZ #10203]
2841         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2842         not just the currently used one and those which follow.
2843         Patch by Joe Landers <jlanders@vmware.com>.
2845         [BZ #10196]
2846         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2847         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2848         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2850         [BZ #10217]
2851         * stdlib/abort.c: Define variable __abort_msg.
2852         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2853         * include/stdlib.h: Declare __abort_msg.
2854         * assert/assert-perr.c: Don't free buffer for message immediately.
2855         Store atomically in __abort_msg and free old buffer if necessary.
2856         * assert/assert.c: Likewise.
2857         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2858         store pointer in __abort_msg, and possibly free old string.
2859         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2861         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2863         [BZ #10211]
2864         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2865         handle leap seconds if they are available.
2866         Patch by Akinori Hattori <hattya@gentoo.org>.
2868         * timezone/tzselect.ksh: Update from tzcode2009i.
2869         * timezone/zdump.c: Likewise.
2870         * timezone/zic.c: Likewise.
2872         * timezone/africa: Update from tzdata2009i.
2873         * timezone/antarctica: Likewise.
2874         * timezone/asia: Likewise.
2875         * timezone/australasia: Likewise.
2876         * timezone/backward: Likewise.
2877         * timezone/etcetera: Likewise.
2878         * timezone/europe: Likewise.
2879         * timezone/factory: Likewise.
2880         * timezone/iso3166.tab: Likewise.
2881         * timezone/leapseconds: Likewise.
2882         * timezone/northamerica: Likewise.
2883         * timezone/pacificnew: Likewise.
2884         * timezone/solar87: Likewise.
2885         * timezone/solar88: Likewise.
2886         * timezone/solar89: Likewise.
2887         * timezone/southamerica: Likewise.
2888         * timezone/systemv: Likewise.
2889         * timezone/yearistype: Likewise.
2890         * timezone/zone.tab: Likewise.
2892 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2894         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2895         STT_GNU_IFUNC symbol or in 8 into type_class.
2897         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2898         instead of Elf64_Addr.
2900 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2902         * po/sv.po: Update from translation team.
2904         [BZ #10229]
2905         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2906         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2907         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2908         the C version.
2910 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2912         * Versions.def: Add GLIBC_2.11 for libpthread.
2914 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2916         * resolv/res_send.c (send_dg): Remember we switched to
2917         single-request mode.
2919 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2921         * dlfcn/dlfcn.h: Remove comma at end of enum.
2922         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2924         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2925         parsing mode string.
2927 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2929         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2931         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2933         * sysdeps/x86_64/multiarch/strlen.S: New file.
2934         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2935         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2936         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2937         content.
2939         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2940         is defined.
2942 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2944         * sysdeps/x86_64/strlen.S: Minor optimizations.
2946 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2948         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2949         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2950         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2951         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2952         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2953         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2954         ifuncmain3.c, ifuncmod3.c,.
2955         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2956         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2957         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2958         ifuncmain4picstatic.
2959         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2960         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2961         ifuncmain3, ifuncmain4.
2962         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2963         $(objpfx)ifuncmain1vispie.out.
2964         (modules-names): Add ifuncmod1 ifuncmod3.
2965         (generated): Add ifuncmain1pie ifuncmain1pie.out
2966         ifuncmain1vispie ifuncmain1vispie.out.
2967         Define rules to build and run the tests.
2968         * elf/ifuncdep1.c: New file.
2969         * elf/ifuncdep1pic.c: New file.
2970         * elf/ifuncdep2.c: New file.
2971         * elf/ifuncdep2pic.c: New file.
2972         * elf/ifuncmain1.c: New file.
2973         * elf/ifuncmain1pic.c: New file.
2974         * elf/ifuncmain1picstatic.c: New file.
2975         * elf/ifuncmain1pie.c: New file.
2976         * elf/ifuncmain1static.c: New file.
2977         * elf/ifuncmain1staticpic.c: New file.
2978         * elf/ifuncmain1vis.c: New file..
2979         * elf/ifuncmain1vispic.c: New file..
2980         * elf/ifuncmain1vispie.c: New file.
2981         * elf/ifuncmain2.c: New file.
2982         * elf/ifuncmain2pic.c: New file.
2983         * elf/ifuncmain2picstatic.c: New file.
2984         * elf/ifuncmain2static.c: New file.
2985         * elf/ifuncmain3.c: New file.
2986         * elf/ifuncmain4.c: New file.
2987         * elf/ifuncmain4picstatic.c: New file.
2988         * elf/ifuncmain4static.c: New file.
2989         * elf/ifuncmod1.c: New file.
2990         * elf/ifuncmod3.c: New file.
2992 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2994         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2996 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2998         [BZ #10221]
2999         * posix/Makefile (routines): Add execvpe.
3000         * posix/Versions: Export execvpe for GLIBC_2.11.
3001         * posix/execvp.c: Now only a wrapper.  Move code to...
3002         * posix/execvpe.c: ...here.  New file.
3003         * posix/unistd.h: Declare execvpe.
3005 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3007         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3008         for STT_GNU_IFUNC handling for efficiency.
3009         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3011         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3012         _exit.
3013         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3015 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3017         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3018         for !SHARED.
3020 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3022         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3023         is not defined.
3024         (__rela_iplt_start): New declaration.
3025         (__rela_iplt_end): Likewise.
3026         (__rel_iplt_start): Likewise.
3027         (__rel_iplt_end): Likewise.
3028         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3029         * elf/elf.h (R_386_IRELATIVE): New macro.
3030         (R_X86_64_IRELATIVE): New macro.
3031         (R_386_NUM): Updated.
3032         (R_X86_64_NUM): Likewise.
3033         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3034         (libc_ifunc_hidden_def): New macro.
3035         * sysdeps/generic/dl-irel.h: New file.
3036         * sysdeps/i386/dl-irel.h: New file.
3037         * sysdeps/x86_64/dl-irel.h: New file.
3038         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3039         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3040         Handle R_386_IRELATIVE.
3041         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3042         (elf_machine_lazy_rela): Likewise.
3043         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3044         R_X86_64_IRELATIVE.
3045         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3047 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3049         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3050         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3051         are no differences.  If an architecture has bits in CPUID index 1
3052         meaning different things the values for the COMMON_CPUID_INDEX_1
3053         index must not be set.
3054         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3055         (HAS_POPCOUNT): ...this.  New macro.
3056         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3057         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3058         to set the value for Intel and AMD architectures.
3059         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3060         INTEL_CPUID_INDEX_1.
3061         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3062         change.
3064 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3066         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3067         and $build.
3069 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3071         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3072         (__expm1l): Set errno to ERANGE on overflow.
3073         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3074         (__tanl): Set errno to EDOM for Â±Inf.
3075         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3076         (__cosl): Set errno to EDOM for Â±Inf.
3077         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3078         (__sinl): Set errno to EDOM for Â±Inf.
3080         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3081         defined, use it.
3082         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3083         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3084         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3086 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3088         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3089         code accessing it.
3090         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3092 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3094         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3095         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3096         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3097         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3099         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3100         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3101         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3102         defined.
3103         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3104         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3106 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3108         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3109         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3110         is, either do nothing at all if __ASSUME_ACCEPT4, or
3111         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3112         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3113         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3114         define.
3115         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3116         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3117         internal_accept4 in socket directory.
3119 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3121         * sysdeps/ia64/configure.in: New file.
3123 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3125         [BZ #10162]
3126         * sysdeps/ia64/memchr.S: Use speculative load.
3128         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3129         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3130         use it.
3132         * sysdeps/i386/__longjmp.S: Add .text.
3133         * sysdeps/x86_64/__longjmp.S: Likewise.
3135 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3137         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3138         __ASSUME_ACCEPT4 for IA-64.
3140 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3142         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3144         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3145         (SOCKOP_accept4): Define.
3147 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3149         Sun approved the change of the license.
3150         * sunrpc/auth_des.c: Replace license text.
3151         * sunrpc/auth_none.c: Likewise.
3152         * sunrpc/auth_unix.c: Likewise.
3153         * sunrpc/authdes_prot.c: Likewise.
3154         * sunrpc/authuxprot.c: Likewise.
3155         * sunrpc/bindrsvprt.c: Likewise.
3156         * sunrpc/clnt_gen.c: Likewise.
3157         * sunrpc/clnt_perr.c: Likewise.
3158         * sunrpc/clnt_raw.c: Likewise.
3159         * sunrpc/clnt_simp.c: Likewise.
3160         * sunrpc/clnt_tcp.c: Likewise.
3161         * sunrpc/clnt_udp.c: Likewise.
3162         * sunrpc/clnt_unix.c: Likewise.
3163         * sunrpc/des_crypt.c: Likewise.
3164         * sunrpc/des_soft.c: Likewise.
3165         * sunrpc/get_myaddr.c: Likewise.
3166         * sunrpc/getrpcport.c: Likewise.
3167         * sunrpc/key_call.c: Likewise.
3168         * sunrpc/key_prot.c: Likewise.
3169         * sunrpc/openchild.c: Likewise.
3170         * sunrpc/pm_getmaps.c: Likewise.
3171         * sunrpc/pm_getport.c: Likewise.
3172         * sunrpc/pmap_clnt.c: Likewise.
3173         * sunrpc/pmap_prot.c: Likewise.
3174         * sunrpc/pmap_prot2.c: Likewise.
3175         * sunrpc/pmap_rmt.c: Likewise.
3176         * sunrpc/rpc/auth.h: Likewise.
3177         * sunrpc/rpc/auth_unix.h: Likewise.
3178         * sunrpc/rpc/clnt.h: Likewise.
3179         * sunrpc/rpc/des_crypt.h: Likewise.
3180         * sunrpc/rpc/key_prot.h: Likewise.
3181         * sunrpc/rpc/netdb.h: Likewise.
3182         * sunrpc/rpc/pmap_clnt.h: Likewise.
3183         * sunrpc/rpc/pmap_prot.h: Likewise.
3184         * sunrpc/rpc/pmap_rmt.h: Likewise.
3185         * sunrpc/rpc/rpc.h: Likewise.
3186         * sunrpc/rpc/rpc_des.h: Likewise.
3187         * sunrpc/rpc/rpc_msg.h: Likewise.
3188         * sunrpc/rpc/svc.h: Likewise.
3189         * sunrpc/rpc/svc_auth.h: Likewise.
3190         * sunrpc/rpc/types.h: Likewise.
3191         * sunrpc/rpc/xdr.h: Likewise.
3192         * sunrpc/rpc_clntout.c: Likewise.
3193         * sunrpc/rpc_cmsg.c: Likewise.
3194         * sunrpc/rpc_common.c: Likewise.
3195         * sunrpc/rpc_cout.c: Likewise.
3196         * sunrpc/rpc_dtable.c: Likewise.
3197         * sunrpc/rpc_hout.c: Likewise.
3198         * sunrpc/rpc_main.c: Likewise.
3199         * sunrpc/rpc_parse.c: Likewise.
3200         * sunrpc/rpc_parse.h: Likewise.
3201         * sunrpc/rpc_prot.c: Likewise.
3202         * sunrpc/rpc_sample.c: Likewise.
3203         * sunrpc/rpc_scan.c: Likewise.
3204         * sunrpc/rpc_scan.h: Likewise.
3205         * sunrpc/rpc_svcout.c: Likewise.
3206         * sunrpc/rpc_tblout.c: Likewise.
3207         * sunrpc/rpc_util.c: Likewise.
3208         * sunrpc/rpc_util.h: Likewise.
3209         * sunrpc/rpcinfo.c: Likewise.
3210         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3211         * sunrpc/rpcsvc/key_prot.x: Likewise.
3212         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3213         * sunrpc/rpcsvc/mount.x: Likewise.
3214         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3215         * sunrpc/rpcsvc/rex.x: Likewise.
3216         * sunrpc/rpcsvc/rstat.x: Likewise.
3217         * sunrpc/rpcsvc/rusers.x: Likewise.
3218         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3219         * sunrpc/rpcsvc/spray.x: Likewise.
3220         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3221         * sunrpc/rtime.c: Likewise.
3222         * sunrpc/svc.c: Likewise.
3223         * sunrpc/svc_auth.c: Likewise.
3224         * sunrpc/svc_authux.c: Likewise.
3225         * sunrpc/svc_raw.c: Likewise.
3226         * sunrpc/svc_run.c: Likewise.
3227         * sunrpc/svc_simple.c: Likewise.
3228         * sunrpc/svc_tcp.c: Likewise.
3229         * sunrpc/svc_udp.c: Likewise.
3230         * sunrpc/svc_unix.c: Likewise.
3231         * sunrpc/svcauth_des.c: Likewise.
3232         * sunrpc/xcrypt.c: Likewise.
3233         * sunrpc/xdr.c: Likewise.
3234         * sunrpc/xdr_array.c: Likewise.
3235         * sunrpc/xdr_float.c: Likewise.
3236         * sunrpc/xdr_mem.c: Likewise.
3237         * sunrpc/xdr_rec.c: Likewise.
3238         * sunrpc/xdr_ref.c: Likewise.
3239         * sunrpc/xdr_sizeof.c: Likewise.
3240         * sunrpc/xdr_stdio.c: Likewise.
3242         * po/da.po: Update from translation team.
3244 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3246         * sysdeps/sh/____longjmp_chk.S: New file.
3247         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3248         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3250 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3251             Ulrich Drepper  <drepper@redhat.com>
3253         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3254         (__nscd_cache_search): Assume each entry in the
3255         hash chain needs one hashentry and half of datahead.  Use
3256         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3258 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3260         * posix/sys/wait.h: Fix typos.  Pretty printing.
3261         * stdlib/stdlib.h: Likewise.  Correct comments.
3263         [BZ #10159]
3264         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3266         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3267         patch.
3269 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3271         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3272         Use it if we absolutely cannot reach any more correct list elements
3273         because that many do not fit into the currently mapped database.
3275 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3277         * nscd/nscd_helper.c: Include stddef.h.
3278         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3279         in a couple of places.  Return NULL if trail is not less than
3280         datasize, don't consider dataheads with length smaller than
3281         offsetof (struct datahead, data) + datalen.
3282         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3283         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3284         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3285         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3286         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3287         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3288         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3290         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3291         Rename ...
3292         (fallocate64): ... to this.
3293         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3294         Rename ...
3295         (fallocate64): ... to this.
3296         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3297         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3298         fallocate64@@GLIBC_2.10.
3299         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3300         fallocate64@@GLIBC_2.11.
3301         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3303         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3304         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3306         * nscd/selinux.c (nscd_avc_destroy): Removed.
3307         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3308         * nscd/nscd.c (termination_handler): Don't call
3309         nscd_avc_destroy.
3311 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3313         * include/atomic.h: Formatting.
3314         (catomic_compare_and_exchange_val_acq): Don't define if already
3315         defined by bits/atomic.h.
3317 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3319         * math/libm-test.inc (expm1_test): Add test for range error.
3321         * Versions.def: Add GLIBC_2.11 for libc.
3322         * debug/Makefile (routines): Add longjmp_chk.
3323         Add rules to build and run tst-longjmp_chk.
3324         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3325         * debug/longjmp_chk.c: New file.
3326         * debug/tst-longjmp_chk.c: New file.
3327         * include/bits/setjmp2.: New file.
3328         * include/stdio.h: Mark __fortify_fail as internal_function.
3329         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3330         * setjmp/bits/setjmp2.h: New file.
3331         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3332         of the aliases.
3333         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3334         defined.
3335         * sysdeps/i386/____longjmp_chk.S: New file.
3336         * sysdeps/x86_64/____longjmp_chk.S: New file.
3337         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3338         * sysdeps/x86_64/__longjmp.S: Likewise.
3340         * version.h: Bump for 2.11 development.
3342         * elf/check-execstack.c: New file.
3343         * elf/Makefile: Add rules to build and run check-execstack.
3345 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3347         * version.h (VERSION): Bump to 2.10.1.
3349         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3350         compatibility functions.
3351         * nss/getXXent_r.c: Likewise.
3352         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3353         * gshadow/getsgnam_r.c: Likewise.
3354         * gshadow/Version: Remove duplicate entries.
3356         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3357         for recent processor.
3358         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3359         Likewise.
3361 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3363         * version.h (VERSION): Bump for 2.10 release.
3364         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3366         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3367         same place we add ASFLAGS-config.
3369 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3371         [BZ #10128]
3372         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3373         or FORMERR and the other NOERROR, don't raise an error.
3375 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3377         [BZ #10118]
3378         * Makeconfig (+asflags): New variable based upon ASFLAG or
3379         asflags-cpu.
3380         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3381         * config.make.in (asflags-cpu): Add variable based upon
3382         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3383         the assembler.
3384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3385         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3386         recognizes power6 instruction set due to passing -mcpu=power6 from
3387         --with-cpu=power6 when compiling .S files.
3388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3389         Likewise.
3390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3391         Likewise.
3392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3393         Likewise.
3395 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3397         * string/stratcliff.c (do_test): Test for zero length
3398         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3399         at the end of the page.
3401 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3403         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3405         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3406         count is zero.
3408         * po/da.po: Update from translation team.
3410 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3412         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3413         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3415 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3417         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3418         and READ_IMPLIES_EXEC.
3420 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3422         * po/da.po: Update from translation team.
3424 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3426         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3427         comment change.
3429 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3431         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3432         to MAP_ANON in PROT_NONE mmap64 call.
3433         (open_archive): Likewise.
3434         (file_data_available_p): Use mmap64 instead of mremap.
3435         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3436         Attempt to reserve address space after mmap64 region.
3438 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3440         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3441         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3442         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3444         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3445         atanh should set ERANGE.
3447         [BZ #10087]
3448         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3449         result of lookup to make call to implement STT_GNU_IFUNC.
3450         (_dl_profile_fixup): Likewise.
3451         Patch by H.J. Lu <hjl.tools@gmail.com>.
3453         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3454         warning.
3456         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3457         from definition.
3459         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3460         label if it is not used.
3462         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3463         of gmon_hist_hdr and gmon_hdr structures and use them.
3464         * elf/sprof.c: Likewise.
3466         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3467         warning.
3469         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3471         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3472         to avoid cast.
3474         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3475         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3476         to avoid warnings.
3477         (iruserok_af): Use ss_family instead of casts.
3479         * gmon/gmon.c (write_hist): Define real-type variant of
3480         gmon_hist_hdr structure and use it.
3481         (write_gmon): Likewise for gmon_hdr.
3483         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3484         function if we are not going to define it.
3485         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3487         * inet/inet6_option.c (option_alloc): Add temporary variable to
3488         avoid warning.
3490         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3491         name of VTable element.
3492         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3493         * libio/iovsscanf.c: Likewise.
3494         * libio/vasprintf.c: Likewise.
3495         * libio/vsnprintf.c: Likewise.
3496         * stdio-common/isoc99_vsscanf.c: Likewise.
3497         * stdlib/strfmon_l.c: Likewise.
3498         * debug/vasprintf_chk.c: Likewise.
3499         * debug/vsnprintf_chk.c: Likewise.
3500         * debug/vsprintf_chk.c: Likewise.
3502         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3503         function pointers.
3505 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3507         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3509 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3511         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3513         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3514         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3515         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3516         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3517         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3518         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3519         * math/libm-test.inc: Add tests for errno after tan calls with
3520         Â±Inf.
3522         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3523         errno value vor pow(+-0,neg).
3524         * math/libm-test.inc (pow_test): Add tests for errno value for
3525         pole errors.
3527         * math/w_fmod.c: Also handle x=±Inf as error.
3528         * math/w_fmodf.c: Likewise.
3529         * math/w_fmodl.c: Likewise.
3530         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3531         x=±Inf or y=0.
3533         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3534         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3535         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3536         * sysdeps/i386/fpu/s_sin.S: Likewise.
3537         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3538         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3539         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3540         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3541         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3542         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3543         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3544         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3545         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3546         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3547         Â±Inf.
3549         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3550         ERANGE for underflows.
3551         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3553         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3554         the 2001 revision.
3556         * libio/tst-widetext.input: Remove surrogates.
3558         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3560         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3561         for lgamma should set errno to ERANGE, not EDOM.
3562         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3564 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3566         [BZ #10093]
3567         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3568         UTF-16 surrogates.
3570         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3571         space when temporarily mapping the whole content of the old file.
3573         [BZ #10100]
3574         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3575         not zero.
3577 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3579         * iconvdata/sjis.c (BODY): Don't advance inptr before
3580         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3581         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3582         two byte chars.
3584 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3586         * locale/locarchive.h (struct locarhandle): Rename len field to
3587         mmaped and add new reserved field.
3588         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3589         (create_archive): Reserve address space and then map file into it.
3590         (open_archive): Likewise.
3591         (file_data_available_p): New function.
3592         (compare_from_file): New function.
3593         (close_archive): Adjust to member name changes.
3594         (add_locale): Before comparing locale data, check it is mapped.
3595         Otherwise fall back to reading from the file.
3597 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3599         * stdio-common/psiginfo.c: Include <errno.h>.
3601 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3603         [BZ #9920]
3604         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3605         to get consistency between 32 and 64 bit architectures.
3607         [BZ #10052]
3608         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3609         directory for dummy syscall rules.
3610         Patch by Chris Steinbroner <hesh@pobox.com>.
3612 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3614         [BZ #10092]
3615         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3616         MNT_EXPIRE.
3618 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3620         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3621         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3623 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3625         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3626         data from vector to temporary buffer and call PWRITEV after it
3627         instead of vice versa.
3628         * sysdeps/posix/preadv.c: Fix up comment.
3629         * misc/preadv.c: Likewise.
3630         * misc/preadv64.c: Likewise.
3631         * misc/pwritev.c: Likewise.
3632         * misc/pwritev64.c: Likewise.
3633         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3635 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3637         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3639         * shadow/Makefile (tests): Add tst-shadow.
3640         * shadow/tst-shadow.c: New file.
3642         [BZ #9955]
3643         * gshadow/Makefile: New file.
3644         * gshadow/Versions: New file.
3645         * gshadow/fgetsgent.c: New file.
3646         * gshadow/fgetsgent_r.c: New file.
3647         * gshadow/getsgent.c: New file.
3648         * gshadow/getsgent_r.c: New file.
3649         * gshadow/getsgnam.c: New file.
3650         * gshadow/getsgnam_r.c: New file.
3651         * gshadow/gshadow.h: New file.
3652         * gshadow/putsgent.c: New file.
3653         * gshadow/sgetsgent.c: New file.
3654         * gshadow/sgetsgent_r.c: New file.
3655         * gshadow/tst-gshadow.c: New file.
3656         * include/gshadow.h: New file.
3657         * Makeconfig (all-subdirs): Add gshadow.
3658         * Makefile (installed-headers): Add gshadow/gshadow.h.
3659         * nss/Makefile (databases): Add sgrp.
3660         * nss/Versions: Add gshadow functions as private exports.
3661         * nss/nsswitch.conf: Add gshadow entry.
3662         * nss/sgrp-lookup.c: New file.
3663         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3664         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3665         * nss/nss_files/files-sgrp.c: New file.
3666         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3667         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3669 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3671         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3672         * stdio-common/reg-modifier.c: Likewise.
3674 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3676         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3677         is no FPU.
3679 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3681         [BZ #10086]
3682         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3683         headers up to 2.6.30.
3685         * po/ca.po: Update from translation team.
3687 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3689         [BZ #10069]
3690         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3691         an object that uses static TLS if the TLS modid is higher than the
3692         reserve we always allocate.  At least for multi-threaded code.
3694 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3696         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3697         Numerically stable check for valid width.
3699         * locale/programs/locarchive.c (open_archive): Map the entire file
3700         and not just the administrative data.
3701         (add_locale): When we find a hash sum match compare the content
3702         to be sure.
3704         * malloc/malloc.c (malloc_info): Output address space information.
3706 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3708         * malloc/malloc.c (malloc_info): Also output system memory information.
3710         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3711         architectures have preadv/pwritev in 2.6.30.
3713         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3714         * sysdeps/posix/readv.c: Likewise.
3715         Reported by Markus Armbruster <armbru@redhat.com>.
3717         * malloc/hooks.c (top_check): Force hook value into register.
3719 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3721         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3722         calls to _dl_relocate_object.
3724 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3726         [BZ #9957]
3727         * malloc/malloc.c (force_reg): Define.
3728         (sYSMALLOc): Load hook variable into variable
3729         before test and force into register.
3730         (sYSTRIm): Likewise.
3731         (public_mALLOc): Force hook value into register.
3732         (public_fREe): Likewise.
3733         (public_rEALLOc): Likewise.
3734         (public_mEMALIGn): Likewise.
3735         (public_vALLOc): Likewise.
3736         (public_pVALLOc): Likewise.
3737         (public_cALLOc): Likewise.
3738         (__posix_memalign): Likewise.
3739         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3740         before test and force into register.
3741         * malloc/hooks.c (top_check): Likewise.
3742         (public_sET_STATe): Pretty printing.
3744         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3745         in case we only receive one reply in single-request mode.
3747 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3749         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3750         are dlopened in statically linked program even for __LM_ID_CALLER.
3752 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3754         * resolv/res_send.c (send_dg): Don't switch into single-request
3755         mode if we already are in it.
3757 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3759         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3760         are always at least 4 bytes in the returned line.
3762 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3764         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3765         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3766         instead of 8K.  Stop searching in /proc/stat after hitting first
3767         line not starting with cpu.
3768         (next_line): Truncate too long
3769         lines at buffer size * 3/4 instead of pretending there were line
3770         breaks inside of large lines.
3772 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3774         * sysdeps/x86_64/mp_clz_tab.c: New file.
3776 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3777             Ulrich Drepper  <drepper@redhat.com>
3779         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3780         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3781         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3783 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3785         * sysdeps/sh/libc-tls.c: New file.
3787         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3789 2009-04-14  Roland McGrath  <roland@redhat.com>
3791         * elf/elf.h: Add various missing ARM constants, to match binutils.
3793 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3795         Optimizations from GMP.
3796         * sysdeps/x86_64/add_n.S: New file.
3797         * sysdeps/x86_64/addmul_1.S: New file.
3798         * sysdeps/x86_64/lshift.S: New file.
3799         * sysdeps/x86_64/mul_1.S: New file.
3800         * sysdeps/x86_64/rshift.S: New file.
3801         * sysdeps/x86_64/sub_n.S: New file.
3802         * sysdeps/x86_64/submul_1.S: New file.
3804 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3806         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3807         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3808         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3809         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3811 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3813         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3814         preadv/pwritev.
3816 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3818         * sysdeps/x86-64/strrchr.S: New file.
3820 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3822         * stdio-common/printf.h (struct printf_info): Add user element.
3823         New types printf_arginfo_size_function, printf_va_arg_function.
3824         Declare register_printf_specifier, register_printf_modifier,
3825         register_printf_type.
3826         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3827         (union printf_arg): Add pa_user element.
3828         Adjust __printf_arginfo_table type.
3829         Add __printf_va_arg_table, __printf_modifier_table,
3830         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3831         declarations.
3832         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3833         If registered arginfo call failed try normal specifier.
3834         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3835         function.
3836         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3837         * stdio-common/Versions: Export register_printf_modifier,
3838         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3839         * stdio-common/reg-modifier.c: New file.
3840         * stdio-common/reg-type.c: New file.
3841         * stdio-common/reg-printf.c (__register_printf_specifier): New
3842         function.  Mostly the old __register_printf_function function but
3843         uses locking and type of third parameter changed.
3844         (__register_printf_function): Implement using
3845         __register_printf_specifier.
3846         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3847         calls to arginfo functions.  Allocate enough memory for user-defined
3848         types.  Call new va_arg functions to get user-defined types.
3849         Try installed handlers even for existing format specifiers first.
3851 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3853         * sysdeps/x86_64/rawmemchr.S: New file.
3855         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3856         Simplified code and possible copy problem fixed.
3858         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3859         function if it is not defined.  Add some necessary casts.
3860         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3862         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3863         have preadv/pwritev in 2.6.30.
3865 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3867         * malloc/malloc.c (malloc_info): New function.
3868         * malloc/malloc.h: Declare it.
3869         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3871         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3872         to avoid PLT slot.
3874         * malloc/malloc.c (_int_realloc): Add parameter with old block
3875         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3876         Adjust all callers.
3877         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3879 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3881         * sysdeps/x86_64/strchrnul.S: New file.
3883         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3884         depending libcrypt on -lfreebl3.
3886         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3887         preadv/pwritev in 2.6.30.
3889         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3890         instead of __strcasecmp.
3892         * string/stratcliff.c (do_test): Add memchr tests..
3893         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3894         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3895         first read quad word.
3897 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3899         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3900         * string/tst-svc.input: Add new test case.
3901         * string/tst-svc.expect: Adjust.
3902         * string/Makefile: Don't ignore tst-svc error.
3904         * sysdeps/x86_64/memchr.S: New file.
3906         * resolv/resolv.h (RES_SNGLKUP): Define.
3907         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3908         * resolv/res_send.c (send_dg): If we sent two requests at once and
3909         only get one reply before timeout switch to mode where we send the
3910         second request only after the first answer has been received.
3912 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3914         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3915         * sysdeps/x86_64/strchr.S: Likewise.
3917 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3919         * configure.in: We need to test for the compiler earlier.
3921         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3922         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3923         GLIBC_2.10.
3924         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3925         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3926         and pwritev.
3927         * misc/preadv.c: New file.
3928         * misc/preadv64.c: New file.
3929         * misc/pwritev.c: New file.
3930         * misc/pwritev64.c: New file.
3931         * sysdeps/posx/preadv.c: New file.
3932         * sysdeps/posx/preadv64.c: New file.
3933         * sysdeps/posx/pwritev.c: New file.
3934         * sysdeps/posx/pwritev64.c: New file.
3935         * sysdeps/unix/sysv/linux/preadv.c: New file.
3936         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3937         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3938         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3939         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3940         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3942         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3943         compatibility code.
3944         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3946         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3947         __ASSUME_COMPLETE_READV_WRITEV.
3948         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3949         with modern kernels.
3950         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3952         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3953         to free a possible malloced buffer in case of cancellation.
3954         * sysdeps/posix/writev.c: Likewise for write.
3956 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3958         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3960         * configure.in: Recognize --enable-nss-crypt.
3961         * config.make.in: Add nss-crypt entry.
3962         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3963         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3964         and include path for NSS directory to compiler for md5-crypt,
3965         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3966         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3967         function implementation, use NSS.  Introduce wrappers around the
3968         hash function calls.  Little code size optimization.
3969         * crypt/sha256-crypt.c: Likewise.
3970         * crypt/sha512-crypt.c: Likewise.
3971         * scripts/check-local-headers.sh: Ignore nss3 directory.
3973         * configure.in: Rename pic_default to libc_cv_pic_default.
3974         * config.make.in: Likewise.
3976 2009-04-01  Roland McGrath  <roland@redhat.com>
3978         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3979         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3980         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3981         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3982         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3983         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3984         (R_SPARC_NUM): Update.
3985         From Dave Miller <davem@davemloft.net>.
3987 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3989         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3991 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3993         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3994         those which are used.
3995         * elf/dl-addr.c: Likewise.
3996         * elf/dl-caller.c: Likewise.
3997         * elf/dl-fini.c: Likewise.
3998         * elf/dl-iteratephdr.c: Likewise.
3999         * elf/dl-libc.c: Likewise.
4000         * elf/dl-load.c: Likewise.
4001         * elf/dl-support.c: Likewise.
4002         * elf/dl-sym.c: Likewise.
4003         * elf/rtld.c: Likewise.
4004         * sysdeps/generic/ldsodefs.h: Likewise.
4006         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4007         * elf/dl-minimal.c: Likewise.
4008         * elf/dl-misc.c: Likewise.
4009         * elf/rtld.c: Likewise.
4010         * sysdeps/generic/ldsodefs.h: Likewise.
4012 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4014         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4015         Avoid reuse of complex expression.
4017         * po/fr.po: Update from translation team.
4019 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4021         * include/dirent.h: Yet more changes to match sort function type
4022         change.
4023         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4024         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4025         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4027 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4029         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4031 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4033         * nscd/connections.c (restart): Try to preserve the process name
4034         by reading the /proc/self/exe symlink and using the return name.
4035         Patch by Jeff Bastian <jbastian@redhat.com>.
4037 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4039         [BZ #9733]
4040         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4041         if we are not loading a new audit library.
4042         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4043         Only use profiling trampoline for auditing if we are not relocating
4044         an audit library.
4045         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4046         * elf/rtld.c: Likewise.
4047         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4049         * elf/rtld.c (dl_main): Extend help message for --audit option.
4051         [BZ #9759]
4052         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4053         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4054         * dirent/alphasort.c: Adjust implementation to type change.
4055         * dirent/alphasort64.c: Likewise.
4056         * dirent/scandir.c: Likewise.
4057         * dirent/versionsort.c: Likewise.
4058         * dirent/versionsort64.c: Likewise.
4059         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4060         declaration.
4061         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4062         declaration.
4064         [BZ #9880]
4065         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4066         correctly.  Set segleft member in output as required.
4067         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4068         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4070         [BZ #9881]
4071         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4072         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4073         * inet/Makefile (tests): Add tst-inet6_rth.
4074         * inet/tst-inet6_rth.c: New file.
4076         [BZ #5807]
4077         * string/strlen.c (strlen): Fix omission in the expression to test
4078         for NUL bytes.
4080 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4082         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4084         * elf/dl-runtime.c (reloc_offset): Define.
4085         (reloc_index): Define.
4086         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4087         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4088         computing index from reloc_offset.
4089         (_dl_call_pltexit): Likewise.
4090         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4091         the relocation index to _dl_fixup.
4092         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4093         _dl_call_pltexit.
4094         * sysdeps/x86_64/dl-runtime.c: New file.
4096         [BZ #9893]
4097         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4098         alignment of La_x86_64_regs.  Store xmm parameters.
4099         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4101         [BZ #9913]
4102         * string/strverscmp.c (__strverscmp): Fix case of different digits
4103         in fractional part of string.
4104         Patch by Jingyu Liu <jyliu@fortinet.com>.
4105         * string/Makefile (tests): Add tst-svc2.
4106         * string/tst-svc2.c: New file.
4108         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4110         * locale/iso-639.def: Add Min Nan.
4112 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4114         [BZ #9948]
4115         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4117 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4119         * elf/dl-sysdep.c (auxvars): Compress data structure.
4121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4122         STT_GNU_IFUNC handling.
4123         (elf_machine_rela): Likewise.
4125 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4127         * config.h.in (USE_MULTIARCH): Define.
4128         * configure.in: Handle --enable-multi-arch.
4129         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4130         (_dl_fixup_profile): Likewise.
4131         * elf/do-lookup.c (dl_lookup_x): Likewise.
4132         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4133         * elf/elf.h (STT_GNU_IFUNC): Define.
4134         * include/libc-symbols.h (libc_ifunc): Define.
4135         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4136         framework in init-arch.h to get CPUID values.
4137         * sysdeps/x86_64/multiarch/Makefile: New file.
4138         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4139         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4140         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4142         * config.make.in (experimental-malloc): Define.
4143         * configure.in: Handle --enable-experimental-malloc.
4144         * malloc/Makefile: Handle experimental-malloc flag.
4145         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4146         * malloc/arena.c: Likewise.
4147         * malloc/hooks.c: Likewise.
4148         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4150 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4152         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4153         prediction.  A few size optimizations.
4155 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4157         * time/tzset.c: Optimize a bit for size.
4159 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4161         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4162         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4164         * elf/sprof.c: Avoid warning about multi-line comment.
4166 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4168         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4169         DST name.
4170         * time/tst-posixtz.c: Add tests for quoted timezone names.
4172 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4174         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4175         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4176         200809L instead of 200112L.
4177         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4178         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4180         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4181         instead of __quick_exit_funcs to __run_exit_handlers.
4182         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4183         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4184         (__cxa_at_quick_exit): Remove attribute_hidden.
4185         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4186         to __run_exit_handlers.
4187         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4188         attribute_hidden.
4190 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4192         * po/id.po: Update from translation team.
4194 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4197         .machine push; .machine "power6" and .machine pop around mtfsf
4198         insns outside of _ARCH_PWR6 define.
4199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4201         Likewise.
4202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4203         Likewise.
4204         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4205         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4206         relax_fenv_state): Likewise.
4208 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4210         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4211         cxa_at_quick_exit.
4212         (static-only-routines): Add at_quick_exit.
4213         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4214         GLIBC_2.10.
4215         * stdlib/quick_exit.c: New file.
4216         * stdlib/at_quick_exit.c: New file.
4217         * stdlib/cxa_at_quick_exit.c: New file.
4218         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4219         it appropriately.
4220         (__internal_atexit): New function.
4221         (__new_exitfn): Now takes parameter to point to the list to use.
4222         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4223         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4224         (exit): ...here.  Just call __run_exit_handlers appropriately.
4225         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4226         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4227         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4228         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4230         * po/id.po: Update from translation team.
4232 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4234         * po/ru.po: Update from translation team.
4236 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4238         * po/nl.po: Update from translation team.
4240 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4242         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4243         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4244         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4245         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4246         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4247         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4248         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4250         * po/pl.po: Update from translation team.
4252 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4254         [BZ #7083]
4255         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4256         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4257         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4258         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4259         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4260         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4261         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4262         for GLIBC_2.10.
4263         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4264         Add fallocate and fallocate64.
4266         * io/fcntl.h: Pretty printing.
4268 2009-03-02  Richard Guenther  <rguenther@suse.de>
4270         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4271         attribute also for non-C99 inline semantics variant.
4273 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4275         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4276         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4277         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4278         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4280         Likewise.
4281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4282         Likewise.
4284 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4286         * po/cs.po: Update from translation team.
4288 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4290         * po/bg.po: Update from translation team.
4291         * po/sv.po: Likewise.
4292         * po/fi.po: Likewise.
4293         * po/vi.po: Likewise.
4295 2009-02-27  Roland McGrath  <roland@redhat.com>
4297         * Makeconfig (%.v.i): Depend on Makeconfig.
4298         Exclude % lines from initial #-comment removal.
4300 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4302         * po/ko.po: Update from translation team.
4304 2009-02-26  Roland McGrath  <roland@redhat.com>
4306         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4307         avoids unused warning.
4309 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4310             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4312         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4313         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4314         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4315         and asm/user.h.  Include asm/ptrace.h.
4316         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4317         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4318         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4319         Undefine.
4320         (start_thread): Don't undefine.
4321         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4322         Define.
4324 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4326         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4327         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4328         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4329         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4330         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4331         200112L to 200809L.
4332         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4333         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4334         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4335         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4336         _SC_THREAD_ROBUST_PRIO_PROTECT.
4337         * posix/unistd.h: fexecve is in POSIX 2008.
4338         * time/time.h: strftime_l is in POSIX 2008.
4339         * io/sys/stat.h: futimens is in POSIX 2008.
4340         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4341         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4342         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4343         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4344         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4345         open_memstream, and vdprintf are in POSIX 2008.
4347 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4349         * include/features.h: Define macros for XPG7/POSIX 2008.
4350         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4351         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4352         POSIX 2008.
4353         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4354         * locale/xlocale.h: Define locale_t type.
4355         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4356         in POSIX 2008.  Don't define locale_t here.
4357         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4358         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4359         UTIME_OMIT only with __USE_ATFILE.
4360         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4361         * stdio-common/psiginfo.c: New file.
4362         * stdio-common/psiginfo-data.h: New file.
4363         * stdio-common/psiginfo-define.h: New file.
4364         * stdio-common/Makefile (routines): Add psiginfo.
4365         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4366         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4367         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4368         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4369         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4370         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4371         * io/sys/stat.h: Move mknodat definition into same conditional as
4372         mknod.
4373         * time/sys/time.h: futimesat is not among the functions accepted
4374         into the POSIX standard.
4376         * include/features.h: If no feature selection given and we select
4377         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4378         * posix/Versions: Export __posix_getopt.
4379         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4380         Use it to alternatively initialize __posixly_correct.
4381         (_getopt_internal_r): Take addition parameter.  Pass on to
4382         _getopt_initialize.
4383         (_getopt_internal): Take addition parameter.  Pass on to
4384         _getopt_internal_r.
4385         (getopt): Pass additional zero to _getopt_internal.
4386         (__posix_getopt): New function.
4387         * posix/getopt.h: Add redirection for getopt.
4388         * posix/getopt1.c (getopt_long): Pass additional zero to
4389         _getopt_internal.
4390         (getopt_long_only): Likewise.
4391         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4392         (_getopt_long_only_r): Likewise.
4393         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4394         _getopt_internal_r.
4396 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4398         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4399         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4400         * sysdeps/posix/sysconf.c (__sysconf): Handle
4401         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4402         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4404 2009-02-24  Roland McGrath  <roland@redhat.com>
4406         [BZ #9895]
4407         * README.template: Reworded not to use substituted version number.
4408         Renamed to ...
4409         * README: ... here (no longer generated).
4410         * Makefile (README): Target removed.
4412 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4414         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4415         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4416         instead.
4418         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4420         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4422 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4424         * po/bg.po: Update from translation team.
4426 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4428         * stdlib/monetary.h: Uglify function parameter names.
4429         * sunrpc/rpc/pmap_clnt.h: Likewise.
4430         * sunrpc/rpc/svc.h: Likewise.
4431         * sunrpc/rpc/xdr.h: Likewise.
4432         * sunrpc/rpc/clnt.h: Likewise.
4433         * resolv/netdb.h: Likewise.
4434         * resolv/arpa/nameser.h: Likewise.
4435         * resolv/resolv.h: Likewise.
4436         * argp/argp.h: Likewise.
4437         * locale/langinfo.h: Likewise.
4438         * io/sys/stat.h: Likewise.
4439         * posix/spawn.h: Likewise.
4440         * nis/rpcsvc/nislib.h: Likewise.
4441         * malloc/obstack.h: Likewise.
4442         * sysdeps/ia64/bits/link.h: Likewise.
4443         * sysdeps/i386/bits/link.h: Likewise.
4444         * sysdeps/s390/bits/link.h: Likewise.
4445         * sysdeps/powerpc/bits/link.h: Likewise.
4446         * sysdeps/x86_64/bits/link.h: Likewise.
4447         * sysdeps/sparc/bits/link.h: Likewise.
4448         * sysdeps/sh/bits/link.h: Likewise.
4449         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4451         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4452         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4454 2008-12-01  Fredrik Unger  <fred@tree.se>
4456         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4457         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4458         _FP_UNPACK_RAW_2, fix up first argument.
4460 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4462         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4463         (GET_NPROCS_PARSER): Change parameters and use next_line.
4464         (__get_nprocs): Rewrite to not use stdio routines.
4465         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4466         Change parameters and use next_line.
4468 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4470         [BZ #5381]
4471         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4472         Change mempool_alloc prototype.
4473         * nscd/mem.c (gc): Don't handle mem_in_flight.
4474         (mempool_alloc): Third parameter now only indicates whether this is the
4475         first call (to allocate data) or not.  If it is, get db rdlock.
4476         Release it on error.  Don't handle mem_in_flight.
4477         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4478         Adjust third parameter of mempool_alloc calls.
4479         Nothing to do here in case mempool_alloc fails.
4480         Avoid local variable shadowing parameter.  No need to get db rdlock
4481         before calling cache_add.
4482         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4483         no mem_in_flight array anymore.
4484         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4485         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4486         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4487         in case mempool_alloc fails. No need to get db rdlock before calling
4488         cache_add.
4489         * nscd/hstcache.c (cache_addhst): Likewise.
4490         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4491         * nscd/servicescache.c (cache_addserv): Likewise.
4492         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4494 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4496         * po/lt.po: Update from translation team.
4498 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4500         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4501         defined, allow additional data to be added using the optional
4502         MORE_ELF_HEADER_DATA macro.
4503         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4504         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4506 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4508         * include/atomic.h: Define catomic_and if not already defined.
4509         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4510         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4512 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4514         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4515         Change all callers.
4516         (_int_realloc): Likewise.  Third argument is now padded size
4517         All _int_* functions are now static.
4519         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4520         * malloc/arena.c: Likewise.
4521         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4522         functions.
4524         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4525         easily.
4527         * malloc/malloc.c: Add branch prediction for use of the hooks.
4529         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4531 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4533         [BZ #7095]
4534         * bits/confname.h: Add SUSv7 macros for getconf environments.
4535         * bits/environments.h: Likewise.
4536         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4537         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4538         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4539         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4540         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4541         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4542         * posix/getconf.c: Likewise.
4543         * posix/sysconf.c: Likewise.
4544         * sysdeps/posix/sysconf.c: Likewise.
4545         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4546         environments.
4548 2009-01-16  Petr Baudis  <pasky@suse.cz>
4550         [BZ #9753]
4551         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4552         even if we currently have zero nscount.
4554 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4556         [BZ #9781]
4557         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4558         the input line is too long.
4560         * po/Makefile (libc.pot): Add f_print as function taking c-format
4561         parameter.
4563         * debug/xtrace.sh: Unify translatable messages.
4564         * elf/ldd.bash.in: Likewise.
4565         * elf/sprof.c: Likewise.
4566         * locale/programs/locale.c: Likewise.
4567         * malloc/memusage.sh: Likewise.
4568         * nss/getent.c: Likewise.
4570 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4572         * debug/pcprofiledump.c (print_version,
4573         argp_program_version_hook): New function.
4574         * elf/ldconfig.c (more_help): New function.
4575         (argp): Use it.
4576         * elf/sln.c (usage): New function.
4577         (main): Support --help and --version.
4578         * malloc/memusagestat.c (print_version): New function.
4579         (argp_program_version_hook): New variable.
4580         * nscd/nscd.c (more_help): New function.
4581         (argp): Use it.
4582         * posix/getconf.c (main): Send --version output to stdout.
4583         Support --help.
4584         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4585         arguments.  All callers changed.
4586         (print_version): New function.
4587         (parseargs): Support --help and --version.
4588         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4589         changed.
4590         (print_version): New function.
4591         (main): Use getopt_long.  Support --help and --version.
4592         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4593         --version.
4595 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4597         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4598         (update_data): Fix handling of wrapping back
4599         to the beginning of the buffer.
4601         [BZ #9823]
4602         * stdio-common/psignal.c (psignal): Fix test for empty string.
4604 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4606         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4607         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4608         move _null_auth to .rodata.
4610         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4611         value of 24.
4613         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4615         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4616         today than when the original code was written.  Use larger
4617         buffers.  This also makes it unnecessary to have stat information,
4618         if this causes extra efforts.
4619         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4620         __alloc_dir.
4622 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4624         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4625         is set.
4626         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4627         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4628         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4629         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4630         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4631         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4633 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4635         * po/ru.po: Update from translation team.
4637 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4639         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4640         Add _tid slot to maintain consistency with kernel.
4642 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4644         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4645         incomplete characters at end of input buffer.
4646         * libio/Makefile (tests): Add tst-fgetwc.
4647         * libio/tst-fgetwc.c: New file.
4648         * libio/tst-fgetwc.input: New file.
4650 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4652         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4654 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4656         [BZ #9793]
4657         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4658         *OUTBUFSTART unless the whole output fit into the buffer.
4659         * iconv/Makefile (tests): Add tst-iconv4.
4660         * iconv/tst-iconv4.c: New file.
4662 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4664         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4665         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4667 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4669         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4670         newer linker scripts.
4672 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4674         [BZ #7040]
4675         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4676         inotify_rm_watch should have type int.
4678 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4680         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4681         Make aligned_restore_vmx a local symbol.
4682         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4683         Likewise.
4685 2009-01-30  Andreas Jaeger  <aj@suse.de>
4687         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4688         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4689         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4690         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4691         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4692         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4693         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4695 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4697         [BZ #9726]
4698         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4699         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4701 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4703         [BZ #9726]
4704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4705         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4707         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4709 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4711         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4712         memcpy instead of memcmp.
4713         (_dl_setup_pointer_guard): Likewise.
4715 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4717         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4718         manipulated brk, use malloc_printerr.
4719         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4720         requests.
4722 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4724         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4725         rindex): For C++ add inlines so that they can be recognized as
4726         builtins.
4727         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4729 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4730             Jakub Jelinek  <jakub@redhat.com>
4732         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4733         * wcsmbs/wchar.h: Likewise.
4735 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4737         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4738         (stackinfo_sub_sp): Define.
4740 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4742         [BZ #9750]
4743         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4744         * include/alloca.h (alloca_account): Define.
4745         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4746         (stackinfo_sub_sp): Define.
4748         * nscd/connections.c (nscd_init): If database file access fails
4749         check whether this is due to permission problems and bail in that
4750         case.
4752         [BZ #9741]
4753         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4754         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4756 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4758         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4759         Add "t" to clobber list.
4760         (INTERNAL_SYSCALL_NCS): Likewise.
4762 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4764         * nss/getent.c (print_networks): Don't print comma between aliases.
4766 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4768         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4770         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4771         the hash table.
4772         * misc/Makefile (tests): Add bug-hsearch1.
4773         * misc/bug-hsearch1.c: New file.
4775 2009-01-22  Roland McGrath  <roland@redhat.com>
4777         * Makeconfig (%.v.i): Strip trailing # comments,
4778         not only whole-line comments.
4780 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4782         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4783         one parameter.  If non-NULL use it to initialize return value.
4784         (_dl_setup_pointer_guard): New function.
4785         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4786         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4787         * elf/rtld.c (security_init): Pass _dl_random to
4788         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4789         pointer_chk_guard.
4790         * elf/dl-sysdep.c (_dl_random): New variable.
4791         (_dl_sysdep_start): Handle AT_RANDOM.
4792         (_dl_show_auxv): Likewise.
4793         * elf/dl-support.c (_dl_random): New variable.
4794         (_dl_aux_init): Handle AT_RANDOM.
4795         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4796         to _dl_setup_stack_chk_guard.
4798         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4800 2009-01-10  Roland McGrath  <roland@redhat.com>
4802         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4804 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4806         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4808         [BZ #9706]
4809         * nss/nss_files/files-parse.c (strtou32): New function.
4810         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4811         across 32-bit and 64-bit platforms.
4812         (INT_FIELD_MAYBE_NULL): Likewise.
4814 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4816         [BZ #9720]
4817         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4818         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4819         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4820         Likewise.
4822 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4824         [BZ #697]
4825         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4826         being NULL also if there are no backreferences.
4827         * posix/rxspencer/tests: Add testcases.
4829 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4831         [BZ #9697]
4832         * posix/bug-regex17.c: Add testcases.
4833         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4834         handling.
4836 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4838         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4839         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4840         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4841         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4842         for elf subdir.
4843         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4844         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4845         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4846         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4847         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4848         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4850 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4852         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4853         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4854         re_string_skip_chars, re_string_reconstruct): Likewise.
4855         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4857 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4859         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4860         adjust the buffer alignment.
4862 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4864         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4865         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4866         net/route.h.
4868         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4869         flavor to description only when flavor is not NULL.
4871         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4872         mutex after SIGIO/SIGURG lookup loop.
4874 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4876         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4878 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4880         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4881         handling.
4883 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4885         * sysdeps/unix/sysv/linux/kernel-features.h
4886         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4888         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4889         if no output is written.
4891         * version.h: Bump to 2.10 development.
4893         * posix/getconf.c: Update copyright year.
4894         * nss/getent.c: Likewise.
4895         * iconv/iconvconfig.c: Likewise.
4896         * iconv/iconv_prog.c: Likewise.
4897         * elf/ldconfig.c: Likewise.
4898         * catgets/gencat.c: Likewise.
4899         * csu/version.c: Likewise.
4900         * elf/ldd.bash.in: Likewise.
4901         * elf/sprof.c (print_version): Likewise.
4902         * locale/programs/locale.c: Likewise.
4903         * locale/programs/localedef.c: Likewise.
4904         * nscd/nscd.c (print_version): Likewise.
4905         * debug/xtrace.sh: Likewise.
4906         * malloc/memusage.sh: Likewise.
4907         * malloc/mtrace.pl: Likewise.
4908         * debug/catchsegv.sh: Likewise.
4910 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4912         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4913         script.
4915 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4917         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4918         gethostbyname4_r function call succeeded, just leave the loop.
4920         [BZ #9694]
4921         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4922         very end.
4923         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4924         * wctype/Makefile (tests): Add bug-wctypeh.
4925         * wctype/bug-wctypeh.c: New file.
4927         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4928         LOCALDOMAIN is defined.
4929         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4931         * sysdeps/x86_64/bits/select.h: New file.
4933         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4935 2008-12-21  Bruno Haible  <bruno@clisp.org>
4937         [BZ #9677]
4938         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4939         if no output is written.
4941 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4943         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4944         libc internal symbol __dup2 to avoid access through the PLT.
4946 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4948         [BZ #6545]
4949         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4950         available only for __USE_GNU.
4952         * inet/Makefile (tests): Add tst-getni2.
4953         * inet/tst-getni2.c: New file.
4955         [BZ #7080]
4956         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4957         NULL when NI_NAMEREQD is set.
4958         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4959         * inet/Makefile (tests): Add tst-getni1.
4960         * inet/tst-getni1.c: New file.
4962 2008-12-03  Petr Baudis  <pasky@suse.cz>
4964         [BZ #7067]
4965         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4966         instead of prune_lock.
4967         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4968         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4970 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4972         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4973         use.
4975         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4976         handling.
4978         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4979         after reading name server list.
4981         [BZ #7058]
4982         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4983         handling for host name aliases.
4985 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4987         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4988         instead of doing things manually.
4990 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4992         * posix/regex_internal.h (build_wcs_upper_buffer):
4993         Return type is reg_error_t.
4995 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4997         * posix/globtest.sh: Use mktemp to create temporary file and
4998         directory.
5000         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5001         sets correctly.
5002         (__CPU_CLR_S): Likewise.
5003         (__CPU_ISSET_S): Likewise.
5005 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5006             Ulrich Drepper  <drepper@redhat.com>
5008         * scripts/firstversion.awk: Use custom comparison function to compare
5009         version numbers.
5010         * scripts/versions.awk: Use sort invocation which can handle
5011         multi-digit sub-version numbers.
5013 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5015         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5016         * locale/iso-639.def: Add Chhattisgarhi entry.
5018 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5020         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5021         ESRCH return value.
5022         (_nss_dns_gethostbyname4_r): Likewise.
5023         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5024         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5025         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5026         the no_data variable.
5028         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5029         information at the correct index.
5031         * socket/sys/socket.h: Declare accept4.
5032         * socket/accept4.c: New file.
5033         * sysdeps/unix/sysv/linux/accept4.c: New file.
5034         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5035         * socket/Makefile (routines): Add accept4.
5036         * socket/Versions: Export accept4 with version GLIBC_2.10.
5037         * socket/paccept.c: Removed.
5038         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5039         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5040         * Versions.def: Define GLIBC_2.10 for libc.
5041         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5043         * nscd/connections.c: Use accept4.
5045         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5047 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5049         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5050         flag already set.
5052         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5053         not exist.
5054         * stdlib/Makefile (tests): Add tst-unsetenv1.
5055         * stdlib/tst-unsetenv1.c: New file.
5057 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5059         * login/utmp_file.c (file_writable): New variable.
5060         (setutent_file): Don't try to open file for writing.
5061         (pututline_file): Before writing, make descriptor writable if
5062         necessary.
5064 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5066         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5067         to IPv4 or IPv6 if an interface has been found.
5069 2008-11-26  Roland McGrath  <roland@redhat.com>
5071         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5072         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5074         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5075         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5076         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5078         * elf/elf.h (NT_386_IOPERM): New macro.
5079         (NT_PPC_VSX): New macro.
5081 2008-11-25  Roland McGrath  <roland@redhat.com>
5083         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5084         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5085         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5086         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5087         Subdirectories moved to ports repository.
5088         * configure.in (base_machine): Remove alpha case.
5090 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5092         * sysdeps/mach/strerror_l.c: New file.
5094 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5096         [BZ #6411]
5097         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5098         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5099         magic numbers.
5100         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5101         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5102         (relax_fenv_state): Same as above.
5103         (FPSCR_29): Reserve bit in ISA 2.05.
5104         (FPSCR_NI): Provide define for compat.
5105         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5106         magic numbers.
5107         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5108         magic numbers.
5109         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5110         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5111         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5112         access to hwcap to account for hwcap size increase to uint64_t.
5113         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5114         Likewise.
5115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5116         (*setcontext): Likewise.
5117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5118         New file.
5119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5120         New file.
5121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5122         (*setcontext): dynamically select mtfsf insn based on
5123         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5124         increase to uint64_t.
5125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5126         (*swapcontext): dynamically select mtfsf insn based on
5127         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5128         increase to uint64_t.
5129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5130         New file.
5131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5132         New file.
5133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5134         (*setcontext): dynamically select mtfsf insn based on
5135         PPC_FEATURE_HAS_DFP.
5136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5137         (*swapcontext): dynamically select mtfsf insn based on
5138         PPC_FEATURE_HAS_DFP.
5140 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5142         * version.h: Bump for 2.9 release.
5143         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5145         [BZ #7029]
5146         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5147         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5148         all the rounding.
5150 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5152         [BZ #7009]
5153         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5154         unknown request types for now.
5156 2008-11-11  Roland McGrath  <roland@redhat.com>
5158         * sysdeps/x86_64/configure: New file.
5160         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5161         * configure: Regenerated.
5163 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5165         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5166         correct instruction to remove the stack frame.
5168 2008-11-03  Michael Matz  <matz@suse.de>
5170         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5171         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5173 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5175         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5176         Remove.
5178         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5179         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5180         of the thread variable instead of void *.
5181         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5182         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5183         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5184         __libc_tsd_define arguments.
5185         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5186         __libc_tsd_address arguments.  Remove union hack.
5187         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5188         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5189         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5190         Adjust __libc_tsd_{set,get} arguments.
5191         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5192         __libc_tsd_define arguments.
5193         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5194         arguments.
5195         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5196         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5197         (LOCALE): Adjust __libc_tsd_define arguments.
5198         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5199         arguments.
5200         (LOCALE): Adjust __libc_tsd_define arguments.
5201         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5202         arguments.
5203         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5204         arguments.
5206 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5208         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5209         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5211 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5213         [BZ #6966]
5214         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5216 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5217             Ulrich Drepper  <drepper@redhat.com>
5219         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5220         definition for GCC 3.1 and later.
5222 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5224         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5225         refetch dtv, as it might have changed.
5226         * elf/Makefile: Add rules to build and run tst-tls18.
5227         * elf/tst-tls18.c: New test.
5228         * elf/tst-tlsmod18a.c: New file.
5230 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5232         [BZ #6875]
5233         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5235 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5237         [BZ #6867]
5238         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5240         [BZ #6919]
5241         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5242         Fix length of copy operation.
5244 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5246         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5247         and fix its calling convention.
5249 2008-10-07  Andreas Schwab  <schwab@suse.de>
5251         [BZ #6942]
5252         * resolv/res_send.c (send_vc): Fix last change.
5253         (send_dg): Align here as well.
5255 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5257         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5258         return value in case rlimit is RLIM_INFINITY.
5260         [BZ #6947]
5261         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5262         for UL_SETFSIZE.
5263         * resource/Makefile (tests): Add bug-ulimit1.
5264         * resource/bug-ulimit1.c: New file.
5266         [BZ #6974]
5267         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5268         without dot.  Properly terminate the string with a null byte.
5269         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5271         [BZ #6980]
5272         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5273         negative sizees.
5274         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5275         negative __size.
5277         [BZ #6995]
5278         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5280 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5282         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5283         abort if there is no initgroups_dyn function.
5285         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5286         result if any of the queries really provided an answer.
5288 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5290         * po/lt.po: Update from translation team.
5292 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5294         * po/id.po: Update from translation team.
5296 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5298         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5299         Fix tests for existence of second reply.
5301 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5303         * po/id.po: New file.
5304         Contributed by the Indonesian translation team.
5306 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5308         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5309         initialization.
5311 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5313         * elf/Makefile: Add rules to build and run tst-tls17.
5314         * elf/tst-tls17.c: New test.
5315         * elf/tst-tlsmod17a.c: New file.
5316         * elf/tst-tlsmod17b.c: Likewise.
5318 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5320         * stdlib/divmod_1.c: Use correct type for dummy variable.
5321         * stdlib/mod_1.c: Likewise.
5323 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5325         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5327 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5329         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5330         __nonnull order for C++.
5331         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5332         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5334 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5336         * stdlib/longlong.h: Update from GCC.
5338 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5339             David S. Miller  <davem@davemloft.net>
5341         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5342         make sure any registers used with 64-bit 'branch-on-register'
5343         instructions have their top 32-bits clear.
5344         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5345         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5347 2008-09-18  Andreas Schwab  <schwab@suse.de>
5349         [BZ #6942]
5350         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5351         Properly handle partial reads.
5353 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5355         * elf/elf.h (STO_MIPS_PLT): New.
5356         (R_MIPS_COPY): New.
5357         (R_MIPS_JUMP_SLOT): New.
5358         (R_MIPS_NUM): Redefine to 128.
5359         (DT_MIPS_PLTGOT): New.
5360         (DT_MIPS_RWPLT): New.
5361         (DT_MIPS_NUM): Redefine to 0x35.
5363 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5365         * timezone/africa: Update from tzdata2008f.
5366         * timezone/asia: Likewise.
5367         * timezone/australasia: Likewise.
5368         * timezone/europe: Likewise.
5369         * timezone/leapseconds: Likewise.
5370         * timezone/northamerica: Likewise.
5371         * timezone/southamerica: Likewise.
5372         * timezone/zone.tab: Likewise.
5374 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5376         * nscd/connections.c: Disable use of paccept for now.
5378 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5380         * socket/Versions: Remove paccept export for GLIBC_2.9.
5381         * socket/Makefile (routines): Remove paccept.
5382         * socket/sys/socket.h: Remove paccept declaration.
5384         * po/sv.po: Update from translation team.
5386 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5388         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5389         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5391 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5393         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5394         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5396 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5398         * sunrpc/rpc/svc.h: Declare svcfd_create.
5399         Patch by Michael Solberg <msolberg@redhat.com>.
5401 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5402             Ulrich Drepper  <drepper@redhat.com>
5404         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5405         _int_valloc fails.
5406         (public_pVALLOc): Likewise.
5408 2008-09-02  Andreas Jaeger  <aj@suse.de>
5410         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5411         commit.
5413 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5415         [BZ #6860]
5416         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5418 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5420         * Makefile (check-data): Check data directory in add-ons.
5421         * elf/Makefile (check-data): Likewise.
5423 2008-08-18  Roland McGrath  <roland@redhat.com>
5425         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5426         * configure: Regenerated.
5427         * config.make.in (cflags-cpu): New substituted variable.
5428         (with-cpu): Variable removed.
5429         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5431 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5433         [BZ #6845]
5434         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5435         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5436         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5437         redundant.  Functions which call floating point assembler operations
5438         should go into a sysdeps powerpc/fpu directory.
5440 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5442         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5443         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5445 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5447         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5449         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5450         change related to AT_EXECFN.  We cannot use that string.
5451         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5452         _dl_execfn member.
5453         * elf/dl-support.c: Remove _dl_execfn variable.
5454         (_dl_aux_init): Remove handling of AT_EXECFN.
5455         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5456         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5458 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5460         [BZ #6544]
5461         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5462         byte gets added to writes and seeks from the end use the length of
5463         the buffer and not the currently terminating NUL byte.
5465         [BZ #6634]
5466         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5467         Set to true if locking failed.
5468         (getutid_r_file): Adjust caller.
5469         (pututline_file): Likewise.  Return NULL in this case.
5470         Patch mostly by halesh.s@gmail.com.
5472 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5474         [BZ #6589]
5475         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5476         Define.
5477         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5479 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5481         [BZ #6839]
5482         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5483         macro since it is now available in elf/dynamic-link.h.
5485 2008-08-12  Roland McGrath  <roland@frob.com>
5487         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5488         in case used outside of libc.
5489         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5491 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5493         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5494         directly instead of going through dn_comp.
5496 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5498         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5499         Fix asm constraints.
5501 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5503         [BZ #6790]
5504         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5505         (IPV6_PMTUDISC_PROBE): Likewise.
5507 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5509         [BZ #6791]
5510         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5512 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5513             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5515         [BZ #6817]
5516         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5517         Added the members 'vsx' and 'arch_2_06'.
5518         (_dl_powerpc_platforms): Add the member 'power7'.
5519         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5520         to reflect the changes required by VSX and ISA 2.06.
5521         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5522         'power7'.
5523         Defined PPC_PLATFORM_POWER7.
5524         (_dl_string_platform): Add support for POWER7.
5525         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5526         capability and ISA 2.06.
5528 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5530         [BZ #6824]
5531         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5532         macro to detect use of 128 bit long double.
5533         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5535 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5537         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5539         [BZ #5794]
5540         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5541         parameters.
5542         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5543         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5545 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5547         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5548         guaranteed to be large enough to read inotify event.  Ignore
5549         EAGAIN error.  Better error message.  Add branch predicition.
5550         (main_loop_epoll): Likewise.
5552 2008-08-02  Roland McGrath  <roland@frob.com>
5554         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5555         Add memory clobbers.
5557 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5559         * manual/arith.texi: Avoid @strong{Note:}.
5560         * manual/creature.texi: Likewise.
5561         * manual/filesys.texi: Likewise.
5562         * manual/math.texi: Likewise.
5563         * manual/memory.texi: Likewise.
5564         * manual/resource.texi: Likewise.
5565         * manual/syslog.texi: Likewise.
5566         * manual/time.texi: Likewise.
5568         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5569         to prevent warning.
5571 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5573         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5574         new epoll_create1 interface.
5575         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5576         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5577         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5579         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5580         (NS_GET32): Likewise.
5582         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5583         syscalls, too.
5585         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5586         use the AT_EXECFN value if it is no absolute path.
5587         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5588         __ASSUME_AT_EXECFN.
5590         * Versions.def: Add GLIBC_2.9 to libresolv.
5591         * include/resolv.h: Remove hidden proto declarations for __ns_*
5592         functions.  Add them for __dn_count_labels and __p_secstodate.
5593         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5594         Define ns_msg_getflags macro here.
5595         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5596         and __p_secstodate.
5597         * resolv/Versions: Export functions from <arpa/nameser.h> from
5598         libresolv in version GLIBC_2.9.
5599         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5600         hidden definitions.
5601         * resolv/ns_netint.c: Likewise.
5602         * resolv/ns_parse.c: Likewise.
5603         * resolv/ns_print.c: Likewise.
5604         * resolv/ns_samedomain.c: Likewise.
5605         * resolv/ns_ttl.c: Likewise.
5606         * resolv/arpa/nameser_compat.h: Likewise.
5607         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5608         function calls.
5609         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5610         instead of ns_get16.
5611         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5612         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5613         (gaih_getanswer_slice): Likewise.
5614         * resolv/Makefile (libresolv-routines): Add ns_date.
5615         * resolv/ns_date.c: New file.
5617         * elf/Makefile (check-localplt.out): Also check libresolv and
5618         libcrypt.
5620 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5622         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5623         __ASSUME_O_CLOEXEC.
5625 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5627         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5628         buffer passed to NSS functions.
5630         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5632         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5633         Define.
5635         * misc/syslog.c (openlog_internal): Fix compile problem.
5637 2008-07-28  Roland McGrath  <roland@redhat.com>
5639         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5641 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5643         * io/ftw.c (add_object): Remove inline to avoid warning.
5645         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5647         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5648         Use it instead of locally defined resplen2 variable.
5649         (res_nsend): Adjust for __libc_res_nsend interface change.
5650         (send_vc): Initialize *resplen2 if necessary.  Read length of
5651         package into an appropriately aligned variable.  Store converted length
5652         in new variable and use it appropriately.
5653         Add branch prediction help.
5654         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5655         and pass it on to __libc_res_nsend.  Adjust all callers.
5656         (__libc_res_nsearch): Likewise.
5657         (__libc_res_nqeurydomain): Likewise.
5658         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5659         change.
5660         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5661         Define resplen2 variable and pass it to __libc_res_nsearch and then
5662         to gaih_getanswer.
5663         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5664         Add branch prediction.
5665         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5666         (gaih_getanswer): Don't decode second slice if first one failed due
5667         to a too small buffer.  Don't let not found status of second
5668         decoder shadow results of the first.
5669         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5670         and __libc_res_nquery interface changes
5671         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5672         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5673         __libc_res_nsearch, and __libc_res_nsend.
5674         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5675         change.
5676         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5677         __libc_res_nsearch interface changes.
5679 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5681         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5683         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5684         file descriptors with close-on-exec set.
5685         (exec_comm_child): Fix the case where the write end of the pipe is
5686         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5688         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5689         * io/pipe2.c: Likewise.
5690         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5691         instead of __ASSUME_PACCEPT.
5692         * include/unistd.h: Declare __have_pipe2.
5693         * libio/iopopen.c: Implement "e" flag.
5694         * libio/Makefile (tests): Add tst-popen1.
5695         * libio/tst-popen1.c: New file.
5697         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5698         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5700 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5702         [BZ #6771]
5703         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5704         success call of _IO_SEEKOFF or calls which failed because the
5705         descriptor is for a pipe.
5707         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5708         magic number.
5710         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5712         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5713         F_SETFD use if we know fopen set the flag.
5715         * login/utmp_file.c (setutent_file): Minor optimization in case
5716         O_CLOEXEC is available.
5718 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5720         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5721         * elf/Makefile: Use pie-ccflag variable.
5722         * nscd/Makefile: Likewise.
5723         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5725 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5727         [BZ #6724]
5728         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5729         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5730         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5731         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5732         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5733         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5734         utmp32, utmpx32 and login32.
5735         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5736         versions of struct utmp functions to libc and libutil.
5737         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5738         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5739         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5740         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5741         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5742         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5743         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5744         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5745         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5746         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5747         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5748         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5749         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5750         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5751         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5752         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5753         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5754         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5755         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5756         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5757         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5758         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5760 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5762         * scripts/gen-as-const.awk: Generate more widely usable code by
5763         using 64-bit arithmetic.
5765         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5766         the same treatment as narrow output code in last patch.
5768         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5770         [BZ #6763]
5771         * elf/dl-load.c (local_strdup): Remove inline.
5772         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5773         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5774         part of the object.
5776         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5778 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5780         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5781         the new syscalls, too.
5783         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5784         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5786         [BZ #6698]
5787         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5788         parameter for end of buffer.  If temporary copy is too large use
5789         malloc.
5790         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5791         interface change.
5792         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5793         string rewrite when allocating buffer.
5795         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5796         syscalls, too.
5798         * nscd/connections.c (nscd_init): Clean up fcntl call.
5800         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5801         SOCK_NONBLOCK if possible.
5803         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5804         SOCK_CLOEXEC if available.
5806         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5807         __libc_clntudp_bufcreate_internal.
5808         * include/sys/socket.h: Declare __have_sock_cloexec.
5809         * socket/Makefile (aux): Add have_sock_cloexec.
5810         * socket/have_sock_cloexec.c: New file.
5811         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5812         __libc_clntudp_bufcreate.
5813         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5814         which takes an additional parameter.  Create socket with non-blocking
5815         mode and close-on-exec flag set, if wanted.
5816         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5817         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5818         instead of clntudp_create.  The socket has already the close-on-exec
5819         flag set if SOCK_CLOEXEC is defined.
5821 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5823         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5824         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5825         appropriate.
5826         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5827         non-blocking mode by using socket, paccept, and inotify_init1.
5829         * Versions.def (glibc): Add GLIBC_2.9.
5830         * io/Makefile (routines): Add dup3 and pipe2.
5831         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5832         * io/dup3.c: New file.
5833         * io/pipe2.c: New file.
5834         * posix/unistd.h: Declare dup3 and pipe2.
5835         * socket/Makefile (routines): Add paccept.
5836         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5837         * socket/paccept.c: New file.
5838         * socket/sys/socket.h: Declare paccept.
5839         * sysdeps/unix/syscalls.list: Add entry for dup3.
5840         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5841         epoll_create2 and inotify_init1.
5842         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5843         * sysdeps/unix/sysv/linux/paccept.c: New file.
5844         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5845         possible.
5846         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5847         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5848         inotify_init1, and pipe2 entries.
5849         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5850         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5851         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5852         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5853         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5854         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5855         SOCK_NONBLOCK.
5856         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5857         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5858         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5859         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5860         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5861         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5862         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5863         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5864         EPOLL_NONBLOCK.  Declare epoll_create2.
5865         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5866         EFD_NONBLOCK.
5867         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5868         IN_NONBLOCK.  Declare inotify_init1.
5869         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5870         SFD_NONBLOCK.
5871         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5872         TFD_NONBLOCK.
5874         * elf/elf.h: Define AT_EXECFN.
5875         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5876         LD_ORIGIN_PATH.
5877         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5878         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5879         if __ASSUME_AT_EXECFN is defined.
5880         (_dl_aux_init): Handle AT_EXECFN.
5881         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5882         for 2.6.27 and up.
5883         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5884         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5885         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5886         _dl_execfn if available and avoid compatibility code if
5887         __ASSUME_AT_EXECFN is defined.
5889         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5890         _dl_discover_osversion only for older kernels.
5892 2008-07-22  Roland McGrath  <roland@frob.com>
5894         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5896 2008-07-21  Roland McGrath  <roland@frob.com>
5898         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5899         returned too much data out of line.
5901 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5903         * locale/setlocale.c (setname): Remove inline to avoid compiler
5904         warning.
5906         [BZ #6712]
5907         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5909 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5911         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5912         doesn't manage to write anything, fail.
5914         * malloc/hooks.c (__malloc_check_init): Remove printf.
5916 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5918         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5920 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5922         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5923         from inotify.
5924         (main_loop_epoll): Likewise.
5926 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5928         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5930         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5931         if DEBUG is defined.
5933         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5934         query.  Adjust buffer size computation for padding.
5936 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5938         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5939         * stdio-common/tst-setvbuf1.c: New file.
5940         * stdio-common/tst-setvbuf1.expect: New file.
5942         [BZ #6719]
5943         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5944         when selecting fully-buffered stream.
5945         Patch by Wang Xin <wxinee@gmail.com>.
5947 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5949         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5950         (__open_2): New function.
5951         (__open64_2): New alias to __open_2.
5952         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5953         (__openat_2): New function.
5954         (__openat64_2): New alias to __openat_2.
5956 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5958         [BZ #6723]
5959         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5961 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5963         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5964         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5965         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5966         __hurd_dfail.
5967         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5968         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5969         * sysdeps/mach/hurd/send.c (__send): Likewise.
5970         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5971         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5973 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5975         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5976         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5977         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5978         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5979         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5980         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5982 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5984         [BZ #6657]
5985         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5986         of %EY.
5987         Patch by Petr Baudis.
5989 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5991         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5992         Patch by Peter Jones <pjones@redhat.com>.
5994 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5996         [BZ #6654]
5997         * stdlib/canonicalize.c (__realpath): readlink can write too much
5998         into the buffer on platforms without PATH_MAX.
6000 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6002         [BZ #6653]
6003         * posix/tst-regex.c (main): Rename to...
6004         (do_test): ... this. Remove cmdline option processing.
6005         (TIMEOUT): Define.
6006         (TEST_FUNCTION): Define.
6007         (CMDLINE_OPTIONS): Define.
6009 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6011         [BZ #5210]
6012         * configure.in: Add -Werror to -fstack-protector test to catch
6013         unsupported architectures.
6014         Patch by Gilles Esponasse <g.esp@free.fr>.
6016 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6018         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6019         getcontext returns ENOSYS.
6021 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6023         * nscd/connections.c (main_loop_poll): Fix test for read error.
6024         (main_loop_epoll): Likewise.
6026 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6028         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6029         better place so it is not called when nscd is used.
6031         * nscd/connections.c: Also recognize and handle changes to the
6032         resolver configuration file.
6034 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6036         * time/strftime.c: Pass reference to tzset_called around to handle
6037         recursive calls.
6039         [BZ #6612]
6040         * time/strftime.c (__strftime_internal): Call tzset() only
6041         when printing timezone-dependent values.
6042         Based on a patch by Petr Baudis <pasky@suse.cz>.
6044         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6045         unconditionally use second gaih_getanswer_slice result.
6047         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6048         (getaddrinfo): RES must always be non-NULL.
6050 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6052         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6053         cr[34] registers.
6054         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6055         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6056         Likewise.
6057         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6058         register.
6060 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6062         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6063         fields.
6064         * nscd/connections.c (inotify_fd): New variable.
6065         (nscd_init): Try to open an inotify descriptor.
6066         If successful, watch files for databases using inotify instead of
6067         having prune threads stat the files.
6068         (nscd_run_prune): Recognize clear_cache flag being set and call
6069         prune_cache appropriately.
6070         (main_loop_poll): Add inotify descriptor to wait set and handle the
6071         reported changes.
6072         (main_loop_epoll): Likewise.
6073         * nscd/cache.c (prune_cache): Don't stat files for databases if
6074         inotify is used.
6075         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6076         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6078         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6079         fixed-size portion of the record.
6080         * nscd/servicescache.c (cache_addserv): Likewise.
6081         * nscd/pwdcache.c (cache_addpw): Likewise.
6082         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6084 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6086         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6087         out we don't use uninitialized memory.
6089         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6090         the client.
6092 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6094         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6095         ignore T_DNAME messages.
6096         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6098 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6100         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6101         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6103 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6105         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6106         instead of portstr to nscd_getserv_r.  Patch by
6107         Roman Kagan <rkagan@mail.ru>.
6109 2008-05-26  Jim Meyering  <meyering@redhat.com>
6111         Remove more useless "if" tests before "free".
6112         * include/inline-hashtab.h (htab_delete): Likewise.
6113         * libio/freopen.c (freopen): Likewise.
6114         * libio/freopen64.c (freopen64): Likewise.
6115         * locale/programs/ld-collate.c (collate_read): Likewise.
6116         * misc/fstab.c (libc_freeres_fn): Likewise.
6117         * posix/glob.c (globfree): Likewise.
6119 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6121         * string/Makefile (strop-tests): Add memmem.
6122         * string/test-memmem.c: New file.
6123         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6124         (test_init): Size buf1 according to BUF1PAGES.
6126 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6128         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6129         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6130         (CFLAGS-scanf17.c): New.
6131         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6132         * stdio-common/scanf15.c (main): Likewise.
6133         * stdio-common/scanf16.c: New file.
6134         * stdio-common/scanf17.c: New file.
6136 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6138         * resolv/res_send.c (send_dg): If we already have one of two
6139         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6140         use the one answer insted of failing.
6142 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6144         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6145         being executed on PowerPC as the expected result exceeds IBM
6146         long double 128 __LDBL_MAX__.
6148 2008-05-21  Roland McGrath  <roland@redhat.com>
6150         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6152         * Makefile (check-data): Use $(abi-name) before other guesses.
6153         Look in $(add-ons) dirs before scripts/data/.
6154         * elf/Makefile (check-data): Likewise.
6156         * scripts/soversions.awk: Grok ABI line.
6157         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6158         Emit definition for abi-name variable.
6160 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6162         * string/endian.h: Define new fixed-size hto* and *toh macros only
6163         if [__USE_BSD].
6165         * iconvdata/Depend: Add localedata.
6167 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6169         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6171 2008-05-08  David S. Miller  <davem@davemloft.net>
6173         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6174         HIDDEN_JUMPTARGET.
6175         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6176         (__SYSCALL_CLOBBERS): Remove %g* registers.
6177         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6178         (__SYSCALL_CLOBBERS): Likewise.
6179         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6180         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6182 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6184         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6185         (CALL_ERRNO_LOCATION): Define.
6186         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6187         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6188         (CALL_ERRNO_LOCATION): Define.
6189         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6190         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6191         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6193 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6195         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6196         variable.
6198 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6200         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6201         (FIRST_FRAME_POINTER): Define.
6203 2008-05-09  David S. Miller  <davem@davemloft.net>
6205         * sysdeps/sparc/sparc64/backtrace.c: New file.
6207 2008-05-14  David S. Miller  <davem@davemloft.net>
6209         * sysdeps/sparc/machine-gmon.h: New file.
6210         * sysdeps/sparc/sparc-mcount.S: Likewise.
6211         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6212         sysdep_routines in gmon directory.
6214 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6216         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6218 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6220         * resolv/res_query.c (__libc_res_nquery): In case one of two
6221         answer was too short don't try to read that answer's header.
6223         * resolv/res_send.c (send_dg): In case of timeout and there are
6224         two queries and one has been answered, return value indicating
6225         success.
6227 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6229         * nscd/cache.c (cache_add): Take additional parameter specifying
6230         whether this is in response of a cache refill.  Check alignment
6231         of package data.  Revamp waking of pruning thread.
6232         (prune_cache): Small optimization.
6233         * nscd/nscd.h: Adjust cache_add prototypes.
6234         * nscd/aicache.c: Adjust cache_add calls.
6235         * nscd/grpcache.c: Likewise.
6236         * nscd/hstcache.c: Likewise.
6237         * nscd/initgrcache.c: Likewise.
6238         * nscd/pwdcache.c: Likewise.
6239         * nscd/servicescache.c: Likewise.
6240         * nscd/connections.c (restart): Really disable cache use before
6241         exec attempt.  If it fails, reenable cache.
6242         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6243         time to max to be able to notice concurrent cache additions.  Unlock
6244         prune_lock while performing gc.  Afterwards compute wakeup time with
6245         current wakeup_time value in mind.
6247 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6249         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6251         * nscd/mem.c (gc): Correctly determine highest used array element
6252         in mark.
6254         * nscd/mem.c (markrange): Add assert to check entries are all
6255         aligned.  Small cleanup in bitmap use.
6257         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6258         blockoff of type nscd_ssize_t.
6259         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6260         (mempoll_alloc): Record block offset and not address.
6262         * nscd/mem.c (gc): Fix test for stack overuse.
6264         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6265         more asserts.
6267         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6268         entry is available, believe it.
6270         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6271         no answers return NSS_STATUS_NOTFOUND.
6272         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6273         buffer does not have any content.
6275 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6277         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6279         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6280         lookup, don't assign canon unconditionally.
6282 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6284         * string/Makefile (distribute): Add str-two-way.h.
6286 2008-03-29  Eric Blake  <ebb9@byu.net>
6288         Rewrite string searches to O(n) rather than O(n^2).
6289         * string/str-two-way.h: New file.  For linear fixed-allocation
6290         string searching.
6291         * string/memmem.c: New implementation.
6292         * string/strstr.c: New implementation.
6293         * string/strcasestr.c: New implementation.
6295 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6297         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6298         opr.ctx_type.
6299         (calc_first): Initialize constraint field.
6300         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6301         Use search_duplicated_node to avoid loops.  Fix grammar.
6302         (duplicate_node): Merge constraint field for all node types.
6303         (calc_eclosure_iter): Look at constraint field for all node types.
6304         * posix/regex_internal.c (create_cd_newstate): Don't look at
6305         create_cd_newstate.
6307 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6309         [BZ #6428]
6310         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6312         [BZ #6442]
6313         * string/endian.h: Add macros for fixed-size endian conversion.
6314         * bits/byteswap.h: Allow inclusion from <endian.h>.
6315         * sysdeps/i386/bits/byteswap.h: Likewise.
6316         * sysdeps/ia64/bits/byteswap.h: Likewise.
6317         * sysdeps/s390/bits/byteswap.h: Likewise.
6318         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6319         * string/Makefile (tests): Add tst-endian.
6320         * string/tst-endian.c: New file.
6322         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6323         Patch by Reuben Thomas.
6325 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6327         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6329 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6331         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6333         [BZ #6461]
6334         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6335         Add missing braces.
6336         (BODY for __gconv_transform_internal_ascii): Likewise.
6338         [BZ #6472]
6339         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6340         to be treated like link-local addresses.
6341         (match_prefix): Don't treat IPv4 loopback address special when
6342         converting to v4 mapped addressed.
6344         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6345         if necessary.
6346         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6347         * posix/tst-rfc3484-2.c: Likewise.
6348         * posix/tst-rfc3484-3.c: Likewise.
6350         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6351         and SCTP.
6353         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6355         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6357         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6359 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6361         * po/lt.po: New file.  From Lituanian translation team.
6363 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6365         Introduce TLS descriptors for i386 and x86_64.
6366         * include/inline-hashtab.h: New file, copied from 2005's
6367         libiberty, with fix for memory leak imported afterwards by
6368         Glauber de Oliveira Costa.
6369         * elf/tlsdeschtab.h: New file.
6370         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6371         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6372         (CHECK_STATIC_TLS): Move to...
6373         * elf/dynamic-link.h: ... this file.
6374         (TRY_STATIC_TLS): New macro.
6375         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6376         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6377         R_386_TLS_DESC): Define.
6378         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6379         binutils.
6380         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6381         R_X86_64_TLSDESC): Define.
6382         (R_386_NUM, R_X86_64_NUM): Adjust.
6383         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6384         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6385         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6386         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6387         release tlsdesc_table.
6388         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6389         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6390         (elf_machine_rel): Handle R_386_TLS_DESC.
6391         (elf_machine_rela): Likewise.
6392         (elf_machine_lazy_rel): Likewise.
6393         (elf_machine_lazy_rela): Likewise.
6394         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6395         * sysdeps/i386/dl-tlsdesc.S: New file.
6396         * sysdeps/i386/dl-tlsdesc.h: New file.
6397         * sysdeps/i386/tlsdesc.c: New file.
6398         * sysdeps/i386/tlsdesc.sym: New file.
6399         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6400         tlsdesc_table.
6401         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6402         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6403         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6404         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6405         release tlsdesc_table.
6406         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6407         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6408         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6409         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6410         (elf_machine_rela): Likewise.
6411         (elf_machine_lazy_rel): Likewise.
6412         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6413         (__tls_get_addr): Do not declare for non-shared compiles.
6414         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6415         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6416         * sysdeps/x86_64/tlsdesc.c: New file.
6417         * sysdeps/x86_64/tlsdesc.sym: New file.
6418         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6419         tlsdesc_table for both 32- and 64-bit structs.
6421 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6423         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6424         its own function.  This reduces the frame setup costs and more.
6426 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6428         [BZ #3406]
6429         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6430         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6432 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6434         * io/openat.c (__openat_2): Also pass fd to __openat.
6435         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6436         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6438         * string/tester.c (test_memcmp): Add a few more tests.
6439         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6441 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6443         * nscd/cache.c (cache_add): Before returning with failure and this
6444         is the first use of the record, mark it as unusable.
6445         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6446         reporting a failure.
6447         * nscd/grpcache.c: Likewise
6448         * nscd/hstcache.c: Likewise.
6449         * nscd/initgrcache.c: Likewise.
6450         * nscd/pwdcache.c: Likewise.
6451         * nscd/servicescache.c: Likewise.
6453 2008-05-10  Roland McGrath  <roland@redhat.com>
6455         [BZ #6505]
6456         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6458 2008-05-08  David S. Miller  <davem@davemloft.net>
6460         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6462         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6463         (__ieee754_y0l): Likewise.
6464         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6465         (__ieee754_y1l): Likewise.
6466         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6467         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6468         frexpl and ldexpl.  math_private.h provides them and the latter
6469         is not even used.
6470         (__log1pl): Use __frexpl.
6472 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6474         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6475         prototypes.
6476         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6477         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6478         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6479         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6480         af==AF_UNSPEC.
6481         (_nss_nis_gethostbyname4_r): New function.
6482         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6483         Change to also handle af==AF_UNSPEC.
6484         (get_tablename): New function.  Use it to avoid duplication.
6485         (_nss_nisplus_gethostbyname4_r): New function.
6486         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6487         available.
6488         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6489         * nss/nss.h: Define struct gaih_addrtuple.
6490         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6491         af==AF_UNSPEC.
6492         (_nss_files_gethostbyname4_r): New function.
6493         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6494         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6495         calls.
6496         * resolv/res_query.c (__libc_res_nquery): Take two additional
6497         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6498         look up IPv4 and IPv6.
6499         Change all callers.
6500         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6501         for an additional query and answer buffer.  Pass to send_vc and
6502         send_dg.
6503         (send_vc): Send possibly two requests and receive two answers.
6504         (send_dg): Likewise.
6505         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6506         __libc_res_nquery.
6507         (_nss_dns_gethostbyname4_r): New function.
6508         (gaih_getanswer_slice): Likewise.
6509         (gaih_getanswer): Likewise.
6510         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6511         __libc_res_nquery call.
6512         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6513         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6514         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6515         available.
6517 2008-05-05  David S. Miller  <davem@davemloft.net>
6519         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6520         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6522 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6524         Fix termios bit macros.
6525         Move *DLY definitions where they belong, in termios.h.
6526         Add *[0-3] definitions.
6527         Fixes confusion between VT and FF.
6528         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6529         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6530         are already defined to avoid collision with termios.h.
6531         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6532         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6533         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6534         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6535         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6536         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6537         VTDLY, VT0, VT1): New macros.
6538         [__USE_GNU] (OLCUC): Change value of macro.
6539         [__USE_XOPEN] (OFILL): New macro.
6540         [__USE_BSD] (CRTSCTS): Change value.
6541         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6542         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6543         (B7200, B14400, B28800, B76800): New macros.
6545 2008-05-01  David S. Miller  <davem@davemloft.net>
6547         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6548         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6549         (gen-as-const-headers): Add it.
6550         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6551         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6552         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6553         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6555         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6556         six system call parameters.
6557         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6559 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6561         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6562         RUSAGE_LWP.
6563         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6564         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6566 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6568         * stdlib/tst-setcontext.c: Include unistd.h.
6570 2008-04-25  David S. Miller  <davem@davemloft.net>
6572         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6573         Pass "union semun" properly in to sys_ipc, it must be passed
6574         by value, not by reference.
6576 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6578         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6579         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6580         * nscd/connections.c (mem_in_flight): Likewise.
6582         * nscd/nscd.h (dbs): Make hidden.
6584         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6585         Avoid returning -1, return 0 instead.
6587 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6589         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6591 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6593         [BZ #5209]
6594         * sysdeps/unix/sysv/linux/times.c: New file.
6596         [BZ #5381]
6597         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6598         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6599         prototype.
6600         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6601         appropriate mem_in_flight element.
6602         (gc): Take allocations which have not yet been committed to the
6603         database into account.
6604         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6605         Reset mem_in_flight before returning.
6606         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6607         cue it up in mem_in_flight_list.
6608         * nscd/aicache.c: Adjust mempool_alloc call.
6609         * nscd/grpcache.c: Likewise.
6610         * nscd/hstcache.c: Likewise.
6611         * nscd/initgrcache.c: Likewise.
6612         * nscd/pwdcache.c: Likewise.
6613         * nscd/servicescache.c: Likewise.
6614         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6615         of -fpie.
6617         * nscd/connections.c (handle_request): Provide better error message
6618         in case SELinux forbids the service.
6620         * version.h (VERSION): Bump to 2.8.90.
6622 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6624         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6626 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6628         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6629         Also use for 32-bit.
6630         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6631         __nextafter instead of nextafter to avoid local PLT.
6632         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6633         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6635         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6637         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6638         __fe_nomask_env.
6639         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6640         <fenv_libc.h> instead of <fenv.h>.
6641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6644         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6646         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6647         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6648         function from fegetexcept and make old name weak alias.
6649         * include/fenv.h: Declare __fegetexcept.
6650         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6651         fegetexcept.
6652         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6653         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6654         to fetestexcept.
6655         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6656         instead of frexpl to avoid local PLT.
6657         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6658         ilogbl to avoid local PLT.
6659         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6660         instead of ldexpl to avoid local PLT.
6661         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6662         __roundl not roundl to avoid local PLT.
6663         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6664         local PLTs.  Use __sincosl instead of separate sinl and cosl
6665         calls.
6666         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6668         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6669         version for ppc64 to 2.4.21 since without it makecontext will fail.
6671         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6672         to the ABI in use.
6673         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6674         .__tls_get_addr.
6675         [__powerpc64__] (TLS_GD): Likewise.
6677 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6679         [BZ #4997]
6680         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6681         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6682         mantissa.
6683         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6684         Likewise.  Also account for when x is an odd number between 2^52
6685         and 2^53-1.
6686         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6687         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6688         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6689         detect aforementioned erroneous conditions.
6691 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6693         * configure.in: Check for -fno-section-anchors in addition to
6694         -fno-toplevel-reorder.
6696 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6698         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6700         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6701         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6702         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6703         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6704         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6705         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6707 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6709         [BZ #5443]
6710         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6711         * time/alt_digit.c: Likewise.
6712         * wcsmbs/wcsmbsload.c: Likewise.
6714 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6716         * version.h (VERSION): Bump to 2.8.
6718         * timzeone/asia: Update from tzdata2008b.
6719         * timezone/backward: Likewise.
6720         * timezone/europe: Likewise.
6721         * timezone/northamerica: Likewise.
6722         * timezone/southamerica: Likewise.
6723         * timezone/iso3166.tab: Likewise.
6724         * timezone/leapseconds: Likewise.
6725         * timezone/zone.tab: Likewise.
6726         * timezone/private.h: Update from tzcode2008a.
6727         * timezone/zdump.c: Likewise.
6728         * timezone/zic.c: Likewise.
6730 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6732         [BZ #5741]
6733         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6734         Define additonal Data Cache Block instruction macros.
6735         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6736         Replace dcbst with dcbf and sync with sync/isync.
6738 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6740         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6741         Always set ELF_RTYPE_CLASS_PLT.
6742         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6744 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6746         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6747         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6748         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6749         For ISA 2.01 and later replace mftb with mfspr 268.
6751 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6753         [BZ #5768]
6754         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6755         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6757 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6759         [BZ #5768]
6760         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6761         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6762         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6763         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6765 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6767         * stdlib/tst-makecontext.c (othervar): New variable.
6768         (cf): Test sign extending the argument to long.
6770 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6772         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6773         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6774         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6775         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6776         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6777         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6778         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6780 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6782         * elf/Makefile (tests): Substitute tests-vis-yes here.
6783         (tests-vis-yes): Delete.
6784         (modules-name, modules-vis-yes): Similarly.
6786 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6788         [BZ #4407]
6789         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6790         Preserve sign in signgamp when x is zero.
6792 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6794         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6795         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6796         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6797         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6798         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6799         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6801 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6803         [BZ #4314]
6804         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6805         buffers.
6807         [BZ #5209]
6808         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6809         a reserved error value.
6811         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6812         value to check for correct sign extension.
6814         [BZ #5436]
6815         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6816         Copy 64-bit parameter values even though this is not required in
6817         the standard.
6819         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6820         PC save.
6822 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6824         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6825         PC save.
6827 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6829         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6831 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6833         [BZ #5998]
6834         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6835         in line-buffered stream failed.
6836         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6838 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6840         [BZ #6024]
6841         * scripts/abi-versions.awk: If the version specified by
6842         --enable-oldest-abi is older than the first version for this
6843         architecture, use the default version.
6845         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6846         as well when ignoring the whole category.
6848 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6850         [BZ #6042]
6851         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6852         ETHERTYPE_* definitions.
6853         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6855 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6857         * stdlib/mbtowc.c (__no_r_state): Remove.
6858         (mbtowc): New static state variable.  Use it instead of
6859         __no_r_state.
6860         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6861         (__wctomb_state): New hidden variable.
6862         (wctomb): Use __wctomb_state instead of __no_r_state.
6863         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6864         (__wctomb_state): New extern decl.
6865         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6867 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6869         [BZ #5475]
6870         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6872 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6874         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6876 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6878         * po/nl.po: Update from translation team.
6880 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6882         [BZ #6007]
6883         * string/strfry.c: Handle empty strings again.
6885 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6887         [BZ #5443]
6888         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6889         before looking for translation.
6890         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6891         * locale/freelocale.c: Likewise.
6892         * locale/newlocale.c: Likewise.
6893         * locale/setlocale.c: Likewise.
6894         Based partially on a patch by ryo@np.css.fujitsu.com.
6896 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6898         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6899         acquiring wrlock.  Do conv_tab allocation while holding lock.
6900         * intl/Makefile: Add rules to build and run tst-gettext6.
6901         * intl/tst-gettext6.c: New test.
6902         * intl/tst-gettext6.sh: New file.
6904 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6906         * po/nl.po: Update from translation team.
6908         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6909         provided through st_blksize, try the default size before giving up.
6911 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6913         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6915         [BZ #5939]
6916         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6918         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6919         error message.  POSIX today does not require the messages to be in
6920         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6922         [BZ #5979]
6923         * sunrpc/auth_unix.c: Unify printed strings.
6924         * sunrpc/clnt_tcp.c: Likewise.
6925         * sunrpc/clnt_udp.c: Likewise.
6926         * sunrpc/clnt_unix.c: Likewise.
6927         * sunrpc/svc_tcp.c: Likewise.
6928         * sunrpc/svc_udp.c: Likewise.
6929         * sunrpc/svc_unix.c: Likewise.
6930         * sunrpc/xdr.c: Likewise.
6931         * sunrpc/xdr_array.c: Likewise.
6932         * sunrpc/xdr_rec.c: Likewise.
6933         * sunrpc/xdr_ref.c: Likewise.
6934         * locale/programs/ld-time.c (time_finish): Unify messages.
6935         * locale/programs/locfile.c (handle_copy): Fix typo.
6936         * nscd/nscd.c (options): Fix typo.
6938         [BZ #5995]
6939         * stdlib/strtod_l.c: Use correct sign for result in one more
6940         underflow case.
6941         Patch by Eric Blake <ebb9@byu.net>.
6943 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6945         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6946         and creat system calls.
6947         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6948         call.
6949         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6950         system calls.
6951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6952         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6953         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6955 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6957         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6958         <linux/limits.h> has defined it.
6959         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6960         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6961         headers.
6962         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6963         it instead of ARG_MAX.
6965 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6967         * posix/gai.conf: Fix comment for scope nullbits.
6968         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6969         default to 128 bits for v4 mapped addresses.
6971 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6973         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6974         ptrace call to get the ieee_instruction_pointer from the kernel.
6975         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6976         ptrace call to set the ieee_instructtion_pointer.
6977         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6978         Add comment that ieee_instruction_pointer is always 0.
6980 2008-03-09  Andreas Jaeger  <aj@suse.de>
6982         [BZ #5857]
6983         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6984         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6985         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6987         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6988         (rint_test): Likewise.
6990 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6992         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6993         call.
6994         (__nisfind_server): Similar for open readColdStartFile call.
6995         Patch partially by Jim Meyering.
6996         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6997         around internal_setent call.
6999         * po/vi.po: New Vietnamese translation.
7001         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7002         ADJ_OFFSET_SS_READ.
7004         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7005         remove CLONE_STOPPED.
7007 2008-02-10  Jim Meyering  <meyering@redhat.com>
7009         Remove useless "if" before "free":
7010         * elf/ldconfig.c (parse_conf_include): Likewise.
7011         * gmon/gmon.c (weak_alias): Likewise.
7012         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7013         * inet/rcmd.c (__validuser2_sa): Likewise.
7014         * intl/bindtextdom.c (set_binding_values): Likewise.
7015         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7016         * libio/genops.c (save_for_backup): Likewise.
7017         * libio/wgenops.c (save_for_wbackup): Likewise.
7018         * locale/programs/ld-collate.c (collate_read): Likewise.
7019         * locale/programs/linereader.c (get_string): Likewise.
7020         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7021         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7022         * resolv/res_debug.c (do_section): Likewise.
7023         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7024         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7025         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7026         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7027         * time/tzset.c (tzset_internal): Likewise.
7029 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7031         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7032         of ASSEMBLER.
7034 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7036         [BZ #5903]
7037         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7038         not stream for output file.  Open output file here.
7039         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7040         and output file name.
7041         (process_fd): Likewise.
7042         (process_file): Likewise.
7043         (main): Adjust callers of changed functions.
7044         * iconv/iconv_prog.h: Adjust prototype.
7046 2008-03-09  Andreas Jaeger  <aj@suse.de>
7048         [BZ #5753]
7049         * sysdeps/ia64/ieee754.h: Use protected namespace
7050         __BIG_ENDIAN/__LITTLE_ENDIAN.
7051         * sysdeps/ieee754/ieee754.h: Likewise.
7052         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7054 2008-03-08  Roland McGrath  <roland@frob.com>
7056         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7057         ignore a signal that came from a machine exception, treat it as a
7058         fatal core-dump signal instead.
7059         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7061         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7062         Clear DF bit in thread state's eflags.
7063         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7065 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7067         [BZ #5774]
7068         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7069         of NAN(...) sequence.
7070         * stdlib/Makefile (tests): Add tst-strtod6.
7071         * stdlib/tst-strtod6.c: New file.
7073         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7075         [BZ #5762]
7076         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7077         putting offending option character in quotes.  Clean up error
7078         messages.
7079         * po/be.po: Adjust msgstr in translation file.
7080         * po/bg.po: Likewise.
7081         * po/ca.po: Likewise.
7082         * po/cs.po: Likewise.
7083         * po/da.po: Likewise.
7084         * po/de.po: Likewise.
7085         * po/es.po: Likewise.
7086         * po/fr.po: Likewise.
7087         * po/hr.po: Likewise.
7088         * po/ko.po: Likewise.
7089         * po/nl.po: Likewise.
7090         * po/rw.po: Likewise.
7091         * po/sk.po: Likewise.
7092         * po/sv.po: Likewise.
7093         * po/tr.po: Likewise.
7094         * po/zh_CN.po: Likewise.
7095         * po/zh_TW.po: Likewise.
7097         [BZ #5760]
7098         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7099         Patch by Roland Bless <roland@bless.de>.
7101         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7102         .o file.
7103         * elf/Makefile (routines): Add dl-sysdep.
7104         (elide-routines.os): Likewise.
7106 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7108         [BZ #5786]
7109         * elf/dl-sysdep.c: Undefine ROUND after use.
7110         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7111         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7112         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7113         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7114         to ...
7115         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7116         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7117         if necessary.
7118         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7120         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7121         _dl_tls_get_addr_soft element.
7122         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7123         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7124         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7125         GLRO.
7126         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7127         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7128         of internal_function.
7130         * stdlib/Makefile (aux): Add tens_in_limb.
7131         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7132         * stdlib/tens_in_limb.c: ...here.  New file.
7134         [BZ #5778]
7135         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7136         __statfs_chown_restricted.
7137         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7138         for _PC_CHOWN_RESTRICTED.
7139         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7140         Implement __statfs_chown_restricted.
7141         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7142         _POSIX_CHOWN_RESTRICTED value to zero.
7143         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7144         defined to zero.
7146         * sysdeps/x86_64/rtld-memset.c: New file.
7148 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7150         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7152         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7153         Barcelona machine.  Make default fall through branch of
7154         __x86_64_preferred_memory_instruction check as the integer code path.
7156 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7158         * sysdeps/x86_64/cacheinfo.c
7159         (__x86_64_preferred_memory_instruction): New variable.
7160         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7162         * sysdeps/x86_64/memset.S: Rewrite.
7164 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7166         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7167         __obstack_printf_chk): New prototypes.
7168         (__vasprintf_chk, __vdprintf_chk,
7169         __obstack_vprintf_chk): Likewise.
7170         Add libc_hidden_proto.
7171         * libio/obprintf.c
7172         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7173         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7174         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7175         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7176         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7177         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7178         __obstack_vprintf_chk): New prototypes.
7179         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7180         obstack_vprintf): New inlines.
7181         * debug/dprintf_chk.c: New file.
7182         * debug/vdprintf_chk.c: New file.
7183         * debug/asprintf_chk.c: New file.
7184         * debug/vasprintf_chk.c: New file.
7185         * debug/obprintf_chk.c: New file.
7186         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7187         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7188         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7189         @@GLIBC_2.8.
7190         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7191         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7192         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7193         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7194         libc_hidden_proto.
7195         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7196         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7197         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7198         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7199         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7200         @@GLIBC_2.8.
7201         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7202         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7203         obstack_vprintf_chk.
7204         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7205         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7206         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7207         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7208         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7209         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7211 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7213         [BZ #5779]
7214         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7215         Patch by Roy Marples <roy@marples.name>.
7217         [BZ #5736]
7218         * malloc/malloc.c: Fix typo in comment.
7220         [BZ #5627]
7221         * locale/iso-639.def: Add Shuswap.
7223 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7225         [BZ #5790]
7226         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7227         overwrite *h_errnop/*errnop values from getanswer_r in case of
7228         failure.
7230 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7232         [BZ #5818]
7233         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7234         (verify_persistent_db): Remove one unnecessary test and add a new one
7235         for bad configuration.
7236         (nscd_init): Improve error reported when persistent database cannot
7237         be reused.
7238         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7239         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7240         .suggested_module and .max_db_size and case config file says the
7241         values are zero.
7242         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7244         [BZ #5854]
7245         * nis/ypclnt.c (yp_order): Fix handling of return value of
7246         do_ypcall_tr call.
7247         Patch by Jeff Moyer <jmoyer@redhat.com>.
7249         * po/fr.po: Update from translation team.
7251 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7252             Carlos O'Donell <carlos@systemhalted.org>
7254         [BZ #5012]
7255         * FAQ.in: Describe why glibc needs to be compiled with
7256         optimization.
7258 2008-02-19  Roland McGrath  <roland@redhat.com>
7260         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7262 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7264         [BZ #5737]
7265         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7266         __USE_MISC is defined.
7268 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7270         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7271         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7272         sys/timerfd.h.
7273         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7274         timerfd_gettime, timerfd_settime.
7275         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7276         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7278 2008-02-08  Roland McGrath  <roland@redhat.com>
7280         * elf/elf.h (NT_PPC_SPE): New macro.
7282 2008-02-06  Roland McGrath  <roland@redhat.com>
7284         * Makerules ($(common-objpfx)sysd-rules):
7285         Depend on $(sysdep-makeconfigs).
7287 2008-01-31  Roland McGrath  <roland@redhat.com>
7289         [BZ #5442]
7290         * configure.in: Use -print-file-name if it yields a directory,
7291         for each of include and include-fixed.
7292         * configure: Regenerated.
7294         * Makeconfig (sysd-rules-targets): New variable.
7295         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7296         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7298 2008-01-30  Roland McGrath  <roland@redhat.com>
7300         * manual/libc.texinfo: Update back-cover text.
7302         * elf/elf.h (NT_386_TLS): New macro.
7304 2008-01-29  Roland McGrath  <roland@redhat.com>
7306         * Makeconfig (sysd-rules-patterns): New variable.
7307         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7308         (check-inhibit-asm): New canned sequence, replaces ...
7309         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7310         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7311         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7312         (CFLAGS-rtld): Variable removed.
7314 2008-01-24  Roland McGrath  <roland@redhat.com>
7316         * configure.in: Let configure fragments set base_os.
7317         * configure: Regenerated.
7319 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7321         * po/ko.po: Update from translation team.
7323 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7325         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7327 2008-01-12  Andreas Jaeger  <aj@suse.de>
7329         [BZ #5040]
7330         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7331         Add EPOLLRDHUP.
7333 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7335         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7336         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7337         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7339 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7341         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7342         * elf/dl-close.c (_dl_close): Check for it.
7343         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7344         (_dl_allocate_static_tls): Likewise.
7345         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7346         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7347         to it.
7348         * elf/tst-tls16.c: New file.
7349         * elf/tst-tlsmod16a.c: New file.
7350         * elf/tst-tlsmod16b.c: New file.
7351         * elf/Makefile: Add rules to build and run tst-tls16.
7353 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7355         [BZ #5628]
7356         * bits/shm.h: Fix comment describing shmid_ds.
7357         * sysdeps/gnu/bits/shm.h: Likewise.
7358         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7359         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7360         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7361         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7362         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7363         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7364         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7365         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7366         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7368         [BZ #5607]
7369         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7370         prototypes.
7371         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7372         additional suffixes.
7373         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7374         Add optional functions mq_timedreceive and mq_timedsend.
7375         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7376         * conform/data/pthread.h-data: Fix prototype of
7377         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7378         * conform/data/semaphore.h-data: Allow time.h definitions.
7379         * conform/data/signal.h-data: Likewise.
7380         * conform/data/stdio.h-data: getw and putw are not required in v6.
7381         * conform/data/stdlib.h-data: Change setstate prototype.
7382         * conform/data/string.h-data: Fix strerror_r prototype.
7383         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7384         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7385         Fix readlink prototype.
7386         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7387         in6addr_loopback.
7388         * inet/netinet/in.h: Cleanup namespace.
7389         * posix/regex.h: Likewise.
7390         * resolv/netdb.h: Likewise.
7391         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7392         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7393         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7394         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7395         of names of in in6_addr.
7396         (default_precedence): Likewise.
7397         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7398         NULL definition.
7400 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7402         * conform/data/fmtmsg.h-data: Add missing allows.
7403         * conform/data/ftw.h-data: Likewise.
7404         * conform/data/inttypes.h-data: Likewise.
7405         * conform/data/math.h-data: Likewise.
7406         * conform/data/signal.h-data: Likewise.
7407         * conform/data/net/if.h-data: Likewise.
7408         * conform/data/netinet/in.h-data: Likewise.
7409         * conform/data/sys/socket.h-data: Likewise.
7411         [BZ #5614]
7412         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7413         (__strtok_r): Simplify.
7414         * string/tester.c (test_strtok_r): Add test case for futile search
7415         with single-character seach string.
7417 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7419         * po/ko.po: Update from translation team.
7421 2008-01-11  Andreas Jaeger  <aj@suse.de>
7423         [BZ #5600]
7424         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7425         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7426         kernel header.
7428 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7430         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7431         native interface lookup in all the relevant places.
7433 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7434             Ulrich Drepper  <drepper@redhat.com>
7436         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7437         field.  Use sockaddr_in6 for source_addr.
7438         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7439         (match_prefix): Likewise.
7440         (get_label): Likewise.
7441         (get_precedence): Likewise.
7442         (rfc3484_sort): Change to use indirect access to results array.
7443         Adjust to use of sockaddr_in6.  Replace service_order test with
7444         simple index comparison.
7445         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7446         service_order field.  Adjust qsort_t calls.  Access sorted result
7447         array indirectly through order array.
7448         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7449         * posix/tst-rfc3484-2.c: Likewise.
7450         * posix/tst-rfc3484-3.c: Likewise.
7452 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7454         [BZ #5541]
7455         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7456         pollfd structures.
7457         Patch by André Cruz.
7459         [BZ #5545]
7460         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7461         (clnt_spcreateerror): Likewise.
7463         [BZ #5553]
7464         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7465         (public_mEMALIGn): Likewise.
7466         Patch mostly by Daniel Jacobowitz.
7468 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7470         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7471         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7472         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7473         * stdlib/tst-makecontext2.c: New test.
7475 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7477         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7478         defined.
7479         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7480         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7481         transliteration hooks and REINIT_PARAMS afterwards.
7482         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7483         status.
7484         (REINIT_PARAMS): Define.
7485         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7486         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7487         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7488         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7489         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7490         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7491         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7492         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7493         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7494         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7495         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7496         * iconvdata/tst-iconv7.c: New test.
7498 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7500         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7502 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7504         [BZ #5112]
7505         * nscd/connections.c (restart): Fix condition.
7507 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7509         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7510         __ctype_toupper_loc): Add __THROW.
7512 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7514         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7515         recognition of interface family.
7517         * posix/getconf.c: Update copyright year.
7518         * nss/getent.c: Likewise.
7519         * iconv/iconvconfig.c: Likewise.
7520         * iconv/iconv_prog.c: Likewise.
7521         * elf/ldconfig.c: Likewise.
7522         * catgets/gencat.c: Likewise.
7523         * csu/version.c: Likewise.
7524         * elf/ldd.bash.in: Likewise.
7525         * elf/sprof.c (print_version): Likewise.
7526         * locale/programs/locale.c: Likewise.
7527         * locale/programs/localedef.c: Likewise.
7528         * nscd/nscd.c (print_version): Likewise.
7529         * debug/xtrace.sh: Likewise.
7530         * malloc/memusage.sh: Likewise.
7531         * malloc/mtrace.pl: Likewise.
7532         * debug/catchsegv.sh: Likewise.
7534 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7536         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7537         second lookup.
7539 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7541         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7542         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7544 2007-12-17  Roland McGrath  <roland@redhat.com>
7546         * inet/ether_line.c (ether_line): Remove unused variable.
7548 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7550         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7551         and winp.
7552         * login/openpty.c (openpty): Likewise.
7553         * login/pty.h (openpty, forkpty): Likewise.
7554         * manual/terminal.texi (openpty, forkpty): Likewise.
7556 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7558         * malloc/malloc.c (public_cALLOc): For arenas other than
7559         main_arena, count all bytes inside the mprotect_size range of the
7560         heap as uninitialized.
7562 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7564         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7565         executable stacks.
7567         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7568         mTRIm for all of them.
7569         (mTRIm): Additionally iterate over all free blocks and use madvise
7570         to free memory for all those blocks which contain at least one
7571         memory page.
7572         * malloc/tst-trim1.c: New file.
7573         * malloc/Makefile (tests): Add tst-trim1.
7575         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7577 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7579         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7580         First cast argument to long
7581         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7582         Return long.
7583         (__vdso_clock_gettime): Likewise.
7584         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7585         return long.
7587 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7589         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7590         * locale/nl_langinfo_l.c: Real implementation, copied from
7591         nl_langinfo.c.
7592         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7594 2007-12-01  Jim Meyering  <meyering@redhat.com>
7596         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7597         that would inhibit utf8-optimization of a regexp containing line-
7598         or buffer-anchors, e.g., `^', `$'.
7600 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7602         * time/bug-getdate1.c (do_test): Don't use century values which
7603         aren't valid on 32-bit systems.
7605 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7607         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7608         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7609         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7610         __strcat_g, __strncat_g): Add __asm__.
7612 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7614         [BZ #5477]
7615         * io/fchmodat.c: Fix typo in stub_warning use.
7616         Patch by Petr Salinger.
7618 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7620         * iconvdata/hp-thai8.c: New file.
7621         * iconvdata/Makefile: Add rules for hp-thai8.c.
7622         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7623         * iconvdata/gconv-modules: Likewise.
7625         [BZ #5464]
7626         * iconvdata/hp-greek8.c: New file.
7627         * iconvdata/Makefile: Add rules for hp-greek8.c.
7628         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7629         * iconvdata/gconv-modules: Likewise.
7631         [BZ #5463]
7632         * iconvdata/hp-turkish8.c: New file.
7633         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7634         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7635         * iconvdata/gconv-modules: Likewise.
7637         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7638         (shrink_heap): ... this new function.
7639         (heap_trim): Call shrink_heap instead of grow_heap.
7641         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7642         case don't call alloc_perturb.
7644 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7646         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7647         possible.
7648         * sysdeps/unix/sysv/linux/kernel-features.h
7649         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7650         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7652 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7654         [BZ #5424]
7655         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7656         * stdio-common/Makefile (tests): Add bug22.
7657         * stdio-common/bug22.c: New file.
7659         [BZ #5451]
7660         * time/getdate.c: Fix filling in default values.
7661         * time/bug-getdate1.c: New file.
7662         * time/Makefile: Add rules to build and run bug-getdate1.
7664         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7665         * iconvdata/ebcdic-es.c: Likewise.
7666         * iconvdata/ebcdic-es-a.c: Likewise.
7667         * iconvdata/ebcdic-uk.c: Likewise.
7668         * iconvdata/iso8859-16.c: Likewise.
7669         * iconvdata/viscii.c: Likewise.
7670         * iconvdata/iso8859-9e.c: Likewise.
7671         * iconvdata/Makefile: Adjust appropriately.
7673         [BZ #5428]
7674         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7675         __need_wint_t.
7677 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7679         [BZ #5427]
7680         * iconvdata/hp-roman9.c: New file.
7681         * iconvdata/Makefile: Add rules for hp-roman9.c.
7682         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7683         * iconvdata/gconv-modules: Likewise.
7685         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7686         * iconvdata/Makefile: Adjust appropriately.
7688         [BZ #5441]
7689         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7690         structure, it's allocated with alloca.
7691         * stdio-common/Makefile (tests): Add bug21.
7692         * stdio-common/bug21.c: New file.
7694 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7696         [BZ #5452]
7697         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7698         keyword for gcc's braced-groups.
7700 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7702         [BZ #5454]
7703         * inet/ether_line.c: Strip hostname of whitespaces.
7704         * inet/Makefile (tests): Add tst-ether_line.
7705         * inet/tst-ether_line.c: New file.
7707 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7709         [BZ #5439]
7710         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7712         [BZ #5435]
7713         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7715         * stdlib/tst-setcontext.c: Catch the case where the links gets
7716         messed up and we do not reach main again.
7718         * po/ca.po: Update from translation team.
7720 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7722         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7723         * posix/regex.h (REG_ENOSYS): Likewise.
7724         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7726 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7728         * nscd/nscd.h (MAX_STACK_USE): Define.
7729         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7730         (gc): Initialize stack_used based on allocation in prune_cache.
7731         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7732         Clear array before use.
7734         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7735         memory allocation failed.
7736         * nscd/hstcache.c (cache_addhst): Likewise.
7737         * nscd/grpcache.c (cache_addgr): Likewise.
7738         * nscd/servicescache.c (cache_addserv): Likewise.
7739         * nscd/pwdcache.c (cache_addpw): Likewise.
7740         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7742 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7745         and creat system calls.
7747         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7749 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7751         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7752         Add netiucv/iucv.h.
7753         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7754         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7755         protocol.
7756         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7757         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7758         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7760 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7762         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7763         strncat): Define as macros to avoid compile errors.
7765         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7766         creat entries.
7768 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7770         [BZ #5382]
7771         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7772         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7773         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7774         overflow it.
7775         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7777         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7778         Return zero in case the thread library is not NPTL.
7780         [BZ #5375]
7781         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7782         initializing interface list.
7784         [BZ #5378]
7785         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7786         use result of nss_getgrgid_r if nothing was found.  For other
7787         error return with a failure.
7788         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7790         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7791         macro name.
7793 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7795         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7796         (get_scope): For IPv4 scope, use scopes table.
7797         (fini): Free scopes table if necessary.
7798         (free_scopelist): New function.
7799         (scopecmp): New function.
7800         (gaiconf_init): Also handle scopev4 entries.
7801         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7802         * posix/tst-rfc3484-2.c (do_test): Likewise.
7803         * posix/gai.conf: Document scopev4 defaults.
7804         * posix/Makefile (tests): Add tst-rfc3484-3.
7805         * posix/tst-rfc3484-3.c: New file.
7807         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7808         Teredo tunnels.
7809         * posix/gai.conf: Update for current default tables.
7811 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7813         * po/tr.po: Update from translation team.
7815 2007-11-18  Roland McGrath  <roland@frob.com>
7817         * manual/arith.texi (Remainder Functions): Spelling fix.
7818         From Shaun Silk <genix@mysoul.com.au>.
7820         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7822 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7824         * po/zh_CN.po: Update from translation team.
7826         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7827         Add sys/signalfd.h and sys/eventfd.h.
7829 2007-11-15  Bruno Haible  <bruno@clisp.org>
7831         [BZ #5346]
7832         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7833         union.
7834         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7835         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7836         it needs only fixed stack space. Delay the initialization of
7837         msgid_len until it is needed.
7839 2007-11-15  Andreas Jaeger  <aj@suse.de>
7841         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7842         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7844 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7846         * po/ko.po: Update from translation team.
7848 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7850         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7851         significantly.  The device type is also part of the ifinfomsg data.
7853         * po/sv.po: Update from translation team.
7854         * po/nl.po: Likewise.
7856         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7857         to wake up in 24 hours.
7859         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7861 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7863         * po/cs.po: Update from translation team.
7864         * po/pl.po: Likewise.
7866         * include/ifaddrs.h: Remove in6ai_temporary.
7867         (struct in6addrinfo): Add index element.
7868         Declare __check_native.
7869         * inet/Makefile (aux): Add check_native.
7870         * sysdeps/unix/sysv/linux/check_native.c: New file.
7871         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7872         IFA_F_TEMPORARY.  Pass back ifa_index.
7873         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7874         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7875         call __check_native if necessary.
7876         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7877         to sort addresses.  Pass information about the results.
7878         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7879         of rfc3484_sort interface.
7880         * posix/tst-rfc3484-2.c: Likewise.
7882         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7883         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7884         for _quicksort.
7885         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7886         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7887         on as third parameter to compare function and _quicksort.
7888         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7889         to the compare function.
7890         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7891         * Versions.def: Add GLIBC_2.8 for libc.
7893         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7894         * posix/tst-rfc3484-2.c: Likewise.
7896         * include/kernel-features.h: Moved to...
7897         * sysdeps/mach/hurd/kernel-features.h: ...here.
7899 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7901         * sysdeps/i386/i586/memcpy_chk.S: New file.
7902         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7903         * sysdeps/i386/i586/memset_chk.S: Likewise.
7905 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7907         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7908         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7909         list of interfaces.  Also store prefix length.
7910         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7911         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7912         prefix if source and destination address are in the same subnet.
7913         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7914         Always look for matching record in in6ai list.
7915         Correct source_addr_len value for IPv6->IPv4 converted records.
7917 2007-11-11  Roland McGrath  <roland@frob.com>
7919         * include/kernel-features.h: New file.
7921 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7923         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7924         complications for 64-bit platforms.
7926         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7927         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7928         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7929         open64_2.
7930         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7931         entries.
7932         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7933         * sysdeps/wordsize-64/alphasort.c: New file.
7934         * sysdeps/wordsize-64/alphasort64.c: New file.
7935         * sysdeps/wordsize-64/fseeko.c: New file.
7936         * sysdeps/wordsize-64/fseeko64.c: New file.
7937         * sysdeps/wordsize-64/ftello.c: New file.
7938         * sysdeps/wordsize-64/ftello64.c: New file.
7939         * sysdeps/wordsize-64/ftw.c: New file.
7940         * sysdeps/wordsize-64/ftw64.c: New file.
7941         * sysdeps/wordsize-64/iofgetpos.c: New file.
7942         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7943         * sysdeps/wordsize-64/iofopen.c: New file.
7944         * sysdeps/wordsize-64/iofopen64.c: New file.
7945         * sysdeps/wordsize-64/iofsetpos.c: New file.
7946         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7947         * sysdeps/wordsize-64/lockf.c: New file.
7948         * sysdeps/wordsize-64/lockf64.c: New file.
7949         * sysdeps/wordsize-64/mkostemp.c: New file.
7950         * sysdeps/wordsize-64/mkostemp64.c: New file.
7951         * sysdeps/wordsize-64/mkstemp.c: New file.
7952         * sysdeps/wordsize-64/mkstemp64.c: New file.
7953         * sysdeps/wordsize-64/scandir.c: New file.
7954         * sysdeps/wordsize-64/scandir64.c: New file.
7955         * sysdeps/wordsize-64/tmpfile.c: New file.
7956         * sysdeps/wordsize-64/tmpfile64.c: New file.
7957         * sysdeps/wordsize-64/versionsort.c: New file.
7958         * sysdeps/wordsize-64/versionsort64.c: New file.
7959         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7960         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7961         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7962         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7963         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7964         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7965         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7966         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7967         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7968         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7969         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7970         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7972         * crypt/sha256-crypt.c: Fix a comment.
7973         * crypt/sha512-crypt.c: Likewise.
7975 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7977         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7979 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7981         [BZ #5277]
7982         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7983         because output buffer is too small break, don't loop.
7984         * iconvdata/Makefile (tests): Add bug-iconv6.
7985         * iconvdata/bug-iconv6.c: New file.
7987 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7989         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7990         with size_t type.
7991         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7992         size_t.  Add casts where needed.
7994         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7995         old headers, don't call avc_has_perm if we don't have the
7996         permission information.
7998 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8000         * elf/rtld.c (dl_main): Use the page size to find the map start.
8002 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8004         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8005         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8007         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8008         when the lookup call failed.
8010         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8011         Add prune_cond and wakeup_time.
8012         (CACHE_PRUNE_INTERNAL): Define.
8013         Update declarations of prune_cache and setup_thread.
8014         * nscd/connections.c (dbs): Update initializers.
8015         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8016         (nscd_init): Default number of threads is now 4.
8017         (invalidate_cache): Take lock before calling prune_cache.
8018         (handle_request): If SELinux forbids the request, say so.
8019         (readylist_cond): Use static initializer.
8020         (nscd_run_prune): New function.  Used only by pruning threads.
8021         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8022         here.
8023         (fd_ready): Update nscd_run reference.
8024         (start_threads): No need to initialize readylist_cond.
8025         Start pruning threads separately.
8026         * nscd/nscd_setup_thread.c: Change return value type to int and always
8027         return 0.
8028         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8029         to int and return nonzero value if we can use the TID address hack.
8030         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8031         the database is later than the new entry's timeout, update the
8032         wakeup time and wake the cleanup thread.
8033         (prune_cache): Return seconds the next entry in the database is still
8034         valid.  Remove locking for pruning here.
8035         * nscd/nscd.conf: Document default number of threads.
8037 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8039         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8040         stack is properly aligned for the target function.
8041         Correct unwind info.
8043         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8044         when using auditing libraries.
8046 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8048         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8049         _nss_dns_getnetbyaddr2_r.
8050         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8051         extra parameter to getanswer_r.
8052         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8053         _nss_dns_getnetbyaddr2_r.
8055         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8056         gethstbynm3_r.
8057         * nscd/gethstbynm2_r.c: Remove.
8058         * nscd/gethstbynm3_r.c: New file.
8059         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8060         __gethostbyaddr_r.
8061         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8062         __gethostbyaddr_r compatibility wrapper.
8063         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8064         determining timeout of entry.
8065         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8066         __gethostbyaddr2_r.
8067         (addhstbyX): Pass reference to variable for TTL to lookup and
8068         cache_addhst.
8069         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8070         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8071         and __nss_next2.  Remove __nss_services_lookup.
8072         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8073         Add compat wrapper.
8074         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8075         __nss_next2.
8076         * nss/getXXent_r.c: Likewise.
8077         * nss/getnssent_r.c: Likewise.
8078         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8079         does not exist in module, try the optional second name.
8080         (__nss_next2): New function.
8081         (__nss_next): Now wrapper around __nss_next2.
8082         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8083         Declare __nss_next2.
8084         Adjust definition of db_lookup_function type.
8085         * nss/service-lookup.c: Define NO_COMPAT.
8086         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8087         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8088         * inet/ether_ntoh.c: Likewise.
8089         * sunrpc/netname.c: Likewise.
8090         * sunrpc/publickey.c: Likewise.
8091         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8092         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8093         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8094         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8095         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8097         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8099         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8101 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8103         [BZ #5204]
8104         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8105         * crypt/sha512c-test.c: Likewise.
8107         [BZ #5225]
8108         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8109         to keep track of end of %[ format string element.
8110         * stdio-common/Makefile (tests): Add bug20.
8111         * stdio-common/bug20.c: New file.
8113         [BZ #5222]
8114         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8115         path elements in counting mode.
8117 2007-10-27  Andreas Jaeger  <aj@suse.de>
8119         [BZ #5040]
8120         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8122         [BZ #3112]
8123         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8124         (__cleanup): Free shared library when exiting.
8125         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8126         (__cleanup): Free shared library when exiting.
8128 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8130         [BZ #2549]
8131         * math/libm-test.inc (check_float_internal): Support
8132         denormalized return.
8134 2007-10-23  Andreas Jaeger  <aj@suse.de>
8136         [BZ #5208]
8137         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8138         __LONG_LONG_PAIR to handle little endian byte order.
8139         Suggested by abhishekrai@google.com
8141 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8143         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8145 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8147         * nscd/cache.c (prune_cache): Move test for modified file outside
8148         of locking.
8150 2007-10-21  Andreas Jaeger  <aj@suse.de>
8152         * manual/texinfo.tex: Update to latest version.
8154         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8156         * manual/arith.texi (Status bit operations): Fix formatting.
8158         * manual/errno.texi (Error Messages): Fix formatting.
8160         * manual/sysinfo.texi (System Parameters): Fix formatting.
8162         * manual/libc.texinfo: Update VERSION and UPDATED.
8164 2007-10-19  Roland McGrath  <roland@redhat.com>
8166         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8168 2007-10-06  David S. Miller  <davem@davemloft.net>
8170         * configure.in: Add sparcv9v2 and sparc64v2.
8171         * scripts/config.sub: Likewise.
8172         * configure: Regenerate.
8173         * elf/elf.h (HWCAP_SPARC_N2): New.
8174         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8175         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8176         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8177         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8178         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8179         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8180         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8182 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8184         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8185         even if the poll result indicates there is data to read.
8186         Patch by Jeff Moyer <jmoyer@redhat.com>.
8188 2007-10-18  Roland McGrath  <roland@redhat.com>
8190         * elf/elf.h (NT_PPC_VMX): New macro.
8192 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8194         * version.h (VERSION): Set to 2.7.90.
8196 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8198         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8199         weak_alias.
8201 2007-10-17  Roland McGrath  <roland@frob.com>
8203         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8204         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8206 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8208         * version.h (VERSION): Bump to 2.7.
8209         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8211         [BZ #5186]
8212         * time/tzset.c (__tz_convert): Don't force testing for a change of
8213         TZ if not called from localtime.  But then also see whether the
8214         file changed, in case __use_tzfile is set.
8216         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8217         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8218         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8219         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8220         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8221         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8222         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8223         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8225 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8227         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8228         and admin selects to be able to replace the gai.conf file, lock
8229         data structures around the qsort call.
8231 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8233         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8234         new memset.
8235         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8236         too high for the improvements.  Implement bzero unconditionally for
8237         use in libc.
8239 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8240             Jakub Jelinek  <jakub@redhat.com>
8242         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8243         even when time_t is 32-bit.
8244         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8245         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8246         always set after the search.
8248 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8250         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8251         unreachable code on 32-bit machines.
8253 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8255         [BZ #5184]
8256         * time/strftime_l.c: Include stdbool.h.
8257         (my_strftime): New wrapper, old function renamed to...
8258         (__strftime_internal): ... new function.  Add tzset_called
8259         argument, pass it down to recursive calls, don't call tzset ()
8260         if already true, set to true after call to tzset ().
8262 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8264         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8265         into account when copying TZ string.
8267 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8269         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8270         num_transition rather than num_transitions - 1.
8272 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8274         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8275         PIC indirect jump.
8277         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8278         a local label rather than HIDDEN_JUMPTARGET.
8280 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8282         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8283         (init_cacheinfo): Initialize it.
8284         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8285         Always define bzero.
8286         Remove non-glibc code.
8287         * sysdeps/x86_64/bzero.S: Make an empty file.
8289 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8291         * sysdeps/x86_64/cacheinfo.c
8292         (__x86_64_preferred_memory_instruction): New.
8293         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8295         * sysdeps/x86_64/memset.S: Rewrite.
8297 2007-10-15  Roland McGrath  <roland@redhat.com>
8299         * po/libc.pot: Regenerated.
8301 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8303         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8304         pointers.
8306         [BZ #3425]
8307         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8308         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8309         address record to T_A/T_AAAA requests.
8311 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8313         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8315         * posix/glob.c: Add some branch prediction throughout.
8317         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8318         read from nscd.
8320         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8321         service_order.
8322         (rfc3484_sort): Make sure that even if qsort doesn't support
8323         stable sorting out sorting here is stable by comparing service_order.
8324         (getaddrinfo): Initialize service_order.
8325         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8326         service_order field to sorting structure.
8327         * posix/tst-rfc3484-2.c (do_test): Likewise.
8329         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8330         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8331         __tzset_parse_tz and updating of daylight, timezone, tzname into
8332         update_vars.
8333         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8334         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8335         happens in __tz_compute.
8336         * time/tzfile.c (__tzfile_read): Also read TZ string.
8337         (find_transition): Fold into __tzfile_compute.
8338         (__tzfile_compute): For times beyond the last transition try to
8339         use the TZ string.
8340         * timezone/tst-timezone.c: Information in daylight and tzname does
8341         change for Asia/Tokyo timezone with more concrete information.
8342         Remove the test.
8344         * include/stdio.h: Add libc_hidden_proto for ftello.
8345         * libio/ftello.c: Add libc_hidden_def.
8347         [BZ #1140]
8348         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8349         on the specified time and not the last entries in the file.  Move
8350         code to determine tzname[] to...
8351         (find_transition): ...here.  Add ugly guess for times before the
8352         first transition.
8354 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8356         [BZ #3195]
8357         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8358         no entry.
8359         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8360         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8361         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8362         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8364         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8365         read mechanism when there are no group members and avoid no-op
8366         read syscall in this case.
8368         [BZ #3242]
8369         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8370         (__readall): If reading failed due to EAGAIN error wait a bit
8371         and possibly try again.
8372         (__readvall): Likewise.
8374 2007-10-13  Bruno Haible  <bruno@clisp.org>
8376         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8377         when we cannot recode the message.
8379 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8381         [BZ #4359]
8382         * libio/__freading.c (__freading): Don't return true for
8383         write-only streams.  For read/write streams, check whether we
8384         performed a read operation already.
8385         * libio/Makefile (tests): Add tst-ext2.
8386         * libio/tst-ext2.c: New file.
8388 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8390         * locale/programs/repertoire.c (repertoire_read): Always free
8391         memory for repertoire file name [Coverity CID 270].
8393         * elf/cache.c (save_aux_cache): Free memory allocated for
8394         temporary file name [Coverity CID 267].
8396 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8398         * misc/Makefile (headers): Add bits/error.h.
8400 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8402         * posix/fnmatch_loop.c: Take rule index returned as part of
8403         findidx return value into account when accessing weights.
8404         * posix/regcomp.c: Likewise.
8405         * posix/regexec.c: Likewise.
8407         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8408         (skip_to): Fix problems with parameter of elifdef/elifndef.
8410 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8412         * iconv/gconv_simple.c: Add some branch prediction.
8414 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8416         * locale/programs/ld-collate.c (collate_read): If ignore_content
8417         and nowtok is tok_define, eat any tok_eol tokens.
8419 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8421         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8422         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8424         * inet/netinet/in.h: Don't include bits/socket.h.
8425         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8426         macro.
8427         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8429 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8431         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8432         and tok_elifndef.
8433         * locale/programs/locfile-kw.gperf: Likewise.
8434         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8436 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8438         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8439         (__find_specwc): Change into __extern_always_inline function.
8440         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8441         (__parse_one_specmb): Remove ps argument.
8442         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8443         Adjust __find_specmb and __parse_one_specmb callers.
8444         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8445         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8446         Removed.
8447         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8448         caller.
8450 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8452         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8453         with some Pentium Ds.
8455 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8457         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8458         __read not read.
8459         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8460         __write not write.
8462 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8464         [BZ #181]
8465         * locale/C-time.c: Set week_1stday data to 19971201.
8466         * locale/programs/ld-time.c (time_finish): Default for
8467         first_workday is Monday.
8469         [BZ #2633]
8470         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8472         [BZ #5103]
8473         * posix/glob.c (glob): Recognize patterns starting \/.
8474         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8475         (main): Add test for pattern starting \/.
8477         * misc/error.h: Use __const instead of const.
8478         * misc/bits/error.h: Likewise.
8480 2007-10-07  Andreas Jaeger  <aj@suse.de>
8482         * include/bits/error.h: New file.
8484         * misc/bits/error.h (error_at_line): Fix prototype.
8486 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8488         [BZ #3924]
8489         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8490         more little bugs in creating the stack frame when pltexit has to
8491         be called.
8493         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8494         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8496         [BZ #4407]
8497         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8498         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8499         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8500         * math/libm-test.inc: Add test for this case.
8502         [BZ #5010]
8503         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8504         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8505         map service succeeded.
8506         (svc_is_mapped): New function.
8507         (svc_unregister): Use it before trying to unmap service.
8509 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8511         * timezone/zic.c: Update from tzcode2007h.
8513         [BZ #5063]
8514         * timezone/africa: Update from tzdata2007h.
8515         * timezone/antarctica: Likewise.
8516         * timezone/asia: Likewise.
8517         * timezone/australasia: Likewise.
8518         * timezone/europe: Likewise.
8519         * timezone/leapseconds: Likewise.
8520         * timezone/northamerica: Likewise.
8521         * timezone/southamerica: Likewise.
8522         * timzeone/zone.tab: Likewise.
8524         [BZ #5104]
8525         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8527         [BZ #5113]
8528         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8529         avoid warning with -Wconversion.
8530         (__strndup): Likewise.
8531         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8533         [BZ #5112]
8534         * nscd/connections.c (restart): Don't resync if database is
8535         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8537         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8538         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8540         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8541         evetnfd_read, eventfd_write.
8542         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8543         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8544         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8545         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8546         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8547         eventfd_write for GLIBC_2.7.
8549         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8550         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8551         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8552         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8554 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8556         * stdlib/msort.c: Include stdint.h.
8557         (struct msort_param): New type.
8558         (msort_with_tmp): Use struct msort_param pointer for unchanging
8559         parameters.  Add optimized handling for several common sizes
8560         and indirect sorting mode.
8561         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8562         sorting.
8563         Suggested by Belazougui Djamel .
8565         * stdlib/Makefile (tests): Add tst-qsort2.
8566         * stdlib/tst-qsort2.c: New test.
8568 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8570         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8571         for dup2 in case another thread races with the current one.  Retry
8572         in this case.
8574         * misc/error.h: Remove support for use outside of libc.  We have to
8575         include <features.h> now.  Include <bits/error.h> if possible.
8576         * misc/bits/error.h: New file.
8578 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8580         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8581         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8582         __extern_always_inline functions unconditionally, drop macros.
8584         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8585         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8586         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8588         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8589         add __artificial__ attribute.
8591 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8593         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8594         backward to forward direction.
8596         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8598         [BZ #645]
8599         * locale/programs/ld-collate.c (collate_finish): Compare against last
8600         used section which is known to have rules defined.
8601         (collate_read): After order_start, correctly record order of sections
8602         and queue sections up.
8604 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8606         [BZ #5071]
8607         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8608         the same number of pages.
8609         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8611         * locale/programs/ld-collate.c (collate_read): After initial copy
8612         statement, continue in state 0.
8614         * include/stdio_ext.h (__fsetlocking): Define as macro.
8616 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8618         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8619         of section order.
8621         * po/pt_BR.po: Fix typo.
8623 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8625         * iconvdata/Makefile (modules): Add ISO8859-9E.
8626         (distribute): Add iso8859-9e.c.
8627         (gen-8bit-gap-modules): Add iso8859-9e.
8628         * iconvdata/iso8859-9e.c: New file.
8629         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8630         * iconvdata/TESTS: Likewise.
8631         * iconvdata/tst-tables.sh: Likewise.
8633         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8635         * locale/iso-639.def: Add several new entries.
8637 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8639         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8640         void * pointers instead of struct link_map **.
8641         (_dl_scope_free): Change argument type to void *.
8642         * include/link.h (struct link_map): Change type of l_reldeps
8643         to struct link_map_reldeps, move l_reldepsact into that
8644         struct too.
8645         * elf/dl-deps.c: Include atomic.h.
8646         (_dl_map_object_deps): Only change l->l_initfini when it is
8647         fully populated, use _dl_scope_free for freeing it.  Optimize
8648         removal of libs from reldeps by using l_reserved flag, when
8649         some removal is needed, allocate a new list instead of
8650         reallocating and free the old with _dl_scope_free.  Adjust
8651         for l_reldeps and l_reldepsact changes.
8652         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8653         searching in l_initfini and l_reldeps without holding dl_load_lock.
8654         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8655         l_reldepsact changes.
8656         * elf/dl-close.c (_dl_close_worker): Likewise.
8657         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8659 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8661         * iconvdata/Makefile (modules): Add KOI8-RU.
8662         (distribute): Add koi8-ru.c.
8663         (gen-8bit-gap-modules): Add koi8-ru.
8664         * iconvdata/koi8-ru.c: New file.
8665         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8666         * iconvdata/TESTS: Likewise.
8667         * iconvdata/tst-tables.sh: Likewise.
8669         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8671 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8673         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8674         with __warning__/__error__ attributes.
8675         (__warnattr): Define.
8676         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8677         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8678         __warnattr.
8679         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8680         of __*_chk if compile time detectable overflow is found.
8681         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8682         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8683         with __warnattr.
8684         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8685         instead of __*_chk if compile time detectable overflow is found.
8686         (__gets_alias): Rename to...
8687         (__gets_warn): ... this.  Add __warnattr.
8688         (gets): Call __gets_warn instead of __gets_alias.
8689         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8690         aliases with __warnattr.
8691         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8692         time detectable overflow is found.
8693         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8694         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8695         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8696         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8697         __getdomainname_chk_warn): New aliases with __warnattr.
8698         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8699         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8700         __*_chk_warn instead of __*_chk if compile time detectable overflow
8701         is found.
8702         (__getgroups_chk): Rename argument to __listlen from listlen.
8703         (__getwd_alias): Rename to...
8704         (__getwd_warn): ... this.  Add __warnattr.
8705         (getwd): Call __getwd_warn instead of __getwd_alias.
8706         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8707         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8708         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8709         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8710         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8711         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8712         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8713         compile time detectable overflow is found.
8714         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8715         to use __*_chk or not.
8716         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8717         in comparisons which function should be called and in __*_chk*
8718         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8719         detectable overflow is found.
8720         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8721         __*_chk argument.
8722         * debug/tst-chk1.c (do_test): Add a few more tests.
8724 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8726         [BZ #5058]
8727         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8728         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8729         (_nl_unload_domain): Finalize conversions_lock.
8730         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8731         handling table of known conversions.
8733 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8735         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8736         close_not_cancel_no_status instead of close.
8738 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8740         [BZ #5028]
8741         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8742         nrules != 0 for multibyte chars.
8744 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8746         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8747         Provide better error message in case the type is unknown.
8749         [BZ #4963]
8750         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8751         * string/stratcliff.c: Make usable to test wide char functions.
8752         * wcsmbs/wcsatcliff.c: New file.
8753         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8755         [BZ #4972]
8756         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8757         (distribute): Add mac-centraleurope.c.
8758         (gen-8bit-gap-modules): Add mac-centraleurope.
8759         * iconvdata/mac-centraleurope.c: New file.
8760         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8761         * iconvdata/TESTS: Likewise.
8762         * iconvdata/tst-tables.sh: Likewise.
8764         [BZ #5043]
8765         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8767 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8769         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8770         from __x86_64_core_cache_size_half.
8771         (init_cacheinfo): Compute shared cache size for AMD processors with
8772         shared L3 correctly.
8773         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8774         name change.
8775         Patch in large parts by Evandro Menezes.
8777 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8779         * elf/dl-lookup.c (add_dependency): Handle failing memory
8780         allocation for dependency list.  Remove unnecessary check.
8782         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8783         open/close when determining source addresses.
8785         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8786         sha512-crypt, and sha512.
8787         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8788         (distribute): Add sha256.h and sha512.h.
8789         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8790         and call the appropriate code.
8791         * crypt/sha256-crypt.c: New file.
8792         * crypt/sha256.c: New file.
8793         * crypt/sha256.h: New file.
8794         * crypt/sha256c-test.c: New file.
8795         * crypt/sha256test.c: New file.
8796         * crypt/sha512-crypt.c: New file.
8797         * crypt/sha512.c: New file.
8798         * crypt/sha512.h: New file.
8799         * crypt/sha512c-test.c: New file.
8800         * crypt/sha512test.c: New file.
8802 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8804         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8805         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8806         __syslog_chk.
8808 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8810         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8811         %as in fscanf format strings.
8813         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8814         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8815         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8816         Likewise.
8817         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8818         Likewise.
8820         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8821         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8822         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8823         * elf/dl-sym.c (do_sym): Likewise.
8824         * include/link.h (struct link_map): Add l_serial field.
8825         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8826         * elf/dl-lookup.c (add_dependency): Add flags argument.
8827         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8828         flags, use THREAD_GSCOPE_RESET_FLAG before and
8829         THREAD_GSCOPE_SET_FLAG after
8830         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8831         Don't dereference map until it has been found on some list.
8832         If map->l_serial changed, return -1.
8834 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8836         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8837         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8838         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8839         libc_hidden_proto.
8840         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8841         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8842         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8843         add libc_hidden_proto.
8844         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8845         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8846         conformance requested.
8847         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8848         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8849         conformance requested.
8850         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8851         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8852         conformance requested.
8853         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8854         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8855         ISO C99 or POSIX conformance requested.
8856         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8857         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8858         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8859         and __isoc99_vsscanf@@GLIBC_2.7.
8860         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8861         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8862         (tests): Add scanf14.
8863         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8864         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8865         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8866         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8867         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8868         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8869         from using internal headers.
8870         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8871         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8872         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8873         and __isoc99_vswscanf@@GLIBC_2.7.
8874         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8875         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8876         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8877         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8878         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8879         * stdio-common/isoc99_scanf.c: New file.
8880         * stdio-common/isoc99_vsscanf.c: New file.
8881         * stdio-common/isoc99_vscanf.c: New file.
8882         * stdio-common/isoc99_vfscanf.c: New file.
8883         * stdio-common/isoc99_fscanf.c: New file.
8884         * stdio-common/isoc99_sscanf.c: New file.
8885         * wcsmbs/isoc99_fwscanf.c: New file.
8886         * wcsmbs/isoc99_vswscanf.c: New file.
8887         * wcsmbs/isoc99_swscanf.c: New file.
8888         * wcsmbs/isoc99_wscanf.c: New file.
8889         * wcsmbs/isoc99_vwscanf.c: New file.
8890         * wcsmbs/isoc99_vfwscanf.c: New file.
8891         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8892         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8893         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8894         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8895         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8896         * stdio-common/scanf14.c: New test.
8897         * stdio-common/scanf15.c: New test.
8898         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8899         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8900         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8901         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8902         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8903         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8904         __nldbl___isoc99_scanf@@GLIBC_2.7,
8905         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8906         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8907         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8908         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8909         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8910         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8911         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8912         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8913         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8914         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8915         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8916         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8917         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8918         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8919         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8920         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8921         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8922         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8923         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8924         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8925         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8926         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8927         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8928         functions.
8929         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8930         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8931         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8932         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8933         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8934         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8935         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8936         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8937         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8938         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8939         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8940         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8942         * stdio-common/Makefile (tests): Add scanf13.
8943         (scanf13-ENV): New.
8944         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8945         m modifier followed by l.
8946         (STRING_ARG): Add width argument.
8947         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8948         <case L_('C')>: Handle %mlc and %mC.
8949         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8950         arguments.
8951         * stdio-common/scanf13.c: New test.
8953         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8954         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8956 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8958         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8959         type and __THROW marker of splice, vmsplice, and tee.
8960         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8961         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8962         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8963         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8964         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8965         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8966         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8967         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8968         as cancellation points.
8970 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8972         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8973         parse more than three parts of the version number.
8975 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8977         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8978         modifier.  Patch by Jakub Jelinek.
8980 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8982         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8983         call_fallocate in misc subdir.
8984         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8985         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8986         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8987         instead of __fallocate64.
8988         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8990 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8992         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8993         * rt/Makefile (headers): Add bits/mqueue2.h.
8994         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8995         optimizing with GCC and __va_arg_pack_len is defined.
8996         * rt/bits/mqueue2.h: New file.
8997         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8998         (mq_open): New strong_alias.
8999         (__mq_open_2): New function.
9000         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9001         (mq_open): New strong_alias.
9002         (__mq_open_2): New function.
9003         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9004         * Versions.def (librt): Add GLIBC_2.7 version.
9005         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9006         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9008         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9009         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9010         is defined rather than when not C++.
9011         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9012         __openat64_alias): New redirects.
9013         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9014         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9015         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9016         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9017         functions instead of function-like macros.
9019 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9021         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9022         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9023         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9025 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9027         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9028         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9030 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9032         * inet/tst-network.c: Increment ERRORS for failing tests.
9034 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9036         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9037         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9038         implement as __extern_always_inline function.
9039         (vsyslog): Define as __extern_always_inline function unconditionally.
9040         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9041         When __va_arg_pack is defined, implement as __extern_always_inline
9042         functions.
9043         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9044         __extern_always_inline functions unconditionally.
9045         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9046         bits/stdio2.h will be included.
9047         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9048         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9049         implement as __extern_always_inline functions.
9050         (vswprintf, vwprintf, vfwprintf): Define as
9051         __extern_always_inline functions unconditionally.
9052         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9054 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9056         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9057         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9058         attribute.
9059         * include/features.h (__USE_EXTERN_INLINES): Define only when
9060         __extern_inline is defined.
9061         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9062         is defined instead of when not __cplusplus.
9063         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9064         is defined instead of when not __cplusplus.
9065         * socket/sys/socket.h: Include bits/socket2.h when
9066         __extern_always_inline is defined instead of when not __cplusplus.
9067         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9068         is defined instead of when not __cplusplus.
9069         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9070         is defined instead of when not __cplusplus.
9071         * string/string.h: Include bits/string3.h when __extern_always_inline
9072         is defined instead of when not __cplusplus.
9073         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9074         is defined instead of when not __cplusplus.
9075         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9076         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9077         is not defined.
9078         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9079         defined __extern_always_inline instead of !defined __cplusplus.
9080         * libio/bits/stdio-ldbl.h: Likewise.
9081         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9082         * misc/bits/syslog.h (syslog): Don't define for C++.
9083         (vsyslog): Use __extern_always_inline function for C++ instead of
9084         a macro.
9085         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9086         whenever that macro is defined.
9087         (vprintf): Don't provide the inline for C++.
9088         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9089         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9090         define the macros for C++.
9091         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9092         __extern_always_inline functions for C++.
9093         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9094         stat64, lstat64, fstat64, fstatat64): Don't define if not
9095         __USE_EXTERN_INLINES.
9096         * wcsmbs/bits/wchar2.h: Fix #error message.
9097         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9098         (vswprintf, vwprintf, vfwprintf): Define using
9099         __extern_always_inline functions for C++.
9100         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9101         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9102         strncpy, strcat, strncat): Define as __extern_always_inline
9103         functions instead of macros for C++.
9104         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9105         defined __extern_inline.
9106         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9107         to __extern_inline whenever that macro is defined.
9108         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9109         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9110         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9111         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9112         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9113         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9114         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9115         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9116         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9117         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9118         prototypes.  Only provide __extern_inline routines if
9119         __USE_EXTERN_INLINES.
9120         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9121         tests.
9122         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9123         For now avoid some *printf tests in C++.  Skip all testing
9124         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9125         is not.
9126         * debug/tst-chk4.cc: New file.
9127         * debug/tst-chk5.cc: New file.
9128         * debug/tst-chk6.cc: New file.
9129         * debug/tst-lfschk4.cc: New file.
9130         * debug/tst-lfschk5.cc: New file.
9131         * debug/tst-lfschk6.cc: New file.
9132         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9133         prototypes in C++.
9134         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9135         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9136         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9138 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9140         * po/cs.po: Update from translation team.
9142 2007-09-11  Roland McGrath  <roland@redhat.com>
9144         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9145         compiling.
9147 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9149         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9151 2007-09-05  Roland McGrath  <roland@redhat.com>
9153         * manual/signal.texi (Signaling Another Process): Typo fix.
9154         From Karl Berry <karl@freefriends.org>.
9156 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9158         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9159         zero if not defined.
9160         (make_request): Recognize optimistic addresses and treat them like
9161         deprecated addresses.
9162         Reported by Neil Horman <nhorman@redhat.com>.
9164 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9166         * nscd/connections.c (send_ro_fd): Also transfer file size.
9167         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9168         file size don't call fstat.
9170         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9171         ahead and map the file.  This should always be correct and we can
9172         catch problems later.
9174 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9176         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9177         prototypes.
9178         (__fread_alias, __fread_unlocked_alias): New aliases.
9179         (fread): New extern inline.
9180         (fread_unlocked): Likewise.  Undef macro before definition of
9181         the inline function.
9182         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9183         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9184         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9185         and __fread_unlocked_chk@@GLIBC_2.7.
9186         * debug/fread_chk.c: New file.
9187         * debug/fread_u_chk.c: New file.
9188         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9190 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9192         * sysdeps/unix/sysv/linux/syscalls.list
9193         (personality): Change caller to EXTRA.
9195 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9197         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9198         to keep gcc quiet.
9199         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9201         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9202         NDEBUG is defined.
9204         * Makerules: Use -p option with mkdir.
9206         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9207         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9208         (_xdr_directory_obj): Likewise.
9209         (xdr_entry_obj): Likewise.
9210         (xdr_group_obj): Likewise.
9211         (xdr_link_obj): Likewise.
9212         (xdr_table_obj): Likewise.
9213         (_xdr_nis_result): Likewise.
9214         (_xdr_ns_request): Likewise.
9215         (_xdr_ib_request): Likewise.
9216         (_xdr_nis_taglist): Likewise.
9217         (xdr_cback_data): Likewise.
9218         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9219         (xdr_ypresp_maplist): Likewise.
9221         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9223         * posix/regex_internal.h: Prevent some declarations and definitions
9224         to be seen when used in tests.
9226         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9227         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9229         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9231         * config.make.in (datarootdir): Add to shut up configure.
9233         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9234         associativity for fully-associative caches.
9236         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9237         requests.  Fill on more associativity values for L2.
9238         Patch mostly by Evandro Menezes.
9240 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9242         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9243         (_libc_vdso_platform_setup): Avoid using exported variable by using
9244         alias.
9246         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9248         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9249         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9250         defined.
9252 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9254         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9255         align stack for call if pltexit is to be used.
9257         [BZ #3924]
9258         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9259         align for function call in case pltexit has to be called later.
9261         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9262         implicit atomic operation when storing function pointer.
9263         (_dl_runtime_profile): Likewise.
9265 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9267         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9268         NIS_NOTFOUND.
9270 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9272         [BZ #4566]
9273         * string/strtok.c: Fix typo in comment.
9275         [BZ #4582]
9276         * debug/segfault.c: Fix typos in comments.
9278         [BZ #4588]
9279         * stdio-common/tempnam.c: Fix comment, it is not checked that
9280         TMPDIR points to a writable directory.
9282         [BZ #4726]
9283         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9284         memory allocated for the name server address.
9286         [BZ #4946]
9287         * nscd/connections.c (handle_request): Using sendfile always
9288         requires that mmap is used for the database.
9289         Patch by Petr Baudis <pasky@suse.cz>.
9291         [BZ #4905]
9292         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9293         suddenly has two or more addresses, ignore it and remove the old
9294         entry.
9296         [BZ #4814]
9297         * resolv/res_hconf.c: Prepare for compiling outside libc.
9298         * nscd/res_hconf.c: New file.
9299         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9300         the new file.
9301         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9302         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9304         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9306         [BZ #4925]
9307         * debug/pcprofiledump.c: Turn on internationalization by calling
9308         setlocale.  Patch mostly by Benno Schulenberg.
9310         [BZ #4936]
9311         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9312         the state.
9313         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9314         * iconvdata/bug-iconv5.c: New file.
9316 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9318         [BZ #4896]
9319         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9320         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9321         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9322         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9323         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9324         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9325         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9326         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9328 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9330         [BZ #4937]
9331         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9332         lookup loop.  Suggested by John Reiser.
9334 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9336         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9338 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9340         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9341         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9342         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9343         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9344         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9345         to...
9346         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9348 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9350         * po/nl.po: Update from translation team.
9352 2007-08-16  Andreas Jaeger  <aj@suse.de>
9354         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9355         Reported by Peter Festner <peter.festner@ewetel.net>.
9357 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9359         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9361 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9363         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9364         to check for undefined symbols.
9366         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9367         If the syscall fails, set errno to the actual returned error number
9368         rather than EINVAL.
9369         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9370         arguments are incorrect, set errno to EINVAL, if the syscall
9371         fails, set errno to the actual returned error number.
9373         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9374         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9376         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9377         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9378         file.
9379         (ASI_PNF, ASI_BLK_P): Don't define.
9380         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9381         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9382         file.
9383         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9384         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9385         file.
9387 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9389         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9390         FE_UNDERFLOW on Niagara CPUs.
9392         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9393         exceptions.
9395 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9397         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9398         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9399         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9400         flush should be used or not inside of the function.
9401         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9403         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9404         __thread_start): Use HIDDEN_JUMPTARGET.
9405         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9406         __thread_start): Likewise.
9407         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9409         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9410         Add libc_hidden_proto.
9411         (STRTOF): Add libc_hidden_proto.
9412         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9413         (strtold_l, wcstold_l): Use them as second argument for
9414         long_double_symbol.
9416 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9418         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9420 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9422         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9424 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9426         * po/bg.po: New file.  From the translation team.
9428 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9430         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9431         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9432         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9433         when each feature was introduced.
9435         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9436         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9437         (CHECK_HASH): New macro.
9438         (PREPARE_VERSION): Use it.
9440         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9441         prototype if not __ASSUME_PSELECT.
9442         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9443         prototype if not __ASSUME_PPOLL.
9445         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9447         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9448         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9449         is defined.
9451 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9453         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9454         (_libc_vdso_platform_setup): If vDSO is not available point
9455         __vdso_gettimeofday to the vsyscall.
9456         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9457         __vdso_gettimeofday instead of vsyscall.
9459 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9461         * nscd/servicescache.c: Include kernel-features.h.
9462         * nscd/gai.c: Likewise.
9463         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9464         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9465         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9466         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9467         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9468         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9469         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9470         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9471         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9473 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9475         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9476         and _dl_get_origin defines anymore.
9478         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9479         Build fix for systems which might lack POSIX timer support.
9481         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9482         (_libc_vdso_platform_setup): Mangle function pointers before storing
9483         them.
9484         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9485         Demangle vdso pointer before use.
9486         (INTERNAL_VSYSCALL): Likewise.
9488         * elf/cache.c (primes): Mark as const.
9489         Noted by Roland McGrath.
9491 2007-08-01  Andreas Jaeger  <aj@suse.de>
9492             Jakub Jelinek  <jakub@redhat.com>
9494         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9495         (options): Add option.
9496         (parse_opt): Handle option.
9497         (manual_link): Adjust process_file caller.  Call implicit_soname.
9498         (search_dir): Formatting.  Use and populate auxiliary cache.
9499         (main): Load and save auxiliary cache.
9500         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9501         stat64 from fstat64 to caller.
9502         (implicit_soname): New function.
9503         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9504         leave *soname as NULL.
9505         * elf/cache.c: Include libgen.h.
9506         (print_entry, print_cache, compare, save_cache, add_to_cache):
9507         Formatting and cleanups.
9508         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9509         aux_cache_file): New structures.
9510         (AUX_CACHEMAGIC): Define.
9511         (primes): New array.
9512         (aux_hash_size, aux_hash): New variables.
9513         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9514         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9515         load_aux_cache, save_aux_cache): New functions.
9516         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9517         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9518         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9519         (process_file): Adjust prototype.
9521 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9523         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9524         with __need_size_t.
9526 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9528         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9529         r_found_version structure as second parameter.
9530         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9531         (_dl_vdso_vsym): Change type of second parameter accordingly.
9532         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9533         (_libc_vdso_platform_setup): Adjust.
9534         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9535         (_libc_vdso_platform_setup): Likewise.
9537         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9538         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9539         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9540         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9541         * csu/libc-start.c: Pretty printing.
9542         Use VDSO_SETUP if defined.
9543         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9544         and let generic code call into _libc_vdso_platform_setup.
9545         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9546         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9547         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9548         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9549         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9550         for GLIBC_PRIVATE.
9551         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9552         (sysdep_rountines): Add dl-vdso.
9554         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9555         of routines.
9557         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9558         attribute_hidden to __vdso_gettimeofday prototype.
9560 2007-08-12  Roland McGrath  <roland@redhat.com>
9562         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9563         From: Karl Berry <karl@freefriends.org>.
9565 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9567         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9568         an atime update for the files we read.
9570 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9572         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9574         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9575         instead of mkstemp.
9577         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9578         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9579         * misc/mkostemp.c: New file.
9580         * misc/mkostemp64.c: New file.
9581         * stdlib/stdlib.h: Declare the new functions.
9582         * sysdeps/posix/tempname.c: Add new parameter which is added to
9583         the flags for open.  Remove __GT_BIGFILE handling.
9584         * stdio-common/tempname.c: Likewise.
9585         * include/stdio.h: Adjust __gen_tempname prototype.
9586         Renumber __GT_* constants.
9587         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9588         * misc/mkdtemp.c: Likewise.
9589         * misc/mkstemp.c: Likewise.
9590         * misc/mkstemp64.c: Likewise.
9591         * misc/mktemp.c: Likewise.
9592         * stdio-common/tempnam.c: Likewise.
9593         * stdio-common/tmpfile.c: Likewise.
9594         * stdio-common/tmpfile64.c: Likewise.
9595         * stdio-common/tmpnam.c: Likewise.
9596         * stdio-common/tmpnam_r.c: Likewise.
9598 2007-08-10  Roland McGrath  <roland@frob.com>
9600         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9601         New macros.
9602         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9603         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9605 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9607         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9608         possible.
9609         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9610         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9611         * nss/nss_files/files-have_o_cloexec.c: New file.
9613         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9614         available.
9616 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9618         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9619         ___new_wcstold_l): New weak aliases.
9620         (strtold_l, wcstold_l): Use them as second argument for
9621         long_double_symbol.
9623 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9625         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9626         register in test for error.
9628         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9629         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9631         * po/sv.po: Update from translation team.
9633 2007-08-06  Roland McGrath  <roland@redhat.com>
9635         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9636         Remove __strto*_l inlines.
9637         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9638         * stdlib/strtod.c: Add libc_hidden_def.
9639         * stdlib/strtod_l.c: Likewise.
9640         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9641         for __new_strtold and __new_wcstold.
9642         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9643         __STRTOF, STRTOF.
9644         * stdlib/strtol.c: Add libc_hidden_def.
9645         * stdlib/strtol_l.c: Likewise.
9646         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9647         strtoq.
9649         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9651         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9652         * scripts/data/localplt-generic.data: ... here.
9653         * elf/Makefile (check-data): Get generic file if no other.
9654         ($(objpfx)check-localplt.out): Make target unconditional.
9656         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9657         Use ElfW(Nhdr).
9659 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9661         * po/zh_CN.po: Updated translation from translation team.
9663 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9666         Don't use CGOTSETUP and CGOTRESTORE macros.
9668 2007-08-04  Roland McGrath  <roland@redhat.com>
9670         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9672 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9674         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9675         __extension__ around the whole statement expression.
9677 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9679         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9680         elements during initialization.
9682         * po/pl.po: Updated translation from translation team.
9683         * po/tr.po: Likewise.
9684         * po/nl.po: Likewise.
9686 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9688         * rt/aio.h: Add __nonnull attributes.
9690 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9692         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9693         * stdlib/Makefile (tests): Add tst-strtod5.
9694         (tst-strtod5-ENV): New.
9695         * stdlib/tst-strtod5.c: New file.
9697         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9698         failed.
9699         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9700         on failure.
9702         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9703         allocated.
9705 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9707         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9708         numbers.
9710 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9712         * io/Makefile (aux): Add have_o_cloexec.
9713         * include/fcntl.h: Declare __have_o_cloexec.
9714         * io/have_o_cloexec.c: New file.
9715         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9716         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9717         fcntl call if not necessary.
9718         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9719         of local variable.
9721         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9722         Avoid memset, add explicit initialization.
9723         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9724         to the end and change into zero-sized array.
9725         Move lock member to fill a hole on 64-bit platforms.
9727         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9728         inline functions.
9729         * include/stdlib.h: Add __strto*_internal prototypes here.
9730         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9731         inline functions.
9732         * include/wchar.h: Add __wcsto*_internal prototypes.
9733         * sysdeps/generic/inttypes.h: No need to protect the declaration
9734         of the __strto*_internal and __wcsto*_internal members here.
9736         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9738 2007-08-02  Roland McGrath  <roland@redhat.com>
9740         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9741         $(inst_bindir)/getconf if possible.
9743         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9744         (generated): Add it.
9745         ($(inst_libexecdir)/getconf): Use it.
9747 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9749         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9750         /proc is faster and sufficient.  /sys is still needed for
9751         __get_nprocs_conf.
9753 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9755         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9756         syscall as __fallocate64.
9757         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9758         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9760 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9762         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9763         value.
9765         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9766         if off_t is different rank from size_t.
9768         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9769         uw_frame_state_for): Avoid type punning warnings.
9770         * sysdeps/generic/unwind-dw2-fde-glibc.c
9771         (_Unwind_IteratePhdrCallback): Likewise.
9772         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9773         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9774         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9775         pointers.
9777 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9779         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9780         total processors using sysfs.
9781         (__get_nprocs): Use sysfs to determine which processors are online.
9783 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9785         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9786         syscall arguments count.
9788         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9790 2007-07-30  Roland McGrath  <roland@redhat.com>
9792         * manual/libc.texinfo: Update copyrights, formatting magic, and
9793         @dircategory.  From Karl Berry <karl@freefriends.org>.
9795 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9797         [BZ #4860]
9798         * io/Makefile (headers): Add bits/fcntl2.h.
9800         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9801         using gcc builtin.
9802         (__CPU_EQUAL_S): Likewise.
9804         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9805         (tests): Add tst-cpuset.
9806         * posix/sched_cpualloc.c: New file.
9807         * posix/sched_cpufree.c: New file.
9808         * posix/tst-cpuset.c: New file.
9809         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9810         GLIBC_2.7.
9811         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9812         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9813         macros.  Define CPU_*_S macros.
9815 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9817         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9818         entry.
9820         [BZ #4858]
9821         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9822         #.0g and value rounded to 1.0.
9823         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9825 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9827         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9828         for int_frac_digits and frac_digits.
9830         * login/logout.c (logout): Avoid aliasing violation.
9831         * login/logwtmp.c (logwtmp): Likewise.
9833         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9835         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9836         to avoid warning.
9837         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9838         warning.
9839         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9840         warning.
9841         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9842         to avoid warnings.
9844         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9845         void **.
9846         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9848         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9849         char * to avoid warning.
9850         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9852         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9854         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9855         allocate_arrays): Cast second argument to charmap_find_symbol
9856         to char * to avoid warnings.
9858         * locale/programs/repertoire.c (repertoire_new_char): Change
9859         from_nr, to_nr and cnt to unsigned long, adjust printf format
9860         string.
9862         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9863         Cast second argument to new_element to char * to avoid warnings.
9865         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9867         * intl/gettextP.h (struct loaded_domain): Change plural to const
9868         struct expression *.
9869         * intl/plural-eval.c (plural_eval): Change first argument to
9870         const struct expression *.
9871         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9872         argument to const struct expression **.
9873         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9874         prototypes.
9875         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9876         in call to __gettext_free_exp.
9878         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9879         unitialized wstring/wpattern var warnings.
9881         * posix/runtests.c (struct a_test): Make data field const char *.
9883         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9884         vars if not LDBL_MANT_DIG >= 106.
9886         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9888         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9889         __find_specmb to avoid warning.
9891         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9893         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9894         to avoid warnings.
9896         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9897         initializer.
9899         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9900         tv var when it will be actually used.
9902         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9903         to avoid warnings.
9905         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9906         char array resp. pointer.
9907         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9908         char array.
9909         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9910         to const unsigned char **.
9911         (ucs4_to_cns11643): Change second argument to unsigned char *.
9912         * iconvdata/euc-tw.c (BODY): Change endp type to
9913         const unsigned char *.
9914         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9915         to unsigned char *.
9916         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9917         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9918         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9919         types to unsigned char pointers/arrays instead of char.
9920         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9921         to unsigned char *.
9922         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9923         * iconvdata/jis0212.h: Include assert.h.
9924         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9925         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9926         of trying to handle that.
9927         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9928         shut up a warning.
9929         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9930         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9931         two dimensional const unsigned char arrays.
9932         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9933         Initialize endp to inptr to shut up a warning.
9935 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9937         [BZ #4772]
9938         * time/strptime_l.c (__strptime_internal): Silently ignore
9939         strftime modifiers and field width in recursive calls.
9941         * include/time.h (enum ptime_locale_status): Remove.
9942         (__strptime_internal): Remove decided and era_cnt arguments,
9943         add statep argument.
9944         * time/strptime_l.c (__strptime_internal): Remove decided
9945         and era_cnt arguments, add statep argument.  Don't recompute
9946         any fields in recursive calls, only update caller's tm
9947         and state, if recursive call fails, don't change tm nor
9948         any state.
9949         (get_alt_number): Adjust.
9950         (recursive): Adjust caller.
9951         (strptime): Likewise.
9952         * time/strptime.c (strptime): Likewise.
9954 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9956         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9957         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9958         if from and to charsets are the same.
9959         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9960         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9961         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9963 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9965         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9966         Don't define wint_t when __need_mbstate_t unless it
9967         is necessary.
9968         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9969         in the typedef if possible.
9970         * wctype/wctype.h (wint_t): Define by including
9971         wchar.h with __need_wint_t instead of including stddef.h
9972         with __need_wint_t and as fallback definining it ourselves.
9973         * iconv/gconv.h (__need_wint_t): Define before including
9974         wchar.h.
9975         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9976         or _GLIBCPP_USE_WCHAR_T.
9977         (__need_wchar_t): Don't define
9978         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9979         (__need_wint_t): Don't define before including stddef.h,
9980         define before including wchar.h only if _LIBC or
9981         _GLIBCPP_USE_WCHAR_T.
9982         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9983         * sysdeps/mach/hurd/_G_config.h: Likewise.
9984         * sysdeps/generic/_G_config.h: Likewise.
9985         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9986         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9987         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9988         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9990 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9992         * sysdeps/posix/posix_fallocate64.c: Undefine
9993         __posix_fallocate64_l64 before alias handling.
9994         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9995         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9996         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9997         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9999         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10001 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10003         * locale/programs/ld-collate.c (atwc): New variable.
10004         (add_to_tablewc): New toplevel function, moved from collate_output.
10005         (collate_output): Remove add_to_tablewc nested function.
10007         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10008         (name_insert): New function.
10009         (write_output): Remove hash_table and hash_size vars and name_insert
10010         nested function.
10012 2007-07-24  Roland McGrath  <roland@redhat.com>
10014         * Makerules (install-others-programs-nosubdir): New target.
10015         (install-no-libc.a-nosubdir): Depend on it.
10017         * iconv/Makefile (install-others-programs): Set this instead of
10018         install-others.
10019         * login/Makefile (install-others-programs): Likewise.
10020         * posix/Makefile (install-others-programs): Likewise.
10022         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10023         dependencies.
10025 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10027         * io/Makefile (tests): Add tst-posix_fallocate.
10028         * io/tst-posix_fallocate.c: New file.
10030         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10031         __ASSUME_FALLOCATE.
10033 2007-07-22  Roland McGrath  <roland@frob.com>
10035         * hurd/getdport.c: Add missing copyright year update.
10037         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10038         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10040 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10042         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10044         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10045         O_CLOEXEC is needed.
10046         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10047         Avoid additional fcntl to set O_CLOEXEC if not needed.
10048         * nis/nss_compat/compat-initgroups.c: Likewise.
10049         * nis/nss_compat/compat-pwd.c: Likewise.
10050         * nis/nss_compat/compat-spwd.c: Likewise.
10052 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10054         [BZ #3665]
10055         * manual/errno.texi: Change ECANCELED value to 119.
10057         [BZ #4610]
10058         * mach/lock-intern.h: Include <sys/cdefs.h>.
10060         [BZ #4178]
10061         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10062         reading A.
10064         [BZ #4126]
10065         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10066         to __sigsuspend.
10068         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10070 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10072         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10073         `__ASSEMBLER__'.
10074         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10076 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10078         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10079         descriptor received from nscd.
10081         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10083         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10084         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10085         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10086         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10087         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10090 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10092         [BZ #4816]
10093         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10095         [BZ #4813]
10096         * login/forkpty.c (forkpty): Close master and slave fds on
10097         fork failure.  Patch by
10098         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10100 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10102         * include/features.h (__USE_ISOC95): New define.
10103         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10104         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10105         for -std=iso9899:199409.
10106         * CONFORMANCE: Remove comments about unsupported AMD1.
10108 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10110         * sysdeps/ia64/sched_cpucount.c: New file.
10111         * sysdeps/powerpc/sched_cpucount.c: New file.
10113         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10114         __BEGIN_DECLS/__END_DECLS around the prototype.
10115         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10116         pointer to const cpu_set_t.
10118         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10119         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10120         __need_size_t and include stddef.h.
10121         * sysvipc/sys/msg.h: Likewise.
10122         * posix/sched.h: Likewise.
10123         * hurd/hurd/signal.h (__need_size_t): Define.
10125         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10126         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10127         no longer defines wint_t or wchar_t.
10129         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10130         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10131         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10132         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10133         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10134         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10135         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10136         * debug/printf_chk.c (__printf_chk): Likewise.
10137         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10138         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10140         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10141         Define.
10143         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10144         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10146 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10148         [BZ #4792]
10149         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10150         * malloc/malloc.h (realloc): Likewise.
10152         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10153         if one of proc_file_chain streams has that fileno.
10154         * stdio-common/Makefile (tests): Add tst-popen2.
10155         * stdio-common/tst-popen2.c: New test.
10157 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10159         * elf/ldconfig.c: Allow GPLv2 or any later version.
10160         * elf/readlib.c: Likewise.
10161         * elf/chroot_canon.c: Likewise.
10162         * elf/cache.c: Likewise.
10163         * nscd/mem.c: Likewise.
10164         * nscd/getpwuid_r.c: Likewise.
10165         * nscd/grpcache.c: Likewise.
10166         * nscd/aicache.c: Likewise.
10167         * nscd/getsrvbynm_r.c: Likewise.
10168         * nscd/nscd.c: Likewise.
10169         * nscd/servicescache.c: Likewise.
10170         * nscd/getsrvbypt_r.c: Likewise.
10171         * nscd/initgrcache.c: Likewise.
10172         * nscd/gethstbyad_r.c: Likewise.
10173         * nscd/gethstbynm2_r.c: Likewise.
10174         * nscd/getgrnam_r.c: Likewise.
10175         * nscd/nscd_setup_thread.c: Likewise.
10176         * nscd/getpwnam_r.c: Likewise.
10177         * nscd/gai.c: Likewise.
10178         * nscd/connections.c: Likewise.
10179         * nscd/dbg_log.c: Likewise.
10180         * nscd/cache.c: Likewise.
10181         * nscd/hstcache.c: Likewise.
10182         * nscd/nscd_conf.c: Likewise.
10183         * nscd/getgrgid_r.c: Likewise.
10184         * nscd/pwdcache.c: Likewise.
10185         * catgets/gencat.c: Likewise.
10186         * locale/programs/linereader.h: Likewise.
10187         * locale/programs/locarchive.c: Likewise.
10188         * locale/programs/ld-paper.c: Likewise.
10189         * locale/programs/locfile-kw.h: Likewise.
10190         * locale/programs/ld-address.c: Likewise.
10191         * locale/programs/xmalloc.c: Likewise.
10192         * locale/programs/ld-time.c: Likewise.
10193         * locale/programs/localedef.c: Likewise.
10194         * locale/programs/simple-hash.c: Likewise.
10195         * locale/programs/xstrdup.c: Likewise.
10196         * locale/programs/ld-numeric.c: Likewise.
10197         * locale/programs/locfile-kw.gperf: Likewise.
10198         * locale/programs/ld-collate.c: Likewise.
10199         * locale/programs/charmap-kw.gperf: Likewise.
10200         * locale/programs/charmap.h: Likewise.
10201         * locale/programs/charmap-kw.h: Likewise.
10202         * locale/programs/config.h: Likewise.
10203         * locale/programs/locfile.c: Likewise.
10204         * locale/programs/ld-ctype.c: Likewise.
10205         * locale/programs/charmap.c: Likewise.
10206         * locale/programs/ld-messages.c: Likewise.
10207         * locale/programs/repertoire.h: Likewise.
10208         * locale/programs/locale.c: Likewise.
10209         * locale/programs/ld-name.c: Likewise.
10210         * locale/programs/linereader.c: Likewise.
10211         * locale/programs/locfile.h: Likewise.
10212         * locale/programs/3level.h: Likewise.
10213         * locale/programs/ld-monetary.c: Likewise.
10214         * locale/programs/ld-measurement.c: Likewise.
10215         * locale/programs/charmap-dir.c: Likewise.
10216         * locale/programs/ld-identification.c: Likewise.
10217         * locale/programs/localedef.h: Likewise.
10218         * locale/programs/charmap-dir.h: Likewise.
10219         * locale/programs/repertoire.c: Likewise.
10220         * locale/programs/simple-hash.h: Likewise.
10221         * locale/programs/ld-telephone.c: Likewise.
10222         * locale/programs/locale-spec.c: Likewise.
10223         * locale/programs/locfile-token.h: Likewise.
10224         * posix/getconf.c: Likewise.
10225         * iconv/dummy-repertoire.c: Likewise.
10226         * iconv/iconv_charmap.c: Likewise.
10227         * iconv/iconvconfig.c: Likewise.
10228         * iconv/iconv_prog.c: Likewise.
10229         * malloc/memusagestat.c: Likewise.
10230         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10232 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10234         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10235         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10236         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10237         check for the first argument.
10239 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10241         [BZ #4775]
10242         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10243         (__tgmath_real_type): Fix if expr is const int or other const
10244         qualified integral type.
10245         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10246         expressions and handle const qualified arguments.
10247         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10248         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10249         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10250         statement expressions.
10251         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10252         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10253         (__TGMATH_UNARY_IMAG): Define.
10254         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10255         * math/Makefile (tests): Add test-tgmath2.
10256         (CFLAGS-test-tgmath2.c): Add.
10257         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10258         count_cfloat, count_cldouble): New variables.
10259         (NCCALLS): Define.
10260         (main): Check number of complex calls as well.
10261         (F(compile_test)): Add complex tests and tests with const qualified
10262         arguments.
10263         (y, z, ccount): Define.
10264         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10265         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10266         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10267         F(cproj)): New functions.
10268         * math/test-tgmath2.c: New test.
10270 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10272         [BZ #4776]
10273         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10274         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10275         instead output ".".
10276         * dlfcn/Makefile (distribute): Add glreflib3.c.
10277         (module-names): Add glreflib3.
10278         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10279         glreflib1.so.
10280         (LDFLAGS_glreflib3.so): New.
10281         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10282         glreflib1.so.
10283         * dlfcn/glreflib3.c: New file.
10285         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10286         returned -1, return NULL.
10287         * intl/explodename.c (_nl_explode_name): Return -1 if
10288         _nl_normalize_codeset failed.
10290 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10292         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10293         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10294         and avoid branch misspredicts for > 31 bytes memset case.
10295         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10296         Remove toc ref to __cache_line_size.
10298         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10299         to get ISA-V2.0 branch hints.
10300         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10301         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10302         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10303         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10304         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10305         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10306         Remove toc ref to __cache_line_size.
10308         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10309         Include math_ldbl_opt.h.
10311 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10313         [BZ #4773]
10314         * time/strptime_l.c (__strptime_internal): Implement greedy
10315         matching of weekday and month names.
10317 2007-07-09  Roland McGrath  <roland@redhat.com>
10319         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10320         (ELF_NOTE_ABI): Use it.
10321         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10323 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10325         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10326         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10328 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10330         [BZ #4745]
10331         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10332         in loop to look for conversion specifier to avoid testing of
10333         wrong errno value.
10334         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10335         * stdio-common/bug18.c: New file.
10336         * stdio-common/bug18a.c: New file.
10337         * stdio-common/bug19.c: New file.
10338         * stdio-common/bug19a.c: New file.
10340 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10342         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10343         running awk script.
10345 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10347         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10348         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10349         Return NULL if mmap failed instead of asserting it does not.
10350         (calloc): Check for integer overflow.
10352         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10353         than LONG_MAX / 10.
10355 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10357         [BZ #4702]
10358         * nis/nss-default.c: Include errno.h.
10359         (init): Preserve errno.
10361 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10363         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10365 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10367         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10369 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10371         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10373 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10375         * sysdeps/s390/dl-procinfo.c: New file.
10376         * sysdeps/s390/dl-procinfo.h: New file.
10377         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10379 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10381         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10382         in PT_NOTE segments with multiple notes.
10383         * elf/readelflib.c (process_elf_file): Likewise.
10385 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10387         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10388         ISO C compliant.
10390 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10392         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10394 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10396         * include/link.h: Don't include rtld-lowlevel.h.
10397         (struct link_map): Remove l_scope_lock.
10398         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10399         (_dl_scope_free_list): New field (variable) in _rtld_global.
10400         (DL_LOOKUP_SCOPE_LOCK): Remove.
10401         (_dl_scope_free): New prototype.
10402         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10403         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10404         (_dl_profile_fixup): Likewise.
10405         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10406         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10407         THREAD_GSCOPE_RESET_FLAG around it.
10408         * elf/dl-close.c (_dl_close_worker): Don't use
10409         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10410         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10411         scopes were queued or if l_scope_mem has been abandoned.
10412         * elf/dl-open.c (_dl_scope_free): New function.
10413         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10414         * elf/dl-support.c (_dl_scope_free_list): New variable.
10415         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10416         Remove DL_LOOKUP_SCOPE_LOCK handling.
10417         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10418         handling.
10419         * elf/dl-object.c (_dl_new_object): Don't use
10420         __rtld_mrlock_initialize.
10422 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10424         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10425         to fill in holes
10426         (rtld_global_ro): Likewise.
10428 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10430         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10431         Move PT_LOAD checking to...
10432         (_dl_addr_inside_object): ... here, new function.
10433         * elf/dl-sym.c (do_sym): If not l_contiguous,
10434         call _dl_addr_inside_object.
10435         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10436         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10437         * elf/dl-open.c (dl_open_worker): Likewise.
10438         (_dl_addr_inside_object): New function if IS_IN_rtld.
10439         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10440         holes are present or are PROT_NONE protected.
10441         * include/link.h (struct link_map): Add l_contiguous field.
10442         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10444 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10445             Tomas Janousek  <tjanouse@redhat.com>
10446             Ulrich Drepper  <drepper@redhat.com>
10448         [BZ #4647]
10449         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10450         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10451         socket.
10452         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10453         unused member a bitmap.
10454         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10455         servers are configured.
10457 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10459         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10461 2007-06-17  Andreas Schwab  <schwab@suse.de>
10463         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10465 2007-06-16  Andreas Jaeger  <aj@suse.de>
10467         [BZ #4125]
10468         * sysdeps/unix/sysv/linux/sys/ptrace.h
10469         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10470         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10471         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10472         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10473         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10474         Define.
10475         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10476         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10477         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10478         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10480 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10482         [BZ #4599]
10483         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10484         determining whether there are IPv4/IPv6 addresses, ignore loopback
10485         addresses.
10487 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10489         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10490         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10491         as the return type.  Change type of "r" variable to CMPtype.
10492         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10493         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10494         * soft-fp/gedf2.c (__gedf2): Likewise.
10495         * soft-fp/gesf2.c (__gesf2): Likewise.
10496         * soft-fp/getf2.c (__getf2): Likewise.
10497         * soft-fp/ledf2.c (__ledf2): Likewise.
10498         * soft-fp/lesf2.c (__lesf2): Likewise.
10499         * soft-fp/letf2.c (__letf2): Likewise.
10500         * soft-fp/unorddf2 (__unorddf2): Likewise.
10501         * soft-fp/unordsf2 (__unordsf2): Likewise.
10502         * soft-fp/unordtf2 (__unordtf2): Likewise.
10504 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10506         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10507         make sure gcc doesn't mess around with this.
10509 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10511         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10513 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10515         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10516         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10517         at most once per _dl_close_worker.
10519 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10521         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10522         __sched_cpucount as const.
10523         * posix/sched_cpucount.c: Adjust.
10525         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10526         instruction for counting bits.
10527         * sysdeps/x86_64/sched_cpucount.c: New file.
10529 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10531         * configure.in: Avoid variable named BASH.
10532         * config.make.in: Likewise.
10533         Patch in part by Mike Frysinger.
10535 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10537         [BZ #4586]
10538         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10539         pseudo-zeros as zero.
10540         * sysdeps/x86_64/ldbl2mpn.c: New file.
10541         * sysdeps/ia64/ldbl2mpn.c: New file.
10543 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10545         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10546         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10547         Remove unreachable code at the end.
10549 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10551         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10552         ldbl-128ibm in comment.
10553         (fpclassifyl): Correct classification of denormals.
10554         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10555         return value for MIN denormal. Rewrite using long double math too
10556         correctly handle denormals and canonicalize the results.
10558 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10560         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10561         (__mpn_construct_long_double): Fix conversion where result ought
10562         to be smaller than __LDBL_MIN__, or the low double should be
10563         denormal.  Fix decision where to negate low double - honor round
10564         to even rules.
10565         * stdio-common/tst-sprintf2.c: Include string.h.
10566         (COMPARE_LDBL): Define.
10567         (TEST): Also test whether a string hexadecimal float representation
10568         can be parsed back to the number.
10569         (main): Add a couple of further tests.
10571 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10573         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10574         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10575         is non-zero, but smaller than 2 * __DBL_MIN__.
10576         * stdio-common/tst-sprintf2.c: New test.
10577         * stdio-common/Makefile (tests): Add tst-sprintf2.
10579         * math/test-misc.c (main): Don't run last batch of tests with
10580         IBM long double format.
10582 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10584         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10585         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10586         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10587         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10588         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10589         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10590         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10591         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10592         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10593         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10596         New file.
10597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10598         New file.
10599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10600         New file.
10601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10602         New file.
10603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10604         New file.
10605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10607         New file.
10608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10609         New file.
10610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10611         New file.
10612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10613         New file.
10614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10615         New file.
10617 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10619         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10620         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10621         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10622         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10623         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10624         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10625         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10626         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10628 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10630         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10631         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10633         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10634         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10635         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10636         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10637         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10639 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10641         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10642         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10643         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10644         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10646 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10648         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10649         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10651 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10653         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10654         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10655         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10656         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10658 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10660         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10661         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10663 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10665         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10666         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10668         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10669         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10670         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10671         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10673 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10675         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10676         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10677         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10678         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10680 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10682         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10683         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10684         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10685         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10686         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10687         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10689 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10691         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10692         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10693         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10694         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10696 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10698         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10699         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10700         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10701         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10702         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10703         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10704         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10705         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10706         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10707         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10708         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10709         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10710         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10711         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10712         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10713         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10715 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10717         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10718         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10720 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10722         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10723         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10725 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10727         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10728         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10729         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10730         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10731         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10732         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10733         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10734         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10735         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10736         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10738 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10740         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10742 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10744         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10745         branch miss-predicts. Ensure that cache line crossing does not impact
10746         dispatch grouping.
10748 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10750         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10751         "../../powerpc32/power4/memcopy.h".
10752         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10753         "../../powerpc32/power4/wordcopy.c".
10755 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10757         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10758         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10759         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10760         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10761         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10762         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10764 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10766         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10768 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10770         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10771         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10772         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10773         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10774         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10775         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10776         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10777         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10779 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10781         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10783 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10785         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10786         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10787         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10788         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10789         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10790         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10791         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10793 2007-05-29  Roland McGrath  <roland@redhat.com>
10795         * po/Makefile (po-sed-cmd): New variable.
10796         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10798 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10800         * crypt/md5-crypt.c: Fix comment.
10802         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10803         of crashing.  When this is the case or if the reply is malformed,
10804         don't try to close the new file descriptor since it does not
10805         exist.
10806         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10808 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10810         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10811         if __NR_utimensat is not defined.
10813 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10815         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10817 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10819         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10820         (open): Fix comment typos.  Don't call __open_2 if flags
10821         is a compile time constant without O_CREAT.
10822         (__open64_2): Add nonnull attribute.
10823         (open64): Fix comment typos.  Don't call __open64_2 if flags
10824         is a compile time constant without O_CREAT.
10825         (__openat_2): Add nonnull attribute, fix nonnull attribute
10826         on redirect.
10827         (openat): Fix comment typos.  Don't call __openat_2 if flags
10828         is a compile time constant without O_CREAT.
10829         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10830         on redirect.
10831         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10832         is a compile time constant without O_CREAT.
10834 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10836         * Makerules (sysd-rules): Define PTW for ptw-* files.
10837         * Versions: Define GLIBC_2.7 for libc.
10838         * include/stdio.h: Declare __fortify_fail.
10839         * debug/fortify_fail.c: New file.
10840         * debug/Makefile (routines): Add fortify_fail.
10841         * debug/chk_fail.c: Use __fortify_fail.
10842         * debug/stack_chk_fail.c: Likewise.
10843         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10844         __openat64_2 for GLIBC_2.7.
10845         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10846         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10847         and fails if necessary.
10848         * io/open64.c: Likewise.
10849         * io/openat.c: Likewise.
10850         * io/openat64.c: Likewise.
10851         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10852         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10853         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10854         * io/bits/fcntl2.h: New file.
10855         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10856         __openat64_2.
10857         * include/bits/fcntl2.h: New file.
10858         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10859         Add open_2.
10860         * sysdeps/unix/sysv/linux/open_2.c: New file.
10862 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10864         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10865         as second parameter to handle_intel.
10867         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10868         the entry.
10870         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10871         handling to ...
10872         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10873         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10874         cacheinfo.
10875         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10876         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10877         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10879         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10881 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10883         [BZ #4525]
10884         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10885         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10886         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10888         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10890         [BZ #4514]
10891         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10892         reinitialize workend at the start of each do_positional format spec
10893         loop, free workstart before do_positional loops.
10894         (printf_unknown): Fix size of work_buffer.
10895         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10897         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10898         (public_sET_STATe): If ms->version < 3, put all chunks into
10899         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10900         chunks.
10902         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10903         * malloc/hooks.c: Likewise.
10904         * malloc/arena.c: Likewise.
10905         * malloc/malloc.c (do_check_malloc_state): Don't assert
10906         n_mmaps is not greater than n_mmaps_max.  This removes the need
10907         for the previous change.
10909         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10910         2007-05-07 commit.
10912 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10914         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10915         Define for kernel >= 2.6.22.
10917 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10919         * elf/dl-close.c (_dl_close_worker): When removing object from
10920         global scope, wait for all lookups to finish afterwards.
10921         * elf/dl-open.c (add_to_global): When global scope array must
10922         grow, allocate a new one and free old array only after all
10923         lookups finish.
10924         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10925         (_dl_lookup_symbol_x): Likewise.
10926         * elf/dl-support.c: Define _dl_wait_lookup_done.
10927         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10928         _dl_wait_lookup_done.
10930         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10931         not overlapping with arena.
10933         * malloc/mcheck.c (reallochook): If size==0, free the block.
10935         * rt/tst-shm.c: Use fstat64 instead of fstat.
10937         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10938         __NR_sync_file_range is not defined.
10940 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10942         Dummy files to prevent stub versions from being used.
10943         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10944         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10945         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10946         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10948         * version.h (VERSION): Set to 2.6.90.
10950 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10952         * version.h (VERSION): Define to 2.6.
10953         * include/features.h (__GLIBC_MINOR__): Define to 6.
10955         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10957         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10958         sizes.
10960 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10962         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10963         number of mmaps.  n_mmaps_max is the target.
10964         * malloc/hooks.c: Likewise.
10965         * malloc/arena.c: Likewise.
10967 2007-05-12  Andreas Jaeger  <aj@suse.de>
10969         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10970         getpid.
10972 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10974         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10975         adding new variables.
10977         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10978         optimize.  Completely extend global scope array before making the
10979         new entries visible.
10981 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10983         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10984         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10985         tst-getcpu.
10987         * include/link.h: Move l_version and l_nversion members around to
10988         fill gaps.
10990         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10992         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10993         (__sched_setaffinity_new): If syscall was successful and
10994         RESET_VGETCPU_CACHE is defined, use it before returning.
10995         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10997         * io/sys/stat.h: Make sure struct timespec is defined for
10998         __USE_ATFILE.
11000         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11001         UTIME_OMIT.
11002         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11003         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11004         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11005         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11006         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11007         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11008         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11009         * io/sys/stat.h: Declare utimensat, futimens.
11010         * io/utimensat.c: New file.
11011         * io/futimens.c: New file.
11012         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11013         * sysdeps/unix/sysv/linux/futimens.c: New file.
11014         * io/Makefile (routines): Add utimensat, futimens.
11015         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11016         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11017         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11018         available.
11020         * include/sys/cdefs.h: Redefine __nonnull so that test for
11021         incorrect parameters in the libc code itself are not omitted.
11023 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11025         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11026         exception in addition to inexact when asked to raise only FE_INEXACT.
11028         [BZ #3427]
11029         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11030         in *envp.
11032 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11034         [BZ #4403]
11035         * string/strfry.c (strfry): Make result more random.
11037 2007-05-07  Richard Henderson  <rth@redhat.com>
11039         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11040         if __NO_LONG_DOUBLE_MATH.
11041         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11042         available in the compiler, add .arch directive to the assembly.
11044 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11046         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11047         compat_symbol to GLIBC_2_1.
11048         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11049         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11050         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11051         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11052         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11053         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11054         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11055         libc, not libm.
11056         (__isnanl): New compat_symbol.
11058 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11059             Jakub Jelinek  <jakub@redhat.com>
11061         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11062         (new_heap): Initialize mprotect_size.
11063         (grow_heap): When growing, only mprotect from mprotect_size till
11064         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11065         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11067 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11068             Peter Bergner  <bergner@us.ibm.com>
11070         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11071         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11072         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11073         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11074         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11075         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11076         Call __fe_mask_env() if all FP exceptions disabled.
11077         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11078         from old FPSCR to new fenv to propagate DFP rounding modes.
11079         Call __fe_mask_env() if FP exceptions previously enabled.
11080         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11081         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11082         transitioning from all exceptions disabled to any exception enabled
11083         or visa versa.
11084         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11085         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11086         when transitioning from all exceptions disabled to any exception
11087         enabled or visa versa.
11088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11095 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11097         [BZ #4465]
11098         * posix/unistd.h: Remove __THROW from fdatasync.
11100 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11102         [BZ #4465]
11103         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11105 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11107         * stdio-common/vfprintf.c (process_string_arg): Optimize
11108         ridiculous precision in wide char code printing multi-byte string.
11109         Reported by Jim Meyering <jim@meyering.net>.
11111         [BZ #4131]
11112         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11113         boundaries to work around systems with overlapping binary loading.
11114         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11116 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11118         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11119         __mbsnrtowcs after last change.
11121         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11122         (get_ident): Likewise.
11124 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11126         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11127         with setting the sticky bit.
11128         * math/test-misc.c (main): Add more truncation tests.
11130 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11132         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11133         double in the function declaration.
11134         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11135         double in the function declaration.
11136         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11137         float in the function declaration.
11138         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11139         float in the function declaration.
11141         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11142         denormal operands.  Do not generate FP_EX_DENORM exception.
11143         (FP_UNPACK_RAW_EP): Ditto.
11144         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11145         undefined _FP_UNPACK_RAW_E.
11146         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11147         undefined _FP_UNPACK_RAW_EP.
11148         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11149         undefined _FP_PACK_RAW_E.
11150         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11151         undefined _FP_PACK_RAW_EP.
11153         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11154         _FP_FRAC_COPY_2.
11155         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11156         _FP_FRAC_COPY_4.
11158 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11159             Jakub Jelinek  <jakub@redhat.com>
11161         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11162         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11163         this case.
11164         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11166 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11168         * math/test-misc.c (main): Add tests for rounding long double
11169         values close to smallest double denormalized value to double.
11171 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11173         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11174         condition for truncating to 0.  Set sticky bit for such
11175         truncation.
11177 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11179         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11180         fixed length array for ignore.
11182 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11184         [BZ #4438]
11185         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11186         stack for large precisions.
11187         * stdio-common/test-vfprintf.c (main): Add test for large
11188         precision.
11190 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11192         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11193         for exponent 0.
11194         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11196         [BZ #4439]
11197         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11198         account in the size check.
11199         * resolv/tst-inet_ntop.c: New test.
11200         * resolv/Makefile (tests): Add tst-inet_ntop.
11202 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11203             Jakub Jelinek  <jakub@redhat.com>
11205         [BZ #4349]
11206         * malloc/malloc.c: Keep separate list for first blocks on the bin
11207         lists with a given size.  This helps skipping over list elements
11208         we know won't fit in two places.
11209         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11211 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11213         [BZ #4102]
11214         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11215         label to Teredo tunnel addresses 2001://32.
11217 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11219         * locale/programs/ld-collate.c (collate_read): Allow order_start
11220         after copy.
11222         * locale/programs/ld-collate.c (collate_read): Fix printing of
11223         error message.
11225         [BZ #3213]
11226         * locale/C-translit.h.in: Add entry for U2044.
11228         [BZ #4342]
11229         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11230         hexa-decimal floats without exponent.
11231         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11233 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11235         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11236         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11237         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11238         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11239         GLIBC_2.6.
11240         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11241         Add sched_getcpu.
11243 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11245         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11246         of 0 after the out_fail label.
11248 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11250         [BZ #4406]
11251         * iconv/gconv_charset.h (strip): Allow ':'.
11252         * iconv/iconv_open.c (iconv_open): Adjust comment.
11254 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11256         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11257         version.
11259 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11261         [BZ #4381]
11262         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11263         alignment of buffer and tmp_buffer.
11264         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11265         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11266         alignment of buffer.
11267         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11268         bigger than INT_MAX.
11269         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11270         h_errnop arguments.  Fail if buflen is too small.
11271         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11273 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11275         [BZ #4405]
11276         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11277         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11279 2007-04-22  Roland McGrath  <roland@redhat.com>
11281         * elf/elf.h (NT_PRXFPREG): New macro.
11283 2007-04-19  Andreas Jaeger  <aj@suse.de>
11285         [BZ #3905]
11286         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11287         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11288         Added.
11290 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11292         * include/sys/mman.h: Mark madvise hidden.
11293         * misc/madvise.c: Add libc_hidden_def.
11295 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11297         * nis/nis_domain_of.c (__nis_domain_of): New function.
11298         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11299         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11300         * nis/nis_call.c (rec_dirsearch): Likewise.
11301         (first_shoot): Likewise.  Remove search_parent_first argument.
11302         (struct nis_server_cache): Rename search_parent_first field
11303         to search_parent.
11304         (nis_server_cache_search, nis_server_cache_add): Rename
11305         search_parent_first argument to search_parent.
11306         (__nisfind_server): Likewise.  If search_parent, call
11307         __nis_domain_of.
11309 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11311         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11313 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11315         [BZ #4368]
11316         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11318 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11320         [BZ #4364]
11321         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11323 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11325         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11326         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11327         current number of locales in SUPPORTED.
11328         (create_archive): Initialize serial.
11329         (enlarge_archive): Preserve aliases rather than duplicating
11330         their locrecs.
11332 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11334         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11335         after _IO_un_link, not before it.
11337         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11338         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11339         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11341 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11343         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11344         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11345         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11346         Remove __THROW.
11347         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11348         _IO_file_xsgetn_maybe_mmap): Likewise.
11349         * libio/oldfileops.c (old_do_write): Likewise.
11350         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11351         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11352         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11353         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11354         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11355         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11356         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11357         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11358         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11359         _IO_file_underflow, _IO_file_underflow_mmap,
11360         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11361         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11362         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11363         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11364         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11365         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11366         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11367         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11368         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11369         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11370         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11371         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11372         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11373         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11374         _IO_adjust_column_internal, _IO_default_uflow_internal,
11375         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11376         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11377         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11378         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11379         _IO_file_close_it_internal, _IO_file_underflow_internal,
11380         _IO_file_overflow_internal, _IO_file_attach_internal,
11381         _IO_file_fopen_internal, _IO_file_sync_internal,
11382         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11383         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11384         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11385         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11386         _IO_seekpos_unlocked): Likewise.
11387         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11388         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11390 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11392         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11393         argument in xmalloc size computation.
11395 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11397         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11398         math_opt_barrier and math_force_eval macros.
11400 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11402         [BZ #3306]
11403         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11404         * sysdeps/i386/fpu/math_private.h: New file.
11405         * sysdeps/x86_64/fpu/math_private.h: New file.
11406         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11407         math_force_eval macros.  Use "+m" constraint on asm rather than
11408         "=m" and "m".
11409         * math/s_nextafter.c (__nextafter): Likewise.
11410         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11411         Likewise.
11412         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11413         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11414         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11415         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11416         math_opt_barrier and math_force_eval macros.
11417         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11418         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11419         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11420         (__nexttoward): 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 2.
11424         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11425         (__nexttowardf): Use math_opt_barrier and
11426         math_force_eval macros.  Use "+m" constraint on asm rather than
11427         "=m" and "m".  Only use asm to force double result if
11428         FLT_EVAL_METHOD is not 0.
11429         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11430         (__nexttowardf): Use math_opt_barrier and
11431         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11432         x to float using asm.
11433         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11434         (__nldbl_nexttowardf): Use math_opt_barrier and
11435         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11436         x to float using asm.
11437         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11438         (__nexttowardf): Use math_opt_barrier and math_force_eval
11439         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11440         * math/bug-nextafter.c (zero, inf): New variables.
11441         (main): Add new tests.
11442         * math/bug-nexttoward.c (zero, inf): New variables.
11443         (main): Add new tests.
11445 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11447         [BZ #3427]
11448         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11449         exceptions both in SW and MXCSR.
11450         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11451         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11452         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11453         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11454         in MXCSR if SSE is available.
11455         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11456         and ldsodefs.h.
11457         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11458         Fix comment typo.
11459         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11460         Return 0 rather than 1.
11461         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11462         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11463         * math/test-fenv.c (feholdexcept_tests): New function.
11464         (main): Call it.
11466 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11468         [BZ #3427]
11469         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11470         in SW.
11472 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11474         [BZ #4344]
11475         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11476         Reported by David Anderson <davea42@earthlink.net>.
11478 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11480         * posix/sys/wait.h: Remove unnecessary forward declaration.
11482 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11484         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11485         with obj->do_servers after first_shoot.
11487 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11489         * posix/Makefile (routines): Add sched_cpucount.
11490         (tests): Add tst-cpucount.
11491         * posix/sched_cpucount.c: New file.
11492         * posix/tst-cpucount.c: New file.
11493         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11494         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11495         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11496         * posix/sched.h: Define CPU_COUNT.
11498 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11500         * posix/fnmatch.c (STRUCT): Define.
11501         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11502         * posix/fnmatch_loop.c (struct STRUCT): New type.
11503         (FCT): Add ends argument.  If ends != NULL and normal * is
11504         seen in the pattern, store current pattern and string pointers
11505         and return.  Adjust recursive calls.
11506         (EXT): Adjust FCT callers.
11507         (STRUCT): Undef at the end of the file.
11508         * posix/Makefile (tests): Add tst-fnmatch2.
11509         * posix/tst-fnmatch2.c: New test.
11511 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11513         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11514         and 1 on failure.
11516         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11517         Change last argument to unsigned int.
11519 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11521         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11523 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11525         * config.h.in (HAVE_LIBCAP): Add.
11526         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11527         sys/capabilities.h.
11528         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11529         free_caps.  Cast away const from 4th cap_set_flag argument.
11531 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11533         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11534         GLIBC_2.6.
11535         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11536         Add sync_file_range.
11537         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11539 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11541         * sysdeps/powerpc/bits/atomic.h
11542         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11543         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11544         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11545         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11546         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11547         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11548         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11549         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11550         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11551         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11552         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11553         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11554         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11555         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11556         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11557         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11558         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11559         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11560         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11561         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11563 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11565         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11566         (__cache_line_size): Define the variable here.  Add
11567         attribute_hidden, remove weak_extern.
11568         (__libc_start_main): Set __cache_line_size
11569         unconditionally.
11570         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11571         (__cache_line_size): Define the variable here.  Add
11572         attribute_hidden, remove weak_extern.
11573         (DL_PLATFORM_AUXV): Set __cache_line_size
11574         unconditionally.
11575         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11576         weak_extern, add attribute_hidden.
11577         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11578         defined in ld.so.
11579         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11580         definition.
11581         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11583 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11585         [BZ #4276]
11586         * timezone/africa: Update from tzdata2007d.
11587         * timezone/asia: Likewise.
11588         * timezone/australasia: Likewise.
11589         * timezone/backward: Likewise.
11590         * timezone/europe: Likewise.
11591         * timezone/iso3166.tab: Likewise.
11592         * timezone/leapseconds: Likewise.
11593         * timezone/northamerica: Likewise.
11594         * timezone/southamerica: Likewise.
11595         * timezone/zone.tab: Likewise.
11597         * timezone/private.h: Update from tzcode2007d.
11598         * timezone/zdump.c: Likewise.
11599         * timezone/zic.c: Likewise.
11601 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11603         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11604         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11605         variables.
11606         (nis_server_cache_search, nis_server_cache_add): New functions.
11607         (__nisfind_server): Use them.  Add dbp and flags argument, if
11608         call __nisbind_create.
11609         (__nisbind_create): Add server_used and current_ep arguments,
11610         only call __nis_findfastest if server_used is ~0.
11611         (__do_niscall2, __prepare_niscall): Adjust callers.
11612         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11613         ckey_cache_euid, ckey_cache_lock): New variables.
11614         (get_ckey): New function.
11615         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11616         __pmap_getnisport.  Save __pmap_getnisport result in
11617         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11618         key.
11619         * nis/nis_lookup.c (nis_lookup): Likewise.
11620         * nis/nis_table.c (nis_list): Likewise.
11621         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11622         prototypes.
11624         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11625         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11626         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11627         _nss_nisplus_getservbyport_r): Likewise.
11628         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11629         _nss_nisplus_getnetbyaddr_r): Likewise.
11630         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11631         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11632         _nss_nisplus_getntohost_r): Likewise.
11633         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11634         _nss_nisplus_getrpcbynumber_r): Likewise.
11636 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11638         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11639         * configure: Rebuilt.
11641         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11642         bit-fields.
11643         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11645 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11647         [BZ #2831]
11648         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11649         bit-fields.
11651 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11653         * nscd/gai.c: Include alloca.h.
11654         (__libc_use_alloca): Define.
11656 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11658         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11659         smaller scopes.
11660         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11661         (DL_DST_REQUIRED): Adjust user.
11663         * include/dlfcn.h (struct link_map): New forward decl.
11665         * inet/getnameinfo.c: Include stddef.h.
11666         (getnameinfo): Use offsetof.
11668         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11670         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11672         * string/strerror_l.c: Include stdlib.h.
11674         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11675         * config.make.in (gnu89-inline-CFLAGS): New variable.
11676         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11677         -std=gnu99.
11678         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11679         * argp/argp.h: Use it.
11680         * bits/mathinline.h: Likewise.
11681         * bits/sigset.h: Likewise.
11682         * bits/string.h: Likewise.
11683         * ctype/ctype.h: Likewise.
11684         * hurd/hurd.h: Likewise.
11685         * hurd/hurd/fd.h: Likewise.
11686         * hurd/hurd/port.h: Likewise.
11687         * hurd/hurd/signal.h: Likewise.
11688         * hurd/hurd/threadvar.h: Likewise.
11689         * hurd/hurd/userlink.h: Likewise.
11690         * io/sys/stat.h: Likewise.
11691         * libio/bits/stdio.h: Likewise.
11692         * libio/bits/stdio2.h: Likewise.
11693         * mach/lock-intern.h: Likewise.
11694         * mach/mach/mig_support.h: Likewise.
11695         * math/bits/cmathcalls.h: Likewise.
11696         * posix/bits/unistd.h: Likewise.
11697         * socket/bits/socket2.h: Likewise.
11698         * stdlib/bits/stdlib.h: Likewise.
11699         * stdlib/stdlib.h: Likewise.
11700         * string/argz.h: Likewise.
11701         * string/bits/string2.h: Likewise.
11702         * string/bits/string3.h: Likewise.
11703         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11704         * sysdeps/generic/inttypes.h: Likewise.
11705         * sysdeps/generic/machine-lock.h: Likewise.
11706         * sysdeps/generic/machine-sp.h: Likewise.
11707         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11708         * sysdeps/i386/i486/bits/string.h: Likewise.
11709         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11710         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11711         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11712         * sysdeps/mach/i386/machine-lock.h: Likewise.
11713         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11714         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11715         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11716         * sysdeps/s390/bits/string.h: Likewise.
11717         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11718         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11719         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11720         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11721         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11722         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11723         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11724         * wcsmbs/bits/wchar2.h: Likewise.
11725         * wcsmbs/wchar.h: Likewise.
11726         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11727         __extern_inline definition.
11729 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11731         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11732         NULL.
11734         [BZ #3919]
11735         * math/libm-test.inc (log_test): Test -Inf and NaN.
11736         (log10_test, log1p_test, log2_test): Test -Inf.
11737         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11738         FE_INVALID when argument is qNaN.
11739         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11740         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11741         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11742         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11743         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11744         testb $4, %ah and jump if non-zero.
11745         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11746         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11748         [BZ #4101]
11749         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11750         ancestors with the same depths.
11751         Patch by Niels Moeller <nisse@lysator.liu.se>.
11752         (filter_doc): Don't crash if argp is NULL.
11753         * argp/Makefile (tests): Add tst-argp2.
11754         * argp/tst-argp2.c: New test.
11756         [BZ #4130]
11757         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11758         open_not_cancel_2.
11759         (updwtmp_file): Likewise.
11761         [BZ #4181]
11762         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11763         (inet6_opt_append): Don't check extlen is big enough if extbuf
11764         is NULL.
11765         (inet6_opt_finish): Likewise.
11766         * inet/Makefile (tests): Add test-inet6_opt.
11767         * inet/test-inet6_opt.c: New test.
11769         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11770         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11771         NLMSG_ERR.  Instead use a page sized buffer.
11772         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11773         buffer.
11775 2007-03-14  Richard Henderson  <rth@redhat.com>
11777         * sysdeps/alpha/fpu/s_llround.c: New file.
11778         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11779         * sysdeps/alpha/fpu/s_lround.c: New file.
11780         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11781         * sysdeps/alpha/fpu/s_round.c: New file.
11782         * sysdeps/alpha/fpu/s_roundf.c: New file.
11783         * sysdeps/alpha/fpu/s_trunc.c: New file.
11784         * sysdeps/alpha/fpu/s_truncf.c: New file.
11786         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11787         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11788         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11789         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11790         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11791         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11793         * sysdeps/alpha/fpu/s_fmax.S: New file.
11794         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11795         * sysdeps/alpha/fpu/s_fmin.S: New file.
11796         * sysdeps/alpha/fpu/s_fminf.S: New file.
11797         * sysdeps/alpha/fpu/s_isnan.c: New file.
11798         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11799         * sysdeps/alpha/fpu/s_llrint.c: New file.
11800         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11801         * sysdeps/alpha/fpu/s_lrint.c: New file.
11802         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11803         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11804         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11806         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11807         (__fdimf, fdimf, __fdim, fdim): Remove.
11808         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11809         (__isnanf, __isnan, __isnanl): New.
11811 2007-03-13  Richard Henderson  <rth@redhat.com>
11813         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11815 2007-03-13  Richard Henderson  <rth@redhat.com>
11817         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11818         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11819         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11820         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11821         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11822         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11824 2007-03-13  Richard Henderson  <rth@redhat.com>
11826         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11827         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11828         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11829         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11830         Move to dl-auxv.h; initialize instead of extern weak.
11831         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11832         weak symbol.
11833         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11834         Extern instead of initialized.
11836 2007-03-13  Richard Henderson  <rth@redhat.com>
11838         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11839         __sigsuspend_nocancel.
11841 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11843         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11844         172.16/12 address range.
11846 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11848         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11849         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11850         message.
11852 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11854         [BZ #4069]
11855         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11856         earlier.
11857         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11859         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11860         for x qNaN and y either +-inf or non-integer value.
11861         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11862         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11863         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11865 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11867         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11868         from sysdep_headers.
11870 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11872         * time/tzfile.c (find_transition): Instead of a linear search try to
11873         guess the transition index, use a linear search if the result is at
11874         most 10 transitions away from the guess or binary search otherwise.
11876 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11878         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11879         memory reallocation.
11881 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11883         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11884         and fix some typos.
11885         Optimize use of TOLOWER.
11887         [BZ #3325]
11888         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11889         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11890         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11892         [BZ #3458]
11893         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11894         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11896         [BZ #4076]
11897         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11898         (open_dir_stream): Likewise.
11899         * io/Makefile (tests): Add bug-ftw5.
11900         * io/bug-ftw5.c: New file.
11902         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11903         * nscd/servicescache.c (cache_addserv): Likewise.
11905         * nscd/grpcache.c (cache_addgr): In case a record changed on
11906         refresh, adjust key_copy.
11908         [BZ #4074]
11909         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11910         refresh, adjust key_copy.
11912         [BZ #4070]
11913         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11914         special cases.
11915         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11917 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11919         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11920         optimization.
11922         * stdio-common/vfscanf.c: Small cleanups throughout.
11924 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11926         [BZ #3325]
11927         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11928         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11929         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11930         Patch by Jared Casper <jaredcasper@gmail.com>.
11932         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11933         * sysdeps/unix/opendir.c: Likewise.
11934         * sysdeps/unix/readdir.c: Likewise.
11936         [BZ #2211]
11937         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11938         point numbers.
11939         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11941         * stdio-common/vfscanf.c: Fix problems in width accounting.
11942         * stdio-common/tst-sscanf.c (double_tests): New tests.
11943         (main): Hook them up.
11945         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11946         More simplifications of floating-point reader.
11948         * stdio-common/Makefile (tests): Add tst-swscanf.
11949         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11950         testing.
11951         * stdio-common/tst-swscanf.c: New file.
11953 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11955         [BZ #2633]
11956         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11957         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11958         Remove using for __jmp_buf_tag.
11959         * locale/locale.h (struct lconv): Also define in std namespace.
11960         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11962         [BZ #3842]
11963         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11964         using __libc_enable_secure.
11966         [BZ #3818]
11967         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11969         [BZ #3745]
11970         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11971         of names for ellipsises.
11973         [BZ #3348]
11974         * malloc/memusage.sh: Cleanups.
11975         * debug/xtrace.sh: Quoting and trap changes.
11977 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11979         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11981         * locale/iso-3166.def: Update entry for Serbia.
11982         * locale/iso-4217.def: Define RSD, remove CSD.
11984         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11985         and 64-bit operations.
11987         [BZ #4040]
11988         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11989         16-bit operations.
11991         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11992         of writev.
11994 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11996         [BZ #3991]
11997         * assert/assert.h (assert): Simplify.
11998         (assert_perror): Likewise.
11999         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12001         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12002         reqdata.
12004         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12005         change: don't pass NULL in place of an integer.
12007 2007-02-02  Bruno Haible  <bruno@clisp.org>
12009         [BZ #3954]
12010         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12011         Add mapping for U+327E.
12012         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12013         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12014         mapping of 0xD9 0xE8.
12015         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12016         mapping of U+327E.
12017         Reported by Jungshik Shin <jungshik@google.com>.
12019         [BZ #3955]
12020         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12021         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12022         Reported by Jungshik Shin <jungshik@google.com>.
12024 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12026         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12027         byte variants.
12029         [BZ #4040]
12030         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12031         byte variants.  Patch mostly be tom@tommay.net.
12033 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12035         [BZ #3996]
12036         * posix/glob.c (attribute_hidden): Define if not defined.
12037         (glob): Unescape dirname, filename or username when needed and not
12038         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12039         is NULL.  Handle unescaped [ in pattern without closing ].
12040         Don't pass GLOB_CHECK down to recursive glob for directories.
12041         (__glob_pattern_type): New function.
12042         (__glob_pattern_p): Implement using __glob_pattern_type.
12043         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12044         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12045         Remove unreachable code.
12046         * posix/globtest.sh: Add a couple of new tests.
12048 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12050         * po/ru.po: Update from translation team.
12052 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12054         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12055         to the list of i486+ CPUs.
12056         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12058 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12060         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12061         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12062         references.
12064 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12066         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12068         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12069         * resolv/res_mkquery.c: Define __res_nopt.
12070         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12071         try adding EDNS0 record.
12072         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12073         EDNS0 record was send make sure we don't try it again.
12074         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12075         * include/resolv.h: Declare __res_nopt.
12077 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12079         [BZ #3944]
12080         * time/strptime_l.c (__strptime_internal): Set have_mon for
12081         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12082         have been computed from tm_yday and tm_year.  Don't crash
12083         in day_of_the_week or day_of_the_year if not have_mon
12084         and tm_mon contains bogus value.
12085         * time/Makefile (tests): Add tst-strptime3.
12086         * time/tst-strptime3.c: New test.
12088 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12090         [BZ #3957]
12091         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12092         bit for RE_HAT_LISTS_NOT_NEWLINE.
12093         (build_charclass_op): Remove bogus comment.
12094         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12095         * posix/bug-regex27.c: New test.
12096         * posix/bug-regex28.c: New test.
12098 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12100         * po/sv.po: Update from translation team.
12102 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12104         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12106 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12108         * include/locale.h (__uselocale): Add libc_hidden_proto.
12109         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12111         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12112         gettimeofday.
12114 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12116         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12117         returning.
12118         (PTR_DEMANGLE): Real definition now that it's not the same as
12119         PRT_MANGLE anymore.
12120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12122         * string/strerror_l.c: New file.
12123         * string/Makefile (routines): Add strerror_l.
12124         * string/string.h: Declare strerror_l.
12125         * string/Versions: Export strerror_l for GLIBC_2.6.
12127 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12129         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12130         as parameter.  Construct request record.  Try sending request
12131         before the first poll use, it usually succeeds.  Adjust all
12132         callers.
12133         * nscd/nscd-client.h: Define MAXKEYLEN.
12134         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12136 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12138         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12139         from return value.
12140         * nscd/nscd_helper.c: Include string.h.
12141         (__nscd_cache_search): Remove const qualifier from return value.
12142         On strict alignment architectures check hash entry and data head
12143         alignment.
12144         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12145         mmapped data during GC cycle contains garbage.  If
12146         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12147         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12148         dropped to 0.
12149         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12150         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12151         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12152         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12153         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12155 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12157         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12159 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12161         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12162         names not numbers in cfi_*.
12164 2007-01-26  Andreas Jaeger  <aj@suse.de>
12166         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12167         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12168         Correct values of PER_HPUX and PER_OSF4.
12170 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12172         * elf/dl-minimal.c: Undefine _itoa first.
12173         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12174         * malloc/mtrace.c: Revert last change.
12175         * posix/wordexp.c: Likewise.
12177 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12179         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12180         and __geode__ to the list of i486+ CPUs.
12181         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12183 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12185         * stdio-common/_itoa.c: Include <limits.h>.
12186         * stdio-common/_itowa.c: Likewise.
12188 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12190         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12191         platforms.
12192         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12193         64-bit platforms.
12194         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12195         possible.
12196         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12197         if possible.
12199         [BZ #3902]
12200         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12201         * stdio-common/Makefile (tests): Add bug17.
12202         * stdio-common/bug17.c: New file.
12204 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12206         * iconvdata/brf.c: New file.
12207         * iconvdata/testdata/BRF: New file.
12208         * iconvdata/testdata/BRF..UTF8: New file.
12209         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12210         * iconvdata/Makefile: Add rules to build BRF.
12211         * iconvdata/TESTS: Add BRF entry.
12212         * iconvdata/gconv-modules: Likewise.
12213         * iconvdata/tst-tables.sh: Likewise.
12215 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12217         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12218         type `long long int', not `long int'.
12219         (wcstoq): Likewise.
12221 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12223         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12224         of values on 64-bit platforms which are too large.
12226 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12227             Joe Kerian  <jkerian@us.us.ibm.com>
12229         [BZ #2749]
12230         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12231         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12232         (__copysignl): Use signbit() for comparison.
12233         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12234         SET_LDOUBLE_WORDS64.
12236         [BZ #2423, #2749]
12237         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12238         (__ceill): Remove calls to fegetround(), fesetround().
12239         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12243 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12245         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12247         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12249 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12251         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12252         demangle pointer.
12253         * csu/libc-start.c: Likewise.
12255 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12257         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12258         really work anyway.
12260 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12262         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12263         users.
12264         (handle_request): Remove unnecessary tests.
12266         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12268 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12270         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12271         workbits in semi-raw fraction.
12273         * math/test-misc.c: Add new tests.
12275 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12277         * math/basic-test.c: Include test-skeleton.c.
12278         (TEST_TRUNC): Define.
12279         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12280         (main): Rename to ...
12281         (do_test): ...this.  Run new tests.
12282         (TEST_FUNCTION): Define.
12284 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12285             Joe Kerian  <jkerian@us.us.ibm.com>
12287         [BZ #2749]
12288         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12289         handling for high words.
12290         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12291         and overflow for infinity.
12293 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12295         * nscd/connections.c (handle_request): Add a __builtin_expect.
12297         * nscd/connections.c (serv2db): Change type into structure which
12298         also says whether this is a request for data.  Renamed to
12299         servinfo.  All users changed.
12300         (handle_request): Much simpler test whether we should search the cache.
12302         * nscd/connections.c (handle_request): Fix thinko in selinux test
12303         invocation.
12305         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12306         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12307         it before getting dl_load_lock and then relock.
12308         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12309         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12310         case we unlocked the scope.
12311         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12312         _dl_lookup_symbol_x in case we locked the scope.
12313         (_dl_profile_fixup): Likewise.
12314         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12315         set DL_LOOKUP_SCOPE_LOCK.
12317 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12319         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12320         CFLAGS-getsrvbynpt_r.c.
12321         * nscd/getsrvbynm_r.c: New file.
12322         * nscd/getsrvbypt_r.c: New file.
12323         * nscd/nscd_getserv_r.c: New file.
12324         * nscd/servicescache.c: New file.
12325         * nscd/Makefile (routines): Add nscd_getserv_r.
12326         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12327         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12328         CFLAGS-getsrvbypt_r.c.
12329         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12330         table.  Add entries for services database.
12331         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12332         services database.
12333         (dbs): Add .reset_res and servdb initialization.
12334         (serv2db): Add entries for services database.
12335         (verify_persistent_db): Accept dbnr == servdb.
12336         (invalidate_cache): Rewrite database name recognition to use a table.
12337         Call res_init() if .reset_res is set for database.
12338         (handle_request): Add code to handle services database.
12339         * nscd/gai.c: Don't define __getservbyname_r.
12340         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12341         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12342         (serv_response_header): Define.
12343         (struct datahead): Add serv_response_header member.
12344         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12345         using table.
12346         * nscd/nscd.conf: Add entries for services database.
12347         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12348         Declare serv_iov_disabled.
12349         Declare addservbyname, readdservbyname, addservbyport, and
12350         readdservbyport.
12351         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12352         (find_db): Fix error message.
12353         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12354         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12355         * nscd/selinux.c (perms): Add entries for services database.
12356         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12357         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12359         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12360         * nscd/hstcache.c: Likewise.
12361         * nscd/pwdcache.c: Likewise.
12363         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12364         computation of keylen.
12366         * include/string.h: Only redefine strndupa if this is really for
12367         libc code.
12369 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12371         * nscd/nscd_gethst_r.c: Minor cleanups.
12373         * nscd/connections.c (handle_request): Check selinux permissions
12374         for all non-admin commands.
12376         * sysdeps/i386/i486/bits/atomic.h: Define
12377         atomic_compare_and_exchange_val_acq,
12378         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12379         using __sync_* built-ins for gcc >= 4.1.
12380         * sysdeps/x86_64/bits/atomic.h: Likewise.
12382         [BZ #3840]
12383         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12384         and .oS.d files.
12386 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12388         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12389         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12390         (do_test): Check errno and exit(0) if ENOSYS.
12392 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12394         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12395         thousands separators.
12396         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12397         * stdlib/tst-strtod4.c: New test.
12399         [BZ #3855]
12400         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12401         hexadecimal digit should accept just the initial 0.
12402         * stdlib/tst-strtod2.c (tests): New variable.
12403         (do_test): Run several tests rather than just one.
12405 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12407         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12408         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12410 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12412         * io/fts.c: Make sure fts_cur is always valid after return from
12413         fts_read.
12414         Patch by Miloslav Trmac <mitr@redhat.com>.
12416 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12418         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12419         (R_MIPS_NUM): Bump by 1.
12421 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12423         * posix/execvp.c: Include alloca.h.
12424         (allocate_scripts_argv): Renamed to...
12425         (scripts_argv): ... this.  Don't allocate buffer here nor count
12426         arguments.
12427         (execvp): Use alloca if possible.
12428         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12429         * posix/tst-vfork3.c: New test.
12431 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12433         * string/Makefile (tst-strxfrm2-ENV): Define.
12434         * stdlib/Makefile (tst-strtod3-ENV): Define.
12436 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12438         * posix/getconf.c: Update copyright year.
12439         * nss/getent.c: Likewise.
12440         * iconv/iconvconfig.c: Likewise.
12441         * iconv/iconv_prog.c: Likewise.
12442         * elf/ldconfig.c: Likewise.
12443         * catgets/gencat.c: Likewise.
12444         * csu/version.c: Likewise.
12445         * elf/ldd.bash.in: Likewise.
12446         * elf/sprof.c (print_version): Likewise.
12447         * locale/programs/locale.c: Likewise.
12448         * locale/programs/localedef.c: Likewise.
12449         * nscd/nscd.c (print_version): Likewise.
12450         * debug/xtrace.sh: Likewise.
12451         * malloc/memusage.sh: Likewise.
12452         * malloc/mtrace.pl: Likewise.
12453         * debug/catchsegv.sh: Likewise.
12455 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12457         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12458         attempts.
12460 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12462         * posix/wordexp.c: Remove some unnecessary tests.
12464 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12466         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12467         blacklist the group till after we look it up.
12469 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12471         * include/atomic.h (atomic_forced_read): New macro.
12473 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12475         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12477 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12479         * nss/getXXbyYY_r.c: Include atomic.h.
12480         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12481         add atomic_write_barrier () in between.
12483         * stdlib/Makefile (tests): Add tst-makecontext.
12484         * stdlib/tst-makecontext.c: New test.
12486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12487         (__makecontext): Don't realign uc_mcontext.uc_regs.
12489 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12491         * elf/dl-support.c: Include dl-procinfo.h.
12492         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12493         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12494         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12495         Define.
12496         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12497         hardcoded constants.
12498         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12499         PPC_PLATFORM_* macros for array designators.
12501 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12503         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12504         names to the beginning.
12505         (_dl_powerpc_platforms): Add "power6x".
12506         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12507         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12508         (_DL_PLATFORMS_COUNT): Increase.
12509         (_dl_string_platform): Handle power6x case.
12510         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12511         PPC_FEATURE_POWER6_EXT): Define.
12512         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12514 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12516         [BZ #3747]
12517         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12518         [-2^31 .. 2^31) range.
12519         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12520         targets.
12521         * stdlib/tst-rand48-2.c: New test.
12522         * stdlib/Makefile (tests): Add tst-rand48-2.
12524 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12526         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12528 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12530         * misc/tst-pselect.c (do_test): Make sure the helper process is
12531         terminating when the test is aborted.
12533 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12535         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12536         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12537         Handle relatime mount option.
12539         [BZ #2337]
12540         * libio/Makefile (tests): Add tst-setvbuf1.
12541         * libio/tst-setvbuf1.c: New file.
12543 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12545         [BZ #2337]
12546         * libio/genops.c (__uflow): Fix a typo.
12547         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12548         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12549         the narrow buffer size.
12551 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12553         [BZ #2337]
12554         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12555         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12556         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12557         in _flags.
12558         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12559         _IO_wstr_finish): Likewise.
12560         * libio/wmemstream.c (open_wmemstream): Likewise.
12561         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12562         even for wide streams.
12564 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12567         kernel-features.h.
12569 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12571         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12572         separators also if no non-zero digits found.
12573         * stdlib/Makefile (tests): Add tst-strtod3.
12575 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12577         [BZ #3632]
12578         * include/features.h: Fix comment about default value for
12579         _POSIX_C_SOURCE.
12581         [BZ #3664]
12582         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12583         empty parsed strings.
12584         * stdlib/Makefile (tests): Add tst-strtod2.
12585         * stdlib/tst-strtod2.c: New file.
12587         [BZ #3673]
12588         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12589         computation.
12590         * stdlib/Makefile (tests): Add tst-atof2.
12591         * stdlib/tst-atof2.c: New file.
12593         [BZ #3674]
12594         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12595         correctly if removing trailing zero of hex-float.
12596         * stdlib/Makefile (tests): Add tst-atof1.
12597         * stdlib/tst-atof1.c: New file.
12599 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12601         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12602         Start searching for next comma at p rather than rest.
12603         * misc/Makefile (tests): Add tst-mntent2.
12604         * misc/tst-mntent2.c: New test.
12606         * misc/getusershell.c (initshells): Check for integer overflows.
12607         Make strings buffer one bigger as fgets always succeeds when second
12608         argument is 1.  Don't use calloc for shells array.  Disallow
12609         / as shell.
12611 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12613         * malloc/memusage.c: Handle realloc with new size of zero and
12614         non-NULL pointer correctly.
12615         (me): Really write first record twice.
12616         (struct entry): Make format bi-arch safe.
12617         (dest): Write out more realloc statistics.
12618         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12620 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12622         * nis/nis_subr.c (nis_getnames): Revert last change.
12624 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12626         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12627         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12628         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12629         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12630         ENOTTY.
12631         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12632         * io/tst-ttyname_r.c: New test.
12634 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12636         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12638 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12640         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12641         jump table entries.
12643 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12645         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12646         `clone' function to ensure proper unwinding stop of gdb.
12647         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12649 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12651         * nscd/nscd.init: Remove obsolete and commented-out -S option
12652         handling.
12654 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12656         [BZ #3514]
12657         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12659         [BZ #3515]
12660         * manual/string.texi (strtok): Remove duplicate paragraph.
12662 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12664         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12665         libgcc not supporting `rflags' unwinding (register # >= 17).
12667 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12669         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12670         succeeded.
12672 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12673             Jakub Jelinek  <jakub@redhat.com>
12674             Jan Kratochvil  <jan.kratochvil@redhat.com>
12676         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12677         unwind information.
12678         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12679         'restore_rt' even in the 'signal' directory.
12680         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12682 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12684         [BZ #3559]
12685         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12686         malloc crashed.  Don't allocate memory unnecessarily in each
12687         loop.
12689 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12691         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12693 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12695         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12697 2006-11-18  Bruno Haible  <bruno@clisp.org>
12699         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12700         __sysconf only after having tried to call getgroups32.
12702 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12704         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12705         addresses for IPv4 queries if they can be mapped.
12707 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12709         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12710         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12711         (signmask): Add .size directive.
12712         (othermask): Add .type directive.
12714 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12716         * po/nl.po: Update from translation team.
12718         * timezone/zdump.c: Redo fix for BZ #3137.
12720 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12722         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12723         to first_unused after parsing :include: file.
12725 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12727         * timezone/africa: Update from tzdata2006o.
12728         * timezone/antarctica: Likewise.
12729         * timezone/asia: Likewise.
12730         * timezone/australasia: Likewise.
12731         * timezone/backward: Likewise.
12732         * timezone/europe: Likewise.
12733         * timezone/iso3166.tab: Likewise.
12734         * timezone/northamerica: Likewise.
12735         * timezone/southamerica: Likewise.
12736         * timezone/zone.tab: Likewise.
12738         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12739         on machines with 64-bit time_t.
12741         * timezone/checktab.awk: Update from tzcode2006o.
12742         * timezone/ialloc.c: Likewise.
12743         * timezone/private.h: Likewise.
12744         * timezone/scheck.c: Likewise.
12745         * timezone/tzfile.h: Likewise.
12746         * timezone/tzselect.ksh: Likewise.
12747         * timezone/zdump.c: Likewise.
12748         * timezone/zic.c: Likewise.
12750         [BZ #3483]
12751         * elf/ldconfig.c (main): Call setlocale and textdomain.
12752         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12754         [BZ #3480]
12755         * manual/argp.texi: Fix typos.
12756         * manual/charset.texi: Likewise.
12757         * manual/errno.texi: Likewise.
12758         * manual/filesys.texi: Likewise.
12759         * manual/lang.texi: Likewise.
12760         * manual/maint.texi: Likewise.
12761         * manual/memory.texi: Likewise.
12762         * manual/message.texi: Likewise.
12763         * manual/resource.texi: Likewise.
12764         * manual/search.texi: Likewise.
12765         * manual/signal.texi: Likewise.
12766         * manual/startup.texi: Likewise.
12767         * manual/stdio.texi: Likewise.
12768         * manual/sysinfo.texi: Likewise.
12769         * manual/syslog.texi: Likewise.
12770         * manual/time.texi: Likewise.
12771         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12773         [BZ #3465]
12774         * sunrpc/clnt_raw.c: Minimal message improvements.
12775         * sunrpc/pm_getmaps.c: Likewise.
12776         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12777         * nis/nis_print_group_entry.c: Likewise.
12778         * locale/programs/repertoire.c: Likewise.
12779         * locale/programs/charmap.c: Likewise.
12780         * malloc/memusage.sh: Likewise.
12781         * elf/dl-deps.c: Likewise.
12782         * locale/programs/ld-collate.c: Likewise.
12783         * libio/vswprintf.c: Likewise.
12784         * malloc/memusagestat.c: Likewise.
12785         * sunrpc/auth_unix.c: Likewise.
12786         * sunrpc/rpc_main.c: Likewise.
12787         * nscd/cache.c: Likewise.
12788         * locale/programs/repertoire.c: Unify output messages.
12789         * locale/programs/charmap.c: Likewise.
12790         * locale/programs/ld-ctype.c: Likewise.
12791         * locale/programs/ld-monetary.c: Likewise.
12792         * locale/programs/ld-numeric.c: Likewise.
12793         * locale/programs/ld-time.c: Likewise.
12794         * elf/ldconfig.c: Likewise.
12795         * nscd/selinux.c: Likewise.
12796         * elf/cache.c: Likewise.
12797         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12799         [BZ #3451]
12800         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12801         change atomic.
12802         (ceil): Likewise.
12804 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12806         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12807         if N is one bigger than return value.
12808         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12809         and l1 last arguments, if buf is defined, verify the return value
12810         equals to strlen (buf) and verify no byte beyond passed length
12811         is modified.
12813 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12815         * po/sv.po: Update from translation team.
12817 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12819         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12820         noinline attribute.
12822 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12824         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12825         noinline attribute.
12827         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12828         Use __new_sys_siglist instead of _sys_siglist_internal as
12829         second macro argument.
12830         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12831         strong_alias.
12833 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12835         [BZ #3493]
12836         * posix/unistd.h (sysconf): Remove const attribute.
12838         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12839         temporary or deprecated addresses.
12840         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12842         * string/Makefile (tests): Add tst-strxfrm2.
12843         * string/tst-strxfrm2.c: New file.
12845 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12847         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12848         rather than r->r_brk.
12850 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12852         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12853         optimization even if needed > n.
12855         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12856         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12857         return false, otherwise return true.
12858         (cache_rpath): Return decompose_rpath return value.
12860 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12862         * include/libc-symbols.h (declare_symbol): Rename to...
12863         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12864         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12865         .size directive.
12866         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12867         changes.
12868         * sysdeps/gnu/siglist.c: Likewise.
12870 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12872         * sysdeps/powerpc/fpu/bits/mathinline.h
12873         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12874         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12876 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12878         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12879         Update handling of cache descriptor 0x49 for new models.
12880         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12881         Likewise.
12883 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12885         * malloc/memusage.c (dest): Reset not_me back to false after
12886         printing statistics.
12888 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12890         * configure.in: Work around ld --help change and avoid -z relro
12891         test completely if the architecture doesn't care about security.
12893 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12895         * po/sv.po: Update from translation team.
12897 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12899         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12900         generate compatibility version.
12902 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12904         * configure.in: Relax -z relro requirement a bit.
12906         * po/sv.po: Update from translation team.
12908 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12910         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12911         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12912         * elf/dl-close.c (_dl_close_worker): Likewise.
12913         * elf/dl-open.c (_dl_open_worker): Likewise.
12914         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12916 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12918         * configure.in: Require assembler support for visibility, compiler
12919         support for visibility and aliases, linker support for various -z
12920         options.
12921         * Makeconfig: Remove conditional code which now is unnecessary.
12922         * config.h.in: Likewise.
12923         * config.make.in: Likewise.
12924         * dlfcn/Makefile: Likewise.
12925         * elf/Makefile: Likewise.
12926         * elf/dl-load.c: Likewise.
12927         * elf/rtld.c: Likewise.
12928         * include/libc-symbols.h: Likewise.
12929         * include/stdio.h: Likewise.
12930         * io/Makefile: Likewise.
12931         * io/fstat.c: Likewise.
12932         * io/fstat64.c: Likewise.
12933         * io/fstatat.c: Likewise.
12934         * io/fstatat64.c: Likewise.
12935         * io/lstat.c: Likewise.
12936         * io/lstat64.c: Likewise.
12937         * io/mknod.c: Likewise.
12938         * io/mknodat.c: Likewise.
12939         * io/stat.c: Likewise.
12940         * io/stat64.c: Likewise.
12941         * libio/stdio.c: Likewise.
12942         * nscd/Makefile: Likewise.
12943         * stdlib/Makefile: Likewise.
12944         * stdlib/atexit.c: Likewise.
12945         * sysdeps/generic/ldsodefs.h: Likewise.
12946         * sysdeps/i386/dl-machine.h: Likewise.
12947         * sysdeps/i386/sysdep.h: Likewise.
12948         * sysdeps/i386/i686/memcmp.S: Likewise.
12949         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12950         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12951         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12953         * Makerules: USE_TLS support is now default.
12954         * tls.make.c: Likewise.
12955         * csu/Versions: Likewise.
12956         * csu/libc-start.c: Likewise.
12957         * csu/libc-tls.c: Likewise.
12958         * csu/version.c: Likewise.
12959         * dlfcn/dlinfo.c: Likewise.
12960         * elf/dl-addr.c: Likewise.
12961         * elf/dl-cache.c: Likewise.
12962         * elf/dl-close.c: Likewise.
12963         * elf/dl-iteratephdr.c: Likewise.
12964         * elf/dl-load.c: Likewise.
12965         * elf/dl-lookup.c: Likewise.
12966         * elf/dl-object.c: Likewise.
12967         * elf/dl-open.c: Likewise.
12968         * elf/dl-reloc.c: Likewise.
12969         * elf/dl-support.c: Likewise.
12970         * elf/dl-sym.c: Likewise.
12971         * elf/dl-sysdep.c: Likewise.
12972         * elf/dl-tls.c: Likewise.
12973         * elf/ldconfig.c: Likewise.
12974         * elf/rtld.c: Likewise.
12975         * elf/tst-tls-dlinfo.c: Likewise.
12976         * elf/tst-tls1.c: Likewise.
12977         * elf/tst-tls10.h: Likewise.
12978         * elf/tst-tls14.c: Likewise.
12979         * elf/tst-tls2.c: Likewise.
12980         * elf/tst-tls3.c: Likewise.
12981         * elf/tst-tls4.c: Likewise.
12982         * elf/tst-tls5.c: Likewise.
12983         * elf/tst-tls6.c: Likewise.
12984         * elf/tst-tls7.c: Likewise.
12985         * elf/tst-tls8.c: Likewise.
12986         * elf/tst-tls9.c: Likewise.
12987         * elf/tst-tlsmod1.c: Likewise.
12988         * elf/tst-tlsmod13.c: Likewise.
12989         * elf/tst-tlsmod13a.c: Likewise.
12990         * elf/tst-tlsmod14a.c: Likewise.
12991         * elf/tst-tlsmod2.c: Likewise.
12992         * elf/tst-tlsmod3.c: Likewise.
12993         * elf/tst-tlsmod4.c: Likewise.
12994         * elf/tst-tlsmod5.c: Likewise.
12995         * elf/tst-tlsmod6.c: Likewise.
12996         * include/errno.h: Likewise.
12997         * include/link.h: Likewise.
12998         * include/tls.h: Likewise.
12999         * locale/global-locale.c: Likewise.
13000         * locale/localeinfo.h: Likewise.
13001         * malloc/arena.c: Likewise.
13002         * malloc/hooks.c: Likewise.
13003         * malloc/malloc.c: Likewise.
13004         * resolv/Versions: Likewise.
13005         * sysdeps/alpha/dl-machine.h: Likewise.
13006         * sysdeps/alpha/libc-tls.c: Likewise.
13007         * sysdeps/generic/ldsodefs.h: Likewise.
13008         * sysdeps/generic/tls.h: Likewise.
13009         * sysdeps/i386/dl-machine.h: Likewise.
13010         * sysdeps/ia64/dl-machine.h: Likewise.
13011         * sysdeps/ia64/libc-tls.c: Likewise.
13012         * sysdeps/mach/hurd/fork.c: Likewise.
13013         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13014         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13015         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13016         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13017         * sysdeps/s390/libc-tls.c: Likewise.
13018         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13019         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13020         * sysdeps/sh/dl-machine.h: Likewise.
13021         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13022         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13023         * sysdeps/x86_64/dl-machine.h: Likewise.
13025         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13026         split out locking and parameter checking.
13027         (_dl_close): Call _dl_close_worker after locking and checking.
13028         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13029         _dl_close.
13030         * elf/Makefile: Add rules to build and run tst-thrlock.
13031         * elf/tst-thrlock.c:  New file.
13033         [BZ #3426]
13034         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13035         reality.
13037         [BZ #3429]
13038         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13039         we are sure we do not need it anymore for _dl_close.  Also move
13040         the asserts inside the lock region.
13041         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13043 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13045         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13046         argument.
13047         (_dl_lookup_symbol_x): Adjust caller.
13049         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13050         _ns_global_scope.
13051         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13053         * elf/dl-libc.c: Revert l_scope name changes.
13054         * elf/dl-load.c: Likewise.
13055         * elf/dl-object.c: Likewise.
13056         * elf/rtld.c: Likewise.
13057         * elf/dl-close.c (_dl_close): Likewise.
13058         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13059         always use __rtld_mrlock_{change,done}.  Always free old scope list
13060         here if not l_scope_mem.
13061         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13062         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13063         the lookup and __rtld_mrlock_unlock it after the lookup.
13064         * elf/dl-sym.c: Likewise.
13065         * include/link.h (struct r_scoperec): Remove.
13066         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13067         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13069 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13071         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13073 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13075         * configure.in: Disable building profile libraries by default.
13077 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13079         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13080         as signed longs, check for x_base + pos overflow.
13081         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13082         * sunrpc/tst-xdrmem2.c: New test.
13084 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13086         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13087         _dl_lookup_symbol_x code.
13089 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13091         * elf/dl-runtime.c: Include sysdep-cancel.h.
13092         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13093         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13094         instead of catomic_* macros.
13095         * elf/dl-sym.c: Include sysdep-cancel.h.
13096         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13097         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13098         * elf/dl-close.c: Include sysdep-cancel.h.
13099         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13100         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13101         * elf/dl-open.c: Include sysdep-cancel.h.
13102         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13103         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13105 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13107         [BZ #3313]
13108         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13109         fastbin rather than end of fastbin array.
13111 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13113         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13114         body macro.
13115         * sysdeps/x86_64/bits/atomic.h
13116         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13117         (catomic_decrement): Use correct body macro.
13119 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13121         * include/atomic.h: Add a unique prefix to all local variables
13122         in macros.
13123         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13125 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13127         [BZ #3369]
13128         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13129         and 7.
13131 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13133         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13135 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13137         [BZ #3313]
13138         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13139         determine highest fast bin to consolidate, always look into all of
13140         them.
13141         (do_check_malloc_state): Only require for empty bins for large
13142         sizes in main arena.
13144         * libio/stdio.h: Add more __wur attributes.
13146         * elf/dl-minimal.c (realloc): Optimize last patch.
13148 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13150         [BZ #3352]
13151         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13152         and use memcpy() if it does.
13154 2006-11-12  Andreas Jaeger  <aj@suse.de>
13156         [BZ #2510]
13157         * manual/search.texi (Hash Search Function): Clarify.
13158         (Array Search Function): Clarify.
13160 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13162         [BZ #2830]
13163         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13164         shifting.
13165         * math/atest-exp2.c (read_mpn_hex): Likewise.
13166         * math/atest-sincos.c (main): Likewise.
13168 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13170         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13171         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13172         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13173         version GLIBC_2.6.
13174         * Versions.def: Add GLIBC_2.6 for libc.
13176         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13178         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13180 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13182         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13184         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13186         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13187         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13189 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13191         * include/atomic.c: Define catomic_* operations.
13192         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13193         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13194         * malloc/memusage.c: Likewise.
13195         * gmon/mcount.c: Likewise.
13196         * elf/dl-close.c: Likewise.
13197         * elf/dl-open.c: Likewise.
13198         * elf/dl-profile.c: Likewise.
13199         * elf/dl-sym.c: Likewise.
13200         * elf/dl-runtime.c: Likewise.
13201         * elf/dl-fptr.c: Likewise.
13202         * resolv/res_libc.c: Likewise.
13204 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13206         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13207         components which lack them.
13209         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13210         at least one entry consisting of the parameter concatenated with
13211         the domain.
13213 2006-10-10  Roland McGrath  <roland@frob.com>
13215         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13216         * sysdeps/mach/hurd/futimes.c: Likewise.
13217         * sysdeps/mach/hurd/lutimes.c: Likewise.
13219 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13220             Jakub Jelinek  <jakub@redhat.com>
13222         Implement reference counting of scope records.
13223         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13224         from the list in objects which remain.  Always allocate new scope
13225         record.
13226         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13227         don't resize, allocate a new one.
13228         * elf/dl-runtime.c: Update reference counters before using a scope
13229         array.
13230         * elf/dl-sym.c: Likewise.
13231         * elf/dl-libc.c: Adjust for l_scope name change.
13232         * elf/dl-load.c: Likewise.
13233         * elf/dl-object.c: Likewise.
13234         * elf/rtld.c: Likewise.
13235         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13236         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13237         Add l_scoperec_lock.
13238         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13239         * sysdeps/generic/rtld-lowlevel.h: New file.
13241         * include/atomic.h: Rename atomic_and to atomic_and_val and
13242         atomic_or to atomic_or_val.  Define new macros atomic_and and
13243         atomic_or which do not return values.
13244         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13245         Various cleanups.
13246         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13248         * po/sv.po: Update from translation team.
13250 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13252         * Versions.def: Add GLIBC_2.6 to libpthread.
13254         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13255         (versioned_symbol): Likewise.
13256         (compat_symbol): Likewise.
13258         * po/tr.po: Update from translation team.
13260 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13262         * nis/Banner: Removed.  It's been integral part forever and the
13263         author info is incomplete anyway.
13264         * libio/Banner: Likewise.
13266         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13267         code, make sure the nis_freeresult call doesn't crash and that the
13268         result is reported correctly.
13270 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13272         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13273         when callback is NULL.
13275         * nis/Versions (libnss_nisplus): Add
13276         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13277         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13278         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13279         _nss_create_tablename): Rename to...
13280         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13281         ... these.  No longer static.
13282         (internal_setgrent): Adjust users.
13283         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13284         Don't use locking around _nss_grp_create_tablename call.
13285         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13287 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13289         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13291 2006-10-06  Andreas Jaeger  <aj@suse.de>
13293         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13295 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13297         * po/pl.po: Update from translation team.
13299         * nscd/nscd.c (main): Fix typo in message.
13300         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13302 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13304         [BZ #3291]
13305         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13306         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13307         (__sigprocmask): Define.
13309 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13311         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13312         used.
13314 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13316         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13317         in oldtotal and newtotal calculation.
13318         * nscd/nscd-client.h (struct mapped_database): Add datasize
13319         field.
13320         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13321         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13322         increased.
13323         (__nscd_cache_search): Add checks to make sure we never reference
13324         data beyond the current mapping.
13326 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13328         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13329         variables const to avoid compiler warnings.
13331         * io/fts.c (fts_close): Remove redundant checks.
13332         (fts_build): Likewise.
13333         (fts_palloc): Likewise.
13335         * manual/message.texi (Advanced gettext functions,
13336         Using gettextized software): Fix typos.
13338 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13340         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13341         explain why there are no leaks.
13343 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13345         * libio/wmemstream.c: Include <wchar.h>.
13346         * libio/bug-wmemstream1.c: Likewise.
13347         * libio/tst-wmemstream1.c: Likewise.
13348         * libio/tst-wmemstream2.c: Likewise.
13350         * version.h (RELEASE): Bump to 2.5.
13351         * README: Regenerated.
13353         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13355         [BZ #3273]
13356         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13357         found no group members.
13358         Patch by Petr Baudis.
13360 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13362         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13363         assert bootstrap_map.l_tls_modid is zero.
13364         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13365         if USE___THREAD.
13367 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13369         * libio/stdio.h: Move open_wmemstream prototype to ...
13370         * wcsmbs/wchar.h: ... here.
13372 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13374         [BZ #3252]
13375         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13376         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13377         __{,l}chown to handle the rest.
13378         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13379         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13380         __{,l}chown to handle the rest.
13381         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13382         i386/fchownat.c.
13383         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13384         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13386         [BZ #3253]
13387         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13388         time, rather allocate increasingly bigger arrays of pointers, if
13389         possible with alloca, if too large with malloc.
13391 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13393         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13395         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13397 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13399         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13400         home addresses.
13401         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13402         IFA_F_HOMEADDRESS flag for interfaces.
13403         * include/ifaddrs.h (struct in6addrinfo): Define
13404         in6ai_homeaddress.
13406 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13408         [BZ #3225]
13409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13410         PTR_DEMANGLE3): Define.
13411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13412         PTR_DEMANGLE3): Likewise.
13413         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13414         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13415         Likewise.
13416         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13418 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13420         * po/libc.pot: Regenerated.
13421         * po/be.po: Updated.
13422         * po/ca.po: Likewise.
13423         * po/cs.po: Likewise.
13424         * po/da.po: Likewise.
13425         * po/de.po: Likewise.
13426         * po/el.po: Likewise.
13427         * po/en_GB.po: Likewise.
13428         * po/es.po: Likewise.
13429         * po/fi.po: Likewise.
13430         * po/fr.po: Likewise.
13431         * po/gl.po: Likewise.
13432         * po/hr.po: Likewise.
13433         * po/hu.po: Likewise.
13434         * po/ja.po: Likewise.
13435         * po/ko.po: Likewise.
13436         * po/nb.po: Likewise.
13437         * po/nl.po: Likewise.
13438         * po/pl.po: Likewise.
13439         * po/pt_BR.po: Likewise.
13440         * po/ru.po: Likewise.
13441         * po/rw.po: Likewise.
13442         * po/sk.po: Likewise.
13443         * po/sv.po: Likewise.
13444         * po/tr.po: Likewise.
13445         * po/zh_CN.po: Likewise.
13446         * po/zh_TW.po: Likewise.
13448         [BZ #3137]
13449         * iconv/iconv_prog.c (main): Fix spelling in error message.
13450         * iconv/iconvconfig.c (main): Likewise.
13451         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13452         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13453         * locale/programs/localedef.c (main): Likewise.
13454         * locale/programs/repertoire.c (repertoire_read): Likewise.
13455         * timezone/zdump.c (main): Likewise.
13456         * nscd/connections.c (handle_request): Fix spelling in log message.
13457         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13459 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13461         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13462         interfaces.
13464 2006-09-20  Andreas Jaeger  <aj@suse.de>
13466         * math/libm-test.inc (lrint_test_upward): Fix typo.
13468 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13470         [BZ #2592]
13471         * math/libm-test.inc (lrint_test_tonearest): New function.
13472         (lrint_test_towardzero): New function.
13473         (lrint_test_downward): New function.
13474         (lrint_test_upward): New function.
13475         (main): Run these new tests.
13476         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13477         of values near to 0.
13478         (two52): Use double not long double.
13479         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13480         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13481         (two23): Use float not double.
13482         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13483         (two23): Use float not double.
13484         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13485         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13486         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13487         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13489 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13491         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13492         Cast sp to unsigned long to avoid compiler warning.
13493         Use __makecontext_ret function instead of a trampoline on the stack.
13494         (__makecontext_ret): New function.
13495         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13497 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13499         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13500         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13501         bits.
13503 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13505         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13506         sure no reference to the unloaded map's search list remains in the
13507         dependency's scope.
13509 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13511         * elf/Makefile: Add rules to build and run unload7 test.
13512         * elf/unload7.c: New test.
13513         * elf/unload7mod1.c: New file.
13514         * elf/unload7mod2.c: New file.
13516 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13518         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13519         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13520         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13521         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13522         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13523         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13524         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13525         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13526         PTRACE_GETEVENTMSG): Likewise.
13527         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13528         values.
13530 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13532         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13533         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13534         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13535         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13537 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13539         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13540         write '\0' to the fd.
13541         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13542         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13543         Change regs to unsigned long pointer from unsigned int, fix fscr
13544         offset.
13546 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13548         * io/Makefile (CFLAGS-fstatat.c): Set.
13549         (CFLAGS-fstatat64.c): Likewise.
13550         (CFLAGS-mknodat.c): Likewise.
13552         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13553         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13555         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13557 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13558             Steven Munroe  <sjmunroe@us.ibm.com>
13560         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13561         names to the beginning.  Rename "cell" to "cellbe".
13562         (_dl_powerpc_platforms): New.
13563         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13564         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13565         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13566         (_DL_HWCAP_PLATFORM): Define to new mask.
13567         (_dl_platform_string, _dl_string_platform): New functions.
13568         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13569         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13571 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13573         [BZ #2526]
13574         * README.libm: Fix a thinko in sqrt algorithm description.
13576         [BZ #3143]
13577         * manual/string.texi (argz_delete): Fix prototype.
13578         Patch by <alpt@freaknet.org>.
13580 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13582         [BZ #3138]
13583         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13584         * io/tst-fcntl.c (do_prepare): Likewise.
13585         * posix/tst-exec.c (do_prepare): Likewise.
13586         * posix/tst-preadwrite.c (do_prepare): Likewise.
13587         * posix/tst-spawn.c (do_prepare): Likewise.
13588         * posix/tst-truncate.c (do_prepare): Likewise.
13589         * rt/tst-aio.c (do_prepare): Likewise.
13590         * rt/tst-aio64.c (do_prepare): Likewise.
13591         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13592         size_t.
13594 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13596         [BZ #2821]
13597         * time/mktime.c (guess_time_tm): Fix overflow detection.
13598         * time/Makefile (tests): Add bug-mktime1.
13599         * time/bug-mktime1.c: New file.
13601         [BZ #3189, #3188]
13602         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13603         (mremap): Likewise.
13605 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13607         [BZ #1006]
13608         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13609         Ensure relocation doesn't clobber any bits outside of the
13610         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13611         R_SPARC_HI22 and R_SPARC_H44.
13613         [BZ #2775]
13614         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13615         (long) (MINSIZE + nb - old_size) is positive.
13617         * malloc/arena.c (grow_heap): When growing bail even if new_size
13618         is negative.
13620         [BZ #3155]
13621         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13622         stack below r1.
13624 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13626         * posix/regex_internal.c (re_string_reconstruct): Handle
13627         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13628         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13629         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13630         re_string_context_at.
13631         * posix/Makefile: Add rules to build and run bug-regex26 test.
13632         * posix/bug-regex26.c: New test.
13634         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13635         rather than col_sym_free.  Move seqp declaration earlier.
13637         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13639 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13641         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13642         decl before first goto out.
13644 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13646         * Makerules (shlib.lds): If have-hash-style, put .hash section
13647         at the end of the RO segment.
13649 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13651         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13652         style hash table format is used.
13654 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13656         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13657         randomization rather than before.
13658         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13660 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13662         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13664         * malloc/malloc.c (_int_malloc): Use full list insert and not
13665         shortcut which assumes the list is empty for large requests
13666         too.
13668         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13670 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13672         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13673         and offout arguments to the prototype.
13674         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13675         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13676         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13677         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13678         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13679         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13680         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13681         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13683 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13685         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13687         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13688         dlopen parameters.
13690 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13692         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13693         only if herrno is NETDB_INTERNAL.  Handle errors other than
13694         ERANGE outside of the loops, handle TRY_AGAIN.
13696         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13697         if other's ctype category was missing.
13698         * locale/programs/ld-collate.c (collate_read): Return if
13699         copy_locale's collate category is missing.
13701 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13703         [BZ #2684]
13704         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13705         arenas if allocation failed.
13706         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13708 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13710         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13711         waste bins[0..1].
13712         (malloc_state): Reduce bins size by 2.
13713         (_int_malloc): Fix test for large enough buffer for early termination.
13714         When no unsorted block matches perfectly and an exiting block has
13715         to be split, use full list insert and not shortcut which assumes
13716         the list is empty.
13718         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13719         failure.
13721 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13723         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13724         do anything.
13726         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13727         symbol require exact match (these are PLTs).
13728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13729         (_dl_ppc64_addr_sym_match): Likewise.
13731         [BZ #2683]
13732         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13733         If symbol has a value use it.
13734         * elf/tst-dladdr1.c: New file.
13735         * elf/Makefile: Add rules to build and run tst-addr1.
13737 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13739         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13740         keeps failing and heap growth or new heap creation isn't
13741         successful either.
13742         * malloc/tst-malloc.c (main): Add new tests.
13744 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13746         [BZ #2734]
13747         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13748         as in the x86-64 code to use bswap.
13750 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13752         [BZ #2680]
13753         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13754         __USE_UNIX98.
13755         * posix/bits/unistd.h: Likewise.
13757 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13759         [BZ #2751]
13760         * string/strchr.c: Add cast to avoid warning.
13762 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13764         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13765         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13766         limit is needed to avoid the exploding of the address space
13767         requirement for secondary heaps.
13768         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13769         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13771 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13773         [BZ #3018]
13774         * Makerules (depfiles): Handle extra-test-objs the same as
13775         extra-objs.
13776         (common-mostlyclean): Likewise.
13777         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13778         instead.
13779         * elf/Makefile (extra-objs): Likewise.
13780         * stdlib/Makefile (extra-objs): Likewise.
13782 2006-08-14  Eric Blake  <ebb9@byu.net>
13784         [BZ #3044]
13785         * misc/error.h: Assume C89 or better.
13786         * misc/error.c: Likewise.
13788 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13790         [BZ #3040]
13791         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13792         __ASSUME_ATFCTS is defined.
13794 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13796         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13797         to sort in each call.
13799         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13800         is empty simply return and use next service.
13801         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13803         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13804         tells us when not finding a charmap file is an error.
13805         * locale/programs/charmap.h: Adjust charmap_read prototype.
13806         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13807         cannot find a charmap.
13808         * locale/programs/localedef.c (main): Adjust charmap_read call.
13810 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13812         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13813         sysdeps/posix/pause.c implementation instead.
13815 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13817         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13818         to EPERM.
13820 2006-08-13  Andreas Schwab  <schwab@suse.de>
13822         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13823         Don't clobber caller's LRSAVE.
13824         (_dl_prof_resolve): Likewise.
13826 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13828         [BZ #1996]
13829         * libio/memstream.c (open_memstream): Allocate initial buffer with
13830         calloc.
13831         * libio/wmemstream.c (open_wmemstream): Likewise.
13832         * libio/strops.c: Pretty printing.
13833         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13834         (enlarge_userbuf): New function.
13835         (_IO_str_seekoff): Call it if seek position is larger than current
13836         buffer.
13837         * libio/wstrops.c: Likewise.
13838         * libio/vasprintf.c: Add comment as to why we do not have to use
13839         calloc instead of malloc to allocate initial buffer.
13840         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13841         * libio/bug-memstream1.c: New file.
13842         * libio/bug-wmemstream1.c: New file.
13844 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13846         * libio/wstrops.c: Remove dead macro definitions and comments.
13847         * libio/strops.c: Likewise.
13849         [BZ #2764]
13850         * login/utmpname.c (__utmpname): Remove unnecessary test.
13852 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13854         [BZ #2832]
13855         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13856         0s from integers.
13858 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13860         [BZ #2987]
13861         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13862         for CPU clocks.
13863         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13864         setting of CPU clocks.
13866 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13868         [BZ #2841]
13869         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13870         since C99 requires the result to promote to 'int' when uint_least8_t
13871         and uint_least16_t promote to 'int'.
13873 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13875         [BZ #3013]
13876         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13877         lenght of one output field, correct bitmask creation.
13878         * locale/programs/ld-time.c: Add alignment.
13880         [BZ #2997]
13881         * misc/error.c: Add space between program name and message if file
13882         name is missing.
13884 2006-08-03  Eric Blake  <ebb9@byu.net>
13886         [BZ #2998]
13887         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13889 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13891         * malloc/memusagestat.c: Silence warnings.
13893         * malloc/malloc.c: Dynamically size mmap treshold if the program
13894         frees mmaped blocks.
13895         Patch by Valerie Henson and Arjan van de Ven.
13897 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13899         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13900         __USE_GNU.
13902         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13903         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13904         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13905         Only provide var definitions in strtol_l (or for *ull*
13906         in strtoll_l).
13908         * stdio-common/bug16.c (tests): New array.
13909         (do_tests): Allow the first hexadecimal digit
13910         to be 1, 2, 4 or 8.  Do 3 additional tests.
13912         * sysdeps/s390/fpu/libm-test-ulps: Update.
13914         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13915         fchownat syscall if available.
13916         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13917         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13918         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13920 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13922         * nis/nis_xdr.c: Avoid some function calls.
13924 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13925             Ulrich Drepper  <drepper@redhat.com>
13927         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13928         short cut if only one name component is stripped away.
13930 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13932         * nis/nis_call.c: Minor cleanups throughout.
13933         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13934         (first_shoot): Add search_parent_first parameter.  Only if it is set
13935         search parent server first.
13936         If directory for table found through cold start cache is not the same
13937         as referenced in the cache, don't use it.
13938         (__nisfind_server): Take additional parameter.  Pass it on to
13939         first_shoot.
13940         (__prepare_niscall): Adjust __nisfind_server call.
13941         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13942         * nis/nis_table.c: Adjust __nisfind_server call.
13943         * nis/nis_lookup.c: Likewise.
13944         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13946 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13948         [BZ #2182]
13949         * math/s_cacosh.c: Return values from positive branch.
13950         * math/s_cacoshf.c: Likewise.
13951         * math/s_cacoshl.c: Likewise.
13953         [BZ #2883]
13954         * sysvipc/sys/msg.h: Change return value to ssize_t.
13955         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13956         * sysvipc/msgrcv.c: Likewise.
13957         * include/sys/msg.h: Likewise.
13959         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13960         test introduced in patch for bz #661.
13961         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13962         element for NEWGROUPS.
13964         [BZ #2908]
13965         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13966         'f', use '1' as leading digit not '\1'.
13967         * stdio-common/Makefile (tests): Add bug16.
13968         * stdio-common/bug16.c: New file.
13970         [BZ #2914]
13971         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13972         and don't try to open it.  The patch introducing the macro
13973         contained a bug and used the same file name as the new file
13974         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13975         this out completely.
13977         [BZ #2926]
13978         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13979         Patch by Jerry James <Jerry.James@usu.edu>.
13981         * rt/Makefile (tests): Add tst-clock2.
13982         * rt/tst-clock2.c: New file.
13984         [BZ #2978]
13985         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13986         function and its parameters and pass it to new thread.
13987         (__gai_notify): Add support for alternative waiting for completion.
13988         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13989         waiting for completion.
13990         * resolv/getaddrinfo_a.c: Likewise.
13991         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13992         waiting for completion is used.
13993         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13994         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13995         * resolv/gai_error.c: Likewise.
13996         * resolv/gai_sigqueue.c: Likewise.
13998 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14000         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14001         errno to EBADF and return MACH_PORT_NULL.
14003 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14005         [BZ #2980]
14006         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14008 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14010         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14011         walk them instead of the symbol table.
14013 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14015         [BZ #2098]
14016         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14017         status of NSS calls, not the number of returned entries.
14019         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14020         request_key, keyctl.
14022 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14024         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14026 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14028         * elf/tst-auditmod1.c: Fix typo in #error.
14030 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14032         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14034         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14036 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14038         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14039         that the directory is empty even on non-POSIX filesystems.
14041 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14043         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14045         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14046         the backend NSS module.  If backend setgrent call failed, don't have
14047         internal_setgrent fail.  Just remember this until it is needed.
14048         * nis/nss_compat/compat-pwd.c: Likewise.
14049         * nis/nss_compat/compat-spwd.c: Likewise.
14051 2006-07-30  Roland McGrath  <roland@redhat.com>
14053         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14054         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14055         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14056         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14058         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14059         (nanosleep_not_cancel): New macro.
14060         (sigsuspend_not_cancel): new macro.
14061         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14062         (do_sigsuspend): Define as inline.
14063         (__sigsuspend): Always use do_sigsuspend.
14064         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14065         * include/signal.h: Declare __sigsuspend_nocancel.
14066         * sysdeps/posix/pause.c
14067         [! NO_CANCELLATION] (__pause_nocancel): New function.
14069         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14070         * include/time.h (__nanosleep_nocancel): Likewise.
14072 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14074         * locale/programs/localedef.c (add_to_readlist): Rename local
14075         variables to avoid confusion.
14077         * locale/programs/charmap.c (charmap_read): Emit error message if
14078         charmap couldn't be found or read.
14080 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14082         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14083         __ASSUME_FUTEX_LOCK_PI.
14084         * include/time.h: Declare __nanosleep_nocancel.
14085         * include/unistd.h: Declare __pause_nocancel.
14087         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14088         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14089         get the __stack_chk_fail_local definition when it's needed.
14091 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14093         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14094         * dlfcn/bug-atexit3.c: New file.
14095         * dlfcn/bug-atexit3-lib.cc: New file.
14097         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14098         used when the namespace is not the base namespace.
14100 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14102         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14103         (__new_exitfn): Bump it in every successful call.
14104         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14105         more exit handlers, call them right away.
14106         * stdlib/exit.h: Declare __new_exitfn_called.
14108 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14110         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14111         calling registered handler.
14113         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14114         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14115         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14116         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14117         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14118         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14119         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14120         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14122 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14124         * elf/dl-lookup.c (dl_new_hash): New functions.
14125         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14126         value here.  Compute new-style hash value.  Pass new hash value
14127         and reference to variable with the old value to do_lookup_x.
14128         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14129         old-style hash table.
14130         (_dl_debug_bindings): Pass new hash value and reference to variable
14131         with the old value to do_lookup_x.
14132         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14133         new-style hash value and change old-style hash value parameter to
14134         be a reference.  Reoganize functions to determine whether
14135         new-style hash table is available.  Only fall back on old-style
14136         table.  If old-style hash value is needed, compute it here.
14137         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14138         entry.
14139         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14140         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14141         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14142         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14143         * Makeconfig: If linker supports --hash-style option add it to all
14144         linker command lines to build DSOs.
14145         * config.make.in: Define have-hash-style.
14146         * configure.in: Test whether linker supports --hash-style option.
14148         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14149         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14151 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14153         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14154         auditing.
14156         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14157         RPATH of main map twice.
14159 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14161         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14162         look further, return original strings.
14163         (_nl_find_msg): Do not return found translation if the conversion
14164         failed.  Either signal the string is unusable or that something went
14165         wrong and the original should be used.
14167 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14169         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14171 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14173         [BZ #2766]
14174         * misc/insremque.c (insque): Handle prev == NULL.
14175         * misc/Makefile (tests): Add tst-insremque.
14176         * misc/tst-insremque.c: New test.
14178 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14180         [BZ #2792]
14181         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14182         conflict with DL_DST_REQUIRED.
14184 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14186         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14187         match what Solaris does.
14189 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14191         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14192         local_setegid instead of seteuid and setegid.
14193         * sysdeps/generic/local-setxid.h: New file.
14194         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14196         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14198         * string/Makefile (tests): Add bug-envz1.
14199         * string/bug-envz1.c: New file.
14201 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14203         * posix/regex_internal.c (re_string_skip_chars): If no character has
14204         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14205         to the byte which couldn't be converted.
14206         (re_string_reconstruct): Don't clear valid_raw_len before calling
14207         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14208         tip_context using re_string_context_at.
14209         * posix/Makefile: Add rules to build and run bug-regex25 test.
14210         * posix/bug-regex25.c: New test.
14212 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14214         [BZ #2703]
14215         * string/envz.c (envz_strip): Correct erroneously reversed src
14216         and dest parameters to memmove() invocation.
14218 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14220         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14221         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14222         to make sure the database has been already invalidated.
14223         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14224         after the cache has been invalidated.  Use pthread_mutex_lock rather
14225         than pthread_mutex_trylock if fd != -1.
14226         * nscd/connections.c (invalidate_cache): Add fd argument, write
14227         response to fd if not calling prune_cache, pass fd to prune_cache.
14228         (handle_request): Adjust invalidate_cache caller.
14229         (nscd_run): Pass -1 as fd to prune_cache.
14231 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14233         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14234         the correct place.
14236 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14238         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14239         * nscd/cache.c (prune_cache): Take prunelock before starting the
14240         work.  Just return in case it is already taken.
14241         * nscd/connections.c (dbs): Initialize .prunelock.
14243 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14245         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14246         copying.  No need to allocate new array for group members.  Just
14247         move the pointers and update the size.
14249         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14250         Avoid memory leak in case realloc fails.  Simplification for
14251         better code generation.
14253         Avoid deprecation warning because of libc_hidden_proto for
14254         inet6_option_alloc.
14255         * inet/inet6_option.c (option_alloc): Renamed from
14256         inet6_option_alloc.  Made static.
14257         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14258         (inet6_option_append): Call option_alloc.
14259         * include/netinet/in.h: Remove libc_hidden_proto for
14260         inet6_option_alloc.
14262         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14263         for cleanup when cb!=NULL [Coverity CID 233].
14265 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14267         [BZ #2693]
14268         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14269         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14270         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14271         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14272         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14273         and inet6_rth_getaddr.
14274         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14275         array.
14276         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14277         Mark inet6_option_* interfaces as deprecated.
14278         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14279         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14280         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14281         inet6_rth_segments, and inet6_rth_getaddr.
14282         * inet/inet6_opt.c: New file.
14283         * inet/inet6_rth.c: New file.
14285         * inet/netinet/icmp6.h: Pretty printing.
14287         [BZ #2683]
14288         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14290 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14292         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14293         doing it all here.  When server does not know the answer do not
14294         fail immediate, try parent first.
14296         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14297         overflow test.
14299 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14301         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14302         from __do_niscall.
14303         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14304         and exported.
14305         (__follow_path): New function.  Split out from nis_list.
14306         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14307         _xdr_nis_result.
14308         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14309         _xdr_nis_result.
14310         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14311         and __follow_path.
14312         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14313         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14314         from libnsl for version GLIBC_PRIVATE.
14315         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14316         Remove entry parameter from _nss_nisplus_parse_pwent and
14317         _nss_nisplus_parse_grent.
14318         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14319         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14320         again.  Rewrite getpwent handling to not use nis_first_entry and
14321         nis_next_entry.  Roll out own niscall handling.
14322         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14324         * sunrpc/xdr_rec.c: Fix typo in comment.
14326 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14328         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14329         handling.
14331         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14332         to allocate memory for my_pollfd.  Better initialization of
14333         cb_is_running.  Use TEMP_FAILURE_RETRY.
14335         * malloc/memusage.sh (memusageso): Add quotes.
14336         (memusagestat): Likewise.
14337         * debug/xtrace.sh (pcprofileso): Likewise.
14338         (pcprofiledump): Likewise.
14339         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14340         replacement.
14341         * malloc/Makefile ($(objpfx)memusage): Likewise.
14343         * nis/nis_callback.c (__nis_create_callback): Calls to
14344         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14345         asprintf call fails.
14347         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14348         no uninitialized memory is passed to sendto.
14350 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14352         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14353         of snprintf+strdup.  Handle OOM.
14354         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14355         cb->serv together.  Remove now obsolete free calls.
14356         (__nis_destroy_callback): Remove now obsolete free call.
14358 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14360         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14361         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14362         and ULA respectively). Set precedence for IPv4 address to 10 as
14363         defined in RFC3484 for preferring IPv6.
14364         * posix/gai.conf: Update to match the new default tables.
14366 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14368         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14369         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14370         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14371         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14373         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14374         Removed.
14375         (init_nss_interface): Remove initialization of these variables.
14377 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14379         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14380         nis_free_directory forward to avoid duplication.
14382 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14384         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14385         rec_dirsearch returning NULL.
14386         (first_shoot): Handle __nis_finddirectory returning NULL.
14387         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14389         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14390         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14392 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14394         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14395         pid changed.
14397 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14399         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14401         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14402         * nscd/nscd_getgr_r.c: Likewise.
14404         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14406         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14407         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14409         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14411         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14413         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14415         * include/rpc/auth.h: Mark xdr_des_block_internal and
14416         xdr_opaque_auth_internal as hidden.
14418         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14419         hidden.
14421         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14423         * misc/getusershell.c (okshells): Don't use static initializers,
14424         do it dynamically.
14426         * stdlib/fmtmsg.c (keywords): Change type of len element to
14427         uint32_t to not waste space on 64bit machines.
14429         * locale/setlocale.c: Change _nl_category_names into a string.
14430         Add new _nl_category_name_idxs.  Change all users.
14431         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14432         Declare _nl_category_name_idxs.
14433         * locale/findlocale.c: Adjust for _nl_category_names change.
14434         * locale/loadlocale.c: Likewise.
14435         * locale/newlocale.c: Likewise.
14436         * intl/dcigettext.c: Likewise.
14438         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14439         (add_alias2): ...here.  New function.
14440         (__gconv_read_conf): Simplify builtin alias handling.
14441         (builtin_aliases): Convert to string to avoid relocations.
14442         * iconv/gconv_builtin.h: Add comment about correct formatting.
14444 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14446         * resolv/res_debug.c (loc_ntoa): Make error const.
14448 2006-05-14  Andreas Schwab  <schwab@suse.de>
14450         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14452 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14454         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14455         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14456         sizeof (cpu_set_t).
14458 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14460         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14462         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14464         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14465         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14467         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14468         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14470         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14471         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14472         xdr_cback_data.
14474         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14475         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14476         xdr_ypupdate_args.
14478         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14479         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14481         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14482         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14484         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14485         * include/rpcsvc/nis_callback.h: New file.
14487         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14488         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14490         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14491         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14493         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14494         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14496         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14497         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14499         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14500         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14501         xdr_ypdelete_args.
14503         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14504         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14506         * nis/nis_error.c: Remove table of strings.  Use position
14507         independent mechanism.
14508         * nis/nis_error.h: New file.
14510 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14512         * locale/programs/ld-time.c (time_finish): If wide era name or
14513         format aren't provided, set both wname and wformat to L"".
14515 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14517         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14518         results if the call was succesful.
14520         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14522         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14523         as hidden.
14525 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14527         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14529 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14531         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14532         caller makes sure this is not the case.
14533         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14535 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14537         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14538         calls.
14540         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14541         [Coverity CID 229, 230]
14543         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14544         DGETTEXT calls.
14545         (hol_help): Likewise.  [Coverity CID 226, 227]
14547         * string/argz-replace.c (__argz_replace): Unconditionally call
14548         free on SRC.  [Coverity CID 225]
14550         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14551         the return value of __nis_default_owner and __nis_default_group,
14552         it has been especially allocated.  [Coverity CID 224]
14554         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14555         searchgroup and searchowner.  Significantly simplified.
14556         (__nis_default_owner): Remove duplication.  Do not locally copy the
14557         string before duplicating it.
14558         (__nis_default_group): Likewise.
14560         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14561         we must clear the variable before calling __nisfind_server.
14563         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14564         nis_getnames.  [Coverity CID 223]
14566         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14567         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14569         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14570         allocate memory for the input to add_bytes.  [Coverity CID 221]
14572         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14573         was allocated here.  [Coverity CID 219, 220]
14575         * posix/getconf.c (print_all): Free confstr data after printing.
14576         [Coverity CID 218]
14578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14579         list allocation fails.  [Coverity CID 215]
14581         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14582         [Coverity CID 213]
14584         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14585         string is NULL.  [Coverity CID 212]
14586         * argp/Makefile: Add rules to build and run bug-argp1.
14587         * argp/bug-argp1.c: New file.
14589         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14590         end of string.
14591         * stdlib/canonicalize.c (__realpath): Likewise.
14593         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14594         pointer.  [Coverity CID 206]
14596         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14597         in statically linked code.
14598         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14599         statically built code, be prepared to have no link map.
14600         [Coverity CID 205]
14602         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14603         dgettext calls. [Coverity CID 204]
14605         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14606         the one user.
14607         (uparam_names): Reduce size.  Avoid relative relocations.
14608         Moved to read-only segment.
14609         (fill_in_uparams): Update for new layout.
14611         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14612         assumed to always be != NULL. [Coverity CID 202]
14614         * argp/argp-help.c (hol_entry_help): Remove some dead code
14615         [Coverity CID 200].
14617         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14618         away a few more unconditional yperr2nss calls.
14619         (_nss_nis_getservbyname_r): Likewise.
14621 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14623         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14624         architectures.
14626         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14627         that unused memory passed to sendto is nevertheless initialized.
14629         [BZ #2499]
14630         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14631         possibly unaligned memory accesses.
14633         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14634         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14635         and __putlong respectively.  Correct buffer overflow check for
14636         NS_NOTIFY_OP.
14638         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14640         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14641         (send_dg): Rewrite error handling to be more compact and avoid
14642         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14644         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14646         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14647         instead of ns_get16.
14648         (res_queriesmatch): Likewise.  Minor optimization.
14650         [BZ #2499]
14651         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14652         __libc_res_nsend might reallocate the buffer for the answer.  In
14653         this case we have to reload the HP pointer.
14655 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14657         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14658         some branch prediction hints.
14660         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14661         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14662         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14663         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14664         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14665         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14666         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14667         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14669 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14671         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14672         by a GOT relocation to make Scrt1.o position independent.
14673         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14675         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14676         six system call parameters.
14677         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14679 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14681         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14682         malloc&bzero.
14684         * sunrpc/svc_udp.c (BZERO): Remove definition.
14685         (CALLOC): Define.
14686         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14688         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14689         (des_SPtrans): Use uint32_t type.
14690         (des_skb): Likewise.
14692         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14694 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14696         [BZ #2509]
14697         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14698         on 32-bit arches.
14700 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14702         * locale/programs/ld-address.c (address_finish): Fix one more
14703         place where the iso639 array might be accessed beyond the limits.
14705 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14707         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14708         filling it for the first time.
14710         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14711         Adjust all callers.
14712         Free res object content before returning.
14714         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14716         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14717         client->cl_auth.
14719         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14720         cleanup for initial thread, just the free call on TVP.
14722         * nscd/gai.c (__getline): Define.
14725 See ChangeLog.16 for earlier changes.