Also update Linux-specific VALID_ELF_ABIVERSION definition.
[glibc.git] / ChangeLog
blobed27976ad63e070bb8ddb9df3afe816231e5366b
1 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
4         definition to follow generic code.
6 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
8         * posix/getconf.c: Update copyright year.
9         * nss/getent.c: Likewise.
10         * iconv/iconvconfig.c: Likewise.
11         * iconv/iconv_prog.c: Likewise.
12         * elf/ldconfig.c: Likewise.
13         * catgets/gencat.c: Likewise.
14         * csu/version.c: Likewise.
15         * elf/ldd.bash.in: Likewise.
16         * elf/sprof.c (print_version): Likewise.
17         * locale/programs/locale.c: Likewise.
18         * locale/programs/localedef.c: Likewise.
19         * nscd/nscd.c (print_version): Likewise.
20         * debug/xtrace.sh: Likewise.
21         * malloc/memusage.sh: Likewise.
22         * malloc/mtrace.pl: Likewise.
23         * debug/catchsegv.sh: Likewise.
25         * Makerules: Add rule for libc-abis.h.
26         * csu/version.c: Use LIBC_ABIS_STRING string if available.
27         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
28         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
29         Add extra call to VALID_ELF_ABIVERSION.
31 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
33         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
35 2010-03-12  Andreas Schwab  <schwab@redhat.com>
37         * elf/dl-dst.h: Include "trusted-dirs.h".
38         (DL_DST_REQUIRED): Take $LIB into account.
40 2010-03-11  Roland McGrath  <roland@redhat.com>
42         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
43         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
45 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
47         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
48         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
50 2010-03-09  David S. Miller  <davem@davemloft.net>
52         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
53         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
54         64-bit ones.
56         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
58         * sysdeps/sparc/sparc32/strlen.S: Optimize.
59         * sysdeps/sparc/sparc64/strlen.S: Likewise.
60         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
61         XCC): Delete definitions, not needed.
63 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
65         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
66         Little follow-up patch from last change.
68 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
70         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
71         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
73 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
75         * resolv/res_send.c: Fixed DEBUG statements.
76         Moved tmpbuf declaration to block beginning and
77         updated pointer names used in multiple DprintQ() calls
79 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
81         * config.make.in (config-asflags-i686): Define.
82         * configure.in: Substitute libc_cv_as_i686.
83         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
84         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
85         if assembler supports -mtune=i686.
86         (ASFLAGS-.oX): Likewise.
88 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
90         * elf/elf.h (R_X86_64_SIZE32): Define.
91         (R_X86_64_SIZE64): Define.
93 2010-03-02  Richard Guenther  <rguenther@suse.de>
95         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
96         is sign-extending.
98 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
100         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
101         the kernel headers.
103 2010-03-04  David S. Miller  <davem@davemloft.net>
105         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
107         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
108         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
110 2010-03-03  David S. Miller  <davem@davemloft.net>
112         * math/math_private.h (INSERT_WORDS64): Fix argument order.
114 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
116         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
118 2010-03-03  David S. Miller  <davem@davemloft.net>
120         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
121         pass '1' for 't' argument to sparc_fixup_plt.
122         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
123         Likewise.
124         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
125         (sparc_fixup_plt): Document 't' argument.  Enable branch
126         optimization and use v9 branches when possible.  Explain why we
127         cannot unconditionally patch the branch into the first PLT
128         instruction.
129         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
130         argument.  Use v9 branches when possible.  Explain why we can in
131         fact unconditionally use a branch in the first PLT instruction
132         here.
134 2010-02-28  Roland McGrath  <roland@redhat.com>
136         * elf/elf.h (NT_X86_XSTATE): New macro.
138 2010-02-25  David S. Miller  <davem@davemloft.net>
140         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
141         * sysdeps/sparc/sparc64/align-cpy.S: New.
142         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
143         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
144         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
145         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
146         Remove.
147         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
148         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
149         Remove.
150         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
151         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
152         Remove.
154         * sysdeps/sparc/sparc32/bcopy.c: Delete.
155         * sysdeps/sparc/sparc32/memmove.c: Delete.
156         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
157         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
158         * sysdeps/sparc/sparc64/bcopy.c: Delete.
159         * sysdeps/sparc/sparc64/memmove.c: Delete.
160         * sysdeps/sparc/sparc64/memcopy.h: New.
161         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
162         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
163         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
164         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
165         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
167         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
168         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
169         gen-as-const-headers.
170         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
171         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
172         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
173         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
174         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
175         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
176         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
177         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
178         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
179         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
180         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
181         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
182         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
183         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
184         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
185         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
186         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
187         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
188         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
189         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
190         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
191         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
192         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
193         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
195 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
197         [BZ #11332]
198         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
199         and cfi_restore_state only if USE_AS_STRNCMP is defined.
201 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
203         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
205 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
207         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
208         (bk_write_less32bytes_2): Renamed to ...
209         (bk_write_less48bytes): This.
210         Use unsigned conditional jumps.
211         Correct unwind info.
212         Use add/sub instead of lea if possible.
213         (shl_0_gobble_cache_loop_tail): Removed.
214         (large_page): Properly adjust ECX.
216         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
217         conditional jumps.
218         Correct unwind info.
220         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
221         punpcklbw.
222         Use unsigned conditional jumps.
223         (128bytesormore_nt): Renamed to ...
224         (128bytesormore_endof_L1): This.
225         Use add instead of lea if possible.
226         Correct unwind info.
227         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
228         punpcklbw.
229         Use unsigned conditional jumps.
230         Use add instead of lea if possible.
231         Correct unwind info.
233 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
235         [BZ #11319]
236         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
237         undoing the stream because _IO_FINISH doesn't report failures.
239         [BZ #5553]
240         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
241         (public_pVALLOc): Likewise.
242         Patch by Petr Baudis.
244 2010-02-22  Jim Meyering  <meyering@redhat.com>
246         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
248         * manual/charset.texi: Adjust grammar.
250         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
251         * manual/charset.texi (Selecting the Conversion): Likewise.
252         * manual/getopt.texi (Getopt Long Options): Likewise.
253         * manual/memory.texi (Resizing the Data Segment): Likewise.
254         * manual/message.texi (GUI program problems): Likewise.
255         * manual/resource.texi (CPU Affinity): Likewise.
256         * manual/stdio.texi (Streams and Threads): Likewise.
257         * manual/time.texi (High Accuracy Clock): Likewise.
259 2009-02-20  David S. Miller  <davem@davemloft.net>
261         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
262         Adjust rela->r_offset by l->l_addr when rewriting PLT.
264         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
265         test end of buffer.
267         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
268         (__makecontext): Adjust arg counter properly when copying arg
269         stack slots.
271 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
273         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
274         Adjust rela->r_offset by l->l_addr when rewriting PLT.
276 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
278         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
279         non-existent `tiocsctty_port'.
281 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
283         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
284         instead of FEATURE_OFFSET.
285         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
287         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
288         Fix one unwind info problem.
290         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
292         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
294 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
295             Ulrich Drepper  <drepper@redhat.com>
297         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
298         Clean up a bit.
300 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
302         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
303         (tiocsctty_port): ...this new function.
305         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
306         `ioctl_handler_t'.
308 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
310         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
311         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
312         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
313         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
315         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
316         undefined code.
318 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
320         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
321         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
322         memcmp-c, memcmp-ssse3, and memcmp-sse4.
323         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
324         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
325         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
326         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
327         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
328         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
329         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
330         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
331         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
332         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
334 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
336         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
337         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
338         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
339         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
340         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
341         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
342         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
343         is not supported.
344         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
345         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
346         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
347         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
348         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
349         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
350         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
351         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
352         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
353         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
354         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
355         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
356         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
357         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
358         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
359         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
360         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
362         Likewise.
363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
364         Likewise.
365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
366         Likewise.
367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
368         Likewise.
369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
371 2010-02-12  Alan Modra  <amodra@gmail.com>
373         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
374         Define and use for __powerpc64__ too.
375         [__powerpc__] (TLS_LD): Add r3 to clobbers.
376         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
377         [__powerpc64__] (TLS_GD): Make __result r3 reg.
378         [__powerpc64__] (TLS_IE): Relax output constraint.
380 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
382         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
383         instructions cu21 and cu24.  Add well-formedness checking
384         parameter and adjust the software implementation.
385         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
387 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
389         [BZ #11271]
390         * io/ftw.c (ftw_startup): Close descriptor for initial directory
391         after changing back to it.
393 2010-02-05  David S. Miller  <davem@davemloft.net>
395         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
396         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
397         ifunc relocs.
398         (elf_machine_lazy_rel): Likewise.
399         (sparc_fixup_plt): Pull out to...
400         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
401         * sysdeps/sparc/sparc32/dl-irel.h: New file.
402         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
403         ifunc relocs.
404         (elf_machine_lazy_rel): Likewise.
405         (sparc64_fixup_plt): Pull out to...
406         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
407         * sysdeps/sparc/sparc64/dl-irel.h: New file.
409 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
411         * elf/elf.h: Define m68k TLS relocations.
413 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
415         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
416         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
417         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
418         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
420         64-bit power7 fpu path.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
422         32-bit power7 fpu math.
424 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
426         * sysdeps/i386/rshift.S: More compact unwind information.
428         * sysdeps/i386/lshift.S: Fix unwind information.
430 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
432         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
433         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
434         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
435         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
436         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
437         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
438         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
439         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
440         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
441         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
442         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
443         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
445 2010-02-08  Andreas Schwab  <schwab@redhat.com>
447         * include/fenv.h: Add hidden proto for fegetenv.
448         * math/fegetenv.c: Add hidden alias.
449         * sysdeps/i386/fpu/fegetenv.c: Likewise.
450         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
451         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
452         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
453         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
454         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
455         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
457 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
459         [BZ #11230]
460         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
461         during recovery.
463 2010-01-26  Andreas Schwab  <schwab@redhat.com>
465         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
466         interface.
467         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
468         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
469         utmpx interface.
471         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
472         entry for 2.12.
474 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
476         [BZ #11235]
477         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
478         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
479         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
480         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
481         MS_ACTIVE, and MS_NOUSER.
482         (MS_RMT_MASK): Update according to current kernels.
484         [BZ #11242]
485         * misc/getusershell.c (initshells): Allocate one more byte in input
486         buffer so that fgets doesn't loop undefinitely.
488 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
490         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
491         __libc_use_alloca tells us not to.  Fix memory leak in an error
492         situation.  Based partially on patch by Jim Meyering.
494 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
496         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
497         get_phys_pages, get_avphys_pages): Add weak aliases.
499 2010-01-25  Andreas Schwab  <schwab@redhat.com>
501         * iconv/iconv_prog.c (write_output): Fix check for open failure.
503 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
505         [BZ #11200]
506         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
507         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
509 2010-01-22  Jim Meyering  <jim@meyering.net>
511         [BZ #11193]
512         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
513         buffer length computation.
515         [BZ #11192]
516         * posix/regexec.c (re_copy_regs): Don't leak when allocation
517         of the start buffer succeeds but allocation of the "end" one fails.
519         [BZ #11191]
520         * posix/regexec.c (re_search_2_stub): Check for overflow
521         when adding the sizes of the two strings.
523         [BZ #11190]
524         * posix/regexec.c (re_search_internal): Avoid overflow
525         in computing re_malloc buffer size.
527         [BZ #11189]
528         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
529         in computing re_malloc buffer size.
531         [BZ #11188]
532         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
533         in size calculation.
535         [BZ #11187]
536         * posix/regexec.c (re_search_2_stub): Use simpler method than
537         boolean for freeing internal storage.
539 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
541         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
542         failed mbrtowc call.
544 2010-01-22  Jim Meyering  <jim@meyering.net>
546         [BZ #11186]
547         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
548         fits in wchar_t.  Problem reported by Eric Blake.
550         [BZ #11185]
551         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
552         and stores into set-but-not-used local, "q".
554         [BZ #11184]
555         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
556         detection test.  Patch by Paul Eggert.
558         [BZ #11183]
559         * posix/regex_internal.c (re_string_realloc_buffers):
560         Detect and handle internal overflow.  Patch by Paul Eggert
562 2010-01-20  Andreas Schwab  <schwab@redhat.com>
564         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
565         (CHECK_SP): Fix check for alternate stack.
566         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
567         (CHECK_SP): Likewise.
569 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
571         * sysdeps/i386/i686/multiarch/memmove.S: Also check
572         bit_Fast_Rep_String when SHARED isn't defined.
574 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
576         [BZ #11194]
577         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
579 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
581         * sysdeps/mach/hurd/bits/libc-lock.h
582         (__rtld_lock_recursive_t): New type.
583         (__rtld_lock_initialize): New macro.
585 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
587         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
588         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
592 2010-01-18  Andreas Schwab  <schwab@redhat.com>
594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
595         definitions of O_DSYNC and O_RSYNC.
597         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
598         casting d_tag.
600         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
601         dynamic entry types.
603 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
605         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
606         constant.
607         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
608         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
609         overflow.
610         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
612         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
613         math_opt_barrier and math_force_eval macros.
615 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
617         * posix/regcomp.c: Fix a few more cases of ignored return values.
618         * posix/regex_internal.c: Likewise.
619         * posix/regexec.c: Likewise.
621         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
622         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
623         if _XOPEN_SOURCE is not defined as well.
625 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
627         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
628         high gprs kernel facility.
629         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
630         Added high gprs check for DSOs.
631         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
632         new elf header flag.
634 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
636         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
637         dl_main.
638         * elf/dl-open.c (_dl_sysdep_start): Likewise..
639         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
640         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
641         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
642         started.
644 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
646         [BZ #11027]
647         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
648         to RFC 2474.
649         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
651         [BZ #11141]
652         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
653         addresses.
655         [BZ #11127]
656         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
657         re_node_set_insert failure; return REG_ESPACE.
658         Patch by Paul Eggert.
660         * bits/confname.h: Make pre-C99-safe.
662 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
664         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
665         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
666         files are found by GCC.
668 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
670         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
671         brk, and sbrk.
673         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
674         index, and rindex.
676         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
678         * Versions.def: Add GLIBC_2.12 for libpthread.
680         [BZ #11126]
681         * malloc/malloc.c (malloc_info): Initialize malloc if not already
682         done.  Handle empty bin lists.
684         * posix/unistd.h: Change getpagesize and getdtablesize declaration
685         visibility some more.
687         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
689         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
691         [BZ #11120]
692         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
693         needed outside libc.
695 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
697         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
699 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
701         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
703 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
705         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
707 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
709         * conform/data/complex.h-data: Test for POSIX2008.
711         * conform/data/ctype.h-data: Fix POSIX testing.
713         * conform/data/dirent.h-data: ino_t only needed for XSI.
715         * grp/grp.h: Declare getgrent and endgrent for XPG7.
717         * conform/data/inttypes.h-data: Use same types as the headers.
719         * resolv/netdb.h: Don't define old resolver macros for XPG7.
721         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
723         * conform/conformtest.pl: Implement tag for allow-header.
724         Fix newline handling in allow-header implementation.
726         * conform/data/time.h-data: Use allow-header instead of duplicating
727         information.
729         * conform/data/time.h-data: Allow sigevent tag.
731         * posix/sched.h: Define time_t and pid_t for XPG7.
733 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
735         * sysdeps/i386/i686/bcopy.S: New file.
737         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
739         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
740         and END_CHK.
741         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
742         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
743         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
745         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
747         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
748         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
749         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
750         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
751         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
752         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
753         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
754         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
755         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
756         * sysdeps/i386/i686/multiarch/bzero.S: New file.
757         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
758         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
759         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
760         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
761         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
762         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
763         * sysdeps/i386/i686/multiarch/memmove.S: New file.
764         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
765         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
766         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
767         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
768         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
769         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
770         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
771         * sysdeps/i386/i686/multiarch/memset.S: New file.
772         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
774         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
775         (END_CHK): Likewise.
777         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
778         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
779         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
781         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
782         for 0x0e and 0x80.
783         (__x86_64_data_cache_size): New.
784         (init_cacheinfo): Set __x86_64_data_cache_size.
786         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
787         on bit_Fast_Rep_String for Intel Core i7.
789         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
790         (index_Fast_Rep_String): Likewise.
791         (FEATURE_INDEX_1): Likewise.
792         (FEATURE_INDEX_MAX): Likewise.
793         (cpu_features): Add feature.
795 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
797         * conform/data/sys/select.h-data: Fix up for XPG7.
799 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
801         * posix/sys/wait.h: Don't define W* macros etc. if
802         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
804 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
806         * io/sys/stat.h: Declare fchmod for XPG7.
807         * conform/data/sys/stat.h-data: Fix up for XPG7.
809         * termios/termios.h: Define pid_t for XPG7.
811         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
812         * conform/data/tgmath.h-data: Likewise.
814         * conform/data/time.h-data: Fix POSIX tests.
816         * conform/data/wchar.h-data: Fix up XPG7 tests.
818         * include/features.h: Fix __USE_ISOC95 handling.
820         * conform/data/wordexp.h-data: Fix typo in last change.
822         * conform/data/unistd.h-data: Fix up older POSIX tests.
824         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
825         * posix/unistd.h: Likewise.
827         * posix/unistd.h: Include environments.h also for XPG6 and up.
828         Define intptr_t for XPG6 and up.
829         Fix up for XPG7.
830         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
832         * conform/data/sys/types.h-data: Fix up for XPG7.
834         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
835         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
836         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
837         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
838         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
839         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
840         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
841         * sysdeps/unix/sysv/bits/stat.h: Likewise.
842         * sysdeps/mach/hurd/bits/stat.h: Likewise.
844         * bits/confname.h: Fix typo in last change.
846         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
848 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
850         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
851         and SA_RESETHAND now available in Base.
852         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
853         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
854         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
855         * conform/data/signal.h-data: Update for XPG7.
857         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
859         * string/strings.h: Don't declare obsolete functions for XPG7.
860         Declare ffs only for XSI.
861         * conform/data/strings.h-data: Update for XPG7.
863 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
865         [BZ #11125]
866         * libio/stdio.h: Define va_list, off_t, and ssize_t.
868         * posix/glob.h: Define size_t.
870         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
872         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
874 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
876         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
877         be self-contained.
879         * conform/data/stdio.h-data: Expect off_t and ssize_t.
881 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
883         * libio/stdio.h: Define va_list also for XPG7.
885         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
886         * conform/data/ctype.h-data: Likewise.
887         * conform/data/dirent.h-data: Likewise.
888         * conform/data/errno.h-data: Likewise.
889         * conform/data/fcntl.h-data: Likewise.
890         * conform/data/fmtmsg.h-data: Likewise.
891         * conform/data/fnmatch.h-data: Likewise.
892         * conform/data/ftw.h-data: Likewise.
893         * conform/data/glob.h-data: Likewise.
894         * conform/data/grp.h-data: Likewise.
895         * conform/data/iconv.h-data: Likewise.
896         * conform/data/langinfo.h-data: Likewise.
897         * conform/data/libgen.h-data: Likewise.
898         * conform/data/limits.h-data: Likewise.
899         * conform/data/locale.h-data: Likewise.
900         * conform/data/math.h-data: Likewise.
901         * conform/data/monetary.h-data: Likewise.
902         * conform/data/mqueue.h-data: Likewise.
903         * conform/data/ndbm.h-data: Likewise.
904         * conform/data/netdb.h-data: Likewise.
905         * conform/data/pthread.h-data: Likewise.
906         * conform/data/pwd.h-data: Likewise.
907         * conform/data/regex.h-data: Likewise.
908         * conform/data/sched.h-data: Likewise.
909         * conform/data/search.h-data: Likewise.
910         * conform/data/semaphore.h-data: Likewise.
911         * conform/data/setjmp.h-data: Likewise.
912         * conform/data/signal.h-data: Likewise.
913         * conform/data/spawn.h-data: Likewise.
914         * conform/data/stdio.h-data: Likewise.
915         * conform/data/stdlib.h-data: Likewise.
916         * conform/data/string.h-data: Likewise.
917         * conform/data/strings.h-data: Likewise.
918         * conform/data/sys/ipc.h-data: Likewise.
919         * conform/data/sys/msg.h-data: Likewise.
920         * conform/data/sys/resource.h-data: Likewise.
921         * conform/data/sys/sem.h-data: Likewise.
922         * conform/data/sys/shm.h-data: Likewise.
923         * conform/data/sys/socket.h-data: Likewise.
924         * conform/data/sys/stat.h-data: Likewise.
925         * conform/data/sys/time.h-data: Likewise.
926         * conform/data/sys/types.h-data: Likewise.
927         * conform/data/sys/uio.h-data: Likewise.
928         * conform/data/sys/wait.h-data: Likewise.
929         * conform/data/syslog.h-data: Likewise.
930         * conform/data/tar.h-data: Likewise.
931         * conform/data/termios.h-data: Likewise.
932         * conform/data/time.h-data: Likewise.
933         * conform/data/ulimit.h-data: Likewise.
934         * conform/data/unistd.h-data: Likewise.
935         * conform/data/utmpx.h-data: Likewise.
936         * conform/data/wchar.h-data: Likewise.
937         * conform/data/wctype.h-data: Likewise.
938         * conform/data/wordexp.h-data: Likewise.
940         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
941         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
942         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
943         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
944         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
945         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
946         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
947         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
948         * sysdeps/unix/sysv/bits/stat.h: Likewise.
949         * sysdeps/mach/hurd/bits/stat.h: Likewise.
951         * stdlib/stdlib.h: Define wait-related bits for XPG7.
952         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
953         Declare mkstemp and getsubopt for XPG7.
954         Declare posix_openpt for XPG6 XSI.
956         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
957         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
959         * string/string.h: Declare strdup for XPG7.
961 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
963         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
964         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
966         * dirent/dirent.h: Really fix feature selection.
968         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
969         Fix all users.
970         * locale/C-address.c: Fix all users.
971         * locale/C-collate.c: Likewise.
972         * locale/C-ctype.c: Likewise.
973         * locale/C-identification.c: Likewise.
974         * locale/C-measurement.c: Likewise.
975         * locale/C-messages.c: Likewise.
976         * locale/C-monetary.c: Likewise.
977         * locale/C-name.c: Likewise.
978         * locale/C-numeric.c: Likewise.
979         * locale/C-paper.c: Likewise.
980         * locale/C-telephone.c: Likewise.
981         * locale/C-time.c: Likewise.
982         * locale/findlocale.c: Likewise.
983         * locale/global-locale.c: Likewise.
984         * locale/loadarchive.c: Likewise.
985         * locale/loadlocale.c: Likewise.
986         * locale/nl_langinfo_l.c: Likewise.
987         * locale/setlocale.c: Likewise.
988         * locale/xlocale.c: Likewise.
989         * locale/xlocale.h: Likewise.
990         * stdio-common/vfscanf.c: Likewise.
991         * stdlib/strfmon_l.c: Likewise.
992         * stdlib/strtod_l.c: Likewise.
993         * stdlib/strtol_l.c: Likewise.
994         * string/strcoll_l.c: Likewise.
995         * string/strxfrm_l.c: Likewise.
996         * time/alt_digit.c: Likewise.
997         * time/asctime.c: Likewise.
998         * time/era.c: Likewise.
999         * time/lc-time-cleanup.c: Likewise.
1000         * time/strftime_l.c: Likewise.
1001         * time/strptime_l.c: Likewise.
1002         * wcsmbs/wcsmbsload.c: Likewise.
1003         * wcsmbs/wcsmbsload.h: Likewise.
1005         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1006         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1007         for XPG7.
1008         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1009         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1010         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1011         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1012         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1013         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1015 2010-01-07  Roland McGrath  <roland@redhat.com>
1017         * elf/elf.h (PN_XNUM): New macro.
1019         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1020         literal 2.
1022 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1024         * dirent/dirent.h: Fix typo in feature selection macro use.
1026 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1028         [BZ #11115]
1029         * stdlib/tst-makecontext3.c: New file.
1030         * stdlib/Makefile (tests): Add new test.
1032         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1034 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1036         * configure.in: Enable multi-arch by default if the assembler
1037         supports gnu_indirect_function symbol type and the architecture
1038         supports it.
1040 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1042         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1043         is defined.
1045 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1047         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1048         MACH_PORT_NULL when id != cttyid.
1050 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1052         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1053         __mach_port_deallocate on rootdevid.
1055 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1057         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1058         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1059         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1060         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1062 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1064         [BZ #10992]
1065         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1066         Patch by Eric Blake <ebb9@byu.net>.
1068 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1070         [BZ #11093]
1071         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1072         POLLWRBAND also for POSIX 2008.
1073         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1074         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1076         * include/link.h (struct link_map): Move l_used into its own word.
1077         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1078         still zero.
1079         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1080         never really used.
1082 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1084         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1085         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1086         check processor feature.
1087         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1088         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1089         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1090         (index_SSE2): Likewise.
1092 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1094         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1095         if __ASSEMBLER__ is defined.
1096         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1097         (bit_SSE4_2): Likewise.
1098         (index_SSSE3): Likewise.
1099         (index_SSE4_2): Likewise.
1100         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1101         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1102         check processor feature.
1103         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1104         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1105         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1106         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1107         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1108         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1109         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1111 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1113         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1115 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1117         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1119 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1121         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1122         O_DSYNC to match 2.6.33+ kernels.
1123         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1124         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1125         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1126         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1127         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1128         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1130 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1132         [BZ #11000]
1133         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1134         *herrnop before returning.
1135         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1136         Likewise.
1137         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1138         TRYAGAIN errors separately.
1139         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1140         *name4_r after functions.
1142 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1144         [BZ #11046]
1145         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1146         version check.
1148 2009-11-05  Bruno Haible  <bruno@clisp.org>
1150         [BZ #11056]
1151         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1152         argv argument as non-NULL.
1153         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1155 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1157         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1158         recvmmsg.
1159         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1160         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1162 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1164         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1165         registers.
1166         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1167         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1168         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1170 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1172         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1173         SCHED_RESET_ON_FORK.
1175 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1177         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1178         only used on truly ancient kernel if configuration requires a more
1179         recent kernel.
1181 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1183         [BZ #3662]
1184         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1185         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1187         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1188         pass it on to __ptsname_internal.
1189         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1190         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1191         All the code from __ptsname_r but take additional parameter.  Use that
1192         instead of pointer to local stat64 variable.
1193         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1194         variable.
1195         * include/stdlib.h: Declare __ptsname_internal.
1197         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1198         before the exec.
1199         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1200         * login/programs/pt_chown.c (main): Don't print message on errors
1201         when doing real work.
1203         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1204         once.
1206         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1207         irel relocations split out from...
1208         (__libc_csu_init): ...here.
1209         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1211 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1213         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1214         for timestamps also if __USE_XOPEN2K8.
1215         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1216         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1217         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1218         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1220 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1222         * nscd/connections.c (restart): Try harder to re-exec.
1224         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1226         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1227         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1228         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1229         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1230         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1231         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1233         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1234         Define.
1235         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1237 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1239         [BZ #10162]
1240         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1241         than software pipeline.  Properly recover from shorter read.
1243 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1245         [BZ #10958]
1246         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1247         initialized before using it.
1248         (_IO_putwc_unlocked): Likewise.
1250         [BZ #10918]
1251         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1252         in cast to not throw away const-ness of parameters.
1253         (__CPU_EQUAL_S): Likewise.
1254         (__CPU_OP_S): Likewise.
1256         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1257         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1258         this gratuitous change and we have to keep compatibility.
1259         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1260         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1261         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1262         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1263         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1264         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1266 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1268         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1269         of parameters of sync_file_range.
1270         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1271         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1272         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1273         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1274         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1275         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1277 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1279         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1280         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1281         is defined.
1282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1283         file.
1285 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1287         * posix/bug-regex30.c: New file.
1288         * posix/Makefile: Add rules to build and run bug-regex30.
1289         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1290         character lead bytes when there is a range in a COMPLEX_BRACKET.
1291         Reported by Oleg Bylatov.
1293 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1295         [BZ #10969]
1296         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1297         * locale/tst-duplocale.c: New file.
1298         * locale/Makefile (tests): Add tst-duplocale.
1300         [BZ #10968]
1301         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1302         Patch by Bruno Haible <bruno@clisp.org>.
1303         * locale/tst-locname.c: New file.
1304         * locale/Makefile (tests): Add tst-locname.
1306         [BZ #10972]
1307         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1308         constants from recent kernels.
1309         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1310         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1311         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1312         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1313         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1314         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1316 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1318         [BZ #10162]
1319         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1320         software pipeline.
1322 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1324         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1325         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1326         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1328 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1330         * posix/bug-regex29.c: Include stdio.h.
1332 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1334         [BZ #10939]
1335         * Versions.def: Define GLIBC_2.12 for libc.
1336         * manual/errno.texi: Add ERFKILL entry.
1337         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1338         for 2.12.
1339         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1340         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1342         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1343         F_GETOWN_EX definitions according to corrected kernel definitions.
1344         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1345         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1347         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1348         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1349         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1351 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1353         * version.h: Bump for 2.12 development.
1355 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1357         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1358         out of buffer space.
1359         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1360         map_v4v6_hostent running out of space.
1362 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1364         * string/bits/string3.h (memset): If the second parameter is constant
1365         and zero there is likely no transposition.
1366         Patch by Caolan McNamara <caolanm@redhat.com.
1368 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1370         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1371         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1373 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1375         * malloc/memusagestat.c (main): Fix spelling in an error message.
1377 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1379         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1380         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1382 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1385         readahead.
1387 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1389         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1390         relocate opd entry when resolving prelink conflicts.
1392 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1394         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1395         when -D_FILE_OFFSET_BITS=64.
1397         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1398         of last two arguments when -D_FILE_OFFSET_BITS=64.
1399         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1400         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1401         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1402         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1403         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1404         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1406 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1408         [BZ #4457]
1409         * sysdeps/generic/libgcc_s.h: New file.
1410         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1412 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1414         * malloc/hooks.c (free_check): Restore locking and call _int_free
1415         appropriately.
1417 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1419         * version.h (VERSION): Bump for 2.11 release.
1420         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1422         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1424         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1426         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1427         to avoid warning.
1428         * stdlib/tst-strtoll.c (tests): Likewise.
1430         [BZ #9986]
1431         * time/strftime_l.c (__strftime_internal): Allow %OC.
1433         * misc/mkostemps.c: New file.
1434         * misc/mkostemps64.c: New file.
1436 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1438         * locale/programs/locale-spec.c: Include <error.h> and
1439         <libintl.h>.
1441         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1443 2009-10-28  Roland McGrath  <roland@redhat.com>
1445         * Makefile (dist-prepare): New target.
1446         (tag-for-dist): Target removed.
1447         (glibc-%.tar): Pattern rule removed.
1448         (%.tar): New pattern rule, does simple use of git archive.
1449         (dist-version): Remove variable definition.
1450         (dist): Just depend on that.  Add .tar.xz dependency.
1451         If dist-version variable not set on command line, depend on
1452         dist-prepare, re-invoke with dist-version set via git describe.
1454         * Makerules (%.xz): New pattern rule.
1456 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1458         * elf/ifuncdep2.c: Include ifunc-sel.h.
1459         (global): Delete.
1460         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1461         * elf/ifuncmain1.c (global): Delete.
1462         * elf/ifuncmain1vis.c: Likewise.
1463         * elf/ifuncmain2.c: Likewise.
1464         * elf/ifuncmain5.c: Likewise.
1465         * elf/ifuncmod3.c: Likewise.
1466         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1467         (foo_ifunc): Use ifunc_one.
1468         * elf/ifuncmain7.c: Likewise.
1469         * elf/ifuncmod1.c: Include ifunc-sel.h.
1470         (global): Define protected var.
1471         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1472         * elf/ifuncmod5.c: Likewise.
1473         * sysdeps/generic/elf/ifunc-sel.h: New file.
1474         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1476 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1478         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1479         (R_PPC_REL16*): Correct comments.
1480         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1481         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1482          R_PPC64_REL16_HA): Define.
1483         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1484         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1485         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1486         Delete unused "reloc" param.
1487         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1488         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1489         Delete "reloc" param.
1490         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1491         R_PPC_IRELATIVE.
1492         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1493         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1494         relocations.
1496 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1498         [BZ #10315]
1499         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1500         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1501         UDP_ENCAP_L2TPINUDP.
1503         [BZ #10349]
1504         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1505         parameter, specifying length of prefix.
1506         * stdio-common/tempname.c: Likewise.
1507         * include/stdio.h: Adjust prototypes.
1508         * libio/oldtmpfile.c: Adjust caller.
1509         * misc/mkdtemp.c: Likewise.
1510         * misc/mkostemp.c: Likewise.
1511         * misc/mkostemp64.c: Likewise.
1512         * misc/mkstemp.c:  Likewise.
1513         * misc/mkstemp64.c: Likewise.
1514         * misc/mktemp.c: Likewise.
1515         * stdio-common/tempnam.c: Likewise.
1516         * stdio-common/tmpfile.c: Likewise.
1517         * stdio-common/tmpnam.c: Likewise.
1518         * stdio-common/tmpnam_r.c: Likewise.
1519         * misc/mkstemps.c: New file.
1520         * misc/mkstemps64.c: New file.
1521         * stdlib/stdlib.h: Add prototypes.
1522         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1523         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1525 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1527         * locale/iso-639.def: Add sml entry.
1529         [BZ #10391]
1530         * resolv/res_send.c (send_dg): Initialize resplen.
1532         [BZ #10446]
1533         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1534         definition to the kernel's.
1535         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1537 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1539         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1540         offsets and record sizes in assert()s and response sending.
1541         * nscd/grpcache.c: Likewise.
1542         * nscd/hstcache.c: Likewise.
1543         * nscd/initgrcache.c: Likewise.
1544         * nscd/pwdcache.c: Likewise.
1546 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1548         [BZ #10540]
1549         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1550         /etc/hosts does not exist set errnop and herrnop appropriately.
1551         Patch by Steve Langasek <vorlon@debian.org>.
1553         [BZ #10553]
1554         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1555         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1557         [BZ #10564]
1558         * login/utmp_file.c (TIMEOUT): Increase to 10.
1560         [BZ #10609]
1561         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1562         for file names in case the syscall is not available.
1563         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1564         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1565         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1566         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1567         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1568         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1569         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1570         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1571         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1572         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1573         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1574         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1575         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1576         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1577         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1578         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1579         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1581         [BZ #10643]
1582         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1583         creation filed, remove the request from the 'requests' list and signal
1584         the caller that the request is finished.
1586         [BZ #10692]
1587         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1588         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1590         [BZ #10713]
1591         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1592         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1594         [BZ #10780]
1595         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1596         overflows the int return type.
1598         [BZ #10717]
1599         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1600         have to compute maxsize_total, we have to update the variables, and
1601         the also_total handling must happen after the repair.
1603         [BZ #10742]
1604         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1605         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1607 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1609         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1610         errno is always set when returning unsuccessfully.
1612 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1614         * malloc/memusage.c (update_data): Fix index wraparound handling
1615         so that buffer_cnt is actually reset.
1617 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1619         [BZ #10784]
1620         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1621         of the directory we look at into the static buffer if there is one
1622         at the start of the loop.
1624         [BZ #10789]
1625         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1626         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1628         [BZ #10840]
1629         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1630         __ASSUME_F_GETOWN_EX.
1631         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1632         if possible.
1633         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1635         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1636         and f_owner_ex.
1637         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1638         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1639         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1640         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1641         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1642         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1644         [BZ #10847]
1645         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1646         getutmpx symbol.
1648         [BZ #10823]
1649         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1650         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1652 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1654         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1656 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1658         [BZ #10817]
1659         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1660         Reported by Ray Chason.
1662 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1665         strend-sse4.
1666         * sysdeps/x86_64/multiarch/strchr.S: New file.
1667         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1668         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1670 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1672         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1674 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1676         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1677         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1678         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1679         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1680         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1681         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1682         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1683         __ieee751_expl to handle overflow.
1685 2009-10-14  David S. Miller  <davem@davemloft.net>
1687         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1688         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1690 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1692         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1693         !USE_MULTIARCH.
1695 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1697         [BZ #10730]
1698         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1699         Patch in part by Steve Ward <planet36@gmail.com>.
1701         [BZ #10731]
1702         * stdlib/rand_r.c: Fix typo.
1704         * po/cs.po: Update from translation team.
1706 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1708         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1709         returning if RTLD_NOLOAD.
1711 2009-10-06  Roland McGrath  <roland@redhat.com>
1713         * sysdeps/x86_64/multiarch/strstr-c.c
1714         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1716         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1717         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1719         * sysdeps/x86_64/multiarch/init-arch.h
1720         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1721         (HAS_CPU_FEATURE): New macro.
1722         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1723         * sysdeps/x86_64/multiarch/init-arch.c
1724         (__get_cpu_features): #undef it before definition.
1726 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1728         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1729         first_weekday to 1 and first_workday to 2.
1731 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1733         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1734         F_GETOWN_EX.
1735         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1736         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1738         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1739         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1740         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1742 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1744         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1745         * stdio-common/vfprintf.c: Likewise.
1747 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1749         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1750         (mkdirat): Call __directory_name_split_at instead of
1751         __directory_name_split.
1753 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1755         * locale/programs/locale-spec.c (locale_special): If nothing matches
1756         fail with an appropriate message.
1758 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1760         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1761         and XX.
1763 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1765         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1766         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1768 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1770         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1772 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1774         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1775         character size elements in step data.
1777 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1779         * po/hu.po: Update from translation team.
1780         * po/vi.po: Likewise.
1782 2009-09-19  Roland McGrath  <roland@redhat.com>
1784         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1786 2009-09-15  Roland McGrath  <roland@redhat.com>
1788         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1789         * nptl/sysdeps/pthread/configure: Regenerated.
1790         * nptl/sysdeps/x86_64/configure: Regenerated.
1791         * sysdeps/unix/sysv/linux/configure: Regenerated.
1792         * sysdeps/x86_64/elf/configure: Regenerated.
1794         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1796         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1797         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1798         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1799         * configure: Regenerated.
1801 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1803         * posix/getconf.c (main): Handle -- on command line.
1805 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1807         * configure.in: Support binutils 2.100 and 3.0.
1809 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1811         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1812         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1813         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1814         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1816 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1818         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1819         unnamed_section_defined field.
1820         (collate_read): Test and set unnamed_section_defined.
1822         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1823         _POSIX2_LINE_MAX.
1825 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1827         * configure.in: Support binutils 2.20.
1829 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1831         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1832         __strstr_ia32): Add attribute_hidden.
1834 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1836         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1837         parsing of group entry.
1839 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1841         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1842         external buffer.  Always discard readahead in internal buffer.
1843         * libio/Makefile (tests): Add bug-wsetpos.
1844         * libio/bug-wsetpos.c: New file.
1846 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1848         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1849         Add attribute_hidden.
1850         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1851         __strcasestr_sse2): Likewise.
1852         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1853         (__fma_fma): Make static.
1854         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1855         (__fmaf_fma): Make static.
1857 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1859         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1860         reformulate in-buffer optimisation check to match code in
1861         _IO_new_file_seekoff.
1863 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1865         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1866         to srwi in 32-bit memcpy for power6.
1868 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1870         * include/stdio.h: Declare hidden proto for fflush.
1871         * libio/iofflush.c: Add hidden weak alias for fflush.
1873 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1875         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1876         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1878 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1880         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1882 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1884         [BZ #10560]
1885         * malloc/malloc.c: Add local assert definition to avoid problems with
1886         memory allocation in the real one.
1888 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1890         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1891         Removed.
1892         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1893         turn off SSSE3 on Atom.
1895 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1897         * stdlib/tst-strtol.c (tests): More tests.
1898         * stdlib/tst-strtoll.c (tests): Likewise.
1900 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1902         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1904         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1906 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1908         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1909         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1911         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1913         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1915         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1917 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1919         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1921 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1923         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1924         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1926         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1928         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1929         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1931         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1932         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1934         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1935         leftover YMM_SIZE definition.
1937 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1939         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1940         union.
1941         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1942         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1943         Redefine.
1944         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1946         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1947         and SET_FLOAT_WORD definitions.
1949 2009-08-24  Roland McGrath  <roland@redhat.com>
1951         * sysdeps/unix/syscall-template.S: New file.
1952         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1953         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1954         (compile-syscall): Pass mkdep and -g options as normal.
1955         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1956         (common-generated): Don't add them here.
1958 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1960         * math/s_fdim.c: In case of overflows set errno.
1961         * math/s_fdimf.c: Likewise.
1962         * math/s_fdiml.c: Likewise.
1964         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1965         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1966         are using the inline optimizations.
1968         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1969         (__signbitf): Likewise.
1971 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1973         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1974         terminated.
1975         * posix/Makefile (tests): Add bug-regex29.
1976         * posix/bug-regex29.c: New file.
1978         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1979         older POSIX versions are selected.
1981         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1982         as well.
1983         * stdio-common/printf_fphex.c: Likewise.
1984         * stdio-common/tstdiomisc.c: Add more tests.
1986         * locale/locale.h: Include xlocale.h and the thread-local locale
1987         declarations for XPG7, not XPG6.
1989 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1991         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1992         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1995         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1996         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1998 2009-08-20  Roland McGrath  <roland@redhat.com>
2000         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2001         Use l_addr instead of l_map_start (dli_fbase).
2002         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2003         address when there is no proximate symbol.
2004         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2005         Likewise.
2007 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2009         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2011 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2013         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2014         Also handle SIGINT.  In that case only do the cleanup and then
2015         re-raise the signal.
2016         (main): Install handler for SIGINT.
2018 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2020         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2021         clobber list.
2023 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2025         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2026         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2027         tst-auditmod7b.c.
2028         (tests): Add tst-audit6 tst-audit7.
2029         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2030         tst-auditmod7a tst-auditmod7b.
2031         ($(objpfx)tst-audit6): New.
2032         ($(objpfx)tst-audit6.out): Likewise.
2033         ($(objpfx)tst-audit7): Likewise.
2034         ($(objpfx)tst-audit7.out): Likewise.
2035         (tst-audit6-ENV): Likewise.
2036         (tst-audit7-ENV): Likewise.
2037         (CFLAGS-tst-auditmod6b.c): Likewise.
2038         (CFLAGS-tst-auditmod6c.c): Likewise.
2039         (CFLAGS-tst-auditmod7b.c): Likewise.
2040         * elf/tst-audit6.c: New file.
2041         * elf/tst-audit7.c: New file.
2042         * elf/tst-auditmod6a.c: New file.
2043         * elf/tst-auditmod6b.c: New file.
2044         * elf/tst-auditmod6c.c: New file.
2045         * elf/tst-auditmod7a.c: New file.
2046         * elf/tst-auditmod7b.c: New file.
2047         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2048         saving and restoring SSE/AVX registers to ...
2049         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2051 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2053         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2054         only if SHARED is defined.
2055         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2057 2009-08-03  Jim Meyering  <meyering@redhat.com>
2059         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2061 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2063         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2064         section as the other functions for this architecture.
2065         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2067 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2069         * sysdeps/x86_64/strcmp.S: Add support to compile with
2070         USE_SSSE3.  In this case palignr is used.
2071         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2072         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2073         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2074         Add strcmp-ssse3 and strncmp-ssse3.
2075         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2076         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2078         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2079         warning through fake initialization.
2081 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2083         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2085 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2087         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2088         unique symbols.
2090 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2092         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2093         EBX from EAX = 1.  Handle EAX = 11.
2095 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2097         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2098         inside ''.
2100 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2102         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2103         hidden IFUNC functions.
2104         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2106         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2108         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2109         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2110         strcasestr-c.
2111         (CFLAGS-strcspn-c.c): Define.
2112         (CFLAGS-strpbrk-c.c): Define.
2113         (CFLAGS-strspn-c.c): Define.
2114         (CFLAGS-strstr.c): Define.
2115         (CFLAGS-strcasestr.c): Define.
2116         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2117         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2118         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2119         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2120         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2121         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2122         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2123         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2124         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2125         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2126         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2127         -16L instead of 0xfffffffffffffff0L.
2128         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2130 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2132         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2134 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2136         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2137         another rewrite.  Much smaller and faster.
2138         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2140         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2141         ss_flags from the correct location.
2143 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2145         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2146         * sysdeps/i386/i686/cacheinfo.c: New file.
2147         * sysdeps/i386/i686/multiarch/Makefile: New file.
2148         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2149         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2150         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2151         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2152         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2153         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2154         (__cpuid_count): New. Provide the default.
2155         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2156         (__x86_64_preferred_memory_instruction): Define only if
2157         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2158         (intel_check_word): Use __cpuid.
2159         (handle_intel): Likewise.
2160         (handle_amd): Likewise.
2161         (__cache_sysconf): Likewise.
2162         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2163         (__cache_sysconf): Likewise.
2164         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2165         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2166         (get_common_indeces): Use __cpuid.
2167         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2168         if ENABLE_SSSE3_ON_ATOM is not defined.
2169         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2170         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2171         popcnt instead of popcntq.
2173 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2175         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2177 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2179         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2180         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2181         which always causes a compile error.
2183         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2185         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2186         comes from...
2187         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2188         which always causes a compile error.
2190         * debug/Makefile (tests): Add tst-longjmp_chk2.
2191         * debug/tst-longjmp_chk2.c: New file.
2193         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2194         Remove incorrect use of BP_SYM.
2195         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2196         here now since it is more complex than just a simple check.
2198         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2199         we make no more progress.
2201 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2203         * math/s_fma.c: Don't define alias if __fma is a macro.
2204         * math/s_fmaf.c: Likewise.
2205         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2206         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2207         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2209         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2210         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2211         New macro HAS_FMA.
2212         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2213         function.
2214         * include/libc-symbols.h (libm_ifunc): Define.
2215         * sysdeps/x86_64/multiarch/Versions: New file.
2217         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2219 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2221         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2223 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2225         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2226         call that registers used in calling conventions need to be preserved.
2227         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2228         to preserve register content if necessary.
2229         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2230         (_dl_x86_64_restore_sse): New function.
2231         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2232         is allowed to modify xmm/ymm registers.
2234         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2235         application's perspective.
2236         * stdio-common/scanf17.c: Likewise.
2238 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2240         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2241         size to memsz.
2242         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2243         here.
2244         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2245         two steps to catch bugs.
2247 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2249         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2250         determines which files are used in runtime lookups and only checks
2251         those for SSE use.
2252         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2253         testing.
2254         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2255         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2256         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2257         take a while.
2259         * elf/dl-open.c: Move _dl_scope_free to...
2260         * elf/dl-scope.c: ...here.  New file.
2261         * elf/Makefile (dl-routines): Add scope.
2263         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2264         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2265         RES_USE_DNSSEC.
2266         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2267         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2268         all the places we handled RES_USE_EDNS0 only before.
2269         Patch by Adam Tkac <atkac@redhat.com>.
2271 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2273         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2274         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2275         Update size when reallocating.
2277 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2279         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2280         functions used in ld.so modify xmm/ymm registers.
2281         * sysdeps/x86_64/Makefile:  Hook new test up.
2282         * sysdeps/x86_64/rtld-memchr.c: New file.
2283         * sysdeps/x86_64/rtld-memcmp.c: New file.
2284         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2285         * sysdeps/x86_64/rtld-strchr.S: New file.
2286         * sysdeps/x86_64/rtld-strlen.S: New file.
2287         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2288         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2290 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2292         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2293         strncmp-c.
2294         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2295         (exit): Likewise.
2296         (Byte1): Likewise.
2297         (Byte2): Likewise.
2298         (Byte3): Likewise.
2299         (Byte4): Likewise.
2300         (Byte5): Likewise.
2301         (Byte6): Likewise.
2302         (next_8_bytes): Likewise.
2303         (Byte0): Remove commented out codes.
2304         (unaligned_table): Align jump table at 8 bytes.
2305         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2306         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2307         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2308         * sysdeps/x86_64/strncmp.S: New file.
2310 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2312         [BZ #10422]
2313         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2314         kernels, dropped when eventfd2 support was added.
2315         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2316         kernels, dropped when signalfd4 support was added.
2317         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2318         added, name them.
2320         [BZ #10452]
2321         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2322         replies up.
2324         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2326 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2328         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2329         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2331         [BZ #10448]
2332         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2333         callback we must touch the status to avoid using stale value.
2335         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2336         compiled in.
2338 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2340         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2341         /lib/modules/* headers anymore.  We have sane headers in the standard
2342         place now.
2344 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2346         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2347         "etf3enh" and "highgprs" added.
2348         (_dl_s390_platforms): "z10" added.
2349         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2350         Increased for the new entries.
2351         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2352         HWCAP_S390_HIGH_GPRS added.
2354         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2355         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2356         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2357         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2358         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2360 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2363         avoid additional cpuid instructions.  Most of the information is
2364         stored somewhere.
2366         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2367         cache descriptors.
2368         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2371         SSSE3 bit for Atoms.
2372         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2373         here anymore.
2375         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2376         structure before copying it to avoid warning.
2377         * posix/tst-rfc3484-2.c (do_test): Likewise.
2378         * posix/tst-rfc3484-3.c (do_test): Likewise.
2380         [BZ #10416]
2381         * include/unistd.h: Make header file suitable for C++ test cases.
2382         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2384         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2385         stack alignment in the exit code.
2387         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2388         potentially be zero.
2390         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2391         unique symbol definition.
2392         Patch by Jakub Jelinek.
2393         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2394         make sure the object with the definition cannot be unloaded.  Adjust
2395         a few types.
2396         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2397         the unique symbol hash table should not be const.
2399 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2401         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2402         unnecesary variables.  Comment fixes.
2404 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2406         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2407         Use NONASCII_CASE information provided by the locale to determine
2408         whether optimized string load function can be used.  Minor cleanups.
2410 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2412         * string/strcasestr.c (STRCASESTR): New macro.
2413         (__strcasestr): Renamed to ..
2414         (STRCASESTR): ...this.
2415         * string/strstr.c (STRSTR): New macro.
2416         (strstr): Renamed to ..
2417         (STRSTR): ...this.
2418         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2419         strstr-c strcasestr-c
2420         (CFLAGS-strstr.c): New.
2421         (CFLAGS-strcasestr.c): Likewise.
2422         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2423         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2424         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2425         * sysdeps/x86_64/multiarch/strstr.c: New file.
2427 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2429         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2430         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2431         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2432         _NL_CTYPE_NONASCII_CASE.
2433         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2434         field.
2435         (ctype_finish): Check whether there are any 8-bit characters outside
2436         the range ASCII has or whether the mapping isn't the same as for
2437         ASCII (±0x20).  Set nonascii_case appropriately.
2438         (ctype_output): Add output handler for nonascii_case.
2440 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2442         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2443         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2445 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2447         [BZ #10360]
2448         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2449         0xffff in the EDNS0 record.
2451 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2453         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2454         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2455         is written before the list head update.
2456         Patch by Andreas Schwab <aschwab@redhat.com>.
2458 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2459             Jakub Jelinek  <jakub@redhat.com>
2461         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2462         corruption thread-safe.
2464 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2466         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2467         overrides atomic_compare_and_exchange_val_rel, define to
2468         atomic_compare_and_exchange_val_rel by default, otherwise default
2469         to catomic_compare_and_exchange_val_acq.
2470         (catomic_compare_and_exchange_bool_rel): If arch overrides
2471         atomic_compare_and_exchange_bool_rel, define to
2472         atomic_compare_and_exchange_bool_rel by default.
2473         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2474         Use catomic_compare_and_exchange_val_rel instead of
2475         catomic_compare_and_exchange_val_acq.
2477 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2479         * sysdeps/generic/ldsodefs.h: Add prototype for
2480         _dl_higher_prime_number.
2481         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2483         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2484         restoring of ymm registers a bit.
2486 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2488         * sysdeps/x86_64/memcmp.S: New file.
2490 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2492         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2493         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2494         pointers in writable memory.
2496 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2498         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2499         * config.make.in: Add config-cflags-avx entry.
2500         * configure.in: Substitute libc_cv_cc_avx.
2501         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2502         * elf/tst-audit4.c: New file.
2503         * elf/tst-audit5.c: New file.
2504         * elf/tst-auditmod4a.c: New file.
2505         * elf/tst-auditmod4b.c: New file.
2506         * elf/tst-auditmod5a.c: New file.
2507         * elf/tst-auditmod5b.c: New file.
2508         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2509         link-defines.sym.
2510         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2511         (La_x86_64_vector): Likewise.
2512         (La_x86_64_regs): Append lr_vector.
2513         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2515         saving and restoring SSE registers to ...
2516         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2517         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2518         <link-defines.h>.
2519         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2520         La_x86_64_regs.  Allocate extra space and jump to memory at
2521         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2522         (save_and_restore_vector_sse): New.
2523         (save_and_restore_vector_avx): Likewise.
2524         (check_avx): Likewise.
2525         (save_and_restore_vector): Likewise.
2526         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2527         HAVE_AVX_SUPPORT.
2528         * sysdeps/x86_64/link-defines.sym: New file.
2530 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2532         * elf/do-lookup.h: Removed after folding content into...
2533         * elf/dl-lookup.c: ...here.
2535         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2537 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2539         * configure.in: Check for gnu_unique_symbol symbol type.
2540         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2541         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2542         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2543         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2544         change.
2545         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2546         unique symbol table.
2547         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2548         for first namespace.
2549         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2550         unique symbol hash table.
2551         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2552         * elf/tst-unique1.c: New file.
2553         * elf/tst-unique1mod1.c: New file.
2554         * elf/tst-unique1mod2.c: New file.
2555         * elf/tst-unique2.c: New file.
2556         * elf/tst-unique2mod1.c: New file.
2557         * elf/tst-unique2mod2.c: New file.
2559 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2561         * elf/elf.h (STB_GNU_UNIQUE): Define.
2563         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2564         from...
2565         * include/inline-hashtab.h: ...here.
2566         (htab_expand): Adjust for renamed function.  Correct memory handling.
2568 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2570         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2572 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2574         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2575         (PPC_FEATURE_HAS_VSX): Likewise.
2577 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2579         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2580         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2582         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2583         aligned to 16 byte boundaries.
2584         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2585         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2586         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2588 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2590         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2591         * config.make.in (config-cflags-sse4): New variable.
2592         * configure.in: Substitute libc_cv_cc_sse4.
2593         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2594         HAVE_SSE4_SUPPORT.
2595         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2596         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2597         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2598         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2599         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2600         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2601         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2602         * sysdeps/x86_64/multiarch/strspn.S: New file.
2604 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2606         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2607         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2608         (tests): Add tst-audit3 for x86_64.
2609         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2610         ($(objpfx)tst-audit3): Define.
2611         ($(objpfx)tst-audit3.out): Define.
2612         (tst-audit3-ENV): Define.
2613         * elf/tst-audit3.c: New file.
2614         * elf/tst-auditmod3a.c: New file.
2615         * elf/tst-auditmod3b.c: New file.
2616         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2617         and restore xmm6.
2619         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2620         (__stpncpy): Renamed to ...
2621         (STPNCPY): This.
2622         (stpncpy): Create alias only if STPNCPY is not defined.
2623         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2624         defined.
2625         (strncpy): Renamed to ...
2626         (STRNCPY): This.
2627         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2628          stpncpy-c strncpy-c for string.
2629         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2630         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2631         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2632         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2633         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2634         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2636 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2638         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2639         adding to fast bin list.
2641 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2643         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2644         inet_makeaddr.  This worked only with class-based networks.
2645         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2646         Likewise.
2648         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2649         recognize all types.
2650         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2651         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2652         be in host byte order.
2654 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2656         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2657         (MODEL_OFFSET): Define.
2658         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2659         family and model.
2660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2661         out common code into new function get_common_indeces. Determine
2662         extended family and model for Intel processors.
2664 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2666         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2667         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2668         option.
2669         * resolv/res_send.c (reopen): New function.  Broken out of...
2670         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2671         fallback mechanism.  If single-request fails switch to
2672         single-request-reopen mode which opens a new socket for the second
2673         request.
2675 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2677         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2678         (CHECK_SP): Use it.
2680 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2682         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2683         for saved registers.
2684         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2685         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2686         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2688 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2690         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2692 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2694         * po/id.po: Update from translation team.
2696         * po/bg.po: Update from translation team.
2698 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2700         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2701         defined.
2702         (strncmp): Renamed to STRNCMP.
2703         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2704         strncmp-c for string.
2705         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2706         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2707         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2708         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2710 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2712         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2713         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2714         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2715         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2716         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2717         ifuncmain7static.c.
2718         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2719         ifuncmain7static, and ifuncmain7picstatic.
2720         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2721         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2722         $(objpfx)ifuncmain7pie.out.
2723         (modules-names): Add ifuncmod5 ifuncmod6
2724         (ifuncmod5.so-no-z-defs): Define.
2725         (ifuncmod6.so-no-z-defs): Define.
2726         (CFLAGS-ifuncmain5pic.c): Define.
2727         (CFLAGS-ifuncmain5picstatic.c): Define.
2728         (CFLAGS-ifuncmain5staticpic.c): Define.
2729         (CFLAGS-ifuncdep5pic.c): Define.
2730         (CFLAGS-ifuncmain7pic.c): Define.
2731         (CFLAGS-ifuncmain7picstatic.c): Define.
2732         (CFLAGS-ifuncmain1staticpie.c): Define.
2733         (CFLAGS-ifuncmain5pie.c): Define.
2734         (CFLAGS-ifuncmain6pie.c): Define.
2735         (CFLAGS-ifuncmain7pie.c): Define.
2736         ($(objpfx)ifuncmain1staticpie.out): Define.
2737         ($(objpfx)ifuncmain1staticpie): Define.
2738         ($(objpfx)ifuncmain5pie.out): Define.
2739         ($(objpfx)ifuncmain5pie): Define.
2740         ($(objpfx)ifuncmain6pie.out): Define.
2741         ($(objpfx)ifuncmain6pie): Define.
2742         ($(objpfx)ifuncmain5): Define.
2743         ($(objpfx)ifuncmain5pic): Define.
2744         ($(objpfx)ifuncmain5static): Define.
2745         ($(objpfx)ifuncmain5staticpic): Define.
2746         ($(objpfx)ifuncmain5picstatic): Define.
2747         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2748         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2749         ifuncmain6pie.out.
2750         * elf/b/elf/ifuncmain1staticpie.c: New file.
2751         * elf/ifuncdep5.c: New file.
2752         * elf/ifuncdep5pic.c: New file.
2753         * elf/ifuncmain5.c: New file.
2754         * elf/ifuncmain5pic.c: New file.
2755         * elf/ifuncmain5picstatic.c: New file.
2756         * elf/ifuncmain5pie.c: New file.
2757         * elf/ifuncmain5static.c: New file.
2758         * elf/ifuncmain5staticpic.c: New file.
2759         * elf/ifuncmain6pie.c: New file.
2760         * elf/ifuncmain7.c: New file.
2761         * elf/ifuncmain7pic.c: New file.
2762         * elf/ifuncmain7picstatic.c: New file.
2763         * elf/ifuncmain7pie.c: New file.
2764         * elf/ifuncmain7static.c: New file.
2765         * elf/ifuncmod5.c: New file.
2766         * elf/ifuncmod6.c: New file.
2768 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2770         [BZ #10085]
2771         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2772         (nss_endgrent): New variable.
2773         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2774         fields. Change type of files to bool and adjust all users.
2775         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2776         (internal_endgrent): Call nss_endgrent if necessary.
2777         (add_group): New function.  Broken out of...
2778         (check_and_add_group): ...here.
2779         (getgrent_next_nss): Remove test that any callback is available.
2780         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2781         callback.  If there is no blacklist we can trust the results returned
2782         by the initgroups_dyn callback.  In case there is a callback and we
2783         find a group entry for the group ID but it doesn't contain the
2784         correct member, switch to the slow mode and use getgrent_r.
2785         (internal_getgrent_r): When we see a +: entry, determine whether
2786         there is any callback and which we can use the initgroups_dyn
2787         callback.
2789 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2791         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2792         (_int_free): Likewise.
2794         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2795         AF_IEEE802154.
2796         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2797         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2798         and ARPHRD_IEEE802154_PHY.
2800         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2801         relative to generic Linux version.
2803 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2805         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2806         ($(objpfx)ifuncmain1vispie): Likewise.
2808 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2810         * login/Makefile: Build pt_chown as PIE.
2812 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2814         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2815         a format string.
2816         * elf/sln.c (usage): Likewise.
2817         * malloc/memusage.sh (do_help): Likewise.
2818         * nss/getent.c (more_help): Likewise.
2819         * posix/getconf.c (main): Likewise.
2820         * sunrpc/rpcinfo.c (usage): Likewise.
2821         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2823 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2825         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2826         those needed.
2827         * login/Makefile: If necessary link pt_chown with -lcap.
2828         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2829         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2831 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2833         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2834         comparisons.
2835         * string/test-memchr.c (do_random_tests): Test very large lengths
2836         as well.
2838 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2840         * Makeconfig (+link-pie): Define.
2841         (+prectorS): Define.
2842         (+postctorS): Define.
2843         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2844         * nscd/Makefile ($(objpfx)nscd): Likewise.
2846 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2848         [BZ #10107]
2849         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2850         with cmplwi.
2851         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2853 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2855         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2856         into ...
2857         * sysdeps/unix/grantpt.c: ...here.
2859 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2861         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2862         chmod if it is necessary.
2864         [BZ #10166]
2865         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2866         when the slave device is in devpts or devfs.
2868         [BZ #10183]
2869         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2871         [BZ #10195]
2872         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2873         of nd_opt_home_agent_info_preference to uint16_t.
2874         Patch by Arnaud Ebalard <arno@natisbad.org>.
2876         [BZ #10207]
2877         * nss/getent.c: Add support for printing gshadow data.
2879         [BZ #10203]
2880         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2881         not just the currently used one and those which follow.
2882         Patch by Joe Landers <jlanders@vmware.com>.
2884         [BZ #10196]
2885         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2886         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2887         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2889         [BZ #10217]
2890         * stdlib/abort.c: Define variable __abort_msg.
2891         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2892         * include/stdlib.h: Declare __abort_msg.
2893         * assert/assert-perr.c: Don't free buffer for message immediately.
2894         Store atomically in __abort_msg and free old buffer if necessary.
2895         * assert/assert.c: Likewise.
2896         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2897         store pointer in __abort_msg, and possibly free old string.
2898         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2900         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2902         [BZ #10211]
2903         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2904         handle leap seconds if they are available.
2905         Patch by Akinori Hattori <hattya@gentoo.org>.
2907         * timezone/tzselect.ksh: Update from tzcode2009i.
2908         * timezone/zdump.c: Likewise.
2909         * timezone/zic.c: Likewise.
2911         * timezone/africa: Update from tzdata2009i.
2912         * timezone/antarctica: Likewise.
2913         * timezone/asia: Likewise.
2914         * timezone/australasia: Likewise.
2915         * timezone/backward: Likewise.
2916         * timezone/etcetera: Likewise.
2917         * timezone/europe: Likewise.
2918         * timezone/factory: Likewise.
2919         * timezone/iso3166.tab: Likewise.
2920         * timezone/leapseconds: Likewise.
2921         * timezone/northamerica: Likewise.
2922         * timezone/pacificnew: Likewise.
2923         * timezone/solar87: Likewise.
2924         * timezone/solar88: Likewise.
2925         * timezone/solar89: Likewise.
2926         * timezone/southamerica: Likewise.
2927         * timezone/systemv: Likewise.
2928         * timezone/yearistype: Likewise.
2929         * timezone/zone.tab: Likewise.
2931 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2933         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2934         STT_GNU_IFUNC symbol or in 8 into type_class.
2936         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2937         instead of Elf64_Addr.
2939 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2941         * po/sv.po: Update from translation team.
2943         [BZ #10229]
2944         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2945         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2946         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2947         the C version.
2949 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2951         * Versions.def: Add GLIBC_2.11 for libpthread.
2953 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2955         * resolv/res_send.c (send_dg): Remember we switched to
2956         single-request mode.
2958 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2960         * dlfcn/dlfcn.h: Remove comma at end of enum.
2961         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2963         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2964         parsing mode string.
2966 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2968         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2970         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2972         * sysdeps/x86_64/multiarch/strlen.S: New file.
2973         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2974         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2975         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2976         content.
2978         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2979         is defined.
2981 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2983         * sysdeps/x86_64/strlen.S: Minor optimizations.
2985 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2987         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2988         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2989         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2990         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2991         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2992         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2993         ifuncmain3.c, ifuncmod3.c,.
2994         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2995         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2996         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2997         ifuncmain4picstatic.
2998         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2999         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3000         ifuncmain3, ifuncmain4.
3001         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3002         $(objpfx)ifuncmain1vispie.out.
3003         (modules-names): Add ifuncmod1 ifuncmod3.
3004         (generated): Add ifuncmain1pie ifuncmain1pie.out
3005         ifuncmain1vispie ifuncmain1vispie.out.
3006         Define rules to build and run the tests.
3007         * elf/ifuncdep1.c: New file.
3008         * elf/ifuncdep1pic.c: New file.
3009         * elf/ifuncdep2.c: New file.
3010         * elf/ifuncdep2pic.c: New file.
3011         * elf/ifuncmain1.c: New file.
3012         * elf/ifuncmain1pic.c: New file.
3013         * elf/ifuncmain1picstatic.c: New file.
3014         * elf/ifuncmain1pie.c: New file.
3015         * elf/ifuncmain1static.c: New file.
3016         * elf/ifuncmain1staticpic.c: New file.
3017         * elf/ifuncmain1vis.c: New file..
3018         * elf/ifuncmain1vispic.c: New file..
3019         * elf/ifuncmain1vispie.c: New file.
3020         * elf/ifuncmain2.c: New file.
3021         * elf/ifuncmain2pic.c: New file.
3022         * elf/ifuncmain2picstatic.c: New file.
3023         * elf/ifuncmain2static.c: New file.
3024         * elf/ifuncmain3.c: New file.
3025         * elf/ifuncmain4.c: New file.
3026         * elf/ifuncmain4picstatic.c: New file.
3027         * elf/ifuncmain4static.c: New file.
3028         * elf/ifuncmod1.c: New file.
3029         * elf/ifuncmod3.c: New file.
3031 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3033         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3035 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3037         [BZ #10221]
3038         * posix/Makefile (routines): Add execvpe.
3039         * posix/Versions: Export execvpe for GLIBC_2.11.
3040         * posix/execvp.c: Now only a wrapper.  Move code to...
3041         * posix/execvpe.c: ...here.  New file.
3042         * posix/unistd.h: Declare execvpe.
3044 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3046         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3047         for STT_GNU_IFUNC handling for efficiency.
3048         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3050         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3051         _exit.
3052         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3054 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3056         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3057         for !SHARED.
3059 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3061         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3062         is not defined.
3063         (__rela_iplt_start): New declaration.
3064         (__rela_iplt_end): Likewise.
3065         (__rel_iplt_start): Likewise.
3066         (__rel_iplt_end): Likewise.
3067         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3068         * elf/elf.h (R_386_IRELATIVE): New macro.
3069         (R_X86_64_IRELATIVE): New macro.
3070         (R_386_NUM): Updated.
3071         (R_X86_64_NUM): Likewise.
3072         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3073         (libc_ifunc_hidden_def): New macro.
3074         * sysdeps/generic/dl-irel.h: New file.
3075         * sysdeps/i386/dl-irel.h: New file.
3076         * sysdeps/x86_64/dl-irel.h: New file.
3077         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3078         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3079         Handle R_386_IRELATIVE.
3080         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3081         (elf_machine_lazy_rela): Likewise.
3082         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3083         R_X86_64_IRELATIVE.
3084         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3086 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3088         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3089         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3090         are no differences.  If an architecture has bits in CPUID index 1
3091         meaning different things the values for the COMMON_CPUID_INDEX_1
3092         index must not be set.
3093         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3094         (HAS_POPCOUNT): ...this.  New macro.
3095         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3096         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3097         to set the value for Intel and AMD architectures.
3098         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3099         INTEL_CPUID_INDEX_1.
3100         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3101         change.
3103 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3105         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3106         and $build.
3108 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3110         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3111         (__expm1l): Set errno to ERANGE on overflow.
3112         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3113         (__tanl): Set errno to EDOM for Â±Inf.
3114         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3115         (__cosl): Set errno to EDOM for Â±Inf.
3116         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3117         (__sinl): Set errno to EDOM for Â±Inf.
3119         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3120         defined, use it.
3121         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3122         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3123         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3125 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3127         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3128         code accessing it.
3129         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3131 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3133         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3134         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3135         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3136         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3138         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3139         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3140         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3141         defined.
3142         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3143         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3145 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3147         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3148         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3149         is, either do nothing at all if __ASSUME_ACCEPT4, or
3150         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3151         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3152         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3153         define.
3154         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3155         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3156         internal_accept4 in socket directory.
3158 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3160         * sysdeps/ia64/configure.in: New file.
3162 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3164         [BZ #10162]
3165         * sysdeps/ia64/memchr.S: Use speculative load.
3167         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3168         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3169         use it.
3171         * sysdeps/i386/__longjmp.S: Add .text.
3172         * sysdeps/x86_64/__longjmp.S: Likewise.
3174 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3176         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3177         __ASSUME_ACCEPT4 for IA-64.
3179 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3181         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3183         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3184         (SOCKOP_accept4): Define.
3186 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3188         Sun approved the change of the license.
3189         * sunrpc/auth_des.c: Replace license text.
3190         * sunrpc/auth_none.c: Likewise.
3191         * sunrpc/auth_unix.c: Likewise.
3192         * sunrpc/authdes_prot.c: Likewise.
3193         * sunrpc/authuxprot.c: Likewise.
3194         * sunrpc/bindrsvprt.c: Likewise.
3195         * sunrpc/clnt_gen.c: Likewise.
3196         * sunrpc/clnt_perr.c: Likewise.
3197         * sunrpc/clnt_raw.c: Likewise.
3198         * sunrpc/clnt_simp.c: Likewise.
3199         * sunrpc/clnt_tcp.c: Likewise.
3200         * sunrpc/clnt_udp.c: Likewise.
3201         * sunrpc/clnt_unix.c: Likewise.
3202         * sunrpc/des_crypt.c: Likewise.
3203         * sunrpc/des_soft.c: Likewise.
3204         * sunrpc/get_myaddr.c: Likewise.
3205         * sunrpc/getrpcport.c: Likewise.
3206         * sunrpc/key_call.c: Likewise.
3207         * sunrpc/key_prot.c: Likewise.
3208         * sunrpc/openchild.c: Likewise.
3209         * sunrpc/pm_getmaps.c: Likewise.
3210         * sunrpc/pm_getport.c: Likewise.
3211         * sunrpc/pmap_clnt.c: Likewise.
3212         * sunrpc/pmap_prot.c: Likewise.
3213         * sunrpc/pmap_prot2.c: Likewise.
3214         * sunrpc/pmap_rmt.c: Likewise.
3215         * sunrpc/rpc/auth.h: Likewise.
3216         * sunrpc/rpc/auth_unix.h: Likewise.
3217         * sunrpc/rpc/clnt.h: Likewise.
3218         * sunrpc/rpc/des_crypt.h: Likewise.
3219         * sunrpc/rpc/key_prot.h: Likewise.
3220         * sunrpc/rpc/netdb.h: Likewise.
3221         * sunrpc/rpc/pmap_clnt.h: Likewise.
3222         * sunrpc/rpc/pmap_prot.h: Likewise.
3223         * sunrpc/rpc/pmap_rmt.h: Likewise.
3224         * sunrpc/rpc/rpc.h: Likewise.
3225         * sunrpc/rpc/rpc_des.h: Likewise.
3226         * sunrpc/rpc/rpc_msg.h: Likewise.
3227         * sunrpc/rpc/svc.h: Likewise.
3228         * sunrpc/rpc/svc_auth.h: Likewise.
3229         * sunrpc/rpc/types.h: Likewise.
3230         * sunrpc/rpc/xdr.h: Likewise.
3231         * sunrpc/rpc_clntout.c: Likewise.
3232         * sunrpc/rpc_cmsg.c: Likewise.
3233         * sunrpc/rpc_common.c: Likewise.
3234         * sunrpc/rpc_cout.c: Likewise.
3235         * sunrpc/rpc_dtable.c: Likewise.
3236         * sunrpc/rpc_hout.c: Likewise.
3237         * sunrpc/rpc_main.c: Likewise.
3238         * sunrpc/rpc_parse.c: Likewise.
3239         * sunrpc/rpc_parse.h: Likewise.
3240         * sunrpc/rpc_prot.c: Likewise.
3241         * sunrpc/rpc_sample.c: Likewise.
3242         * sunrpc/rpc_scan.c: Likewise.
3243         * sunrpc/rpc_scan.h: Likewise.
3244         * sunrpc/rpc_svcout.c: Likewise.
3245         * sunrpc/rpc_tblout.c: Likewise.
3246         * sunrpc/rpc_util.c: Likewise.
3247         * sunrpc/rpc_util.h: Likewise.
3248         * sunrpc/rpcinfo.c: Likewise.
3249         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3250         * sunrpc/rpcsvc/key_prot.x: Likewise.
3251         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3252         * sunrpc/rpcsvc/mount.x: Likewise.
3253         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3254         * sunrpc/rpcsvc/rex.x: Likewise.
3255         * sunrpc/rpcsvc/rstat.x: Likewise.
3256         * sunrpc/rpcsvc/rusers.x: Likewise.
3257         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3258         * sunrpc/rpcsvc/spray.x: Likewise.
3259         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3260         * sunrpc/rtime.c: Likewise.
3261         * sunrpc/svc.c: Likewise.
3262         * sunrpc/svc_auth.c: Likewise.
3263         * sunrpc/svc_authux.c: Likewise.
3264         * sunrpc/svc_raw.c: Likewise.
3265         * sunrpc/svc_run.c: Likewise.
3266         * sunrpc/svc_simple.c: Likewise.
3267         * sunrpc/svc_tcp.c: Likewise.
3268         * sunrpc/svc_udp.c: Likewise.
3269         * sunrpc/svc_unix.c: Likewise.
3270         * sunrpc/svcauth_des.c: Likewise.
3271         * sunrpc/xcrypt.c: Likewise.
3272         * sunrpc/xdr.c: Likewise.
3273         * sunrpc/xdr_array.c: Likewise.
3274         * sunrpc/xdr_float.c: Likewise.
3275         * sunrpc/xdr_mem.c: Likewise.
3276         * sunrpc/xdr_rec.c: Likewise.
3277         * sunrpc/xdr_ref.c: Likewise.
3278         * sunrpc/xdr_sizeof.c: Likewise.
3279         * sunrpc/xdr_stdio.c: Likewise.
3281         * po/da.po: Update from translation team.
3283 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3285         * sysdeps/sh/____longjmp_chk.S: New file.
3286         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3287         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3289 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3290             Ulrich Drepper  <drepper@redhat.com>
3292         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3293         (__nscd_cache_search): Assume each entry in the
3294         hash chain needs one hashentry and half of datahead.  Use
3295         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3297 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3299         * posix/sys/wait.h: Fix typos.  Pretty printing.
3300         * stdlib/stdlib.h: Likewise.  Correct comments.
3302         [BZ #10159]
3303         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3305         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3306         patch.
3308 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3310         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3311         Use it if we absolutely cannot reach any more correct list elements
3312         because that many do not fit into the currently mapped database.
3314 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3316         * nscd/nscd_helper.c: Include stddef.h.
3317         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3318         in a couple of places.  Return NULL if trail is not less than
3319         datasize, don't consider dataheads with length smaller than
3320         offsetof (struct datahead, data) + datalen.
3321         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3322         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3323         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3324         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3325         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3326         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3327         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3329         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3330         Rename ...
3331         (fallocate64): ... to this.
3332         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3333         Rename ...
3334         (fallocate64): ... to this.
3335         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3336         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3337         fallocate64@@GLIBC_2.10.
3338         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3339         fallocate64@@GLIBC_2.11.
3340         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3342         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3343         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3345         * nscd/selinux.c (nscd_avc_destroy): Removed.
3346         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3347         * nscd/nscd.c (termination_handler): Don't call
3348         nscd_avc_destroy.
3350 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3352         * include/atomic.h: Formatting.
3353         (catomic_compare_and_exchange_val_acq): Don't define if already
3354         defined by bits/atomic.h.
3356 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3358         * math/libm-test.inc (expm1_test): Add test for range error.
3360         * Versions.def: Add GLIBC_2.11 for libc.
3361         * debug/Makefile (routines): Add longjmp_chk.
3362         Add rules to build and run tst-longjmp_chk.
3363         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3364         * debug/longjmp_chk.c: New file.
3365         * debug/tst-longjmp_chk.c: New file.
3366         * include/bits/setjmp2.: New file.
3367         * include/stdio.h: Mark __fortify_fail as internal_function.
3368         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3369         * setjmp/bits/setjmp2.h: New file.
3370         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3371         of the aliases.
3372         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3373         defined.
3374         * sysdeps/i386/____longjmp_chk.S: New file.
3375         * sysdeps/x86_64/____longjmp_chk.S: New file.
3376         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3377         * sysdeps/x86_64/__longjmp.S: Likewise.
3379         * version.h: Bump for 2.11 development.
3381         * elf/check-execstack.c: New file.
3382         * elf/Makefile: Add rules to build and run check-execstack.
3384 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3386         * version.h (VERSION): Bump to 2.10.1.
3388         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3389         compatibility functions.
3390         * nss/getXXent_r.c: Likewise.
3391         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3392         * gshadow/getsgnam_r.c: Likewise.
3393         * gshadow/Version: Remove duplicate entries.
3395         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3396         for recent processor.
3397         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3398         Likewise.
3400 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3402         * version.h (VERSION): Bump for 2.10 release.
3403         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3405         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3406         same place we add ASFLAGS-config.
3408 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3410         [BZ #10128]
3411         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3412         or FORMERR and the other NOERROR, don't raise an error.
3414 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3416         [BZ #10118]
3417         * Makeconfig (+asflags): New variable based upon ASFLAG or
3418         asflags-cpu.
3419         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3420         * config.make.in (asflags-cpu): Add variable based upon
3421         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3422         the assembler.
3423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3424         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3425         recognizes power6 instruction set due to passing -mcpu=power6 from
3426         --with-cpu=power6 when compiling .S files.
3427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3428         Likewise.
3429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3430         Likewise.
3431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3432         Likewise.
3434 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3436         * string/stratcliff.c (do_test): Test for zero length
3437         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3438         at the end of the page.
3440 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3442         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3444         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3445         count is zero.
3447         * po/da.po: Update from translation team.
3449 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3451         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3452         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3454 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3456         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3457         and READ_IMPLIES_EXEC.
3459 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3461         * po/da.po: Update from translation team.
3463 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3465         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3466         comment change.
3468 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3470         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3471         to MAP_ANON in PROT_NONE mmap64 call.
3472         (open_archive): Likewise.
3473         (file_data_available_p): Use mmap64 instead of mremap.
3474         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3475         Attempt to reserve address space after mmap64 region.
3477 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3479         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3480         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3481         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3483         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3484         atanh should set ERANGE.
3486         [BZ #10087]
3487         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3488         result of lookup to make call to implement STT_GNU_IFUNC.
3489         (_dl_profile_fixup): Likewise.
3490         Patch by H.J. Lu <hjl.tools@gmail.com>.
3492         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3493         warning.
3495         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3496         from definition.
3498         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3499         label if it is not used.
3501         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3502         of gmon_hist_hdr and gmon_hdr structures and use them.
3503         * elf/sprof.c: Likewise.
3505         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3506         warning.
3508         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3510         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3511         to avoid cast.
3513         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3514         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3515         to avoid warnings.
3516         (iruserok_af): Use ss_family instead of casts.
3518         * gmon/gmon.c (write_hist): Define real-type variant of
3519         gmon_hist_hdr structure and use it.
3520         (write_gmon): Likewise for gmon_hdr.
3522         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3523         function if we are not going to define it.
3524         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3526         * inet/inet6_option.c (option_alloc): Add temporary variable to
3527         avoid warning.
3529         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3530         name of VTable element.
3531         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3532         * libio/iovsscanf.c: Likewise.
3533         * libio/vasprintf.c: Likewise.
3534         * libio/vsnprintf.c: Likewise.
3535         * stdio-common/isoc99_vsscanf.c: Likewise.
3536         * stdlib/strfmon_l.c: Likewise.
3537         * debug/vasprintf_chk.c: Likewise.
3538         * debug/vsnprintf_chk.c: Likewise.
3539         * debug/vsprintf_chk.c: Likewise.
3541         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3542         function pointers.
3544 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3546         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3548 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3550         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3552         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3553         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3554         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3555         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3556         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3557         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3558         * math/libm-test.inc: Add tests for errno after tan calls with
3559         Â±Inf.
3561         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3562         errno value vor pow(+-0,neg).
3563         * math/libm-test.inc (pow_test): Add tests for errno value for
3564         pole errors.
3566         * math/w_fmod.c: Also handle x=±Inf as error.
3567         * math/w_fmodf.c: Likewise.
3568         * math/w_fmodl.c: Likewise.
3569         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3570         x=±Inf or y=0.
3572         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3573         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3574         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3575         * sysdeps/i386/fpu/s_sin.S: Likewise.
3576         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3577         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3578         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3579         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3580         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3581         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3582         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3583         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3584         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3585         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3586         Â±Inf.
3588         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3589         ERANGE for underflows.
3590         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3592         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3593         the 2001 revision.
3595         * libio/tst-widetext.input: Remove surrogates.
3597         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3599         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3600         for lgamma should set errno to ERANGE, not EDOM.
3601         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3603 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3605         [BZ #10093]
3606         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3607         UTF-16 surrogates.
3609         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3610         space when temporarily mapping the whole content of the old file.
3612         [BZ #10100]
3613         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3614         not zero.
3616 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3618         * iconvdata/sjis.c (BODY): Don't advance inptr before
3619         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3620         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3621         two byte chars.
3623 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3625         * locale/locarchive.h (struct locarhandle): Rename len field to
3626         mmaped and add new reserved field.
3627         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3628         (create_archive): Reserve address space and then map file into it.
3629         (open_archive): Likewise.
3630         (file_data_available_p): New function.
3631         (compare_from_file): New function.
3632         (close_archive): Adjust to member name changes.
3633         (add_locale): Before comparing locale data, check it is mapped.
3634         Otherwise fall back to reading from the file.
3636 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3638         * stdio-common/psiginfo.c: Include <errno.h>.
3640 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3642         [BZ #9920]
3643         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3644         to get consistency between 32 and 64 bit architectures.
3646         [BZ #10052]
3647         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3648         directory for dummy syscall rules.
3649         Patch by Chris Steinbroner <hesh@pobox.com>.
3651 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3653         [BZ #10092]
3654         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3655         MNT_EXPIRE.
3657 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3659         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3660         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3662 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3664         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3665         data from vector to temporary buffer and call PWRITEV after it
3666         instead of vice versa.
3667         * sysdeps/posix/preadv.c: Fix up comment.
3668         * misc/preadv.c: Likewise.
3669         * misc/preadv64.c: Likewise.
3670         * misc/pwritev.c: Likewise.
3671         * misc/pwritev64.c: Likewise.
3672         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3674 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3676         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3678         * shadow/Makefile (tests): Add tst-shadow.
3679         * shadow/tst-shadow.c: New file.
3681         [BZ #9955]
3682         * gshadow/Makefile: New file.
3683         * gshadow/Versions: New file.
3684         * gshadow/fgetsgent.c: New file.
3685         * gshadow/fgetsgent_r.c: New file.
3686         * gshadow/getsgent.c: New file.
3687         * gshadow/getsgent_r.c: New file.
3688         * gshadow/getsgnam.c: New file.
3689         * gshadow/getsgnam_r.c: New file.
3690         * gshadow/gshadow.h: New file.
3691         * gshadow/putsgent.c: New file.
3692         * gshadow/sgetsgent.c: New file.
3693         * gshadow/sgetsgent_r.c: New file.
3694         * gshadow/tst-gshadow.c: New file.
3695         * include/gshadow.h: New file.
3696         * Makeconfig (all-subdirs): Add gshadow.
3697         * Makefile (installed-headers): Add gshadow/gshadow.h.
3698         * nss/Makefile (databases): Add sgrp.
3699         * nss/Versions: Add gshadow functions as private exports.
3700         * nss/nsswitch.conf: Add gshadow entry.
3701         * nss/sgrp-lookup.c: New file.
3702         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3703         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3704         * nss/nss_files/files-sgrp.c: New file.
3705         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3706         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3708 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3710         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3711         * stdio-common/reg-modifier.c: Likewise.
3713 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3715         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3716         is no FPU.
3718 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3720         [BZ #10086]
3721         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3722         headers up to 2.6.30.
3724         * po/ca.po: Update from translation team.
3726 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3728         [BZ #10069]
3729         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3730         an object that uses static TLS if the TLS modid is higher than the
3731         reserve we always allocate.  At least for multi-threaded code.
3733 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3735         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3736         Numerically stable check for valid width.
3738         * locale/programs/locarchive.c (open_archive): Map the entire file
3739         and not just the administrative data.
3740         (add_locale): When we find a hash sum match compare the content
3741         to be sure.
3743         * malloc/malloc.c (malloc_info): Output address space information.
3745 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3747         * malloc/malloc.c (malloc_info): Also output system memory information.
3749         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3750         architectures have preadv/pwritev in 2.6.30.
3752         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3753         * sysdeps/posix/readv.c: Likewise.
3754         Reported by Markus Armbruster <armbru@redhat.com>.
3756         * malloc/hooks.c (top_check): Force hook value into register.
3758 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3760         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3761         calls to _dl_relocate_object.
3763 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3765         [BZ #9957]
3766         * malloc/malloc.c (force_reg): Define.
3767         (sYSMALLOc): Load hook variable into variable
3768         before test and force into register.
3769         (sYSTRIm): Likewise.
3770         (public_mALLOc): Force hook value into register.
3771         (public_fREe): Likewise.
3772         (public_rEALLOc): Likewise.
3773         (public_mEMALIGn): Likewise.
3774         (public_vALLOc): Likewise.
3775         (public_pVALLOc): Likewise.
3776         (public_cALLOc): Likewise.
3777         (__posix_memalign): Likewise.
3778         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3779         before test and force into register.
3780         * malloc/hooks.c (top_check): Likewise.
3781         (public_sET_STATe): Pretty printing.
3783         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3784         in case we only receive one reply in single-request mode.
3786 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3788         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3789         are dlopened in statically linked program even for __LM_ID_CALLER.
3791 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3793         * resolv/res_send.c (send_dg): Don't switch into single-request
3794         mode if we already are in it.
3796 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3798         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3799         are always at least 4 bytes in the returned line.
3801 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3803         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3804         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3805         instead of 8K.  Stop searching in /proc/stat after hitting first
3806         line not starting with cpu.
3807         (next_line): Truncate too long
3808         lines at buffer size * 3/4 instead of pretending there were line
3809         breaks inside of large lines.
3811 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3813         * sysdeps/x86_64/mp_clz_tab.c: New file.
3815 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3816             Ulrich Drepper  <drepper@redhat.com>
3818         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3819         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3820         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3822 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3824         * sysdeps/sh/libc-tls.c: New file.
3826         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3828 2009-04-14  Roland McGrath  <roland@redhat.com>
3830         * elf/elf.h: Add various missing ARM constants, to match binutils.
3832 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3834         Optimizations from GMP.
3835         * sysdeps/x86_64/add_n.S: New file.
3836         * sysdeps/x86_64/addmul_1.S: New file.
3837         * sysdeps/x86_64/lshift.S: New file.
3838         * sysdeps/x86_64/mul_1.S: New file.
3839         * sysdeps/x86_64/rshift.S: New file.
3840         * sysdeps/x86_64/sub_n.S: New file.
3841         * sysdeps/x86_64/submul_1.S: New file.
3843 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3845         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3846         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3847         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3848         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3850 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3852         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3853         preadv/pwritev.
3855 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3857         * sysdeps/x86-64/strrchr.S: New file.
3859 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3861         * stdio-common/printf.h (struct printf_info): Add user element.
3862         New types printf_arginfo_size_function, printf_va_arg_function.
3863         Declare register_printf_specifier, register_printf_modifier,
3864         register_printf_type.
3865         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3866         (union printf_arg): Add pa_user element.
3867         Adjust __printf_arginfo_table type.
3868         Add __printf_va_arg_table, __printf_modifier_table,
3869         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3870         declarations.
3871         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3872         If registered arginfo call failed try normal specifier.
3873         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3874         function.
3875         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3876         * stdio-common/Versions: Export register_printf_modifier,
3877         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3878         * stdio-common/reg-modifier.c: New file.
3879         * stdio-common/reg-type.c: New file.
3880         * stdio-common/reg-printf.c (__register_printf_specifier): New
3881         function.  Mostly the old __register_printf_function function but
3882         uses locking and type of third parameter changed.
3883         (__register_printf_function): Implement using
3884         __register_printf_specifier.
3885         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3886         calls to arginfo functions.  Allocate enough memory for user-defined
3887         types.  Call new va_arg functions to get user-defined types.
3888         Try installed handlers even for existing format specifiers first.
3890 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3892         * sysdeps/x86_64/rawmemchr.S: New file.
3894         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3895         Simplified code and possible copy problem fixed.
3897         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3898         function if it is not defined.  Add some necessary casts.
3899         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3901         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3902         have preadv/pwritev in 2.6.30.
3904 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3906         * malloc/malloc.c (malloc_info): New function.
3907         * malloc/malloc.h: Declare it.
3908         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3910         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3911         to avoid PLT slot.
3913         * malloc/malloc.c (_int_realloc): Add parameter with old block
3914         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3915         Adjust all callers.
3916         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3918 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3920         * sysdeps/x86_64/strchrnul.S: New file.
3922         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3923         depending libcrypt on -lfreebl3.
3925         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3926         preadv/pwritev in 2.6.30.
3928         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3929         instead of __strcasecmp.
3931         * string/stratcliff.c (do_test): Add memchr tests..
3932         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3933         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3934         first read quad word.
3936 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3938         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3939         * string/tst-svc.input: Add new test case.
3940         * string/tst-svc.expect: Adjust.
3941         * string/Makefile: Don't ignore tst-svc error.
3943         * sysdeps/x86_64/memchr.S: New file.
3945         * resolv/resolv.h (RES_SNGLKUP): Define.
3946         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3947         * resolv/res_send.c (send_dg): If we sent two requests at once and
3948         only get one reply before timeout switch to mode where we send the
3949         second request only after the first answer has been received.
3951 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3953         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3954         * sysdeps/x86_64/strchr.S: Likewise.
3956 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3958         * configure.in: We need to test for the compiler earlier.
3960         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3961         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3962         GLIBC_2.10.
3963         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3964         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3965         and pwritev.
3966         * misc/preadv.c: New file.
3967         * misc/preadv64.c: New file.
3968         * misc/pwritev.c: New file.
3969         * misc/pwritev64.c: New file.
3970         * sysdeps/posx/preadv.c: New file.
3971         * sysdeps/posx/preadv64.c: New file.
3972         * sysdeps/posx/pwritev.c: New file.
3973         * sysdeps/posx/pwritev64.c: New file.
3974         * sysdeps/unix/sysv/linux/preadv.c: New file.
3975         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3976         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3977         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3978         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3979         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3981         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3982         compatibility code.
3983         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3985         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3986         __ASSUME_COMPLETE_READV_WRITEV.
3987         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3988         with modern kernels.
3989         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3991         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3992         to free a possible malloced buffer in case of cancellation.
3993         * sysdeps/posix/writev.c: Likewise for write.
3995 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3997         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3999         * configure.in: Recognize --enable-nss-crypt.
4000         * config.make.in: Add nss-crypt entry.
4001         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4002         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4003         and include path for NSS directory to compiler for md5-crypt,
4004         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4005         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4006         function implementation, use NSS.  Introduce wrappers around the
4007         hash function calls.  Little code size optimization.
4008         * crypt/sha256-crypt.c: Likewise.
4009         * crypt/sha512-crypt.c: Likewise.
4010         * scripts/check-local-headers.sh: Ignore nss3 directory.
4012         * configure.in: Rename pic_default to libc_cv_pic_default.
4013         * config.make.in: Likewise.
4015 2009-04-01  Roland McGrath  <roland@redhat.com>
4017         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4018         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4019         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4020         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4021         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4022         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4023         (R_SPARC_NUM): Update.
4024         From Dave Miller <davem@davemloft.net>.
4026 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4028         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4030 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4032         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4033         those which are used.
4034         * elf/dl-addr.c: Likewise.
4035         * elf/dl-caller.c: Likewise.
4036         * elf/dl-fini.c: Likewise.
4037         * elf/dl-iteratephdr.c: Likewise.
4038         * elf/dl-libc.c: Likewise.
4039         * elf/dl-load.c: Likewise.
4040         * elf/dl-support.c: Likewise.
4041         * elf/dl-sym.c: Likewise.
4042         * elf/rtld.c: Likewise.
4043         * sysdeps/generic/ldsodefs.h: Likewise.
4045         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4046         * elf/dl-minimal.c: Likewise.
4047         * elf/dl-misc.c: Likewise.
4048         * elf/rtld.c: Likewise.
4049         * sysdeps/generic/ldsodefs.h: Likewise.
4051 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4053         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4054         Avoid reuse of complex expression.
4056         * po/fr.po: Update from translation team.
4058 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4060         * include/dirent.h: Yet more changes to match sort function type
4061         change.
4062         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4063         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4064         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4066 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4068         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4070 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4072         * nscd/connections.c (restart): Try to preserve the process name
4073         by reading the /proc/self/exe symlink and using the return name.
4074         Patch by Jeff Bastian <jbastian@redhat.com>.
4076 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4078         [BZ #9733]
4079         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4080         if we are not loading a new audit library.
4081         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4082         Only use profiling trampoline for auditing if we are not relocating
4083         an audit library.
4084         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4085         * elf/rtld.c: Likewise.
4086         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4088         * elf/rtld.c (dl_main): Extend help message for --audit option.
4090         [BZ #9759]
4091         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4092         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4093         * dirent/alphasort.c: Adjust implementation to type change.
4094         * dirent/alphasort64.c: Likewise.
4095         * dirent/scandir.c: Likewise.
4096         * dirent/versionsort.c: Likewise.
4097         * dirent/versionsort64.c: Likewise.
4098         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4099         declaration.
4100         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4101         declaration.
4103         [BZ #9880]
4104         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4105         correctly.  Set segleft member in output as required.
4106         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4107         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4109         [BZ #9881]
4110         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4111         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4112         * inet/Makefile (tests): Add tst-inet6_rth.
4113         * inet/tst-inet6_rth.c: New file.
4115         [BZ #5807]
4116         * string/strlen.c (strlen): Fix omission in the expression to test
4117         for NUL bytes.
4119 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4121         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4123         * elf/dl-runtime.c (reloc_offset): Define.
4124         (reloc_index): Define.
4125         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4126         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4127         computing index from reloc_offset.
4128         (_dl_call_pltexit): Likewise.
4129         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4130         the relocation index to _dl_fixup.
4131         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4132         _dl_call_pltexit.
4133         * sysdeps/x86_64/dl-runtime.c: New file.
4135         [BZ #9893]
4136         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4137         alignment of La_x86_64_regs.  Store xmm parameters.
4138         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4140         [BZ #9913]
4141         * string/strverscmp.c (__strverscmp): Fix case of different digits
4142         in fractional part of string.
4143         Patch by Jingyu Liu <jyliu@fortinet.com>.
4144         * string/Makefile (tests): Add tst-svc2.
4145         * string/tst-svc2.c: New file.
4147         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4149         * locale/iso-639.def: Add Min Nan.
4151 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4153         [BZ #9948]
4154         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4156 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4158         * elf/dl-sysdep.c (auxvars): Compress data structure.
4160         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4161         STT_GNU_IFUNC handling.
4162         (elf_machine_rela): Likewise.
4164 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4166         * config.h.in (USE_MULTIARCH): Define.
4167         * configure.in: Handle --enable-multi-arch.
4168         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4169         (_dl_fixup_profile): Likewise.
4170         * elf/do-lookup.c (dl_lookup_x): Likewise.
4171         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4172         * elf/elf.h (STT_GNU_IFUNC): Define.
4173         * include/libc-symbols.h (libc_ifunc): Define.
4174         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4175         framework in init-arch.h to get CPUID values.
4176         * sysdeps/x86_64/multiarch/Makefile: New file.
4177         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4178         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4179         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4181         * config.make.in (experimental-malloc): Define.
4182         * configure.in: Handle --enable-experimental-malloc.
4183         * malloc/Makefile: Handle experimental-malloc flag.
4184         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4185         * malloc/arena.c: Likewise.
4186         * malloc/hooks.c: Likewise.
4187         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4189 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4191         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4192         prediction.  A few size optimizations.
4194 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4196         * time/tzset.c: Optimize a bit for size.
4198 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4200         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4201         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4203         * elf/sprof.c: Avoid warning about multi-line comment.
4205 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4207         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4208         DST name.
4209         * time/tst-posixtz.c: Add tests for quoted timezone names.
4211 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4213         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4214         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4215         200809L instead of 200112L.
4216         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4217         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4219         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4220         instead of __quick_exit_funcs to __run_exit_handlers.
4221         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4222         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4223         (__cxa_at_quick_exit): Remove attribute_hidden.
4224         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4225         to __run_exit_handlers.
4226         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4227         attribute_hidden.
4229 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4231         * po/id.po: Update from translation team.
4233 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4236         .machine push; .machine "power6" and .machine pop around mtfsf
4237         insns outside of _ARCH_PWR6 define.
4238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4240         Likewise.
4241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4242         Likewise.
4243         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4244         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4245         relax_fenv_state): Likewise.
4247 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4249         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4250         cxa_at_quick_exit.
4251         (static-only-routines): Add at_quick_exit.
4252         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4253         GLIBC_2.10.
4254         * stdlib/quick_exit.c: New file.
4255         * stdlib/at_quick_exit.c: New file.
4256         * stdlib/cxa_at_quick_exit.c: New file.
4257         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4258         it appropriately.
4259         (__internal_atexit): New function.
4260         (__new_exitfn): Now takes parameter to point to the list to use.
4261         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4262         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4263         (exit): ...here.  Just call __run_exit_handlers appropriately.
4264         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4265         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4266         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4267         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4269         * po/id.po: Update from translation team.
4271 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4273         * po/ru.po: Update from translation team.
4275 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4277         * po/nl.po: Update from translation team.
4279 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4281         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4282         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4283         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4284         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4285         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4286         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4287         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4289         * po/pl.po: Update from translation team.
4291 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4293         [BZ #7083]
4294         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4295         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4296         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4297         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4298         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4299         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4300         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4301         for GLIBC_2.10.
4302         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4303         Add fallocate and fallocate64.
4305         * io/fcntl.h: Pretty printing.
4307 2009-03-02  Richard Guenther  <rguenther@suse.de>
4309         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4310         attribute also for non-C99 inline semantics variant.
4312 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4314         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4315         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4316         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4317         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4319         Likewise.
4320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4321         Likewise.
4323 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4325         * po/cs.po: Update from translation team.
4327 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4329         * po/bg.po: Update from translation team.
4330         * po/sv.po: Likewise.
4331         * po/fi.po: Likewise.
4332         * po/vi.po: Likewise.
4334 2009-02-27  Roland McGrath  <roland@redhat.com>
4336         * Makeconfig (%.v.i): Depend on Makeconfig.
4337         Exclude % lines from initial #-comment removal.
4339 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4341         * po/ko.po: Update from translation team.
4343 2009-02-26  Roland McGrath  <roland@redhat.com>
4345         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4346         avoids unused warning.
4348 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4349             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4351         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4352         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4353         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4354         and asm/user.h.  Include asm/ptrace.h.
4355         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4356         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4357         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4358         Undefine.
4359         (start_thread): Don't undefine.
4360         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4361         Define.
4363 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4365         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4366         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4367         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4368         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4369         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4370         200112L to 200809L.
4371         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4372         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4373         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4374         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4375         _SC_THREAD_ROBUST_PRIO_PROTECT.
4376         * posix/unistd.h: fexecve is in POSIX 2008.
4377         * time/time.h: strftime_l is in POSIX 2008.
4378         * io/sys/stat.h: futimens is in POSIX 2008.
4379         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4380         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4381         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4382         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4383         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4384         open_memstream, and vdprintf are in POSIX 2008.
4386 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4388         * include/features.h: Define macros for XPG7/POSIX 2008.
4389         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4390         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4391         POSIX 2008.
4392         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4393         * locale/xlocale.h: Define locale_t type.
4394         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4395         in POSIX 2008.  Don't define locale_t here.
4396         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4397         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4398         UTIME_OMIT only with __USE_ATFILE.
4399         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4400         * stdio-common/psiginfo.c: New file.
4401         * stdio-common/psiginfo-data.h: New file.
4402         * stdio-common/psiginfo-define.h: New file.
4403         * stdio-common/Makefile (routines): Add psiginfo.
4404         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4405         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4406         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4407         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4408         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4409         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4410         * io/sys/stat.h: Move mknodat definition into same conditional as
4411         mknod.
4412         * time/sys/time.h: futimesat is not among the functions accepted
4413         into the POSIX standard.
4415         * include/features.h: If no feature selection given and we select
4416         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4417         * posix/Versions: Export __posix_getopt.
4418         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4419         Use it to alternatively initialize __posixly_correct.
4420         (_getopt_internal_r): Take addition parameter.  Pass on to
4421         _getopt_initialize.
4422         (_getopt_internal): Take addition parameter.  Pass on to
4423         _getopt_internal_r.
4424         (getopt): Pass additional zero to _getopt_internal.
4425         (__posix_getopt): New function.
4426         * posix/getopt.h: Add redirection for getopt.
4427         * posix/getopt1.c (getopt_long): Pass additional zero to
4428         _getopt_internal.
4429         (getopt_long_only): Likewise.
4430         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4431         (_getopt_long_only_r): Likewise.
4432         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4433         _getopt_internal_r.
4435 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4437         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4438         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4439         * sysdeps/posix/sysconf.c (__sysconf): Handle
4440         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4441         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4443 2009-02-24  Roland McGrath  <roland@redhat.com>
4445         [BZ #9895]
4446         * README.template: Reworded not to use substituted version number.
4447         Renamed to ...
4448         * README: ... here (no longer generated).
4449         * Makefile (README): Target removed.
4451 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4453         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4454         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4455         instead.
4457         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4459         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4461 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4463         * po/bg.po: Update from translation team.
4465 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4467         * stdlib/monetary.h: Uglify function parameter names.
4468         * sunrpc/rpc/pmap_clnt.h: Likewise.
4469         * sunrpc/rpc/svc.h: Likewise.
4470         * sunrpc/rpc/xdr.h: Likewise.
4471         * sunrpc/rpc/clnt.h: Likewise.
4472         * resolv/netdb.h: Likewise.
4473         * resolv/arpa/nameser.h: Likewise.
4474         * resolv/resolv.h: Likewise.
4475         * argp/argp.h: Likewise.
4476         * locale/langinfo.h: Likewise.
4477         * io/sys/stat.h: Likewise.
4478         * posix/spawn.h: Likewise.
4479         * nis/rpcsvc/nislib.h: Likewise.
4480         * malloc/obstack.h: Likewise.
4481         * sysdeps/ia64/bits/link.h: Likewise.
4482         * sysdeps/i386/bits/link.h: Likewise.
4483         * sysdeps/s390/bits/link.h: Likewise.
4484         * sysdeps/powerpc/bits/link.h: Likewise.
4485         * sysdeps/x86_64/bits/link.h: Likewise.
4486         * sysdeps/sparc/bits/link.h: Likewise.
4487         * sysdeps/sh/bits/link.h: Likewise.
4488         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4489         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4490         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4491         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4493 2008-12-01  Fredrik Unger  <fred@tree.se>
4495         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4496         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4497         _FP_UNPACK_RAW_2, fix up first argument.
4499 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4501         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4502         (GET_NPROCS_PARSER): Change parameters and use next_line.
4503         (__get_nprocs): Rewrite to not use stdio routines.
4504         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4505         Change parameters and use next_line.
4507 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4509         [BZ #5381]
4510         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4511         Change mempool_alloc prototype.
4512         * nscd/mem.c (gc): Don't handle mem_in_flight.
4513         (mempool_alloc): Third parameter now only indicates whether this is the
4514         first call (to allocate data) or not.  If it is, get db rdlock.
4515         Release it on error.  Don't handle mem_in_flight.
4516         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4517         Adjust third parameter of mempool_alloc calls.
4518         Nothing to do here in case mempool_alloc fails.
4519         Avoid local variable shadowing parameter.  No need to get db rdlock
4520         before calling cache_add.
4521         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4522         no mem_in_flight array anymore.
4523         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4524         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4525         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4526         in case mempool_alloc fails. No need to get db rdlock before calling
4527         cache_add.
4528         * nscd/hstcache.c (cache_addhst): Likewise.
4529         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4530         * nscd/servicescache.c (cache_addserv): Likewise.
4531         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4533 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4535         * po/lt.po: Update from translation team.
4537 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4539         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4540         defined, allow additional data to be added using the optional
4541         MORE_ELF_HEADER_DATA macro.
4542         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4543         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4545 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4547         * include/atomic.h: Define catomic_and if not already defined.
4548         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4549         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4551 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4553         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4554         Change all callers.
4555         (_int_realloc): Likewise.  Third argument is now padded size
4556         All _int_* functions are now static.
4558         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4559         * malloc/arena.c: Likewise.
4560         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4561         functions.
4563         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4564         easily.
4566         * malloc/malloc.c: Add branch prediction for use of the hooks.
4568         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4570 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4572         [BZ #7095]
4573         * bits/confname.h: Add SUSv7 macros for getconf environments.
4574         * bits/environments.h: Likewise.
4575         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4576         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4577         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4578         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4579         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4580         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4581         * posix/getconf.c: Likewise.
4582         * posix/sysconf.c: Likewise.
4583         * sysdeps/posix/sysconf.c: Likewise.
4584         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4585         environments.
4587 2009-01-16  Petr Baudis  <pasky@suse.cz>
4589         [BZ #9753]
4590         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4591         even if we currently have zero nscount.
4593 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4595         [BZ #9781]
4596         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4597         the input line is too long.
4599         * po/Makefile (libc.pot): Add f_print as function taking c-format
4600         parameter.
4602         * debug/xtrace.sh: Unify translatable messages.
4603         * elf/ldd.bash.in: Likewise.
4604         * elf/sprof.c: Likewise.
4605         * locale/programs/locale.c: Likewise.
4606         * malloc/memusage.sh: Likewise.
4607         * nss/getent.c: Likewise.
4609 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4611         * debug/pcprofiledump.c (print_version,
4612         argp_program_version_hook): New function.
4613         * elf/ldconfig.c (more_help): New function.
4614         (argp): Use it.
4615         * elf/sln.c (usage): New function.
4616         (main): Support --help and --version.
4617         * malloc/memusagestat.c (print_version): New function.
4618         (argp_program_version_hook): New variable.
4619         * nscd/nscd.c (more_help): New function.
4620         (argp): Use it.
4621         * posix/getconf.c (main): Send --version output to stdout.
4622         Support --help.
4623         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4624         arguments.  All callers changed.
4625         (print_version): New function.
4626         (parseargs): Support --help and --version.
4627         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4628         changed.
4629         (print_version): New function.
4630         (main): Use getopt_long.  Support --help and --version.
4631         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4632         --version.
4634 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4636         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4637         (update_data): Fix handling of wrapping back
4638         to the beginning of the buffer.
4640         [BZ #9823]
4641         * stdio-common/psignal.c (psignal): Fix test for empty string.
4643 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4645         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4646         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4647         move _null_auth to .rodata.
4649         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4650         value of 24.
4652         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4654         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4655         today than when the original code was written.  Use larger
4656         buffers.  This also makes it unnecessary to have stat information,
4657         if this causes extra efforts.
4658         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4659         __alloc_dir.
4661 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4663         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4664         is set.
4665         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4666         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4667         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4668         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4669         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4670         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4672 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4674         * po/ru.po: Update from translation team.
4676 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4678         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4679         Add _tid slot to maintain consistency with kernel.
4681 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4683         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4684         incomplete characters at end of input buffer.
4685         * libio/Makefile (tests): Add tst-fgetwc.
4686         * libio/tst-fgetwc.c: New file.
4687         * libio/tst-fgetwc.input: New file.
4689 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4691         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4693 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4695         [BZ #9793]
4696         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4697         *OUTBUFSTART unless the whole output fit into the buffer.
4698         * iconv/Makefile (tests): Add tst-iconv4.
4699         * iconv/tst-iconv4.c: New file.
4701 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4703         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4704         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4706 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4708         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4709         newer linker scripts.
4711 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4713         [BZ #7040]
4714         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4715         inotify_rm_watch should have type int.
4717 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4719         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4720         Make aligned_restore_vmx a local symbol.
4721         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4722         Likewise.
4724 2009-01-30  Andreas Jaeger  <aj@suse.de>
4726         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4727         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4728         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4729         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4730         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4731         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4732         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4734 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4736         [BZ #9726]
4737         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4738         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4740 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4742         [BZ #9726]
4743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4744         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4746         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4748 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4750         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4751         memcpy instead of memcmp.
4752         (_dl_setup_pointer_guard): Likewise.
4754 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4756         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4757         manipulated brk, use malloc_printerr.
4758         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4759         requests.
4761 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4763         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4764         rindex): For C++ add inlines so that they can be recognized as
4765         builtins.
4766         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4768 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4769             Jakub Jelinek  <jakub@redhat.com>
4771         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4772         * wcsmbs/wchar.h: Likewise.
4774 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4776         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4777         (stackinfo_sub_sp): Define.
4779 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4781         [BZ #9750]
4782         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4783         * include/alloca.h (alloca_account): Define.
4784         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4785         (stackinfo_sub_sp): Define.
4787         * nscd/connections.c (nscd_init): If database file access fails
4788         check whether this is due to permission problems and bail in that
4789         case.
4791         [BZ #9741]
4792         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4793         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4795 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4797         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4798         Add "t" to clobber list.
4799         (INTERNAL_SYSCALL_NCS): Likewise.
4801 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4803         * nss/getent.c (print_networks): Don't print comma between aliases.
4805 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4807         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4809         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4810         the hash table.
4811         * misc/Makefile (tests): Add bug-hsearch1.
4812         * misc/bug-hsearch1.c: New file.
4814 2009-01-22  Roland McGrath  <roland@redhat.com>
4816         * Makeconfig (%.v.i): Strip trailing # comments,
4817         not only whole-line comments.
4819 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4821         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4822         one parameter.  If non-NULL use it to initialize return value.
4823         (_dl_setup_pointer_guard): New function.
4824         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4825         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4826         * elf/rtld.c (security_init): Pass _dl_random to
4827         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4828         pointer_chk_guard.
4829         * elf/dl-sysdep.c (_dl_random): New variable.
4830         (_dl_sysdep_start): Handle AT_RANDOM.
4831         (_dl_show_auxv): Likewise.
4832         * elf/dl-support.c (_dl_random): New variable.
4833         (_dl_aux_init): Handle AT_RANDOM.
4834         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4835         to _dl_setup_stack_chk_guard.
4837         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4839 2009-01-10  Roland McGrath  <roland@redhat.com>
4841         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4843 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4845         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4847         [BZ #9706]
4848         * nss/nss_files/files-parse.c (strtou32): New function.
4849         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4850         across 32-bit and 64-bit platforms.
4851         (INT_FIELD_MAYBE_NULL): Likewise.
4853 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4855         [BZ #9720]
4856         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4857         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4858         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4859         Likewise.
4861 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4863         [BZ #697]
4864         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4865         being NULL also if there are no backreferences.
4866         * posix/rxspencer/tests: Add testcases.
4868 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4870         [BZ #9697]
4871         * posix/bug-regex17.c: Add testcases.
4872         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4873         handling.
4875 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4877         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4878         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4879         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4880         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4881         for elf subdir.
4882         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4883         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4884         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4885         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4886         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4887         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4889 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4891         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4892         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4893         re_string_skip_chars, re_string_reconstruct): Likewise.
4894         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4896 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4898         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4899         adjust the buffer alignment.
4901 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4903         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4904         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4905         net/route.h.
4907         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4908         flavor to description only when flavor is not NULL.
4910         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4911         mutex after SIGIO/SIGURG lookup loop.
4913 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4915         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4917 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4919         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4920         handling.
4922 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4924         * sysdeps/unix/sysv/linux/kernel-features.h
4925         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4927         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4928         if no output is written.
4930         * version.h: Bump to 2.10 development.
4932         * posix/getconf.c: Update copyright year.
4933         * nss/getent.c: Likewise.
4934         * iconv/iconvconfig.c: Likewise.
4935         * iconv/iconv_prog.c: Likewise.
4936         * elf/ldconfig.c: Likewise.
4937         * catgets/gencat.c: Likewise.
4938         * csu/version.c: Likewise.
4939         * elf/ldd.bash.in: Likewise.
4940         * elf/sprof.c (print_version): Likewise.
4941         * locale/programs/locale.c: Likewise.
4942         * locale/programs/localedef.c: Likewise.
4943         * nscd/nscd.c (print_version): Likewise.
4944         * debug/xtrace.sh: Likewise.
4945         * malloc/memusage.sh: Likewise.
4946         * malloc/mtrace.pl: Likewise.
4947         * debug/catchsegv.sh: Likewise.
4949 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4951         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4952         script.
4954 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4956         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4957         gethostbyname4_r function call succeeded, just leave the loop.
4959         [BZ #9694]
4960         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4961         very end.
4962         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4963         * wctype/Makefile (tests): Add bug-wctypeh.
4964         * wctype/bug-wctypeh.c: New file.
4966         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4967         LOCALDOMAIN is defined.
4968         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4970         * sysdeps/x86_64/bits/select.h: New file.
4972         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4974 2008-12-21  Bruno Haible  <bruno@clisp.org>
4976         [BZ #9677]
4977         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4978         if no output is written.
4980 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4982         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4983         libc internal symbol __dup2 to avoid access through the PLT.
4985 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4987         [BZ #6545]
4988         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4989         available only for __USE_GNU.
4991         * inet/Makefile (tests): Add tst-getni2.
4992         * inet/tst-getni2.c: New file.
4994         [BZ #7080]
4995         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4996         NULL when NI_NAMEREQD is set.
4997         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4998         * inet/Makefile (tests): Add tst-getni1.
4999         * inet/tst-getni1.c: New file.
5001 2008-12-03  Petr Baudis  <pasky@suse.cz>
5003         [BZ #7067]
5004         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5005         instead of prune_lock.
5006         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5007         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5009 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5011         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5012         use.
5014         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5015         handling.
5017         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5018         after reading name server list.
5020         [BZ #7058]
5021         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5022         handling for host name aliases.
5024 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5026         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5027         instead of doing things manually.
5029 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5031         * posix/regex_internal.h (build_wcs_upper_buffer):
5032         Return type is reg_error_t.
5034 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5036         * posix/globtest.sh: Use mktemp to create temporary file and
5037         directory.
5039         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5040         sets correctly.
5041         (__CPU_CLR_S): Likewise.
5042         (__CPU_ISSET_S): Likewise.
5044 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5045             Ulrich Drepper  <drepper@redhat.com>
5047         * scripts/firstversion.awk: Use custom comparison function to compare
5048         version numbers.
5049         * scripts/versions.awk: Use sort invocation which can handle
5050         multi-digit sub-version numbers.
5052 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5054         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5055         * locale/iso-639.def: Add Chhattisgarhi entry.
5057 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5059         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5060         ESRCH return value.
5061         (_nss_dns_gethostbyname4_r): Likewise.
5062         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5063         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5064         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5065         the no_data variable.
5067         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5068         information at the correct index.
5070         * socket/sys/socket.h: Declare accept4.
5071         * socket/accept4.c: New file.
5072         * sysdeps/unix/sysv/linux/accept4.c: New file.
5073         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5074         * socket/Makefile (routines): Add accept4.
5075         * socket/Versions: Export accept4 with version GLIBC_2.10.
5076         * socket/paccept.c: Removed.
5077         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5078         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5079         * Versions.def: Define GLIBC_2.10 for libc.
5080         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5082         * nscd/connections.c: Use accept4.
5084         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5086 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5088         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5089         flag already set.
5091         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5092         not exist.
5093         * stdlib/Makefile (tests): Add tst-unsetenv1.
5094         * stdlib/tst-unsetenv1.c: New file.
5096 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5098         * login/utmp_file.c (file_writable): New variable.
5099         (setutent_file): Don't try to open file for writing.
5100         (pututline_file): Before writing, make descriptor writable if
5101         necessary.
5103 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5105         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5106         to IPv4 or IPv6 if an interface has been found.
5108 2008-11-26  Roland McGrath  <roland@redhat.com>
5110         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5111         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5113         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5114         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5115         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5117         * elf/elf.h (NT_386_IOPERM): New macro.
5118         (NT_PPC_VSX): New macro.
5120 2008-11-25  Roland McGrath  <roland@redhat.com>
5122         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5123         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5124         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5125         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5126         Subdirectories moved to ports repository.
5127         * configure.in (base_machine): Remove alpha case.
5129 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5131         * sysdeps/mach/strerror_l.c: New file.
5133 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5135         [BZ #6411]
5136         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5137         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5138         magic numbers.
5139         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5140         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5141         (relax_fenv_state): Same as above.
5142         (FPSCR_29): Reserve bit in ISA 2.05.
5143         (FPSCR_NI): Provide define for compat.
5144         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5145         magic numbers.
5146         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5147         magic numbers.
5148         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5149         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5150         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5151         access to hwcap to account for hwcap size increase to uint64_t.
5152         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5153         Likewise.
5154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5155         (*setcontext): Likewise.
5156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5157         New file.
5158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5159         New file.
5160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5161         (*setcontext): dynamically select mtfsf insn based on
5162         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5163         increase to uint64_t.
5164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5165         (*swapcontext): dynamically select mtfsf insn based on
5166         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5167         increase to uint64_t.
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5169         New file.
5170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5171         New file.
5172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5173         (*setcontext): dynamically select mtfsf insn based on
5174         PPC_FEATURE_HAS_DFP.
5175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5176         (*swapcontext): dynamically select mtfsf insn based on
5177         PPC_FEATURE_HAS_DFP.
5179 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5181         * version.h: Bump for 2.9 release.
5182         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5184         [BZ #7029]
5185         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5186         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5187         all the rounding.
5189 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5191         [BZ #7009]
5192         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5193         unknown request types for now.
5195 2008-11-11  Roland McGrath  <roland@redhat.com>
5197         * sysdeps/x86_64/configure: New file.
5199         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5200         * configure: Regenerated.
5202 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5204         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5205         correct instruction to remove the stack frame.
5207 2008-11-03  Michael Matz  <matz@suse.de>
5209         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5210         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5212 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5214         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5215         Remove.
5217         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5218         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5219         of the thread variable instead of void *.
5220         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5221         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5222         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5223         __libc_tsd_define arguments.
5224         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5225         __libc_tsd_address arguments.  Remove union hack.
5226         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5227         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5228         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5229         Adjust __libc_tsd_{set,get} arguments.
5230         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5231         __libc_tsd_define arguments.
5232         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5233         arguments.
5234         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5235         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5236         (LOCALE): Adjust __libc_tsd_define arguments.
5237         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5238         arguments.
5239         (LOCALE): Adjust __libc_tsd_define arguments.
5240         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5241         arguments.
5242         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5243         arguments.
5245 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5247         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5248         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5250 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5252         [BZ #6966]
5253         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5255 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5256             Ulrich Drepper  <drepper@redhat.com>
5258         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5259         definition for GCC 3.1 and later.
5261 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5263         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5264         refetch dtv, as it might have changed.
5265         * elf/Makefile: Add rules to build and run tst-tls18.
5266         * elf/tst-tls18.c: New test.
5267         * elf/tst-tlsmod18a.c: New file.
5269 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5271         [BZ #6875]
5272         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5274 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5276         [BZ #6867]
5277         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5279         [BZ #6919]
5280         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5281         Fix length of copy operation.
5283 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5285         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5286         and fix its calling convention.
5288 2008-10-07  Andreas Schwab  <schwab@suse.de>
5290         [BZ #6942]
5291         * resolv/res_send.c (send_vc): Fix last change.
5292         (send_dg): Align here as well.
5294 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5296         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5297         return value in case rlimit is RLIM_INFINITY.
5299         [BZ #6947]
5300         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5301         for UL_SETFSIZE.
5302         * resource/Makefile (tests): Add bug-ulimit1.
5303         * resource/bug-ulimit1.c: New file.
5305         [BZ #6974]
5306         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5307         without dot.  Properly terminate the string with a null byte.
5308         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5310         [BZ #6980]
5311         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5312         negative sizees.
5313         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5314         negative __size.
5316         [BZ #6995]
5317         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5319 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5321         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5322         abort if there is no initgroups_dyn function.
5324         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5325         result if any of the queries really provided an answer.
5327 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5329         * po/lt.po: Update from translation team.
5331 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5333         * po/id.po: Update from translation team.
5335 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5337         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5338         Fix tests for existence of second reply.
5340 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5342         * po/id.po: New file.
5343         Contributed by the Indonesian translation team.
5345 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5347         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5348         initialization.
5350 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5352         * elf/Makefile: Add rules to build and run tst-tls17.
5353         * elf/tst-tls17.c: New test.
5354         * elf/tst-tlsmod17a.c: New file.
5355         * elf/tst-tlsmod17b.c: Likewise.
5357 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5359         * stdlib/divmod_1.c: Use correct type for dummy variable.
5360         * stdlib/mod_1.c: Likewise.
5362 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5364         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5366 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5368         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5369         __nonnull order for C++.
5370         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5371         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5373 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5375         * stdlib/longlong.h: Update from GCC.
5377 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5378             David S. Miller  <davem@davemloft.net>
5380         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5381         make sure any registers used with 64-bit 'branch-on-register'
5382         instructions have their top 32-bits clear.
5383         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5384         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5386 2008-09-18  Andreas Schwab  <schwab@suse.de>
5388         [BZ #6942]
5389         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5390         Properly handle partial reads.
5392 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5394         * elf/elf.h (STO_MIPS_PLT): New.
5395         (R_MIPS_COPY): New.
5396         (R_MIPS_JUMP_SLOT): New.
5397         (R_MIPS_NUM): Redefine to 128.
5398         (DT_MIPS_PLTGOT): New.
5399         (DT_MIPS_RWPLT): New.
5400         (DT_MIPS_NUM): Redefine to 0x35.
5402 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5404         * timezone/africa: Update from tzdata2008f.
5405         * timezone/asia: Likewise.
5406         * timezone/australasia: Likewise.
5407         * timezone/europe: Likewise.
5408         * timezone/leapseconds: Likewise.
5409         * timezone/northamerica: Likewise.
5410         * timezone/southamerica: Likewise.
5411         * timezone/zone.tab: Likewise.
5413 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5415         * nscd/connections.c: Disable use of paccept for now.
5417 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5419         * socket/Versions: Remove paccept export for GLIBC_2.9.
5420         * socket/Makefile (routines): Remove paccept.
5421         * socket/sys/socket.h: Remove paccept declaration.
5423         * po/sv.po: Update from translation team.
5425 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5427         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5428         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5430 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5432         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5433         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5435 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5437         * sunrpc/rpc/svc.h: Declare svcfd_create.
5438         Patch by Michael Solberg <msolberg@redhat.com>.
5440 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5441             Ulrich Drepper  <drepper@redhat.com>
5443         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5444         _int_valloc fails.
5445         (public_pVALLOc): Likewise.
5447 2008-09-02  Andreas Jaeger  <aj@suse.de>
5449         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5450         commit.
5452 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5454         [BZ #6860]
5455         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5457 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5459         * Makefile (check-data): Check data directory in add-ons.
5460         * elf/Makefile (check-data): Likewise.
5462 2008-08-18  Roland McGrath  <roland@redhat.com>
5464         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5465         * configure: Regenerated.
5466         * config.make.in (cflags-cpu): New substituted variable.
5467         (with-cpu): Variable removed.
5468         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5470 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5472         [BZ #6845]
5473         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5474         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5475         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5476         redundant.  Functions which call floating point assembler operations
5477         should go into a sysdeps powerpc/fpu directory.
5479 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5481         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5482         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5484 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5486         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5488         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5489         change related to AT_EXECFN.  We cannot use that string.
5490         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5491         _dl_execfn member.
5492         * elf/dl-support.c: Remove _dl_execfn variable.
5493         (_dl_aux_init): Remove handling of AT_EXECFN.
5494         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5495         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5497 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5499         [BZ #6544]
5500         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5501         byte gets added to writes and seeks from the end use the length of
5502         the buffer and not the currently terminating NUL byte.
5504         [BZ #6634]
5505         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5506         Set to true if locking failed.
5507         (getutid_r_file): Adjust caller.
5508         (pututline_file): Likewise.  Return NULL in this case.
5509         Patch mostly by halesh.s@gmail.com.
5511 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5513         [BZ #6589]
5514         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5515         Define.
5516         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5518 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5520         [BZ #6839]
5521         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5522         macro since it is now available in elf/dynamic-link.h.
5524 2008-08-12  Roland McGrath  <roland@frob.com>
5526         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5527         in case used outside of libc.
5528         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5530 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5532         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5533         directly instead of going through dn_comp.
5535 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5537         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5538         Fix asm constraints.
5540 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5542         [BZ #6790]
5543         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5544         (IPV6_PMTUDISC_PROBE): Likewise.
5546 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5548         [BZ #6791]
5549         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5551 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5552             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5554         [BZ #6817]
5555         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5556         Added the members 'vsx' and 'arch_2_06'.
5557         (_dl_powerpc_platforms): Add the member 'power7'.
5558         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5559         to reflect the changes required by VSX and ISA 2.06.
5560         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5561         'power7'.
5562         Defined PPC_PLATFORM_POWER7.
5563         (_dl_string_platform): Add support for POWER7.
5564         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5565         capability and ISA 2.06.
5567 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5569         [BZ #6824]
5570         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5571         macro to detect use of 128 bit long double.
5572         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5574 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5576         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5578         [BZ #5794]
5579         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5580         parameters.
5581         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5582         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5584 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5586         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5587         guaranteed to be large enough to read inotify event.  Ignore
5588         EAGAIN error.  Better error message.  Add branch predicition.
5589         (main_loop_epoll): Likewise.
5591 2008-08-02  Roland McGrath  <roland@frob.com>
5593         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5594         Add memory clobbers.
5596 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5598         * manual/arith.texi: Avoid @strong{Note:}.
5599         * manual/creature.texi: Likewise.
5600         * manual/filesys.texi: Likewise.
5601         * manual/math.texi: Likewise.
5602         * manual/memory.texi: Likewise.
5603         * manual/resource.texi: Likewise.
5604         * manual/syslog.texi: Likewise.
5605         * manual/time.texi: Likewise.
5607         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5608         to prevent warning.
5610 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5612         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5613         new epoll_create1 interface.
5614         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5615         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5616         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5618         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5619         (NS_GET32): Likewise.
5621         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5622         syscalls, too.
5624         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5625         use the AT_EXECFN value if it is no absolute path.
5626         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5627         __ASSUME_AT_EXECFN.
5629         * Versions.def: Add GLIBC_2.9 to libresolv.
5630         * include/resolv.h: Remove hidden proto declarations for __ns_*
5631         functions.  Add them for __dn_count_labels and __p_secstodate.
5632         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5633         Define ns_msg_getflags macro here.
5634         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5635         and __p_secstodate.
5636         * resolv/Versions: Export functions from <arpa/nameser.h> from
5637         libresolv in version GLIBC_2.9.
5638         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5639         hidden definitions.
5640         * resolv/ns_netint.c: Likewise.
5641         * resolv/ns_parse.c: Likewise.
5642         * resolv/ns_print.c: Likewise.
5643         * resolv/ns_samedomain.c: Likewise.
5644         * resolv/ns_ttl.c: Likewise.
5645         * resolv/arpa/nameser_compat.h: Likewise.
5646         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5647         function calls.
5648         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5649         instead of ns_get16.
5650         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5651         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5652         (gaih_getanswer_slice): Likewise.
5653         * resolv/Makefile (libresolv-routines): Add ns_date.
5654         * resolv/ns_date.c: New file.
5656         * elf/Makefile (check-localplt.out): Also check libresolv and
5657         libcrypt.
5659 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5661         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5662         __ASSUME_O_CLOEXEC.
5664 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5667         buffer passed to NSS functions.
5669         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5671         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5672         Define.
5674         * misc/syslog.c (openlog_internal): Fix compile problem.
5676 2008-07-28  Roland McGrath  <roland@redhat.com>
5678         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5680 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5682         * io/ftw.c (add_object): Remove inline to avoid warning.
5684         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5686         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5687         Use it instead of locally defined resplen2 variable.
5688         (res_nsend): Adjust for __libc_res_nsend interface change.
5689         (send_vc): Initialize *resplen2 if necessary.  Read length of
5690         package into an appropriately aligned variable.  Store converted length
5691         in new variable and use it appropriately.
5692         Add branch prediction help.
5693         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5694         and pass it on to __libc_res_nsend.  Adjust all callers.
5695         (__libc_res_nsearch): Likewise.
5696         (__libc_res_nqeurydomain): Likewise.
5697         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5698         change.
5699         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5700         Define resplen2 variable and pass it to __libc_res_nsearch and then
5701         to gaih_getanswer.
5702         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5703         Add branch prediction.
5704         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5705         (gaih_getanswer): Don't decode second slice if first one failed due
5706         to a too small buffer.  Don't let not found status of second
5707         decoder shadow results of the first.
5708         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5709         and __libc_res_nquery interface changes
5710         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5711         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5712         __libc_res_nsearch, and __libc_res_nsend.
5713         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5714         change.
5715         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5716         __libc_res_nsearch interface changes.
5718 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5720         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5722         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5723         file descriptors with close-on-exec set.
5724         (exec_comm_child): Fix the case where the write end of the pipe is
5725         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5727         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5728         * io/pipe2.c: Likewise.
5729         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5730         instead of __ASSUME_PACCEPT.
5731         * include/unistd.h: Declare __have_pipe2.
5732         * libio/iopopen.c: Implement "e" flag.
5733         * libio/Makefile (tests): Add tst-popen1.
5734         * libio/tst-popen1.c: New file.
5736         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5737         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5739 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5741         [BZ #6771]
5742         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5743         success call of _IO_SEEKOFF or calls which failed because the
5744         descriptor is for a pipe.
5746         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5747         magic number.
5749         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5751         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5752         F_SETFD use if we know fopen set the flag.
5754         * login/utmp_file.c (setutent_file): Minor optimization in case
5755         O_CLOEXEC is available.
5757 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5759         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5760         * elf/Makefile: Use pie-ccflag variable.
5761         * nscd/Makefile: Likewise.
5762         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5764 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5766         [BZ #6724]
5767         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5768         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5769         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5770         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5771         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5772         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5773         utmp32, utmpx32 and login32.
5774         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5775         versions of struct utmp functions to libc and libutil.
5776         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5777         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5778         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5779         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5780         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5781         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5782         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5783         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5784         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5785         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5786         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5787         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5788         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5789         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5790         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5791         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5792         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5793         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5794         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5795         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5796         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5797         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5799 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5801         * scripts/gen-as-const.awk: Generate more widely usable code by
5802         using 64-bit arithmetic.
5804         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5805         the same treatment as narrow output code in last patch.
5807         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5809         [BZ #6763]
5810         * elf/dl-load.c (local_strdup): Remove inline.
5811         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5812         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5813         part of the object.
5815         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5817 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5819         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5820         the new syscalls, too.
5822         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5823         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5825         [BZ #6698]
5826         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5827         parameter for end of buffer.  If temporary copy is too large use
5828         malloc.
5829         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5830         interface change.
5831         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5832         string rewrite when allocating buffer.
5834         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5835         syscalls, too.
5837         * nscd/connections.c (nscd_init): Clean up fcntl call.
5839         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5840         SOCK_NONBLOCK if possible.
5842         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5843         SOCK_CLOEXEC if available.
5845         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5846         __libc_clntudp_bufcreate_internal.
5847         * include/sys/socket.h: Declare __have_sock_cloexec.
5848         * socket/Makefile (aux): Add have_sock_cloexec.
5849         * socket/have_sock_cloexec.c: New file.
5850         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5851         __libc_clntudp_bufcreate.
5852         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5853         which takes an additional parameter.  Create socket with non-blocking
5854         mode and close-on-exec flag set, if wanted.
5855         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5856         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5857         instead of clntudp_create.  The socket has already the close-on-exec
5858         flag set if SOCK_CLOEXEC is defined.
5860 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5862         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5863         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5864         appropriate.
5865         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5866         non-blocking mode by using socket, paccept, and inotify_init1.
5868         * Versions.def (glibc): Add GLIBC_2.9.
5869         * io/Makefile (routines): Add dup3 and pipe2.
5870         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5871         * io/dup3.c: New file.
5872         * io/pipe2.c: New file.
5873         * posix/unistd.h: Declare dup3 and pipe2.
5874         * socket/Makefile (routines): Add paccept.
5875         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5876         * socket/paccept.c: New file.
5877         * socket/sys/socket.h: Declare paccept.
5878         * sysdeps/unix/syscalls.list: Add entry for dup3.
5879         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5880         epoll_create2 and inotify_init1.
5881         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5882         * sysdeps/unix/sysv/linux/paccept.c: New file.
5883         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5884         possible.
5885         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5886         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5887         inotify_init1, and pipe2 entries.
5888         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5889         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5890         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5891         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5892         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5893         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5894         SOCK_NONBLOCK.
5895         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5896         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5897         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5898         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5899         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5900         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5901         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5902         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5903         EPOLL_NONBLOCK.  Declare epoll_create2.
5904         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5905         EFD_NONBLOCK.
5906         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5907         IN_NONBLOCK.  Declare inotify_init1.
5908         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5909         SFD_NONBLOCK.
5910         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5911         TFD_NONBLOCK.
5913         * elf/elf.h: Define AT_EXECFN.
5914         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5915         LD_ORIGIN_PATH.
5916         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5917         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5918         if __ASSUME_AT_EXECFN is defined.
5919         (_dl_aux_init): Handle AT_EXECFN.
5920         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5921         for 2.6.27 and up.
5922         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5923         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5924         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5925         _dl_execfn if available and avoid compatibility code if
5926         __ASSUME_AT_EXECFN is defined.
5928         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5929         _dl_discover_osversion only for older kernels.
5931 2008-07-22  Roland McGrath  <roland@frob.com>
5933         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5935 2008-07-21  Roland McGrath  <roland@frob.com>
5937         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5938         returned too much data out of line.
5940 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5942         * locale/setlocale.c (setname): Remove inline to avoid compiler
5943         warning.
5945         [BZ #6712]
5946         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5948 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5950         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5951         doesn't manage to write anything, fail.
5953         * malloc/hooks.c (__malloc_check_init): Remove printf.
5955 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5957         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5959 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5961         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5962         from inotify.
5963         (main_loop_epoll): Likewise.
5965 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5967         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5969         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5970         if DEBUG is defined.
5972         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5973         query.  Adjust buffer size computation for padding.
5975 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5977         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5978         * stdio-common/tst-setvbuf1.c: New file.
5979         * stdio-common/tst-setvbuf1.expect: New file.
5981         [BZ #6719]
5982         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5983         when selecting fully-buffered stream.
5984         Patch by Wang Xin <wxinee@gmail.com>.
5986 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5988         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5989         (__open_2): New function.
5990         (__open64_2): New alias to __open_2.
5991         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5992         (__openat_2): New function.
5993         (__openat64_2): New alias to __openat_2.
5995 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5997         [BZ #6723]
5998         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6000 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6002         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6003         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6004         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6005         __hurd_dfail.
6006         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6007         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6008         * sysdeps/mach/hurd/send.c (__send): Likewise.
6009         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6010         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6012 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6014         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6015         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6016         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6017         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6018         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6019         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6021 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6023         [BZ #6657]
6024         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6025         of %EY.
6026         Patch by Petr Baudis.
6028 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6030         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6031         Patch by Peter Jones <pjones@redhat.com>.
6033 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6035         [BZ #6654]
6036         * stdlib/canonicalize.c (__realpath): readlink can write too much
6037         into the buffer on platforms without PATH_MAX.
6039 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6041         [BZ #6653]
6042         * posix/tst-regex.c (main): Rename to...
6043         (do_test): ... this. Remove cmdline option processing.
6044         (TIMEOUT): Define.
6045         (TEST_FUNCTION): Define.
6046         (CMDLINE_OPTIONS): Define.
6048 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6050         [BZ #5210]
6051         * configure.in: Add -Werror to -fstack-protector test to catch
6052         unsupported architectures.
6053         Patch by Gilles Esponasse <g.esp@free.fr>.
6055 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6057         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6058         getcontext returns ENOSYS.
6060 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6062         * nscd/connections.c (main_loop_poll): Fix test for read error.
6063         (main_loop_epoll): Likewise.
6065 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6067         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6068         better place so it is not called when nscd is used.
6070         * nscd/connections.c: Also recognize and handle changes to the
6071         resolver configuration file.
6073 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6075         * time/strftime.c: Pass reference to tzset_called around to handle
6076         recursive calls.
6078         [BZ #6612]
6079         * time/strftime.c (__strftime_internal): Call tzset() only
6080         when printing timezone-dependent values.
6081         Based on a patch by Petr Baudis <pasky@suse.cz>.
6083         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6084         unconditionally use second gaih_getanswer_slice result.
6086         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6087         (getaddrinfo): RES must always be non-NULL.
6089 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6091         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6092         cr[34] registers.
6093         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6094         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6095         Likewise.
6096         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6097         register.
6099 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6101         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6102         fields.
6103         * nscd/connections.c (inotify_fd): New variable.
6104         (nscd_init): Try to open an inotify descriptor.
6105         If successful, watch files for databases using inotify instead of
6106         having prune threads stat the files.
6107         (nscd_run_prune): Recognize clear_cache flag being set and call
6108         prune_cache appropriately.
6109         (main_loop_poll): Add inotify descriptor to wait set and handle the
6110         reported changes.
6111         (main_loop_epoll): Likewise.
6112         * nscd/cache.c (prune_cache): Don't stat files for databases if
6113         inotify is used.
6114         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6115         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6117         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6118         fixed-size portion of the record.
6119         * nscd/servicescache.c (cache_addserv): Likewise.
6120         * nscd/pwdcache.c (cache_addpw): Likewise.
6121         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6123 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6125         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6126         out we don't use uninitialized memory.
6128         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6129         the client.
6131 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6133         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6134         ignore T_DNAME messages.
6135         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6137 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6139         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6140         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6142 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6144         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6145         instead of portstr to nscd_getserv_r.  Patch by
6146         Roman Kagan <rkagan@mail.ru>.
6148 2008-05-26  Jim Meyering  <meyering@redhat.com>
6150         Remove more useless "if" tests before "free".
6151         * include/inline-hashtab.h (htab_delete): Likewise.
6152         * libio/freopen.c (freopen): Likewise.
6153         * libio/freopen64.c (freopen64): Likewise.
6154         * locale/programs/ld-collate.c (collate_read): Likewise.
6155         * misc/fstab.c (libc_freeres_fn): Likewise.
6156         * posix/glob.c (globfree): Likewise.
6158 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6160         * string/Makefile (strop-tests): Add memmem.
6161         * string/test-memmem.c: New file.
6162         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6163         (test_init): Size buf1 according to BUF1PAGES.
6165 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6167         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6168         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6169         (CFLAGS-scanf17.c): New.
6170         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6171         * stdio-common/scanf15.c (main): Likewise.
6172         * stdio-common/scanf16.c: New file.
6173         * stdio-common/scanf17.c: New file.
6175 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6177         * resolv/res_send.c (send_dg): If we already have one of two
6178         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6179         use the one answer insted of failing.
6181 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6183         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6184         being executed on PowerPC as the expected result exceeds IBM
6185         long double 128 __LDBL_MAX__.
6187 2008-05-21  Roland McGrath  <roland@redhat.com>
6189         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6191         * Makefile (check-data): Use $(abi-name) before other guesses.
6192         Look in $(add-ons) dirs before scripts/data/.
6193         * elf/Makefile (check-data): Likewise.
6195         * scripts/soversions.awk: Grok ABI line.
6196         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6197         Emit definition for abi-name variable.
6199 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6201         * string/endian.h: Define new fixed-size hto* and *toh macros only
6202         if [__USE_BSD].
6204         * iconvdata/Depend: Add localedata.
6206 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6208         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6210 2008-05-08  David S. Miller  <davem@davemloft.net>
6212         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6213         HIDDEN_JUMPTARGET.
6214         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6215         (__SYSCALL_CLOBBERS): Remove %g* registers.
6216         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6217         (__SYSCALL_CLOBBERS): Likewise.
6218         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6219         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6221 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6223         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6224         (CALL_ERRNO_LOCATION): Define.
6225         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6226         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6227         (CALL_ERRNO_LOCATION): Define.
6228         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6229         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6230         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6232 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6234         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6235         variable.
6237 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6239         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6240         (FIRST_FRAME_POINTER): Define.
6242 2008-05-09  David S. Miller  <davem@davemloft.net>
6244         * sysdeps/sparc/sparc64/backtrace.c: New file.
6246 2008-05-14  David S. Miller  <davem@davemloft.net>
6248         * sysdeps/sparc/machine-gmon.h: New file.
6249         * sysdeps/sparc/sparc-mcount.S: Likewise.
6250         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6251         sysdep_routines in gmon directory.
6253 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6255         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6257 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6259         * resolv/res_query.c (__libc_res_nquery): In case one of two
6260         answer was too short don't try to read that answer's header.
6262         * resolv/res_send.c (send_dg): In case of timeout and there are
6263         two queries and one has been answered, return value indicating
6264         success.
6266 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6268         * nscd/cache.c (cache_add): Take additional parameter specifying
6269         whether this is in response of a cache refill.  Check alignment
6270         of package data.  Revamp waking of pruning thread.
6271         (prune_cache): Small optimization.
6272         * nscd/nscd.h: Adjust cache_add prototypes.
6273         * nscd/aicache.c: Adjust cache_add calls.
6274         * nscd/grpcache.c: Likewise.
6275         * nscd/hstcache.c: Likewise.
6276         * nscd/initgrcache.c: Likewise.
6277         * nscd/pwdcache.c: Likewise.
6278         * nscd/servicescache.c: Likewise.
6279         * nscd/connections.c (restart): Really disable cache use before
6280         exec attempt.  If it fails, reenable cache.
6281         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6282         time to max to be able to notice concurrent cache additions.  Unlock
6283         prune_lock while performing gc.  Afterwards compute wakeup time with
6284         current wakeup_time value in mind.
6286 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6288         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6290         * nscd/mem.c (gc): Correctly determine highest used array element
6291         in mark.
6293         * nscd/mem.c (markrange): Add assert to check entries are all
6294         aligned.  Small cleanup in bitmap use.
6296         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6297         blockoff of type nscd_ssize_t.
6298         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6299         (mempoll_alloc): Record block offset and not address.
6301         * nscd/mem.c (gc): Fix test for stack overuse.
6303         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6304         more asserts.
6306         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6307         entry is available, believe it.
6309         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6310         no answers return NSS_STATUS_NOTFOUND.
6311         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6312         buffer does not have any content.
6314 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6316         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6318         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6319         lookup, don't assign canon unconditionally.
6321 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6323         * string/Makefile (distribute): Add str-two-way.h.
6325 2008-03-29  Eric Blake  <ebb9@byu.net>
6327         Rewrite string searches to O(n) rather than O(n^2).
6328         * string/str-two-way.h: New file.  For linear fixed-allocation
6329         string searching.
6330         * string/memmem.c: New implementation.
6331         * string/strstr.c: New implementation.
6332         * string/strcasestr.c: New implementation.
6334 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6336         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6337         opr.ctx_type.
6338         (calc_first): Initialize constraint field.
6339         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6340         Use search_duplicated_node to avoid loops.  Fix grammar.
6341         (duplicate_node): Merge constraint field for all node types.
6342         (calc_eclosure_iter): Look at constraint field for all node types.
6343         * posix/regex_internal.c (create_cd_newstate): Don't look at
6344         create_cd_newstate.
6346 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6348         [BZ #6428]
6349         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6351         [BZ #6442]
6352         * string/endian.h: Add macros for fixed-size endian conversion.
6353         * bits/byteswap.h: Allow inclusion from <endian.h>.
6354         * sysdeps/i386/bits/byteswap.h: Likewise.
6355         * sysdeps/ia64/bits/byteswap.h: Likewise.
6356         * sysdeps/s390/bits/byteswap.h: Likewise.
6357         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6358         * string/Makefile (tests): Add tst-endian.
6359         * string/tst-endian.c: New file.
6361         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6362         Patch by Reuben Thomas.
6364 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6366         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6368 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6370         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6372         [BZ #6461]
6373         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6374         Add missing braces.
6375         (BODY for __gconv_transform_internal_ascii): Likewise.
6377         [BZ #6472]
6378         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6379         to be treated like link-local addresses.
6380         (match_prefix): Don't treat IPv4 loopback address special when
6381         converting to v4 mapped addressed.
6383         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6384         if necessary.
6385         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6386         * posix/tst-rfc3484-2.c: Likewise.
6387         * posix/tst-rfc3484-3.c: Likewise.
6389         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6390         and SCTP.
6392         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6394         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6396         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6398 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6400         * po/lt.po: New file.  From Lituanian translation team.
6402 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6404         Introduce TLS descriptors for i386 and x86_64.
6405         * include/inline-hashtab.h: New file, copied from 2005's
6406         libiberty, with fix for memory leak imported afterwards by
6407         Glauber de Oliveira Costa.
6408         * elf/tlsdeschtab.h: New file.
6409         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6410         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6411         (CHECK_STATIC_TLS): Move to...
6412         * elf/dynamic-link.h: ... this file.
6413         (TRY_STATIC_TLS): New macro.
6414         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6415         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6416         R_386_TLS_DESC): Define.
6417         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6418         binutils.
6419         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6420         R_X86_64_TLSDESC): Define.
6421         (R_386_NUM, R_X86_64_NUM): Adjust.
6422         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6423         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6424         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6425         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6426         release tlsdesc_table.
6427         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6428         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6429         (elf_machine_rel): Handle R_386_TLS_DESC.
6430         (elf_machine_rela): Likewise.
6431         (elf_machine_lazy_rel): Likewise.
6432         (elf_machine_lazy_rela): Likewise.
6433         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6434         * sysdeps/i386/dl-tlsdesc.S: New file.
6435         * sysdeps/i386/dl-tlsdesc.h: New file.
6436         * sysdeps/i386/tlsdesc.c: New file.
6437         * sysdeps/i386/tlsdesc.sym: New file.
6438         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6439         tlsdesc_table.
6440         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6441         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6442         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6443         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6444         release tlsdesc_table.
6445         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6446         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6447         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6448         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6449         (elf_machine_rela): Likewise.
6450         (elf_machine_lazy_rel): Likewise.
6451         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6452         (__tls_get_addr): Do not declare for non-shared compiles.
6453         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6454         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6455         * sysdeps/x86_64/tlsdesc.c: New file.
6456         * sysdeps/x86_64/tlsdesc.sym: New file.
6457         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6458         tlsdesc_table for both 32- and 64-bit structs.
6460 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6462         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6463         its own function.  This reduces the frame setup costs and more.
6465 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6467         [BZ #3406]
6468         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6469         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6471 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6473         * io/openat.c (__openat_2): Also pass fd to __openat.
6474         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6475         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6477         * string/tester.c (test_memcmp): Add a few more tests.
6478         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6480 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6482         * nscd/cache.c (cache_add): Before returning with failure and this
6483         is the first use of the record, mark it as unusable.
6484         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6485         reporting a failure.
6486         * nscd/grpcache.c: Likewise
6487         * nscd/hstcache.c: Likewise.
6488         * nscd/initgrcache.c: Likewise.
6489         * nscd/pwdcache.c: Likewise.
6490         * nscd/servicescache.c: Likewise.
6492 2008-05-10  Roland McGrath  <roland@redhat.com>
6494         [BZ #6505]
6495         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6497 2008-05-08  David S. Miller  <davem@davemloft.net>
6499         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6501         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6502         (__ieee754_y0l): Likewise.
6503         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6504         (__ieee754_y1l): Likewise.
6505         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6506         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6507         frexpl and ldexpl.  math_private.h provides them and the latter
6508         is not even used.
6509         (__log1pl): Use __frexpl.
6511 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6513         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6514         prototypes.
6515         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6516         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6517         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6518         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6519         af==AF_UNSPEC.
6520         (_nss_nis_gethostbyname4_r): New function.
6521         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6522         Change to also handle af==AF_UNSPEC.
6523         (get_tablename): New function.  Use it to avoid duplication.
6524         (_nss_nisplus_gethostbyname4_r): New function.
6525         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6526         available.
6527         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6528         * nss/nss.h: Define struct gaih_addrtuple.
6529         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6530         af==AF_UNSPEC.
6531         (_nss_files_gethostbyname4_r): New function.
6532         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6533         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6534         calls.
6535         * resolv/res_query.c (__libc_res_nquery): Take two additional
6536         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6537         look up IPv4 and IPv6.
6538         Change all callers.
6539         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6540         for an additional query and answer buffer.  Pass to send_vc and
6541         send_dg.
6542         (send_vc): Send possibly two requests and receive two answers.
6543         (send_dg): Likewise.
6544         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6545         __libc_res_nquery.
6546         (_nss_dns_gethostbyname4_r): New function.
6547         (gaih_getanswer_slice): Likewise.
6548         (gaih_getanswer): Likewise.
6549         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6550         __libc_res_nquery call.
6551         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6552         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6553         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6554         available.
6556 2008-05-05  David S. Miller  <davem@davemloft.net>
6558         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6559         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6561 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6563         Fix termios bit macros.
6564         Move *DLY definitions where they belong, in termios.h.
6565         Add *[0-3] definitions.
6566         Fixes confusion between VT and FF.
6567         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6568         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6569         are already defined to avoid collision with termios.h.
6570         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6571         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6572         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6573         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6574         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6575         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6576         VTDLY, VT0, VT1): New macros.
6577         [__USE_GNU] (OLCUC): Change value of macro.
6578         [__USE_XOPEN] (OFILL): New macro.
6579         [__USE_BSD] (CRTSCTS): Change value.
6580         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6581         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6582         (B7200, B14400, B28800, B76800): New macros.
6584 2008-05-01  David S. Miller  <davem@davemloft.net>
6586         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6587         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6588         (gen-as-const-headers): Add it.
6589         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6590         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6591         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6592         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6594         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6595         six system call parameters.
6596         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6598 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6600         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6601         RUSAGE_LWP.
6602         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6603         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6605 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6607         * stdlib/tst-setcontext.c: Include unistd.h.
6609 2008-04-25  David S. Miller  <davem@davemloft.net>
6611         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6612         Pass "union semun" properly in to sys_ipc, it must be passed
6613         by value, not by reference.
6615 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6617         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6618         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6619         * nscd/connections.c (mem_in_flight): Likewise.
6621         * nscd/nscd.h (dbs): Make hidden.
6623         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6624         Avoid returning -1, return 0 instead.
6626 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6628         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6630 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6632         [BZ #5209]
6633         * sysdeps/unix/sysv/linux/times.c: New file.
6635         [BZ #5381]
6636         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6637         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6638         prototype.
6639         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6640         appropriate mem_in_flight element.
6641         (gc): Take allocations which have not yet been committed to the
6642         database into account.
6643         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6644         Reset mem_in_flight before returning.
6645         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6646         cue it up in mem_in_flight_list.
6647         * nscd/aicache.c: Adjust mempool_alloc call.
6648         * nscd/grpcache.c: Likewise.
6649         * nscd/hstcache.c: Likewise.
6650         * nscd/initgrcache.c: Likewise.
6651         * nscd/pwdcache.c: Likewise.
6652         * nscd/servicescache.c: Likewise.
6653         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6654         of -fpie.
6656         * nscd/connections.c (handle_request): Provide better error message
6657         in case SELinux forbids the service.
6659         * version.h (VERSION): Bump to 2.8.90.
6661 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6663         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6665 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6667         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6668         Also use for 32-bit.
6669         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6670         __nextafter instead of nextafter to avoid local PLT.
6671         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6672         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6674         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6676         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6677         __fe_nomask_env.
6678         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6679         <fenv_libc.h> instead of <fenv.h>.
6680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6683         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6685         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6686         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6687         function from fegetexcept and make old name weak alias.
6688         * include/fenv.h: Declare __fegetexcept.
6689         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6690         fegetexcept.
6691         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6692         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6693         to fetestexcept.
6694         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6695         instead of frexpl to avoid local PLT.
6696         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6697         ilogbl to avoid local PLT.
6698         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6699         instead of ldexpl to avoid local PLT.
6700         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6701         __roundl not roundl to avoid local PLT.
6702         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6703         local PLTs.  Use __sincosl instead of separate sinl and cosl
6704         calls.
6705         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6707         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6708         version for ppc64 to 2.4.21 since without it makecontext will fail.
6710         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6711         to the ABI in use.
6712         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6713         .__tls_get_addr.
6714         [__powerpc64__] (TLS_GD): Likewise.
6716 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6718         [BZ #4997]
6719         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6720         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6721         mantissa.
6722         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6723         Likewise.  Also account for when x is an odd number between 2^52
6724         and 2^53-1.
6725         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6726         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6727         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6728         detect aforementioned erroneous conditions.
6730 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6732         * configure.in: Check for -fno-section-anchors in addition to
6733         -fno-toplevel-reorder.
6735 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6737         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6739         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6740         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6741         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6742         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6743         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6744         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6746 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6748         [BZ #5443]
6749         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6750         * time/alt_digit.c: Likewise.
6751         * wcsmbs/wcsmbsload.c: Likewise.
6753 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6755         * version.h (VERSION): Bump to 2.8.
6757         * timzeone/asia: Update from tzdata2008b.
6758         * timezone/backward: Likewise.
6759         * timezone/europe: Likewise.
6760         * timezone/northamerica: Likewise.
6761         * timezone/southamerica: Likewise.
6762         * timezone/iso3166.tab: Likewise.
6763         * timezone/leapseconds: Likewise.
6764         * timezone/zone.tab: Likewise.
6765         * timezone/private.h: Update from tzcode2008a.
6766         * timezone/zdump.c: Likewise.
6767         * timezone/zic.c: Likewise.
6769 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6771         [BZ #5741]
6772         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6773         Define additonal Data Cache Block instruction macros.
6774         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6775         Replace dcbst with dcbf and sync with sync/isync.
6777 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6779         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6780         Always set ELF_RTYPE_CLASS_PLT.
6781         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6783 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6785         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6786         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6787         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6788         For ISA 2.01 and later replace mftb with mfspr 268.
6790 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6792         [BZ #5768]
6793         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6794         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6796 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6798         [BZ #5768]
6799         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6800         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6801         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6802         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6804 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6806         * stdlib/tst-makecontext.c (othervar): New variable.
6807         (cf): Test sign extending the argument to long.
6809 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6811         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6812         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6813         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6814         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6815         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6816         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6817         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6819 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6821         * elf/Makefile (tests): Substitute tests-vis-yes here.
6822         (tests-vis-yes): Delete.
6823         (modules-name, modules-vis-yes): Similarly.
6825 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6827         [BZ #4407]
6828         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6829         Preserve sign in signgamp when x is zero.
6831 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6833         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6834         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6835         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6836         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6837         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6838         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6840 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6842         [BZ #4314]
6843         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6844         buffers.
6846         [BZ #5209]
6847         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6848         a reserved error value.
6850         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6851         value to check for correct sign extension.
6853         [BZ #5436]
6854         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6855         Copy 64-bit parameter values even though this is not required in
6856         the standard.
6858         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6859         PC save.
6861 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6863         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6864         PC save.
6866 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6868         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6870 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6872         [BZ #5998]
6873         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6874         in line-buffered stream failed.
6875         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6877 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6879         [BZ #6024]
6880         * scripts/abi-versions.awk: If the version specified by
6881         --enable-oldest-abi is older than the first version for this
6882         architecture, use the default version.
6884         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6885         as well when ignoring the whole category.
6887 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6889         [BZ #6042]
6890         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6891         ETHERTYPE_* definitions.
6892         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6894 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6896         * stdlib/mbtowc.c (__no_r_state): Remove.
6897         (mbtowc): New static state variable.  Use it instead of
6898         __no_r_state.
6899         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6900         (__wctomb_state): New hidden variable.
6901         (wctomb): Use __wctomb_state instead of __no_r_state.
6902         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6903         (__wctomb_state): New extern decl.
6904         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6906 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6908         [BZ #5475]
6909         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6911 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6913         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6915 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6917         * po/nl.po: Update from translation team.
6919 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6921         [BZ #6007]
6922         * string/strfry.c: Handle empty strings again.
6924 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6926         [BZ #5443]
6927         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6928         before looking for translation.
6929         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6930         * locale/freelocale.c: Likewise.
6931         * locale/newlocale.c: Likewise.
6932         * locale/setlocale.c: Likewise.
6933         Based partially on a patch by ryo@np.css.fujitsu.com.
6935 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6937         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6938         acquiring wrlock.  Do conv_tab allocation while holding lock.
6939         * intl/Makefile: Add rules to build and run tst-gettext6.
6940         * intl/tst-gettext6.c: New test.
6941         * intl/tst-gettext6.sh: New file.
6943 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6945         * po/nl.po: Update from translation team.
6947         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6948         provided through st_blksize, try the default size before giving up.
6950 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6952         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6954         [BZ #5939]
6955         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6957         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6958         error message.  POSIX today does not require the messages to be in
6959         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6961         [BZ #5979]
6962         * sunrpc/auth_unix.c: Unify printed strings.
6963         * sunrpc/clnt_tcp.c: Likewise.
6964         * sunrpc/clnt_udp.c: Likewise.
6965         * sunrpc/clnt_unix.c: Likewise.
6966         * sunrpc/svc_tcp.c: Likewise.
6967         * sunrpc/svc_udp.c: Likewise.
6968         * sunrpc/svc_unix.c: Likewise.
6969         * sunrpc/xdr.c: Likewise.
6970         * sunrpc/xdr_array.c: Likewise.
6971         * sunrpc/xdr_rec.c: Likewise.
6972         * sunrpc/xdr_ref.c: Likewise.
6973         * locale/programs/ld-time.c (time_finish): Unify messages.
6974         * locale/programs/locfile.c (handle_copy): Fix typo.
6975         * nscd/nscd.c (options): Fix typo.
6977         [BZ #5995]
6978         * stdlib/strtod_l.c: Use correct sign for result in one more
6979         underflow case.
6980         Patch by Eric Blake <ebb9@byu.net>.
6982 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6984         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6985         and creat system calls.
6986         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6987         call.
6988         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6989         system calls.
6990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6991         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6992         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6994 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6996         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6997         <linux/limits.h> has defined it.
6998         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6999         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7000         headers.
7001         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7002         it instead of ARG_MAX.
7004 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7006         * posix/gai.conf: Fix comment for scope nullbits.
7007         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7008         default to 128 bits for v4 mapped addresses.
7010 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7012         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7013         ptrace call to get the ieee_instruction_pointer from the kernel.
7014         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7015         ptrace call to set the ieee_instructtion_pointer.
7016         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7017         Add comment that ieee_instruction_pointer is always 0.
7019 2008-03-09  Andreas Jaeger  <aj@suse.de>
7021         [BZ #5857]
7022         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7023         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7024         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7026         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7027         (rint_test): Likewise.
7029 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7031         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7032         call.
7033         (__nisfind_server): Similar for open readColdStartFile call.
7034         Patch partially by Jim Meyering.
7035         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7036         around internal_setent call.
7038         * po/vi.po: New Vietnamese translation.
7040         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7041         ADJ_OFFSET_SS_READ.
7043         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7044         remove CLONE_STOPPED.
7046 2008-02-10  Jim Meyering  <meyering@redhat.com>
7048         Remove useless "if" before "free":
7049         * elf/ldconfig.c (parse_conf_include): Likewise.
7050         * gmon/gmon.c (weak_alias): Likewise.
7051         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7052         * inet/rcmd.c (__validuser2_sa): Likewise.
7053         * intl/bindtextdom.c (set_binding_values): Likewise.
7054         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7055         * libio/genops.c (save_for_backup): Likewise.
7056         * libio/wgenops.c (save_for_wbackup): Likewise.
7057         * locale/programs/ld-collate.c (collate_read): Likewise.
7058         * locale/programs/linereader.c (get_string): Likewise.
7059         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7060         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7061         * resolv/res_debug.c (do_section): Likewise.
7062         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7063         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7064         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7065         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7066         * time/tzset.c (tzset_internal): Likewise.
7068 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7070         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7071         of ASSEMBLER.
7073 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7075         [BZ #5903]
7076         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7077         not stream for output file.  Open output file here.
7078         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7079         and output file name.
7080         (process_fd): Likewise.
7081         (process_file): Likewise.
7082         (main): Adjust callers of changed functions.
7083         * iconv/iconv_prog.h: Adjust prototype.
7085 2008-03-09  Andreas Jaeger  <aj@suse.de>
7087         [BZ #5753]
7088         * sysdeps/ia64/ieee754.h: Use protected namespace
7089         __BIG_ENDIAN/__LITTLE_ENDIAN.
7090         * sysdeps/ieee754/ieee754.h: Likewise.
7091         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7093 2008-03-08  Roland McGrath  <roland@frob.com>
7095         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7096         ignore a signal that came from a machine exception, treat it as a
7097         fatal core-dump signal instead.
7098         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7100         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7101         Clear DF bit in thread state's eflags.
7102         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7104 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7106         [BZ #5774]
7107         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7108         of NAN(...) sequence.
7109         * stdlib/Makefile (tests): Add tst-strtod6.
7110         * stdlib/tst-strtod6.c: New file.
7112         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7114         [BZ #5762]
7115         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7116         putting offending option character in quotes.  Clean up error
7117         messages.
7118         * po/be.po: Adjust msgstr in translation file.
7119         * po/bg.po: Likewise.
7120         * po/ca.po: Likewise.
7121         * po/cs.po: Likewise.
7122         * po/da.po: Likewise.
7123         * po/de.po: Likewise.
7124         * po/es.po: Likewise.
7125         * po/fr.po: Likewise.
7126         * po/hr.po: Likewise.
7127         * po/ko.po: Likewise.
7128         * po/nl.po: Likewise.
7129         * po/rw.po: Likewise.
7130         * po/sk.po: Likewise.
7131         * po/sv.po: Likewise.
7132         * po/tr.po: Likewise.
7133         * po/zh_CN.po: Likewise.
7134         * po/zh_TW.po: Likewise.
7136         [BZ #5760]
7137         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7138         Patch by Roland Bless <roland@bless.de>.
7140         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7141         .o file.
7142         * elf/Makefile (routines): Add dl-sysdep.
7143         (elide-routines.os): Likewise.
7145 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7147         [BZ #5786]
7148         * elf/dl-sysdep.c: Undefine ROUND after use.
7149         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7150         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7151         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7152         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7153         to ...
7154         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7155         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7156         if necessary.
7157         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7159         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7160         _dl_tls_get_addr_soft element.
7161         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7162         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7163         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7164         GLRO.
7165         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7166         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7167         of internal_function.
7169         * stdlib/Makefile (aux): Add tens_in_limb.
7170         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7171         * stdlib/tens_in_limb.c: ...here.  New file.
7173         [BZ #5778]
7174         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7175         __statfs_chown_restricted.
7176         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7177         for _PC_CHOWN_RESTRICTED.
7178         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7179         Implement __statfs_chown_restricted.
7180         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7181         _POSIX_CHOWN_RESTRICTED value to zero.
7182         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7183         defined to zero.
7185         * sysdeps/x86_64/rtld-memset.c: New file.
7187 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7189         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7191         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7192         Barcelona machine.  Make default fall through branch of
7193         __x86_64_preferred_memory_instruction check as the integer code path.
7195 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7197         * sysdeps/x86_64/cacheinfo.c
7198         (__x86_64_preferred_memory_instruction): New variable.
7199         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7201         * sysdeps/x86_64/memset.S: Rewrite.
7203 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7205         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7206         __obstack_printf_chk): New prototypes.
7207         (__vasprintf_chk, __vdprintf_chk,
7208         __obstack_vprintf_chk): Likewise.
7209         Add libc_hidden_proto.
7210         * libio/obprintf.c
7211         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7212         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7213         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7214         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7215         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7216         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7217         __obstack_vprintf_chk): New prototypes.
7218         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7219         obstack_vprintf): New inlines.
7220         * debug/dprintf_chk.c: New file.
7221         * debug/vdprintf_chk.c: New file.
7222         * debug/asprintf_chk.c: New file.
7223         * debug/vasprintf_chk.c: New file.
7224         * debug/obprintf_chk.c: New file.
7225         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7226         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7227         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7228         @@GLIBC_2.8.
7229         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7230         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7231         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7232         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7233         libc_hidden_proto.
7234         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7235         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7236         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7237         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7238         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7239         @@GLIBC_2.8.
7240         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7241         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7242         obstack_vprintf_chk.
7243         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7244         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7245         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7246         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7247         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7248         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7250 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7252         [BZ #5779]
7253         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7254         Patch by Roy Marples <roy@marples.name>.
7256         [BZ #5736]
7257         * malloc/malloc.c: Fix typo in comment.
7259         [BZ #5627]
7260         * locale/iso-639.def: Add Shuswap.
7262 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7264         [BZ #5790]
7265         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7266         overwrite *h_errnop/*errnop values from getanswer_r in case of
7267         failure.
7269 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7271         [BZ #5818]
7272         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7273         (verify_persistent_db): Remove one unnecessary test and add a new one
7274         for bad configuration.
7275         (nscd_init): Improve error reported when persistent database cannot
7276         be reused.
7277         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7278         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7279         .suggested_module and .max_db_size and case config file says the
7280         values are zero.
7281         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7283         [BZ #5854]
7284         * nis/ypclnt.c (yp_order): Fix handling of return value of
7285         do_ypcall_tr call.
7286         Patch by Jeff Moyer <jmoyer@redhat.com>.
7288         * po/fr.po: Update from translation team.
7290 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7291             Carlos O'Donell <carlos@systemhalted.org>
7293         [BZ #5012]
7294         * FAQ.in: Describe why glibc needs to be compiled with
7295         optimization.
7297 2008-02-19  Roland McGrath  <roland@redhat.com>
7299         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7301 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7303         [BZ #5737]
7304         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7305         __USE_MISC is defined.
7307 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7309         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7310         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7311         sys/timerfd.h.
7312         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7313         timerfd_gettime, timerfd_settime.
7314         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7315         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7317 2008-02-08  Roland McGrath  <roland@redhat.com>
7319         * elf/elf.h (NT_PPC_SPE): New macro.
7321 2008-02-06  Roland McGrath  <roland@redhat.com>
7323         * Makerules ($(common-objpfx)sysd-rules):
7324         Depend on $(sysdep-makeconfigs).
7326 2008-01-31  Roland McGrath  <roland@redhat.com>
7328         [BZ #5442]
7329         * configure.in: Use -print-file-name if it yields a directory,
7330         for each of include and include-fixed.
7331         * configure: Regenerated.
7333         * Makeconfig (sysd-rules-targets): New variable.
7334         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7335         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7337 2008-01-30  Roland McGrath  <roland@redhat.com>
7339         * manual/libc.texinfo: Update back-cover text.
7341         * elf/elf.h (NT_386_TLS): New macro.
7343 2008-01-29  Roland McGrath  <roland@redhat.com>
7345         * Makeconfig (sysd-rules-patterns): New variable.
7346         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7347         (check-inhibit-asm): New canned sequence, replaces ...
7348         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7349         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7350         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7351         (CFLAGS-rtld): Variable removed.
7353 2008-01-24  Roland McGrath  <roland@redhat.com>
7355         * configure.in: Let configure fragments set base_os.
7356         * configure: Regenerated.
7358 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7360         * po/ko.po: Update from translation team.
7362 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7364         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7366 2008-01-12  Andreas Jaeger  <aj@suse.de>
7368         [BZ #5040]
7369         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7370         Add EPOLLRDHUP.
7372 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7374         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7375         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7376         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7378 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7380         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7381         * elf/dl-close.c (_dl_close): Check for it.
7382         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7383         (_dl_allocate_static_tls): Likewise.
7384         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7385         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7386         to it.
7387         * elf/tst-tls16.c: New file.
7388         * elf/tst-tlsmod16a.c: New file.
7389         * elf/tst-tlsmod16b.c: New file.
7390         * elf/Makefile: Add rules to build and run tst-tls16.
7392 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7394         [BZ #5628]
7395         * bits/shm.h: Fix comment describing shmid_ds.
7396         * sysdeps/gnu/bits/shm.h: Likewise.
7397         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7398         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7399         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7400         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7401         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7402         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7403         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7404         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7405         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7407         [BZ #5607]
7408         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7409         prototypes.
7410         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7411         additional suffixes.
7412         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7413         Add optional functions mq_timedreceive and mq_timedsend.
7414         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7415         * conform/data/pthread.h-data: Fix prototype of
7416         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7417         * conform/data/semaphore.h-data: Allow time.h definitions.
7418         * conform/data/signal.h-data: Likewise.
7419         * conform/data/stdio.h-data: getw and putw are not required in v6.
7420         * conform/data/stdlib.h-data: Change setstate prototype.
7421         * conform/data/string.h-data: Fix strerror_r prototype.
7422         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7423         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7424         Fix readlink prototype.
7425         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7426         in6addr_loopback.
7427         * inet/netinet/in.h: Cleanup namespace.
7428         * posix/regex.h: Likewise.
7429         * resolv/netdb.h: Likewise.
7430         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7431         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7432         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7433         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7434         of names of in in6_addr.
7435         (default_precedence): Likewise.
7436         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7437         NULL definition.
7439 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7441         * conform/data/fmtmsg.h-data: Add missing allows.
7442         * conform/data/ftw.h-data: Likewise.
7443         * conform/data/inttypes.h-data: Likewise.
7444         * conform/data/math.h-data: Likewise.
7445         * conform/data/signal.h-data: Likewise.
7446         * conform/data/net/if.h-data: Likewise.
7447         * conform/data/netinet/in.h-data: Likewise.
7448         * conform/data/sys/socket.h-data: Likewise.
7450         [BZ #5614]
7451         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7452         (__strtok_r): Simplify.
7453         * string/tester.c (test_strtok_r): Add test case for futile search
7454         with single-character seach string.
7456 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7458         * po/ko.po: Update from translation team.
7460 2008-01-11  Andreas Jaeger  <aj@suse.de>
7462         [BZ #5600]
7463         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7464         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7465         kernel header.
7467 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7469         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7470         native interface lookup in all the relevant places.
7472 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7473             Ulrich Drepper  <drepper@redhat.com>
7475         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7476         field.  Use sockaddr_in6 for source_addr.
7477         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7478         (match_prefix): Likewise.
7479         (get_label): Likewise.
7480         (get_precedence): Likewise.
7481         (rfc3484_sort): Change to use indirect access to results array.
7482         Adjust to use of sockaddr_in6.  Replace service_order test with
7483         simple index comparison.
7484         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7485         service_order field.  Adjust qsort_t calls.  Access sorted result
7486         array indirectly through order array.
7487         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7488         * posix/tst-rfc3484-2.c: Likewise.
7489         * posix/tst-rfc3484-3.c: Likewise.
7491 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7493         [BZ #5541]
7494         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7495         pollfd structures.
7496         Patch by André Cruz.
7498         [BZ #5545]
7499         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7500         (clnt_spcreateerror): Likewise.
7502         [BZ #5553]
7503         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7504         (public_mEMALIGn): Likewise.
7505         Patch mostly by Daniel Jacobowitz.
7507 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7509         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7510         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7511         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7512         * stdlib/tst-makecontext2.c: New test.
7514 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7516         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7517         defined.
7518         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7519         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7520         transliteration hooks and REINIT_PARAMS afterwards.
7521         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7522         status.
7523         (REINIT_PARAMS): Define.
7524         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7525         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7526         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7527         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7528         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7529         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7530         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7531         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7532         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7533         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7534         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7535         * iconvdata/tst-iconv7.c: New test.
7537 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7539         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7541 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7543         [BZ #5112]
7544         * nscd/connections.c (restart): Fix condition.
7546 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7548         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7549         __ctype_toupper_loc): Add __THROW.
7551 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7553         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7554         recognition of interface family.
7556         * posix/getconf.c: Update copyright year.
7557         * nss/getent.c: Likewise.
7558         * iconv/iconvconfig.c: Likewise.
7559         * iconv/iconv_prog.c: Likewise.
7560         * elf/ldconfig.c: Likewise.
7561         * catgets/gencat.c: Likewise.
7562         * csu/version.c: Likewise.
7563         * elf/ldd.bash.in: Likewise.
7564         * elf/sprof.c (print_version): Likewise.
7565         * locale/programs/locale.c: Likewise.
7566         * locale/programs/localedef.c: Likewise.
7567         * nscd/nscd.c (print_version): Likewise.
7568         * debug/xtrace.sh: Likewise.
7569         * malloc/memusage.sh: Likewise.
7570         * malloc/mtrace.pl: Likewise.
7571         * debug/catchsegv.sh: Likewise.
7573 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7575         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7576         second lookup.
7578 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7580         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7581         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7583 2007-12-17  Roland McGrath  <roland@redhat.com>
7585         * inet/ether_line.c (ether_line): Remove unused variable.
7587 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7589         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7590         and winp.
7591         * login/openpty.c (openpty): Likewise.
7592         * login/pty.h (openpty, forkpty): Likewise.
7593         * manual/terminal.texi (openpty, forkpty): Likewise.
7595 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7597         * malloc/malloc.c (public_cALLOc): For arenas other than
7598         main_arena, count all bytes inside the mprotect_size range of the
7599         heap as uninitialized.
7601 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7603         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7604         executable stacks.
7606         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7607         mTRIm for all of them.
7608         (mTRIm): Additionally iterate over all free blocks and use madvise
7609         to free memory for all those blocks which contain at least one
7610         memory page.
7611         * malloc/tst-trim1.c: New file.
7612         * malloc/Makefile (tests): Add tst-trim1.
7614         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7616 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7618         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7619         First cast argument to long
7620         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7621         Return long.
7622         (__vdso_clock_gettime): Likewise.
7623         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7624         return long.
7626 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7628         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7629         * locale/nl_langinfo_l.c: Real implementation, copied from
7630         nl_langinfo.c.
7631         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7633 2007-12-01  Jim Meyering  <meyering@redhat.com>
7635         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7636         that would inhibit utf8-optimization of a regexp containing line-
7637         or buffer-anchors, e.g., `^', `$'.
7639 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7641         * time/bug-getdate1.c (do_test): Don't use century values which
7642         aren't valid on 32-bit systems.
7644 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7646         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7647         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7648         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7649         __strcat_g, __strncat_g): Add __asm__.
7651 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7653         [BZ #5477]
7654         * io/fchmodat.c: Fix typo in stub_warning use.
7655         Patch by Petr Salinger.
7657 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7659         * iconvdata/hp-thai8.c: New file.
7660         * iconvdata/Makefile: Add rules for hp-thai8.c.
7661         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7662         * iconvdata/gconv-modules: Likewise.
7664         [BZ #5464]
7665         * iconvdata/hp-greek8.c: New file.
7666         * iconvdata/Makefile: Add rules for hp-greek8.c.
7667         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7668         * iconvdata/gconv-modules: Likewise.
7670         [BZ #5463]
7671         * iconvdata/hp-turkish8.c: New file.
7672         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7673         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7674         * iconvdata/gconv-modules: Likewise.
7676         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7677         (shrink_heap): ... this new function.
7678         (heap_trim): Call shrink_heap instead of grow_heap.
7680         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7681         case don't call alloc_perturb.
7683 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7685         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7686         possible.
7687         * sysdeps/unix/sysv/linux/kernel-features.h
7688         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7689         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7691 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7693         [BZ #5424]
7694         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7695         * stdio-common/Makefile (tests): Add bug22.
7696         * stdio-common/bug22.c: New file.
7698         [BZ #5451]
7699         * time/getdate.c: Fix filling in default values.
7700         * time/bug-getdate1.c: New file.
7701         * time/Makefile: Add rules to build and run bug-getdate1.
7703         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7704         * iconvdata/ebcdic-es.c: Likewise.
7705         * iconvdata/ebcdic-es-a.c: Likewise.
7706         * iconvdata/ebcdic-uk.c: Likewise.
7707         * iconvdata/iso8859-16.c: Likewise.
7708         * iconvdata/viscii.c: Likewise.
7709         * iconvdata/iso8859-9e.c: Likewise.
7710         * iconvdata/Makefile: Adjust appropriately.
7712         [BZ #5428]
7713         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7714         __need_wint_t.
7716 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7718         [BZ #5427]
7719         * iconvdata/hp-roman9.c: New file.
7720         * iconvdata/Makefile: Add rules for hp-roman9.c.
7721         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7722         * iconvdata/gconv-modules: Likewise.
7724         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7725         * iconvdata/Makefile: Adjust appropriately.
7727         [BZ #5441]
7728         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7729         structure, it's allocated with alloca.
7730         * stdio-common/Makefile (tests): Add bug21.
7731         * stdio-common/bug21.c: New file.
7733 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7735         [BZ #5452]
7736         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7737         keyword for gcc's braced-groups.
7739 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7741         [BZ #5454]
7742         * inet/ether_line.c: Strip hostname of whitespaces.
7743         * inet/Makefile (tests): Add tst-ether_line.
7744         * inet/tst-ether_line.c: New file.
7746 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7748         [BZ #5439]
7749         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7751         [BZ #5435]
7752         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7754         * stdlib/tst-setcontext.c: Catch the case where the links gets
7755         messed up and we do not reach main again.
7757         * po/ca.po: Update from translation team.
7759 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7761         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7762         * posix/regex.h (REG_ENOSYS): Likewise.
7763         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7765 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7767         * nscd/nscd.h (MAX_STACK_USE): Define.
7768         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7769         (gc): Initialize stack_used based on allocation in prune_cache.
7770         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7771         Clear array before use.
7773         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7774         memory allocation failed.
7775         * nscd/hstcache.c (cache_addhst): Likewise.
7776         * nscd/grpcache.c (cache_addgr): Likewise.
7777         * nscd/servicescache.c (cache_addserv): Likewise.
7778         * nscd/pwdcache.c (cache_addpw): Likewise.
7779         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7781 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7784         and creat system calls.
7786         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7788 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7790         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7791         Add netiucv/iucv.h.
7792         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7793         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7794         protocol.
7795         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7796         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7797         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7799 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7801         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7802         strncat): Define as macros to avoid compile errors.
7804         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7805         creat entries.
7807 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7809         [BZ #5382]
7810         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7811         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7812         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7813         overflow it.
7814         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7816         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7817         Return zero in case the thread library is not NPTL.
7819         [BZ #5375]
7820         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7821         initializing interface list.
7823         [BZ #5378]
7824         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7825         use result of nss_getgrgid_r if nothing was found.  For other
7826         error return with a failure.
7827         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7829         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7830         macro name.
7832 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7834         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7835         (get_scope): For IPv4 scope, use scopes table.
7836         (fini): Free scopes table if necessary.
7837         (free_scopelist): New function.
7838         (scopecmp): New function.
7839         (gaiconf_init): Also handle scopev4 entries.
7840         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7841         * posix/tst-rfc3484-2.c (do_test): Likewise.
7842         * posix/gai.conf: Document scopev4 defaults.
7843         * posix/Makefile (tests): Add tst-rfc3484-3.
7844         * posix/tst-rfc3484-3.c: New file.
7846         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7847         Teredo tunnels.
7848         * posix/gai.conf: Update for current default tables.
7850 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7852         * po/tr.po: Update from translation team.
7854 2007-11-18  Roland McGrath  <roland@frob.com>
7856         * manual/arith.texi (Remainder Functions): Spelling fix.
7857         From Shaun Silk <genix@mysoul.com.au>.
7859         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7861 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7863         * po/zh_CN.po: Update from translation team.
7865         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7866         Add sys/signalfd.h and sys/eventfd.h.
7868 2007-11-15  Bruno Haible  <bruno@clisp.org>
7870         [BZ #5346]
7871         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7872         union.
7873         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7874         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7875         it needs only fixed stack space. Delay the initialization of
7876         msgid_len until it is needed.
7878 2007-11-15  Andreas Jaeger  <aj@suse.de>
7880         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7881         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7883 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7885         * po/ko.po: Update from translation team.
7887 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7889         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7890         significantly.  The device type is also part of the ifinfomsg data.
7892         * po/sv.po: Update from translation team.
7893         * po/nl.po: Likewise.
7895         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7896         to wake up in 24 hours.
7898         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7900 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7902         * po/cs.po: Update from translation team.
7903         * po/pl.po: Likewise.
7905         * include/ifaddrs.h: Remove in6ai_temporary.
7906         (struct in6addrinfo): Add index element.
7907         Declare __check_native.
7908         * inet/Makefile (aux): Add check_native.
7909         * sysdeps/unix/sysv/linux/check_native.c: New file.
7910         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7911         IFA_F_TEMPORARY.  Pass back ifa_index.
7912         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7913         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7914         call __check_native if necessary.
7915         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7916         to sort addresses.  Pass information about the results.
7917         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7918         of rfc3484_sort interface.
7919         * posix/tst-rfc3484-2.c: Likewise.
7921         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7922         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7923         for _quicksort.
7924         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7925         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7926         on as third parameter to compare function and _quicksort.
7927         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7928         to the compare function.
7929         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7930         * Versions.def: Add GLIBC_2.8 for libc.
7932         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7933         * posix/tst-rfc3484-2.c: Likewise.
7935         * include/kernel-features.h: Moved to...
7936         * sysdeps/mach/hurd/kernel-features.h: ...here.
7938 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7940         * sysdeps/i386/i586/memcpy_chk.S: New file.
7941         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7942         * sysdeps/i386/i586/memset_chk.S: Likewise.
7944 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7946         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7947         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7948         list of interfaces.  Also store prefix length.
7949         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7950         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7951         prefix if source and destination address are in the same subnet.
7952         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7953         Always look for matching record in in6ai list.
7954         Correct source_addr_len value for IPv6->IPv4 converted records.
7956 2007-11-11  Roland McGrath  <roland@frob.com>
7958         * include/kernel-features.h: New file.
7960 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7962         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7963         complications for 64-bit platforms.
7965         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7966         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7967         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7968         open64_2.
7969         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7970         entries.
7971         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7972         * sysdeps/wordsize-64/alphasort.c: New file.
7973         * sysdeps/wordsize-64/alphasort64.c: New file.
7974         * sysdeps/wordsize-64/fseeko.c: New file.
7975         * sysdeps/wordsize-64/fseeko64.c: New file.
7976         * sysdeps/wordsize-64/ftello.c: New file.
7977         * sysdeps/wordsize-64/ftello64.c: New file.
7978         * sysdeps/wordsize-64/ftw.c: New file.
7979         * sysdeps/wordsize-64/ftw64.c: New file.
7980         * sysdeps/wordsize-64/iofgetpos.c: New file.
7981         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7982         * sysdeps/wordsize-64/iofopen.c: New file.
7983         * sysdeps/wordsize-64/iofopen64.c: New file.
7984         * sysdeps/wordsize-64/iofsetpos.c: New file.
7985         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7986         * sysdeps/wordsize-64/lockf.c: New file.
7987         * sysdeps/wordsize-64/lockf64.c: New file.
7988         * sysdeps/wordsize-64/mkostemp.c: New file.
7989         * sysdeps/wordsize-64/mkostemp64.c: New file.
7990         * sysdeps/wordsize-64/mkstemp.c: New file.
7991         * sysdeps/wordsize-64/mkstemp64.c: New file.
7992         * sysdeps/wordsize-64/scandir.c: New file.
7993         * sysdeps/wordsize-64/scandir64.c: New file.
7994         * sysdeps/wordsize-64/tmpfile.c: New file.
7995         * sysdeps/wordsize-64/tmpfile64.c: New file.
7996         * sysdeps/wordsize-64/versionsort.c: New file.
7997         * sysdeps/wordsize-64/versionsort64.c: New file.
7998         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7999         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8000         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8001         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8002         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8003         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8004         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8005         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8006         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8007         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8008         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8009         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8011         * crypt/sha256-crypt.c: Fix a comment.
8012         * crypt/sha512-crypt.c: Likewise.
8014 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8016         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8018 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8020         [BZ #5277]
8021         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8022         because output buffer is too small break, don't loop.
8023         * iconvdata/Makefile (tests): Add bug-iconv6.
8024         * iconvdata/bug-iconv6.c: New file.
8026 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8028         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8029         with size_t type.
8030         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8031         size_t.  Add casts where needed.
8033         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8034         old headers, don't call avc_has_perm if we don't have the
8035         permission information.
8037 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8039         * elf/rtld.c (dl_main): Use the page size to find the map start.
8041 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8043         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8044         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8046         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8047         when the lookup call failed.
8049         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8050         Add prune_cond and wakeup_time.
8051         (CACHE_PRUNE_INTERNAL): Define.
8052         Update declarations of prune_cache and setup_thread.
8053         * nscd/connections.c (dbs): Update initializers.
8054         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8055         (nscd_init): Default number of threads is now 4.
8056         (invalidate_cache): Take lock before calling prune_cache.
8057         (handle_request): If SELinux forbids the request, say so.
8058         (readylist_cond): Use static initializer.
8059         (nscd_run_prune): New function.  Used only by pruning threads.
8060         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8061         here.
8062         (fd_ready): Update nscd_run reference.
8063         (start_threads): No need to initialize readylist_cond.
8064         Start pruning threads separately.
8065         * nscd/nscd_setup_thread.c: Change return value type to int and always
8066         return 0.
8067         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8068         to int and return nonzero value if we can use the TID address hack.
8069         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8070         the database is later than the new entry's timeout, update the
8071         wakeup time and wake the cleanup thread.
8072         (prune_cache): Return seconds the next entry in the database is still
8073         valid.  Remove locking for pruning here.
8074         * nscd/nscd.conf: Document default number of threads.
8076 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8078         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8079         stack is properly aligned for the target function.
8080         Correct unwind info.
8082         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8083         when using auditing libraries.
8085 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8087         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8088         _nss_dns_getnetbyaddr2_r.
8089         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8090         extra parameter to getanswer_r.
8091         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8092         _nss_dns_getnetbyaddr2_r.
8094         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8095         gethstbynm3_r.
8096         * nscd/gethstbynm2_r.c: Remove.
8097         * nscd/gethstbynm3_r.c: New file.
8098         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8099         __gethostbyaddr_r.
8100         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8101         __gethostbyaddr_r compatibility wrapper.
8102         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8103         determining timeout of entry.
8104         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8105         __gethostbyaddr2_r.
8106         (addhstbyX): Pass reference to variable for TTL to lookup and
8107         cache_addhst.
8108         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8109         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8110         and __nss_next2.  Remove __nss_services_lookup.
8111         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8112         Add compat wrapper.
8113         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8114         __nss_next2.
8115         * nss/getXXent_r.c: Likewise.
8116         * nss/getnssent_r.c: Likewise.
8117         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8118         does not exist in module, try the optional second name.
8119         (__nss_next2): New function.
8120         (__nss_next): Now wrapper around __nss_next2.
8121         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8122         Declare __nss_next2.
8123         Adjust definition of db_lookup_function type.
8124         * nss/service-lookup.c: Define NO_COMPAT.
8125         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8126         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8127         * inet/ether_ntoh.c: Likewise.
8128         * sunrpc/netname.c: Likewise.
8129         * sunrpc/publickey.c: Likewise.
8130         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8131         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8132         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8133         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8134         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8136         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8138         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8140 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8142         [BZ #5204]
8143         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8144         * crypt/sha512c-test.c: Likewise.
8146         [BZ #5225]
8147         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8148         to keep track of end of %[ format string element.
8149         * stdio-common/Makefile (tests): Add bug20.
8150         * stdio-common/bug20.c: New file.
8152         [BZ #5222]
8153         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8154         path elements in counting mode.
8156 2007-10-27  Andreas Jaeger  <aj@suse.de>
8158         [BZ #5040]
8159         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8161         [BZ #3112]
8162         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8163         (__cleanup): Free shared library when exiting.
8164         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8165         (__cleanup): Free shared library when exiting.
8167 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8169         [BZ #2549]
8170         * math/libm-test.inc (check_float_internal): Support
8171         denormalized return.
8173 2007-10-23  Andreas Jaeger  <aj@suse.de>
8175         [BZ #5208]
8176         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8177         __LONG_LONG_PAIR to handle little endian byte order.
8178         Suggested by abhishekrai@google.com
8180 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8182         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8184 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8186         * nscd/cache.c (prune_cache): Move test for modified file outside
8187         of locking.
8189 2007-10-21  Andreas Jaeger  <aj@suse.de>
8191         * manual/texinfo.tex: Update to latest version.
8193         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8195         * manual/arith.texi (Status bit operations): Fix formatting.
8197         * manual/errno.texi (Error Messages): Fix formatting.
8199         * manual/sysinfo.texi (System Parameters): Fix formatting.
8201         * manual/libc.texinfo: Update VERSION and UPDATED.
8203 2007-10-19  Roland McGrath  <roland@redhat.com>
8205         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8207 2007-10-06  David S. Miller  <davem@davemloft.net>
8209         * configure.in: Add sparcv9v2 and sparc64v2.
8210         * scripts/config.sub: Likewise.
8211         * configure: Regenerate.
8212         * elf/elf.h (HWCAP_SPARC_N2): New.
8213         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8214         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8215         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8216         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8217         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8218         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8219         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8221 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8223         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8224         even if the poll result indicates there is data to read.
8225         Patch by Jeff Moyer <jmoyer@redhat.com>.
8227 2007-10-18  Roland McGrath  <roland@redhat.com>
8229         * elf/elf.h (NT_PPC_VMX): New macro.
8231 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8233         * version.h (VERSION): Set to 2.7.90.
8235 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8237         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8238         weak_alias.
8240 2007-10-17  Roland McGrath  <roland@frob.com>
8242         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8243         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8245 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8247         * version.h (VERSION): Bump to 2.7.
8248         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8250         [BZ #5186]
8251         * time/tzset.c (__tz_convert): Don't force testing for a change of
8252         TZ if not called from localtime.  But then also see whether the
8253         file changed, in case __use_tzfile is set.
8255         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8256         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8257         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8258         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8259         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8260         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8261         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8262         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8264 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8266         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8267         and admin selects to be able to replace the gai.conf file, lock
8268         data structures around the qsort call.
8270 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8272         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8273         new memset.
8274         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8275         too high for the improvements.  Implement bzero unconditionally for
8276         use in libc.
8278 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8279             Jakub Jelinek  <jakub@redhat.com>
8281         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8282         even when time_t is 32-bit.
8283         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8284         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8285         always set after the search.
8287 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8289         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8290         unreachable code on 32-bit machines.
8292 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8294         [BZ #5184]
8295         * time/strftime_l.c: Include stdbool.h.
8296         (my_strftime): New wrapper, old function renamed to...
8297         (__strftime_internal): ... new function.  Add tzset_called
8298         argument, pass it down to recursive calls, don't call tzset ()
8299         if already true, set to true after call to tzset ().
8301 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8303         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8304         into account when copying TZ string.
8306 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8308         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8309         num_transition rather than num_transitions - 1.
8311 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8313         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8314         PIC indirect jump.
8316         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8317         a local label rather than HIDDEN_JUMPTARGET.
8319 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8321         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8322         (init_cacheinfo): Initialize it.
8323         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8324         Always define bzero.
8325         Remove non-glibc code.
8326         * sysdeps/x86_64/bzero.S: Make an empty file.
8328 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8330         * sysdeps/x86_64/cacheinfo.c
8331         (__x86_64_preferred_memory_instruction): New.
8332         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8334         * sysdeps/x86_64/memset.S: Rewrite.
8336 2007-10-15  Roland McGrath  <roland@redhat.com>
8338         * po/libc.pot: Regenerated.
8340 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8342         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8343         pointers.
8345         [BZ #3425]
8346         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8347         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8348         address record to T_A/T_AAAA requests.
8350 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8352         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8354         * posix/glob.c: Add some branch prediction throughout.
8356         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8357         read from nscd.
8359         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8360         service_order.
8361         (rfc3484_sort): Make sure that even if qsort doesn't support
8362         stable sorting out sorting here is stable by comparing service_order.
8363         (getaddrinfo): Initialize service_order.
8364         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8365         service_order field to sorting structure.
8366         * posix/tst-rfc3484-2.c (do_test): Likewise.
8368         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8369         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8370         __tzset_parse_tz and updating of daylight, timezone, tzname into
8371         update_vars.
8372         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8373         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8374         happens in __tz_compute.
8375         * time/tzfile.c (__tzfile_read): Also read TZ string.
8376         (find_transition): Fold into __tzfile_compute.
8377         (__tzfile_compute): For times beyond the last transition try to
8378         use the TZ string.
8379         * timezone/tst-timezone.c: Information in daylight and tzname does
8380         change for Asia/Tokyo timezone with more concrete information.
8381         Remove the test.
8383         * include/stdio.h: Add libc_hidden_proto for ftello.
8384         * libio/ftello.c: Add libc_hidden_def.
8386         [BZ #1140]
8387         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8388         on the specified time and not the last entries in the file.  Move
8389         code to determine tzname[] to...
8390         (find_transition): ...here.  Add ugly guess for times before the
8391         first transition.
8393 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8395         [BZ #3195]
8396         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8397         no entry.
8398         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8399         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8400         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8401         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8403         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8404         read mechanism when there are no group members and avoid no-op
8405         read syscall in this case.
8407         [BZ #3242]
8408         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8409         (__readall): If reading failed due to EAGAIN error wait a bit
8410         and possibly try again.
8411         (__readvall): Likewise.
8413 2007-10-13  Bruno Haible  <bruno@clisp.org>
8415         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8416         when we cannot recode the message.
8418 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8420         [BZ #4359]
8421         * libio/__freading.c (__freading): Don't return true for
8422         write-only streams.  For read/write streams, check whether we
8423         performed a read operation already.
8424         * libio/Makefile (tests): Add tst-ext2.
8425         * libio/tst-ext2.c: New file.
8427 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8429         * locale/programs/repertoire.c (repertoire_read): Always free
8430         memory for repertoire file name [Coverity CID 270].
8432         * elf/cache.c (save_aux_cache): Free memory allocated for
8433         temporary file name [Coverity CID 267].
8435 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8437         * misc/Makefile (headers): Add bits/error.h.
8439 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8441         * posix/fnmatch_loop.c: Take rule index returned as part of
8442         findidx return value into account when accessing weights.
8443         * posix/regcomp.c: Likewise.
8444         * posix/regexec.c: Likewise.
8446         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8447         (skip_to): Fix problems with parameter of elifdef/elifndef.
8449 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8451         * iconv/gconv_simple.c: Add some branch prediction.
8453 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8455         * locale/programs/ld-collate.c (collate_read): If ignore_content
8456         and nowtok is tok_define, eat any tok_eol tokens.
8458 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8460         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8461         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8463         * inet/netinet/in.h: Don't include bits/socket.h.
8464         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8465         macro.
8466         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8468 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8470         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8471         and tok_elifndef.
8472         * locale/programs/locfile-kw.gperf: Likewise.
8473         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8475 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8477         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8478         (__find_specwc): Change into __extern_always_inline function.
8479         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8480         (__parse_one_specmb): Remove ps argument.
8481         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8482         Adjust __find_specmb and __parse_one_specmb callers.
8483         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8484         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8485         Removed.
8486         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8487         caller.
8489 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8491         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8492         with some Pentium Ds.
8494 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8496         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8497         __read not read.
8498         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8499         __write not write.
8501 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8503         [BZ #181]
8504         * locale/C-time.c: Set week_1stday data to 19971201.
8505         * locale/programs/ld-time.c (time_finish): Default for
8506         first_workday is Monday.
8508         [BZ #2633]
8509         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8511         [BZ #5103]
8512         * posix/glob.c (glob): Recognize patterns starting \/.
8513         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8514         (main): Add test for pattern starting \/.
8516         * misc/error.h: Use __const instead of const.
8517         * misc/bits/error.h: Likewise.
8519 2007-10-07  Andreas Jaeger  <aj@suse.de>
8521         * include/bits/error.h: New file.
8523         * misc/bits/error.h (error_at_line): Fix prototype.
8525 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8527         [BZ #3924]
8528         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8529         more little bugs in creating the stack frame when pltexit has to
8530         be called.
8532         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8533         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8535         [BZ #4407]
8536         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8537         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8538         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8539         * math/libm-test.inc: Add test for this case.
8541         [BZ #5010]
8542         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8543         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8544         map service succeeded.
8545         (svc_is_mapped): New function.
8546         (svc_unregister): Use it before trying to unmap service.
8548 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8550         * timezone/zic.c: Update from tzcode2007h.
8552         [BZ #5063]
8553         * timezone/africa: Update from tzdata2007h.
8554         * timezone/antarctica: Likewise.
8555         * timezone/asia: Likewise.
8556         * timezone/australasia: Likewise.
8557         * timezone/europe: Likewise.
8558         * timezone/leapseconds: Likewise.
8559         * timezone/northamerica: Likewise.
8560         * timezone/southamerica: Likewise.
8561         * timzeone/zone.tab: Likewise.
8563         [BZ #5104]
8564         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8566         [BZ #5113]
8567         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8568         avoid warning with -Wconversion.
8569         (__strndup): Likewise.
8570         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8572         [BZ #5112]
8573         * nscd/connections.c (restart): Don't resync if database is
8574         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8576         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8577         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8579         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8580         evetnfd_read, eventfd_write.
8581         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8582         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8583         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8584         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8585         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8586         eventfd_write for GLIBC_2.7.
8588         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8589         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8590         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8591         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8593 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8595         * stdlib/msort.c: Include stdint.h.
8596         (struct msort_param): New type.
8597         (msort_with_tmp): Use struct msort_param pointer for unchanging
8598         parameters.  Add optimized handling for several common sizes
8599         and indirect sorting mode.
8600         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8601         sorting.
8602         Suggested by Belazougui Djamel .
8604         * stdlib/Makefile (tests): Add tst-qsort2.
8605         * stdlib/tst-qsort2.c: New test.
8607 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8609         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8610         for dup2 in case another thread races with the current one.  Retry
8611         in this case.
8613         * misc/error.h: Remove support for use outside of libc.  We have to
8614         include <features.h> now.  Include <bits/error.h> if possible.
8615         * misc/bits/error.h: New file.
8617 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8619         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8620         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8621         __extern_always_inline functions unconditionally, drop macros.
8623         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8624         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8625         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8627         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8628         add __artificial__ attribute.
8630 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8632         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8633         backward to forward direction.
8635         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8637         [BZ #645]
8638         * locale/programs/ld-collate.c (collate_finish): Compare against last
8639         used section which is known to have rules defined.
8640         (collate_read): After order_start, correctly record order of sections
8641         and queue sections up.
8643 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8645         [BZ #5071]
8646         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8647         the same number of pages.
8648         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8650         * locale/programs/ld-collate.c (collate_read): After initial copy
8651         statement, continue in state 0.
8653         * include/stdio_ext.h (__fsetlocking): Define as macro.
8655 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8657         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8658         of section order.
8660         * po/pt_BR.po: Fix typo.
8662 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8664         * iconvdata/Makefile (modules): Add ISO8859-9E.
8665         (distribute): Add iso8859-9e.c.
8666         (gen-8bit-gap-modules): Add iso8859-9e.
8667         * iconvdata/iso8859-9e.c: New file.
8668         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8669         * iconvdata/TESTS: Likewise.
8670         * iconvdata/tst-tables.sh: Likewise.
8672         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8674         * locale/iso-639.def: Add several new entries.
8676 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8678         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8679         void * pointers instead of struct link_map **.
8680         (_dl_scope_free): Change argument type to void *.
8681         * include/link.h (struct link_map): Change type of l_reldeps
8682         to struct link_map_reldeps, move l_reldepsact into that
8683         struct too.
8684         * elf/dl-deps.c: Include atomic.h.
8685         (_dl_map_object_deps): Only change l->l_initfini when it is
8686         fully populated, use _dl_scope_free for freeing it.  Optimize
8687         removal of libs from reldeps by using l_reserved flag, when
8688         some removal is needed, allocate a new list instead of
8689         reallocating and free the old with _dl_scope_free.  Adjust
8690         for l_reldeps and l_reldepsact changes.
8691         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8692         searching in l_initfini and l_reldeps without holding dl_load_lock.
8693         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8694         l_reldepsact changes.
8695         * elf/dl-close.c (_dl_close_worker): Likewise.
8696         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8698 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8700         * iconvdata/Makefile (modules): Add KOI8-RU.
8701         (distribute): Add koi8-ru.c.
8702         (gen-8bit-gap-modules): Add koi8-ru.
8703         * iconvdata/koi8-ru.c: New file.
8704         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8705         * iconvdata/TESTS: Likewise.
8706         * iconvdata/tst-tables.sh: Likewise.
8708         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8710 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8712         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8713         with __warning__/__error__ attributes.
8714         (__warnattr): Define.
8715         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8716         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8717         __warnattr.
8718         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8719         of __*_chk if compile time detectable overflow is found.
8720         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8721         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8722         with __warnattr.
8723         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8724         instead of __*_chk if compile time detectable overflow is found.
8725         (__gets_alias): Rename to...
8726         (__gets_warn): ... this.  Add __warnattr.
8727         (gets): Call __gets_warn instead of __gets_alias.
8728         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8729         aliases with __warnattr.
8730         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8731         time detectable overflow is found.
8732         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8733         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8734         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8735         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8736         __getdomainname_chk_warn): New aliases with __warnattr.
8737         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8738         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8739         __*_chk_warn instead of __*_chk if compile time detectable overflow
8740         is found.
8741         (__getgroups_chk): Rename argument to __listlen from listlen.
8742         (__getwd_alias): Rename to...
8743         (__getwd_warn): ... this.  Add __warnattr.
8744         (getwd): Call __getwd_warn instead of __getwd_alias.
8745         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8746         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8747         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8748         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8749         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8750         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8751         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8752         compile time detectable overflow is found.
8753         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8754         to use __*_chk or not.
8755         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8756         in comparisons which function should be called and in __*_chk*
8757         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8758         detectable overflow is found.
8759         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8760         __*_chk argument.
8761         * debug/tst-chk1.c (do_test): Add a few more tests.
8763 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8765         [BZ #5058]
8766         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8767         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8768         (_nl_unload_domain): Finalize conversions_lock.
8769         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8770         handling table of known conversions.
8772 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8774         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8775         close_not_cancel_no_status instead of close.
8777 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8779         [BZ #5028]
8780         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8781         nrules != 0 for multibyte chars.
8783 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8785         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8786         Provide better error message in case the type is unknown.
8788         [BZ #4963]
8789         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8790         * string/stratcliff.c: Make usable to test wide char functions.
8791         * wcsmbs/wcsatcliff.c: New file.
8792         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8794         [BZ #4972]
8795         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8796         (distribute): Add mac-centraleurope.c.
8797         (gen-8bit-gap-modules): Add mac-centraleurope.
8798         * iconvdata/mac-centraleurope.c: New file.
8799         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8800         * iconvdata/TESTS: Likewise.
8801         * iconvdata/tst-tables.sh: Likewise.
8803         [BZ #5043]
8804         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8806 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8808         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8809         from __x86_64_core_cache_size_half.
8810         (init_cacheinfo): Compute shared cache size for AMD processors with
8811         shared L3 correctly.
8812         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8813         name change.
8814         Patch in large parts by Evandro Menezes.
8816 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8818         * elf/dl-lookup.c (add_dependency): Handle failing memory
8819         allocation for dependency list.  Remove unnecessary check.
8821         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8822         open/close when determining source addresses.
8824         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8825         sha512-crypt, and sha512.
8826         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8827         (distribute): Add sha256.h and sha512.h.
8828         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8829         and call the appropriate code.
8830         * crypt/sha256-crypt.c: New file.
8831         * crypt/sha256.c: New file.
8832         * crypt/sha256.h: New file.
8833         * crypt/sha256c-test.c: New file.
8834         * crypt/sha256test.c: New file.
8835         * crypt/sha512-crypt.c: New file.
8836         * crypt/sha512.c: New file.
8837         * crypt/sha512.h: New file.
8838         * crypt/sha512c-test.c: New file.
8839         * crypt/sha512test.c: New file.
8841 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8843         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8844         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8845         __syslog_chk.
8847 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8849         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8850         %as in fscanf format strings.
8852         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8853         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8854         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8855         Likewise.
8856         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8857         Likewise.
8859         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8860         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8861         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8862         * elf/dl-sym.c (do_sym): Likewise.
8863         * include/link.h (struct link_map): Add l_serial field.
8864         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8865         * elf/dl-lookup.c (add_dependency): Add flags argument.
8866         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8867         flags, use THREAD_GSCOPE_RESET_FLAG before and
8868         THREAD_GSCOPE_SET_FLAG after
8869         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8870         Don't dereference map until it has been found on some list.
8871         If map->l_serial changed, return -1.
8873 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8875         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8876         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8877         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8878         libc_hidden_proto.
8879         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8880         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8881         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8882         add libc_hidden_proto.
8883         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8884         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8885         conformance requested.
8886         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8887         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8888         conformance requested.
8889         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8890         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8891         conformance requested.
8892         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8893         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8894         ISO C99 or POSIX conformance requested.
8895         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8896         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8897         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8898         and __isoc99_vsscanf@@GLIBC_2.7.
8899         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8900         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8901         (tests): Add scanf14.
8902         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8903         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8904         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8905         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8906         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8907         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8908         from using internal headers.
8909         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8910         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8911         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8912         and __isoc99_vswscanf@@GLIBC_2.7.
8913         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8914         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8915         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8916         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8917         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8918         * stdio-common/isoc99_scanf.c: New file.
8919         * stdio-common/isoc99_vsscanf.c: New file.
8920         * stdio-common/isoc99_vscanf.c: New file.
8921         * stdio-common/isoc99_vfscanf.c: New file.
8922         * stdio-common/isoc99_fscanf.c: New file.
8923         * stdio-common/isoc99_sscanf.c: New file.
8924         * wcsmbs/isoc99_fwscanf.c: New file.
8925         * wcsmbs/isoc99_vswscanf.c: New file.
8926         * wcsmbs/isoc99_swscanf.c: New file.
8927         * wcsmbs/isoc99_wscanf.c: New file.
8928         * wcsmbs/isoc99_vwscanf.c: New file.
8929         * wcsmbs/isoc99_vfwscanf.c: New file.
8930         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8931         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8932         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8933         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8934         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8935         * stdio-common/scanf14.c: New test.
8936         * stdio-common/scanf15.c: New test.
8937         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8938         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8939         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8940         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8941         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8942         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8943         __nldbl___isoc99_scanf@@GLIBC_2.7,
8944         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8945         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8946         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8947         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8948         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8949         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8950         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8951         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8952         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8953         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8954         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8955         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8956         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8957         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8958         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8959         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8960         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8961         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8962         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8963         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8964         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8965         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8966         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8967         functions.
8968         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8969         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8970         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8971         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8972         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8973         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8974         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8975         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8976         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8977         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8978         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8979         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8981         * stdio-common/Makefile (tests): Add scanf13.
8982         (scanf13-ENV): New.
8983         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8984         m modifier followed by l.
8985         (STRING_ARG): Add width argument.
8986         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8987         <case L_('C')>: Handle %mlc and %mC.
8988         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8989         arguments.
8990         * stdio-common/scanf13.c: New test.
8992         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8993         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8995 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8997         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8998         type and __THROW marker of splice, vmsplice, and tee.
8999         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9000         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9002         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9003         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9004         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9005         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9006         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9007         as cancellation points.
9009 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9011         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9012         parse more than three parts of the version number.
9014 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9016         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9017         modifier.  Patch by Jakub Jelinek.
9019 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9021         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9022         call_fallocate in misc subdir.
9023         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9024         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9025         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9026         instead of __fallocate64.
9027         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9029 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9031         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9032         * rt/Makefile (headers): Add bits/mqueue2.h.
9033         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9034         optimizing with GCC and __va_arg_pack_len is defined.
9035         * rt/bits/mqueue2.h: New file.
9036         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9037         (mq_open): New strong_alias.
9038         (__mq_open_2): New function.
9039         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9040         (mq_open): New strong_alias.
9041         (__mq_open_2): New function.
9042         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9043         * Versions.def (librt): Add GLIBC_2.7 version.
9044         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9045         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9047         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9048         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9049         is defined rather than when not C++.
9050         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9051         __openat64_alias): New redirects.
9052         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9053         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9054         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9055         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9056         functions instead of function-like macros.
9058 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9060         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9061         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9062         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9064 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9066         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9067         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9069 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9071         * inet/tst-network.c: Increment ERRORS for failing tests.
9073 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9075         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9076         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9077         implement as __extern_always_inline function.
9078         (vsyslog): Define as __extern_always_inline function unconditionally.
9079         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9080         When __va_arg_pack is defined, implement as __extern_always_inline
9081         functions.
9082         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9083         __extern_always_inline functions unconditionally.
9084         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9085         bits/stdio2.h will be included.
9086         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9087         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9088         implement as __extern_always_inline functions.
9089         (vswprintf, vwprintf, vfwprintf): Define as
9090         __extern_always_inline functions unconditionally.
9091         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9093 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9095         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9096         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9097         attribute.
9098         * include/features.h (__USE_EXTERN_INLINES): Define only when
9099         __extern_inline is defined.
9100         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9101         is defined instead of when not __cplusplus.
9102         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9103         is defined instead of when not __cplusplus.
9104         * socket/sys/socket.h: Include bits/socket2.h when
9105         __extern_always_inline is defined instead of when not __cplusplus.
9106         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9107         is defined instead of when not __cplusplus.
9108         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9109         is defined instead of when not __cplusplus.
9110         * string/string.h: Include bits/string3.h when __extern_always_inline
9111         is defined instead of when not __cplusplus.
9112         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9113         is defined instead of when not __cplusplus.
9114         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9115         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9116         is not defined.
9117         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9118         defined __extern_always_inline instead of !defined __cplusplus.
9119         * libio/bits/stdio-ldbl.h: Likewise.
9120         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9121         * misc/bits/syslog.h (syslog): Don't define for C++.
9122         (vsyslog): Use __extern_always_inline function for C++ instead of
9123         a macro.
9124         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9125         whenever that macro is defined.
9126         (vprintf): Don't provide the inline for C++.
9127         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9128         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9129         define the macros for C++.
9130         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9131         __extern_always_inline functions for C++.
9132         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9133         stat64, lstat64, fstat64, fstatat64): Don't define if not
9134         __USE_EXTERN_INLINES.
9135         * wcsmbs/bits/wchar2.h: Fix #error message.
9136         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9137         (vswprintf, vwprintf, vfwprintf): Define using
9138         __extern_always_inline functions for C++.
9139         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9140         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9141         strncpy, strcat, strncat): Define as __extern_always_inline
9142         functions instead of macros for C++.
9143         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9144         defined __extern_inline.
9145         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9146         to __extern_inline whenever that macro is defined.
9147         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9148         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9149         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9150         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9151         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9152         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9153         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9154         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9155         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9156         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9157         prototypes.  Only provide __extern_inline routines if
9158         __USE_EXTERN_INLINES.
9159         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9160         tests.
9161         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9162         For now avoid some *printf tests in C++.  Skip all testing
9163         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9164         is not.
9165         * debug/tst-chk4.cc: New file.
9166         * debug/tst-chk5.cc: New file.
9167         * debug/tst-chk6.cc: New file.
9168         * debug/tst-lfschk4.cc: New file.
9169         * debug/tst-lfschk5.cc: New file.
9170         * debug/tst-lfschk6.cc: New file.
9171         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9172         prototypes in C++.
9173         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9174         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9175         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9177 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9179         * po/cs.po: Update from translation team.
9181 2007-09-11  Roland McGrath  <roland@redhat.com>
9183         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9184         compiling.
9186 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9188         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9190 2007-09-05  Roland McGrath  <roland@redhat.com>
9192         * manual/signal.texi (Signaling Another Process): Typo fix.
9193         From Karl Berry <karl@freefriends.org>.
9195 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9197         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9198         zero if not defined.
9199         (make_request): Recognize optimistic addresses and treat them like
9200         deprecated addresses.
9201         Reported by Neil Horman <nhorman@redhat.com>.
9203 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9205         * nscd/connections.c (send_ro_fd): Also transfer file size.
9206         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9207         file size don't call fstat.
9209         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9210         ahead and map the file.  This should always be correct and we can
9211         catch problems later.
9213 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9215         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9216         prototypes.
9217         (__fread_alias, __fread_unlocked_alias): New aliases.
9218         (fread): New extern inline.
9219         (fread_unlocked): Likewise.  Undef macro before definition of
9220         the inline function.
9221         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9222         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9223         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9224         and __fread_unlocked_chk@@GLIBC_2.7.
9225         * debug/fread_chk.c: New file.
9226         * debug/fread_u_chk.c: New file.
9227         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9229 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9231         * sysdeps/unix/sysv/linux/syscalls.list
9232         (personality): Change caller to EXTRA.
9234 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9236         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9237         to keep gcc quiet.
9238         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9240         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9241         NDEBUG is defined.
9243         * Makerules: Use -p option with mkdir.
9245         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9246         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9247         (_xdr_directory_obj): Likewise.
9248         (xdr_entry_obj): Likewise.
9249         (xdr_group_obj): Likewise.
9250         (xdr_link_obj): Likewise.
9251         (xdr_table_obj): Likewise.
9252         (_xdr_nis_result): Likewise.
9253         (_xdr_ns_request): Likewise.
9254         (_xdr_ib_request): Likewise.
9255         (_xdr_nis_taglist): Likewise.
9256         (xdr_cback_data): Likewise.
9257         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9258         (xdr_ypresp_maplist): Likewise.
9260         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9262         * posix/regex_internal.h: Prevent some declarations and definitions
9263         to be seen when used in tests.
9265         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9266         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9268         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9270         * config.make.in (datarootdir): Add to shut up configure.
9272         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9273         associativity for fully-associative caches.
9275         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9276         requests.  Fill on more associativity values for L2.
9277         Patch mostly by Evandro Menezes.
9279 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9281         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9282         (_libc_vdso_platform_setup): Avoid using exported variable by using
9283         alias.
9285         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9287         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9288         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9289         defined.
9291 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9293         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9294         align stack for call if pltexit is to be used.
9296         [BZ #3924]
9297         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9298         align for function call in case pltexit has to be called later.
9300         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9301         implicit atomic operation when storing function pointer.
9302         (_dl_runtime_profile): Likewise.
9304 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9306         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9307         NIS_NOTFOUND.
9309 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9311         [BZ #4566]
9312         * string/strtok.c: Fix typo in comment.
9314         [BZ #4582]
9315         * debug/segfault.c: Fix typos in comments.
9317         [BZ #4588]
9318         * stdio-common/tempnam.c: Fix comment, it is not checked that
9319         TMPDIR points to a writable directory.
9321         [BZ #4726]
9322         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9323         memory allocated for the name server address.
9325         [BZ #4946]
9326         * nscd/connections.c (handle_request): Using sendfile always
9327         requires that mmap is used for the database.
9328         Patch by Petr Baudis <pasky@suse.cz>.
9330         [BZ #4905]
9331         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9332         suddenly has two or more addresses, ignore it and remove the old
9333         entry.
9335         [BZ #4814]
9336         * resolv/res_hconf.c: Prepare for compiling outside libc.
9337         * nscd/res_hconf.c: New file.
9338         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9339         the new file.
9340         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9341         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9343         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9345         [BZ #4925]
9346         * debug/pcprofiledump.c: Turn on internationalization by calling
9347         setlocale.  Patch mostly by Benno Schulenberg.
9349         [BZ #4936]
9350         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9351         the state.
9352         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9353         * iconvdata/bug-iconv5.c: New file.
9355 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9357         [BZ #4896]
9358         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9359         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9360         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9361         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9362         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9363         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9364         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9365         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9367 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9369         [BZ #4937]
9370         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9371         lookup loop.  Suggested by John Reiser.
9373 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9375         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9377 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9379         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9380         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9381         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9382         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9383         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9384         to...
9385         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9387 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9389         * po/nl.po: Update from translation team.
9391 2007-08-16  Andreas Jaeger  <aj@suse.de>
9393         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9394         Reported by Peter Festner <peter.festner@ewetel.net>.
9396 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9398         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9400 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9402         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9403         to check for undefined symbols.
9405         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9406         If the syscall fails, set errno to the actual returned error number
9407         rather than EINVAL.
9408         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9409         arguments are incorrect, set errno to EINVAL, if the syscall
9410         fails, set errno to the actual returned error number.
9412         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9413         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9415         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9416         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9417         file.
9418         (ASI_PNF, ASI_BLK_P): Don't define.
9419         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9420         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9421         file.
9422         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9423         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9424         file.
9426 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9428         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9429         FE_UNDERFLOW on Niagara CPUs.
9431         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9432         exceptions.
9434 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9436         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9437         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9438         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9439         flush should be used or not inside of the function.
9440         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9442         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9443         __thread_start): Use HIDDEN_JUMPTARGET.
9444         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9445         __thread_start): Likewise.
9446         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9448         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9449         Add libc_hidden_proto.
9450         (STRTOF): Add libc_hidden_proto.
9451         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9452         (strtold_l, wcstold_l): Use them as second argument for
9453         long_double_symbol.
9455 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9457         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9459 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9461         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9463 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9465         * po/bg.po: New file.  From the translation team.
9467 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9469         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9470         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9471         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9472         when each feature was introduced.
9474         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9475         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9476         (CHECK_HASH): New macro.
9477         (PREPARE_VERSION): Use it.
9479         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9480         prototype if not __ASSUME_PSELECT.
9481         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9482         prototype if not __ASSUME_PPOLL.
9484         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9486         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9487         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9488         is defined.
9490 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9492         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9493         (_libc_vdso_platform_setup): If vDSO is not available point
9494         __vdso_gettimeofday to the vsyscall.
9495         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9496         __vdso_gettimeofday instead of vsyscall.
9498 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9500         * nscd/servicescache.c: Include kernel-features.h.
9501         * nscd/gai.c: Likewise.
9502         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9503         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9504         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9505         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9506         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9507         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9508         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9509         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9510         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9512 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9514         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9515         and _dl_get_origin defines anymore.
9517         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9518         Build fix for systems which might lack POSIX timer support.
9520         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9521         (_libc_vdso_platform_setup): Mangle function pointers before storing
9522         them.
9523         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9524         Demangle vdso pointer before use.
9525         (INTERNAL_VSYSCALL): Likewise.
9527         * elf/cache.c (primes): Mark as const.
9528         Noted by Roland McGrath.
9530 2007-08-01  Andreas Jaeger  <aj@suse.de>
9531             Jakub Jelinek  <jakub@redhat.com>
9533         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9534         (options): Add option.
9535         (parse_opt): Handle option.
9536         (manual_link): Adjust process_file caller.  Call implicit_soname.
9537         (search_dir): Formatting.  Use and populate auxiliary cache.
9538         (main): Load and save auxiliary cache.
9539         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9540         stat64 from fstat64 to caller.
9541         (implicit_soname): New function.
9542         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9543         leave *soname as NULL.
9544         * elf/cache.c: Include libgen.h.
9545         (print_entry, print_cache, compare, save_cache, add_to_cache):
9546         Formatting and cleanups.
9547         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9548         aux_cache_file): New structures.
9549         (AUX_CACHEMAGIC): Define.
9550         (primes): New array.
9551         (aux_hash_size, aux_hash): New variables.
9552         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9553         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9554         load_aux_cache, save_aux_cache): New functions.
9555         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9556         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9557         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9558         (process_file): Adjust prototype.
9560 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9562         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9563         with __need_size_t.
9565 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9567         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9568         r_found_version structure as second parameter.
9569         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9570         (_dl_vdso_vsym): Change type of second parameter accordingly.
9571         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9572         (_libc_vdso_platform_setup): Adjust.
9573         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9574         (_libc_vdso_platform_setup): Likewise.
9576         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9577         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9578         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9579         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9580         * csu/libc-start.c: Pretty printing.
9581         Use VDSO_SETUP if defined.
9582         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9583         and let generic code call into _libc_vdso_platform_setup.
9584         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9585         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9587         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9588         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9589         for GLIBC_PRIVATE.
9590         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9591         (sysdep_rountines): Add dl-vdso.
9593         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9594         of routines.
9596         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9597         attribute_hidden to __vdso_gettimeofday prototype.
9599 2007-08-12  Roland McGrath  <roland@redhat.com>
9601         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9602         From: Karl Berry <karl@freefriends.org>.
9604 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9606         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9607         an atime update for the files we read.
9609 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9611         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9613         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9614         instead of mkstemp.
9616         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9617         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9618         * misc/mkostemp.c: New file.
9619         * misc/mkostemp64.c: New file.
9620         * stdlib/stdlib.h: Declare the new functions.
9621         * sysdeps/posix/tempname.c: Add new parameter which is added to
9622         the flags for open.  Remove __GT_BIGFILE handling.
9623         * stdio-common/tempname.c: Likewise.
9624         * include/stdio.h: Adjust __gen_tempname prototype.
9625         Renumber __GT_* constants.
9626         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9627         * misc/mkdtemp.c: Likewise.
9628         * misc/mkstemp.c: Likewise.
9629         * misc/mkstemp64.c: Likewise.
9630         * misc/mktemp.c: Likewise.
9631         * stdio-common/tempnam.c: Likewise.
9632         * stdio-common/tmpfile.c: Likewise.
9633         * stdio-common/tmpfile64.c: Likewise.
9634         * stdio-common/tmpnam.c: Likewise.
9635         * stdio-common/tmpnam_r.c: Likewise.
9637 2007-08-10  Roland McGrath  <roland@frob.com>
9639         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9640         New macros.
9641         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9642         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9644 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9646         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9647         possible.
9648         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9649         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9650         * nss/nss_files/files-have_o_cloexec.c: New file.
9652         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9653         available.
9655 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9657         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9658         ___new_wcstold_l): New weak aliases.
9659         (strtold_l, wcstold_l): Use them as second argument for
9660         long_double_symbol.
9662 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9664         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9665         register in test for error.
9667         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9668         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9670         * po/sv.po: Update from translation team.
9672 2007-08-06  Roland McGrath  <roland@redhat.com>
9674         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9675         Remove __strto*_l inlines.
9676         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9677         * stdlib/strtod.c: Add libc_hidden_def.
9678         * stdlib/strtod_l.c: Likewise.
9679         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9680         for __new_strtold and __new_wcstold.
9681         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9682         __STRTOF, STRTOF.
9683         * stdlib/strtol.c: Add libc_hidden_def.
9684         * stdlib/strtol_l.c: Likewise.
9685         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9686         strtoq.
9688         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9690         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9691         * scripts/data/localplt-generic.data: ... here.
9692         * elf/Makefile (check-data): Get generic file if no other.
9693         ($(objpfx)check-localplt.out): Make target unconditional.
9695         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9696         Use ElfW(Nhdr).
9698 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9700         * po/zh_CN.po: Updated translation from translation team.
9702 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9705         Don't use CGOTSETUP and CGOTRESTORE macros.
9707 2007-08-04  Roland McGrath  <roland@redhat.com>
9709         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9711 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9713         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9714         __extension__ around the whole statement expression.
9716 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9718         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9719         elements during initialization.
9721         * po/pl.po: Updated translation from translation team.
9722         * po/tr.po: Likewise.
9723         * po/nl.po: Likewise.
9725 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9727         * rt/aio.h: Add __nonnull attributes.
9729 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9731         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9732         * stdlib/Makefile (tests): Add tst-strtod5.
9733         (tst-strtod5-ENV): New.
9734         * stdlib/tst-strtod5.c: New file.
9736         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9737         failed.
9738         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9739         on failure.
9741         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9742         allocated.
9744 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9746         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9747         numbers.
9749 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9751         * io/Makefile (aux): Add have_o_cloexec.
9752         * include/fcntl.h: Declare __have_o_cloexec.
9753         * io/have_o_cloexec.c: New file.
9754         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9755         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9756         fcntl call if not necessary.
9757         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9758         of local variable.
9760         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9761         Avoid memset, add explicit initialization.
9762         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9763         to the end and change into zero-sized array.
9764         Move lock member to fill a hole on 64-bit platforms.
9766         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9767         inline functions.
9768         * include/stdlib.h: Add __strto*_internal prototypes here.
9769         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9770         inline functions.
9771         * include/wchar.h: Add __wcsto*_internal prototypes.
9772         * sysdeps/generic/inttypes.h: No need to protect the declaration
9773         of the __strto*_internal and __wcsto*_internal members here.
9775         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9777 2007-08-02  Roland McGrath  <roland@redhat.com>
9779         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9780         $(inst_bindir)/getconf if possible.
9782         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9783         (generated): Add it.
9784         ($(inst_libexecdir)/getconf): Use it.
9786 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9788         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9789         /proc is faster and sufficient.  /sys is still needed for
9790         __get_nprocs_conf.
9792 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9794         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9795         syscall as __fallocate64.
9796         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9797         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9799 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9801         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9802         value.
9804         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9805         if off_t is different rank from size_t.
9807         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9808         uw_frame_state_for): Avoid type punning warnings.
9809         * sysdeps/generic/unwind-dw2-fde-glibc.c
9810         (_Unwind_IteratePhdrCallback): Likewise.
9811         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9812         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9813         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9814         pointers.
9816 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9818         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9819         total processors using sysfs.
9820         (__get_nprocs): Use sysfs to determine which processors are online.
9822 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9824         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9825         syscall arguments count.
9827         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9829 2007-07-30  Roland McGrath  <roland@redhat.com>
9831         * manual/libc.texinfo: Update copyrights, formatting magic, and
9832         @dircategory.  From Karl Berry <karl@freefriends.org>.
9834 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9836         [BZ #4860]
9837         * io/Makefile (headers): Add bits/fcntl2.h.
9839         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9840         using gcc builtin.
9841         (__CPU_EQUAL_S): Likewise.
9843         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9844         (tests): Add tst-cpuset.
9845         * posix/sched_cpualloc.c: New file.
9846         * posix/sched_cpufree.c: New file.
9847         * posix/tst-cpuset.c: New file.
9848         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9849         GLIBC_2.7.
9850         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9851         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9852         macros.  Define CPU_*_S macros.
9854 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9856         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9857         entry.
9859         [BZ #4858]
9860         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9861         #.0g and value rounded to 1.0.
9862         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9864 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9866         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9867         for int_frac_digits and frac_digits.
9869         * login/logout.c (logout): Avoid aliasing violation.
9870         * login/logwtmp.c (logwtmp): Likewise.
9872         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9874         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9875         to avoid warning.
9876         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9877         warning.
9878         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9879         warning.
9880         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9881         to avoid warnings.
9883         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9884         void **.
9885         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9887         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9888         char * to avoid warning.
9889         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9891         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9893         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9894         allocate_arrays): Cast second argument to charmap_find_symbol
9895         to char * to avoid warnings.
9897         * locale/programs/repertoire.c (repertoire_new_char): Change
9898         from_nr, to_nr and cnt to unsigned long, adjust printf format
9899         string.
9901         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9902         Cast second argument to new_element to char * to avoid warnings.
9904         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9906         * intl/gettextP.h (struct loaded_domain): Change plural to const
9907         struct expression *.
9908         * intl/plural-eval.c (plural_eval): Change first argument to
9909         const struct expression *.
9910         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9911         argument to const struct expression **.
9912         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9913         prototypes.
9914         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9915         in call to __gettext_free_exp.
9917         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9918         unitialized wstring/wpattern var warnings.
9920         * posix/runtests.c (struct a_test): Make data field const char *.
9922         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9923         vars if not LDBL_MANT_DIG >= 106.
9925         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9927         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9928         __find_specmb to avoid warning.
9930         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9932         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9933         to avoid warnings.
9935         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9936         initializer.
9938         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9939         tv var when it will be actually used.
9941         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9942         to avoid warnings.
9944         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9945         char array resp. pointer.
9946         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9947         char array.
9948         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9949         to const unsigned char **.
9950         (ucs4_to_cns11643): Change second argument to unsigned char *.
9951         * iconvdata/euc-tw.c (BODY): Change endp type to
9952         const unsigned char *.
9953         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9954         to unsigned char *.
9955         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9956         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9957         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9958         types to unsigned char pointers/arrays instead of char.
9959         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9960         to unsigned char *.
9961         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9962         * iconvdata/jis0212.h: Include assert.h.
9963         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9964         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9965         of trying to handle that.
9966         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9967         shut up a warning.
9968         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9969         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9970         two dimensional const unsigned char arrays.
9971         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9972         Initialize endp to inptr to shut up a warning.
9974 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9976         [BZ #4772]
9977         * time/strptime_l.c (__strptime_internal): Silently ignore
9978         strftime modifiers and field width in recursive calls.
9980         * include/time.h (enum ptime_locale_status): Remove.
9981         (__strptime_internal): Remove decided and era_cnt arguments,
9982         add statep argument.
9983         * time/strptime_l.c (__strptime_internal): Remove decided
9984         and era_cnt arguments, add statep argument.  Don't recompute
9985         any fields in recursive calls, only update caller's tm
9986         and state, if recursive call fails, don't change tm nor
9987         any state.
9988         (get_alt_number): Adjust.
9989         (recursive): Adjust caller.
9990         (strptime): Likewise.
9991         * time/strptime.c (strptime): Likewise.
9993 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9995         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9996         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9997         if from and to charsets are the same.
9998         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9999         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10000         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10002 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10004         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10005         Don't define wint_t when __need_mbstate_t unless it
10006         is necessary.
10007         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10008         in the typedef if possible.
10009         * wctype/wctype.h (wint_t): Define by including
10010         wchar.h with __need_wint_t instead of including stddef.h
10011         with __need_wint_t and as fallback definining it ourselves.
10012         * iconv/gconv.h (__need_wint_t): Define before including
10013         wchar.h.
10014         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10015         or _GLIBCPP_USE_WCHAR_T.
10016         (__need_wchar_t): Don't define
10017         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10018         (__need_wint_t): Don't define before including stddef.h,
10019         define before including wchar.h only if _LIBC or
10020         _GLIBCPP_USE_WCHAR_T.
10021         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10022         * sysdeps/mach/hurd/_G_config.h: Likewise.
10023         * sysdeps/generic/_G_config.h: Likewise.
10024         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10025         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10026         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10027         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10029 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10031         * sysdeps/posix/posix_fallocate64.c: Undefine
10032         __posix_fallocate64_l64 before alias handling.
10033         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10034         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10035         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10036         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10038         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10040 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10042         * locale/programs/ld-collate.c (atwc): New variable.
10043         (add_to_tablewc): New toplevel function, moved from collate_output.
10044         (collate_output): Remove add_to_tablewc nested function.
10046         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10047         (name_insert): New function.
10048         (write_output): Remove hash_table and hash_size vars and name_insert
10049         nested function.
10051 2007-07-24  Roland McGrath  <roland@redhat.com>
10053         * Makerules (install-others-programs-nosubdir): New target.
10054         (install-no-libc.a-nosubdir): Depend on it.
10056         * iconv/Makefile (install-others-programs): Set this instead of
10057         install-others.
10058         * login/Makefile (install-others-programs): Likewise.
10059         * posix/Makefile (install-others-programs): Likewise.
10061         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10062         dependencies.
10064 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10066         * io/Makefile (tests): Add tst-posix_fallocate.
10067         * io/tst-posix_fallocate.c: New file.
10069         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10070         __ASSUME_FALLOCATE.
10072 2007-07-22  Roland McGrath  <roland@frob.com>
10074         * hurd/getdport.c: Add missing copyright year update.
10076         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10077         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10079 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10081         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10083         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10084         O_CLOEXEC is needed.
10085         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10086         Avoid additional fcntl to set O_CLOEXEC if not needed.
10087         * nis/nss_compat/compat-initgroups.c: Likewise.
10088         * nis/nss_compat/compat-pwd.c: Likewise.
10089         * nis/nss_compat/compat-spwd.c: Likewise.
10091 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10093         [BZ #3665]
10094         * manual/errno.texi: Change ECANCELED value to 119.
10096         [BZ #4610]
10097         * mach/lock-intern.h: Include <sys/cdefs.h>.
10099         [BZ #4178]
10100         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10101         reading A.
10103         [BZ #4126]
10104         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10105         to __sigsuspend.
10107         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10109 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10111         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10112         `__ASSEMBLER__'.
10113         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10115 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10117         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10118         descriptor received from nscd.
10120         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10123         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10124         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10125         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10127         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10129 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10131         [BZ #4816]
10132         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10134         [BZ #4813]
10135         * login/forkpty.c (forkpty): Close master and slave fds on
10136         fork failure.  Patch by
10137         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10139 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10141         * include/features.h (__USE_ISOC95): New define.
10142         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10143         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10144         for -std=iso9899:199409.
10145         * CONFORMANCE: Remove comments about unsupported AMD1.
10147 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10149         * sysdeps/ia64/sched_cpucount.c: New file.
10150         * sysdeps/powerpc/sched_cpucount.c: New file.
10152         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10153         __BEGIN_DECLS/__END_DECLS around the prototype.
10154         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10155         pointer to const cpu_set_t.
10157         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10158         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10159         __need_size_t and include stddef.h.
10160         * sysvipc/sys/msg.h: Likewise.
10161         * posix/sched.h: Likewise.
10162         * hurd/hurd/signal.h (__need_size_t): Define.
10164         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10165         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10166         no longer defines wint_t or wchar_t.
10168         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10169         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10170         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10171         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10172         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10173         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10174         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10175         * debug/printf_chk.c (__printf_chk): Likewise.
10176         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10177         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10179         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10180         Define.
10182         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10183         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10185 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10187         [BZ #4792]
10188         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10189         * malloc/malloc.h (realloc): Likewise.
10191         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10192         if one of proc_file_chain streams has that fileno.
10193         * stdio-common/Makefile (tests): Add tst-popen2.
10194         * stdio-common/tst-popen2.c: New test.
10196 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10198         * elf/ldconfig.c: Allow GPLv2 or any later version.
10199         * elf/readlib.c: Likewise.
10200         * elf/chroot_canon.c: Likewise.
10201         * elf/cache.c: Likewise.
10202         * nscd/mem.c: Likewise.
10203         * nscd/getpwuid_r.c: Likewise.
10204         * nscd/grpcache.c: Likewise.
10205         * nscd/aicache.c: Likewise.
10206         * nscd/getsrvbynm_r.c: Likewise.
10207         * nscd/nscd.c: Likewise.
10208         * nscd/servicescache.c: Likewise.
10209         * nscd/getsrvbypt_r.c: Likewise.
10210         * nscd/initgrcache.c: Likewise.
10211         * nscd/gethstbyad_r.c: Likewise.
10212         * nscd/gethstbynm2_r.c: Likewise.
10213         * nscd/getgrnam_r.c: Likewise.
10214         * nscd/nscd_setup_thread.c: Likewise.
10215         * nscd/getpwnam_r.c: Likewise.
10216         * nscd/gai.c: Likewise.
10217         * nscd/connections.c: Likewise.
10218         * nscd/dbg_log.c: Likewise.
10219         * nscd/cache.c: Likewise.
10220         * nscd/hstcache.c: Likewise.
10221         * nscd/nscd_conf.c: Likewise.
10222         * nscd/getgrgid_r.c: Likewise.
10223         * nscd/pwdcache.c: Likewise.
10224         * catgets/gencat.c: Likewise.
10225         * locale/programs/linereader.h: Likewise.
10226         * locale/programs/locarchive.c: Likewise.
10227         * locale/programs/ld-paper.c: Likewise.
10228         * locale/programs/locfile-kw.h: Likewise.
10229         * locale/programs/ld-address.c: Likewise.
10230         * locale/programs/xmalloc.c: Likewise.
10231         * locale/programs/ld-time.c: Likewise.
10232         * locale/programs/localedef.c: Likewise.
10233         * locale/programs/simple-hash.c: Likewise.
10234         * locale/programs/xstrdup.c: Likewise.
10235         * locale/programs/ld-numeric.c: Likewise.
10236         * locale/programs/locfile-kw.gperf: Likewise.
10237         * locale/programs/ld-collate.c: Likewise.
10238         * locale/programs/charmap-kw.gperf: Likewise.
10239         * locale/programs/charmap.h: Likewise.
10240         * locale/programs/charmap-kw.h: Likewise.
10241         * locale/programs/config.h: Likewise.
10242         * locale/programs/locfile.c: Likewise.
10243         * locale/programs/ld-ctype.c: Likewise.
10244         * locale/programs/charmap.c: Likewise.
10245         * locale/programs/ld-messages.c: Likewise.
10246         * locale/programs/repertoire.h: Likewise.
10247         * locale/programs/locale.c: Likewise.
10248         * locale/programs/ld-name.c: Likewise.
10249         * locale/programs/linereader.c: Likewise.
10250         * locale/programs/locfile.h: Likewise.
10251         * locale/programs/3level.h: Likewise.
10252         * locale/programs/ld-monetary.c: Likewise.
10253         * locale/programs/ld-measurement.c: Likewise.
10254         * locale/programs/charmap-dir.c: Likewise.
10255         * locale/programs/ld-identification.c: Likewise.
10256         * locale/programs/localedef.h: Likewise.
10257         * locale/programs/charmap-dir.h: Likewise.
10258         * locale/programs/repertoire.c: Likewise.
10259         * locale/programs/simple-hash.h: Likewise.
10260         * locale/programs/ld-telephone.c: Likewise.
10261         * locale/programs/locale-spec.c: Likewise.
10262         * locale/programs/locfile-token.h: Likewise.
10263         * posix/getconf.c: Likewise.
10264         * iconv/dummy-repertoire.c: Likewise.
10265         * iconv/iconv_charmap.c: Likewise.
10266         * iconv/iconvconfig.c: Likewise.
10267         * iconv/iconv_prog.c: Likewise.
10268         * malloc/memusagestat.c: Likewise.
10269         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10271 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10273         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10274         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10275         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10276         check for the first argument.
10278 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10280         [BZ #4775]
10281         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10282         (__tgmath_real_type): Fix if expr is const int or other const
10283         qualified integral type.
10284         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10285         expressions and handle const qualified arguments.
10286         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10287         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10288         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10289         statement expressions.
10290         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10291         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10292         (__TGMATH_UNARY_IMAG): Define.
10293         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10294         * math/Makefile (tests): Add test-tgmath2.
10295         (CFLAGS-test-tgmath2.c): Add.
10296         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10297         count_cfloat, count_cldouble): New variables.
10298         (NCCALLS): Define.
10299         (main): Check number of complex calls as well.
10300         (F(compile_test)): Add complex tests and tests with const qualified
10301         arguments.
10302         (y, z, ccount): Define.
10303         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10304         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10305         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10306         F(cproj)): New functions.
10307         * math/test-tgmath2.c: New test.
10309 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10311         [BZ #4776]
10312         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10313         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10314         instead output ".".
10315         * dlfcn/Makefile (distribute): Add glreflib3.c.
10316         (module-names): Add glreflib3.
10317         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10318         glreflib1.so.
10319         (LDFLAGS_glreflib3.so): New.
10320         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10321         glreflib1.so.
10322         * dlfcn/glreflib3.c: New file.
10324         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10325         returned -1, return NULL.
10326         * intl/explodename.c (_nl_explode_name): Return -1 if
10327         _nl_normalize_codeset failed.
10329 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10331         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10332         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10333         and avoid branch misspredicts for > 31 bytes memset case.
10334         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10335         Remove toc ref to __cache_line_size.
10337         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10338         to get ISA-V2.0 branch hints.
10339         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10340         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10341         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10342         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10343         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10344         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10345         Remove toc ref to __cache_line_size.
10347         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10348         Include math_ldbl_opt.h.
10350 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10352         [BZ #4773]
10353         * time/strptime_l.c (__strptime_internal): Implement greedy
10354         matching of weekday and month names.
10356 2007-07-09  Roland McGrath  <roland@redhat.com>
10358         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10359         (ELF_NOTE_ABI): Use it.
10360         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10362 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10364         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10365         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10367 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10369         [BZ #4745]
10370         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10371         in loop to look for conversion specifier to avoid testing of
10372         wrong errno value.
10373         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10374         * stdio-common/bug18.c: New file.
10375         * stdio-common/bug18a.c: New file.
10376         * stdio-common/bug19.c: New file.
10377         * stdio-common/bug19a.c: New file.
10379 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10381         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10382         running awk script.
10384 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10386         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10387         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10388         Return NULL if mmap failed instead of asserting it does not.
10389         (calloc): Check for integer overflow.
10391         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10392         than LONG_MAX / 10.
10394 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10396         [BZ #4702]
10397         * nis/nss-default.c: Include errno.h.
10398         (init): Preserve errno.
10400 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10402         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10404 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10406         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10408 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10410         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10412 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10414         * sysdeps/s390/dl-procinfo.c: New file.
10415         * sysdeps/s390/dl-procinfo.h: New file.
10416         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10418 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10420         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10421         in PT_NOTE segments with multiple notes.
10422         * elf/readelflib.c (process_elf_file): Likewise.
10424 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10426         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10427         ISO C compliant.
10429 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10431         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10433 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10435         * include/link.h: Don't include rtld-lowlevel.h.
10436         (struct link_map): Remove l_scope_lock.
10437         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10438         (_dl_scope_free_list): New field (variable) in _rtld_global.
10439         (DL_LOOKUP_SCOPE_LOCK): Remove.
10440         (_dl_scope_free): New prototype.
10441         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10442         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10443         (_dl_profile_fixup): Likewise.
10444         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10445         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10446         THREAD_GSCOPE_RESET_FLAG around it.
10447         * elf/dl-close.c (_dl_close_worker): Don't use
10448         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10449         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10450         scopes were queued or if l_scope_mem has been abandoned.
10451         * elf/dl-open.c (_dl_scope_free): New function.
10452         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10453         * elf/dl-support.c (_dl_scope_free_list): New variable.
10454         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10455         Remove DL_LOOKUP_SCOPE_LOCK handling.
10456         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10457         handling.
10458         * elf/dl-object.c (_dl_new_object): Don't use
10459         __rtld_mrlock_initialize.
10461 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10463         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10464         to fill in holes
10465         (rtld_global_ro): Likewise.
10467 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10469         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10470         Move PT_LOAD checking to...
10471         (_dl_addr_inside_object): ... here, new function.
10472         * elf/dl-sym.c (do_sym): If not l_contiguous,
10473         call _dl_addr_inside_object.
10474         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10475         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10476         * elf/dl-open.c (dl_open_worker): Likewise.
10477         (_dl_addr_inside_object): New function if IS_IN_rtld.
10478         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10479         holes are present or are PROT_NONE protected.
10480         * include/link.h (struct link_map): Add l_contiguous field.
10481         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10483 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10484             Tomas Janousek  <tjanouse@redhat.com>
10485             Ulrich Drepper  <drepper@redhat.com>
10487         [BZ #4647]
10488         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10489         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10490         socket.
10491         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10492         unused member a bitmap.
10493         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10494         servers are configured.
10496 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10498         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10500 2007-06-17  Andreas Schwab  <schwab@suse.de>
10502         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10504 2007-06-16  Andreas Jaeger  <aj@suse.de>
10506         [BZ #4125]
10507         * sysdeps/unix/sysv/linux/sys/ptrace.h
10508         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10509         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10510         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10511         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10512         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10513         Define.
10514         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10515         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10516         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10517         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10519 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10521         [BZ #4599]
10522         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10523         determining whether there are IPv4/IPv6 addresses, ignore loopback
10524         addresses.
10526 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10528         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10529         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10530         as the return type.  Change type of "r" variable to CMPtype.
10531         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10532         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10533         * soft-fp/gedf2.c (__gedf2): Likewise.
10534         * soft-fp/gesf2.c (__gesf2): Likewise.
10535         * soft-fp/getf2.c (__getf2): Likewise.
10536         * soft-fp/ledf2.c (__ledf2): Likewise.
10537         * soft-fp/lesf2.c (__lesf2): Likewise.
10538         * soft-fp/letf2.c (__letf2): Likewise.
10539         * soft-fp/unorddf2 (__unorddf2): Likewise.
10540         * soft-fp/unordsf2 (__unordsf2): Likewise.
10541         * soft-fp/unordtf2 (__unordtf2): Likewise.
10543 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10545         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10546         make sure gcc doesn't mess around with this.
10548 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10550         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10552 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10554         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10555         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10556         at most once per _dl_close_worker.
10558 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10560         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10561         __sched_cpucount as const.
10562         * posix/sched_cpucount.c: Adjust.
10564         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10565         instruction for counting bits.
10566         * sysdeps/x86_64/sched_cpucount.c: New file.
10568 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10570         * configure.in: Avoid variable named BASH.
10571         * config.make.in: Likewise.
10572         Patch in part by Mike Frysinger.
10574 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10576         [BZ #4586]
10577         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10578         pseudo-zeros as zero.
10579         * sysdeps/x86_64/ldbl2mpn.c: New file.
10580         * sysdeps/ia64/ldbl2mpn.c: New file.
10582 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10584         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10585         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10586         Remove unreachable code at the end.
10588 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10590         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10591         ldbl-128ibm in comment.
10592         (fpclassifyl): Correct classification of denormals.
10593         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10594         return value for MIN denormal. Rewrite using long double math too
10595         correctly handle denormals and canonicalize the results.
10597 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10599         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10600         (__mpn_construct_long_double): Fix conversion where result ought
10601         to be smaller than __LDBL_MIN__, or the low double should be
10602         denormal.  Fix decision where to negate low double - honor round
10603         to even rules.
10604         * stdio-common/tst-sprintf2.c: Include string.h.
10605         (COMPARE_LDBL): Define.
10606         (TEST): Also test whether a string hexadecimal float representation
10607         can be parsed back to the number.
10608         (main): Add a couple of further tests.
10610 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10612         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10613         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10614         is non-zero, but smaller than 2 * __DBL_MIN__.
10615         * stdio-common/tst-sprintf2.c: New test.
10616         * stdio-common/Makefile (tests): Add tst-sprintf2.
10618         * math/test-misc.c (main): Don't run last batch of tests with
10619         IBM long double format.
10621 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10623         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10624         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10625         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10626         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10627         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10628         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10629         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10630         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10631         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10632         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10635         New file.
10636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10637         New file.
10638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10639         New file.
10640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10641         New file.
10642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10643         New file.
10644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10646         New file.
10647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10648         New file.
10649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10650         New file.
10651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10652         New file.
10653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10654         New file.
10656 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10658         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10659         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10660         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10661         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10662         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10663         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10664         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10665         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10667 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10669         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10670         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10671         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10672         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10673         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10674         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10675         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10676         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10678 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10680         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10681         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10682         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10683         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10685 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10687         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10688         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10690 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10692         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10693         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10694         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10695         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10697 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10699         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10700         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10702 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10704         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10705         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10707         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10708         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10709         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10710         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10712 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10714         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10715         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10716         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10717         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10719 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10721         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10722         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10723         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10724         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10725         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10726         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10728 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10730         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10731         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10732         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10733         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10735 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10737         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10739         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10740         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10741         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10742         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10743         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10744         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10745         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10746         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10747         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10748         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10749         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10750         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10751         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10752         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10754 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10756         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10757         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10759 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10761         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10762         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10764 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10766         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10767         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10768         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10769         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10770         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10771         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10772         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10773         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10774         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10775         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10777 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10779         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10781 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10783         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10784         branch miss-predicts. Ensure that cache line crossing does not impact
10785         dispatch grouping.
10787 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10789         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10790         "../../powerpc32/power4/memcopy.h".
10791         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10792         "../../powerpc32/power4/wordcopy.c".
10794 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10796         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10797         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10798         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10799         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10800         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10801         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10803 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10805         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10807 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10809         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10810         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10811         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10812         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10813         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10814         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10815         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10816         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10818 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10820         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10822 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10824         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10825         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10826         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10827         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10828         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10829         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10830         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10832 2007-05-29  Roland McGrath  <roland@redhat.com>
10834         * po/Makefile (po-sed-cmd): New variable.
10835         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10837 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10839         * crypt/md5-crypt.c: Fix comment.
10841         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10842         of crashing.  When this is the case or if the reply is malformed,
10843         don't try to close the new file descriptor since it does not
10844         exist.
10845         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10847 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10849         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10850         if __NR_utimensat is not defined.
10852 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10854         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10856 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10858         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10859         (open): Fix comment typos.  Don't call __open_2 if flags
10860         is a compile time constant without O_CREAT.
10861         (__open64_2): Add nonnull attribute.
10862         (open64): Fix comment typos.  Don't call __open64_2 if flags
10863         is a compile time constant without O_CREAT.
10864         (__openat_2): Add nonnull attribute, fix nonnull attribute
10865         on redirect.
10866         (openat): Fix comment typos.  Don't call __openat_2 if flags
10867         is a compile time constant without O_CREAT.
10868         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10869         on redirect.
10870         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10871         is a compile time constant without O_CREAT.
10873 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10875         * Makerules (sysd-rules): Define PTW for ptw-* files.
10876         * Versions: Define GLIBC_2.7 for libc.
10877         * include/stdio.h: Declare __fortify_fail.
10878         * debug/fortify_fail.c: New file.
10879         * debug/Makefile (routines): Add fortify_fail.
10880         * debug/chk_fail.c: Use __fortify_fail.
10881         * debug/stack_chk_fail.c: Likewise.
10882         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10883         __openat64_2 for GLIBC_2.7.
10884         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10885         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10886         and fails if necessary.
10887         * io/open64.c: Likewise.
10888         * io/openat.c: Likewise.
10889         * io/openat64.c: Likewise.
10890         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10891         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10892         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10893         * io/bits/fcntl2.h: New file.
10894         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10895         __openat64_2.
10896         * include/bits/fcntl2.h: New file.
10897         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10898         Add open_2.
10899         * sysdeps/unix/sysv/linux/open_2.c: New file.
10901 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10903         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10904         as second parameter to handle_intel.
10906         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10907         the entry.
10909         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10910         handling to ...
10911         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10912         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10913         cacheinfo.
10914         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10915         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10916         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10918         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10920 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10922         [BZ #4525]
10923         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10924         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10925         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10927         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10929         [BZ #4514]
10930         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10931         reinitialize workend at the start of each do_positional format spec
10932         loop, free workstart before do_positional loops.
10933         (printf_unknown): Fix size of work_buffer.
10934         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10936         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10937         (public_sET_STATe): If ms->version < 3, put all chunks into
10938         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10939         chunks.
10941         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10942         * malloc/hooks.c: Likewise.
10943         * malloc/arena.c: Likewise.
10944         * malloc/malloc.c (do_check_malloc_state): Don't assert
10945         n_mmaps is not greater than n_mmaps_max.  This removes the need
10946         for the previous change.
10948         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10949         2007-05-07 commit.
10951 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10953         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10954         Define for kernel >= 2.6.22.
10956 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10958         * elf/dl-close.c (_dl_close_worker): When removing object from
10959         global scope, wait for all lookups to finish afterwards.
10960         * elf/dl-open.c (add_to_global): When global scope array must
10961         grow, allocate a new one and free old array only after all
10962         lookups finish.
10963         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10964         (_dl_lookup_symbol_x): Likewise.
10965         * elf/dl-support.c: Define _dl_wait_lookup_done.
10966         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10967         _dl_wait_lookup_done.
10969         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10970         not overlapping with arena.
10972         * malloc/mcheck.c (reallochook): If size==0, free the block.
10974         * rt/tst-shm.c: Use fstat64 instead of fstat.
10976         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10977         __NR_sync_file_range is not defined.
10979 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10981         Dummy files to prevent stub versions from being used.
10982         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10983         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10984         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10985         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10987         * version.h (VERSION): Set to 2.6.90.
10989 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10991         * version.h (VERSION): Define to 2.6.
10992         * include/features.h (__GLIBC_MINOR__): Define to 6.
10994         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10996         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10997         sizes.
10999 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11001         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11002         number of mmaps.  n_mmaps_max is the target.
11003         * malloc/hooks.c: Likewise.
11004         * malloc/arena.c: Likewise.
11006 2007-05-12  Andreas Jaeger  <aj@suse.de>
11008         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11009         getpid.
11011 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11013         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11014         adding new variables.
11016         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11017         optimize.  Completely extend global scope array before making the
11018         new entries visible.
11020 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11022         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11023         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11024         tst-getcpu.
11026         * include/link.h: Move l_version and l_nversion members around to
11027         fill gaps.
11029         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11031         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11032         (__sched_setaffinity_new): If syscall was successful and
11033         RESET_VGETCPU_CACHE is defined, use it before returning.
11034         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11036         * io/sys/stat.h: Make sure struct timespec is defined for
11037         __USE_ATFILE.
11039         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11040         UTIME_OMIT.
11041         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11042         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11043         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11044         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11045         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11046         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11047         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11048         * io/sys/stat.h: Declare utimensat, futimens.
11049         * io/utimensat.c: New file.
11050         * io/futimens.c: New file.
11051         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11052         * sysdeps/unix/sysv/linux/futimens.c: New file.
11053         * io/Makefile (routines): Add utimensat, futimens.
11054         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11055         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11056         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11057         available.
11059         * include/sys/cdefs.h: Redefine __nonnull so that test for
11060         incorrect parameters in the libc code itself are not omitted.
11062 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11064         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11065         exception in addition to inexact when asked to raise only FE_INEXACT.
11067         [BZ #3427]
11068         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11069         in *envp.
11071 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11073         [BZ #4403]
11074         * string/strfry.c (strfry): Make result more random.
11076 2007-05-07  Richard Henderson  <rth@redhat.com>
11078         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11079         if __NO_LONG_DOUBLE_MATH.
11080         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11081         available in the compiler, add .arch directive to the assembly.
11083 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11085         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11086         compat_symbol to GLIBC_2_1.
11087         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11088         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11089         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11090         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11091         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11092         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11093         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11094         libc, not libm.
11095         (__isnanl): New compat_symbol.
11097 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11098             Jakub Jelinek  <jakub@redhat.com>
11100         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11101         (new_heap): Initialize mprotect_size.
11102         (grow_heap): When growing, only mprotect from mprotect_size till
11103         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11104         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11106 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11107             Peter Bergner  <bergner@us.ibm.com>
11109         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11110         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11111         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11112         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11113         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11114         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11115         Call __fe_mask_env() if all FP exceptions disabled.
11116         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11117         from old FPSCR to new fenv to propagate DFP rounding modes.
11118         Call __fe_mask_env() if FP exceptions previously enabled.
11119         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11120         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11121         transitioning from all exceptions disabled to any exception enabled
11122         or visa versa.
11123         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11124         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11125         when transitioning from all exceptions disabled to any exception
11126         enabled or visa versa.
11127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11134 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11136         [BZ #4465]
11137         * posix/unistd.h: Remove __THROW from fdatasync.
11139 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11141         [BZ #4465]
11142         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11144 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11146         * stdio-common/vfprintf.c (process_string_arg): Optimize
11147         ridiculous precision in wide char code printing multi-byte string.
11148         Reported by Jim Meyering <jim@meyering.net>.
11150         [BZ #4131]
11151         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11152         boundaries to work around systems with overlapping binary loading.
11153         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11155 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11157         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11158         __mbsnrtowcs after last change.
11160         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11161         (get_ident): Likewise.
11163 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11165         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11166         with setting the sticky bit.
11167         * math/test-misc.c (main): Add more truncation tests.
11169 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11171         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11172         double in the function declaration.
11173         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11174         double in the function declaration.
11175         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11176         float in the function declaration.
11177         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11178         float in the function declaration.
11180         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11181         denormal operands.  Do not generate FP_EX_DENORM exception.
11182         (FP_UNPACK_RAW_EP): Ditto.
11183         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11184         undefined _FP_UNPACK_RAW_E.
11185         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11186         undefined _FP_UNPACK_RAW_EP.
11187         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11188         undefined _FP_PACK_RAW_E.
11189         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11190         undefined _FP_PACK_RAW_EP.
11192         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11193         _FP_FRAC_COPY_2.
11194         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11195         _FP_FRAC_COPY_4.
11197 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11198             Jakub Jelinek  <jakub@redhat.com>
11200         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11201         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11202         this case.
11203         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11205 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11207         * math/test-misc.c (main): Add tests for rounding long double
11208         values close to smallest double denormalized value to double.
11210 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11212         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11213         condition for truncating to 0.  Set sticky bit for such
11214         truncation.
11216 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11218         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11219         fixed length array for ignore.
11221 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11223         [BZ #4438]
11224         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11225         stack for large precisions.
11226         * stdio-common/test-vfprintf.c (main): Add test for large
11227         precision.
11229 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11231         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11232         for exponent 0.
11233         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11235         [BZ #4439]
11236         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11237         account in the size check.
11238         * resolv/tst-inet_ntop.c: New test.
11239         * resolv/Makefile (tests): Add tst-inet_ntop.
11241 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11242             Jakub Jelinek  <jakub@redhat.com>
11244         [BZ #4349]
11245         * malloc/malloc.c: Keep separate list for first blocks on the bin
11246         lists with a given size.  This helps skipping over list elements
11247         we know won't fit in two places.
11248         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11250 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11252         [BZ #4102]
11253         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11254         label to Teredo tunnel addresses 2001://32.
11256 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11258         * locale/programs/ld-collate.c (collate_read): Allow order_start
11259         after copy.
11261         * locale/programs/ld-collate.c (collate_read): Fix printing of
11262         error message.
11264         [BZ #3213]
11265         * locale/C-translit.h.in: Add entry for U2044.
11267         [BZ #4342]
11268         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11269         hexa-decimal floats without exponent.
11270         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11272 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11274         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11275         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11276         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11277         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11278         GLIBC_2.6.
11279         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11280         Add sched_getcpu.
11282 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11284         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11285         of 0 after the out_fail label.
11287 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11289         [BZ #4406]
11290         * iconv/gconv_charset.h (strip): Allow ':'.
11291         * iconv/iconv_open.c (iconv_open): Adjust comment.
11293 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11295         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11296         version.
11298 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11300         [BZ #4381]
11301         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11302         alignment of buffer and tmp_buffer.
11303         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11304         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11305         alignment of buffer.
11306         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11307         bigger than INT_MAX.
11308         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11309         h_errnop arguments.  Fail if buflen is too small.
11310         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11312 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11314         [BZ #4405]
11315         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11316         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11318 2007-04-22  Roland McGrath  <roland@redhat.com>
11320         * elf/elf.h (NT_PRXFPREG): New macro.
11322 2007-04-19  Andreas Jaeger  <aj@suse.de>
11324         [BZ #3905]
11325         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11326         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11327         Added.
11329 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11331         * include/sys/mman.h: Mark madvise hidden.
11332         * misc/madvise.c: Add libc_hidden_def.
11334 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11336         * nis/nis_domain_of.c (__nis_domain_of): New function.
11337         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11338         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11339         * nis/nis_call.c (rec_dirsearch): Likewise.
11340         (first_shoot): Likewise.  Remove search_parent_first argument.
11341         (struct nis_server_cache): Rename search_parent_first field
11342         to search_parent.
11343         (nis_server_cache_search, nis_server_cache_add): Rename
11344         search_parent_first argument to search_parent.
11345         (__nisfind_server): Likewise.  If search_parent, call
11346         __nis_domain_of.
11348 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11350         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11352 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11354         [BZ #4368]
11355         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11357 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11359         [BZ #4364]
11360         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11362 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11364         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11365         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11366         current number of locales in SUPPORTED.
11367         (create_archive): Initialize serial.
11368         (enlarge_archive): Preserve aliases rather than duplicating
11369         their locrecs.
11371 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11373         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11374         after _IO_un_link, not before it.
11376         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11377         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11378         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11380 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11382         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11383         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11384         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11385         Remove __THROW.
11386         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11387         _IO_file_xsgetn_maybe_mmap): Likewise.
11388         * libio/oldfileops.c (old_do_write): Likewise.
11389         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11390         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11391         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11392         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11393         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11394         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11395         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11396         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11397         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11398         _IO_file_underflow, _IO_file_underflow_mmap,
11399         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11400         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11401         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11402         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11403         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11404         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11405         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11406         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11407         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11408         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11409         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11410         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11411         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11412         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11413         _IO_adjust_column_internal, _IO_default_uflow_internal,
11414         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11415         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11416         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11417         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11418         _IO_file_close_it_internal, _IO_file_underflow_internal,
11419         _IO_file_overflow_internal, _IO_file_attach_internal,
11420         _IO_file_fopen_internal, _IO_file_sync_internal,
11421         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11422         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11423         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11424         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11425         _IO_seekpos_unlocked): Likewise.
11426         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11427         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11429 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11431         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11432         argument in xmalloc size computation.
11434 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11436         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11437         math_opt_barrier and math_force_eval macros.
11439 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11441         [BZ #3306]
11442         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11443         * sysdeps/i386/fpu/math_private.h: New file.
11444         * sysdeps/x86_64/fpu/math_private.h: New file.
11445         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11446         math_force_eval macros.  Use "+m" constraint on asm rather than
11447         "=m" and "m".
11448         * math/s_nextafter.c (__nextafter): Likewise.
11449         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11450         Likewise.
11451         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11453         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11454         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11455         math_opt_barrier and math_force_eval macros.
11456         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11457         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11458         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11459         (__nexttoward): Use math_opt_barrier and
11460         math_force_eval macros.  Use "+m" constraint on asm rather than
11461         "=m" and "m".  Only use asm to force double result if
11462         FLT_EVAL_METHOD is 2.
11463         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11464         (__nexttowardf): Use math_opt_barrier and
11465         math_force_eval macros.  Use "+m" constraint on asm rather than
11466         "=m" and "m".  Only use asm to force double result if
11467         FLT_EVAL_METHOD is not 0.
11468         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11469         (__nexttowardf): Use math_opt_barrier and
11470         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11471         x to float using asm.
11472         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11473         (__nldbl_nexttowardf): Use math_opt_barrier and
11474         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11475         x to float using asm.
11476         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11477         (__nexttowardf): Use math_opt_barrier and math_force_eval
11478         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11479         * math/bug-nextafter.c (zero, inf): New variables.
11480         (main): Add new tests.
11481         * math/bug-nexttoward.c (zero, inf): New variables.
11482         (main): Add new tests.
11484 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11486         [BZ #3427]
11487         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11488         exceptions both in SW and MXCSR.
11489         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11490         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11491         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11492         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11493         in MXCSR if SSE is available.
11494         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11495         and ldsodefs.h.
11496         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11497         Fix comment typo.
11498         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11499         Return 0 rather than 1.
11500         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11501         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11502         * math/test-fenv.c (feholdexcept_tests): New function.
11503         (main): Call it.
11505 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11507         [BZ #3427]
11508         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11509         in SW.
11511 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11513         [BZ #4344]
11514         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11515         Reported by David Anderson <davea42@earthlink.net>.
11517 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11519         * posix/sys/wait.h: Remove unnecessary forward declaration.
11521 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11523         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11524         with obj->do_servers after first_shoot.
11526 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11528         * posix/Makefile (routines): Add sched_cpucount.
11529         (tests): Add tst-cpucount.
11530         * posix/sched_cpucount.c: New file.
11531         * posix/tst-cpucount.c: New file.
11532         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11533         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11534         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11535         * posix/sched.h: Define CPU_COUNT.
11537 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11539         * posix/fnmatch.c (STRUCT): Define.
11540         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11541         * posix/fnmatch_loop.c (struct STRUCT): New type.
11542         (FCT): Add ends argument.  If ends != NULL and normal * is
11543         seen in the pattern, store current pattern and string pointers
11544         and return.  Adjust recursive calls.
11545         (EXT): Adjust FCT callers.
11546         (STRUCT): Undef at the end of the file.
11547         * posix/Makefile (tests): Add tst-fnmatch2.
11548         * posix/tst-fnmatch2.c: New test.
11550 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11552         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11553         and 1 on failure.
11555         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11556         Change last argument to unsigned int.
11558 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11560         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11562 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11564         * config.h.in (HAVE_LIBCAP): Add.
11565         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11566         sys/capabilities.h.
11567         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11568         free_caps.  Cast away const from 4th cap_set_flag argument.
11570 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11572         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11573         GLIBC_2.6.
11574         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11575         Add sync_file_range.
11576         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11578 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11580         * sysdeps/powerpc/bits/atomic.h
11581         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11582         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11583         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11584         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11585         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11586         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11587         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11588         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11589         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11590         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11591         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11592         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11593         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11594         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11595         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11596         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11597         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11598         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11599         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11600         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11602 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11604         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11605         (__cache_line_size): Define the variable here.  Add
11606         attribute_hidden, remove weak_extern.
11607         (__libc_start_main): Set __cache_line_size
11608         unconditionally.
11609         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11610         (__cache_line_size): Define the variable here.  Add
11611         attribute_hidden, remove weak_extern.
11612         (DL_PLATFORM_AUXV): Set __cache_line_size
11613         unconditionally.
11614         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11615         weak_extern, add attribute_hidden.
11616         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11617         defined in ld.so.
11618         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11619         definition.
11620         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11622 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11624         [BZ #4276]
11625         * timezone/africa: Update from tzdata2007d.
11626         * timezone/asia: Likewise.
11627         * timezone/australasia: Likewise.
11628         * timezone/backward: Likewise.
11629         * timezone/europe: Likewise.
11630         * timezone/iso3166.tab: Likewise.
11631         * timezone/leapseconds: Likewise.
11632         * timezone/northamerica: Likewise.
11633         * timezone/southamerica: Likewise.
11634         * timezone/zone.tab: Likewise.
11636         * timezone/private.h: Update from tzcode2007d.
11637         * timezone/zdump.c: Likewise.
11638         * timezone/zic.c: Likewise.
11640 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11642         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11643         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11644         variables.
11645         (nis_server_cache_search, nis_server_cache_add): New functions.
11646         (__nisfind_server): Use them.  Add dbp and flags argument, if
11647         call __nisbind_create.
11648         (__nisbind_create): Add server_used and current_ep arguments,
11649         only call __nis_findfastest if server_used is ~0.
11650         (__do_niscall2, __prepare_niscall): Adjust callers.
11651         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11652         ckey_cache_euid, ckey_cache_lock): New variables.
11653         (get_ckey): New function.
11654         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11655         __pmap_getnisport.  Save __pmap_getnisport result in
11656         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11657         key.
11658         * nis/nis_lookup.c (nis_lookup): Likewise.
11659         * nis/nis_table.c (nis_list): Likewise.
11660         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11661         prototypes.
11663         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11664         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11665         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11666         _nss_nisplus_getservbyport_r): Likewise.
11667         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11668         _nss_nisplus_getnetbyaddr_r): Likewise.
11669         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11670         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11671         _nss_nisplus_getntohost_r): Likewise.
11672         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11673         _nss_nisplus_getrpcbynumber_r): Likewise.
11675 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11677         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11678         * configure: Rebuilt.
11680         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11681         bit-fields.
11682         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11684 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11686         [BZ #2831]
11687         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11688         bit-fields.
11690 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11692         * nscd/gai.c: Include alloca.h.
11693         (__libc_use_alloca): Define.
11695 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11697         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11698         smaller scopes.
11699         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11700         (DL_DST_REQUIRED): Adjust user.
11702         * include/dlfcn.h (struct link_map): New forward decl.
11704         * inet/getnameinfo.c: Include stddef.h.
11705         (getnameinfo): Use offsetof.
11707         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11709         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11711         * string/strerror_l.c: Include stdlib.h.
11713         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11714         * config.make.in (gnu89-inline-CFLAGS): New variable.
11715         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11716         -std=gnu99.
11717         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11718         * argp/argp.h: Use it.
11719         * bits/mathinline.h: Likewise.
11720         * bits/sigset.h: Likewise.
11721         * bits/string.h: Likewise.
11722         * ctype/ctype.h: Likewise.
11723         * hurd/hurd.h: Likewise.
11724         * hurd/hurd/fd.h: Likewise.
11725         * hurd/hurd/port.h: Likewise.
11726         * hurd/hurd/signal.h: Likewise.
11727         * hurd/hurd/threadvar.h: Likewise.
11728         * hurd/hurd/userlink.h: Likewise.
11729         * io/sys/stat.h: Likewise.
11730         * libio/bits/stdio.h: Likewise.
11731         * libio/bits/stdio2.h: Likewise.
11732         * mach/lock-intern.h: Likewise.
11733         * mach/mach/mig_support.h: Likewise.
11734         * math/bits/cmathcalls.h: Likewise.
11735         * posix/bits/unistd.h: Likewise.
11736         * socket/bits/socket2.h: Likewise.
11737         * stdlib/bits/stdlib.h: Likewise.
11738         * stdlib/stdlib.h: Likewise.
11739         * string/argz.h: Likewise.
11740         * string/bits/string2.h: Likewise.
11741         * string/bits/string3.h: Likewise.
11742         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11743         * sysdeps/generic/inttypes.h: Likewise.
11744         * sysdeps/generic/machine-lock.h: Likewise.
11745         * sysdeps/generic/machine-sp.h: Likewise.
11746         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11747         * sysdeps/i386/i486/bits/string.h: Likewise.
11748         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11749         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11750         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11751         * sysdeps/mach/i386/machine-lock.h: Likewise.
11752         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11753         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11754         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11755         * sysdeps/s390/bits/string.h: Likewise.
11756         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11757         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11758         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11759         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11760         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11761         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11762         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11763         * wcsmbs/bits/wchar2.h: Likewise.
11764         * wcsmbs/wchar.h: Likewise.
11765         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11766         __extern_inline definition.
11768 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11770         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11771         NULL.
11773         [BZ #3919]
11774         * math/libm-test.inc (log_test): Test -Inf and NaN.
11775         (log10_test, log1p_test, log2_test): Test -Inf.
11776         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11777         FE_INVALID when argument is qNaN.
11778         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11779         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11780         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11781         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11782         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11783         testb $4, %ah and jump if non-zero.
11784         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11785         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11787         [BZ #4101]
11788         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11789         ancestors with the same depths.
11790         Patch by Niels Moeller <nisse@lysator.liu.se>.
11791         (filter_doc): Don't crash if argp is NULL.
11792         * argp/Makefile (tests): Add tst-argp2.
11793         * argp/tst-argp2.c: New test.
11795         [BZ #4130]
11796         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11797         open_not_cancel_2.
11798         (updwtmp_file): Likewise.
11800         [BZ #4181]
11801         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11802         (inet6_opt_append): Don't check extlen is big enough if extbuf
11803         is NULL.
11804         (inet6_opt_finish): Likewise.
11805         * inet/Makefile (tests): Add test-inet6_opt.
11806         * inet/test-inet6_opt.c: New test.
11808         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11809         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11810         NLMSG_ERR.  Instead use a page sized buffer.
11811         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11812         buffer.
11814 2007-03-14  Richard Henderson  <rth@redhat.com>
11816         * sysdeps/alpha/fpu/s_llround.c: New file.
11817         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11818         * sysdeps/alpha/fpu/s_lround.c: New file.
11819         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11820         * sysdeps/alpha/fpu/s_round.c: New file.
11821         * sysdeps/alpha/fpu/s_roundf.c: New file.
11822         * sysdeps/alpha/fpu/s_trunc.c: New file.
11823         * sysdeps/alpha/fpu/s_truncf.c: New file.
11825         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11826         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11827         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11828         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11829         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11830         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11832         * sysdeps/alpha/fpu/s_fmax.S: New file.
11833         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11834         * sysdeps/alpha/fpu/s_fmin.S: New file.
11835         * sysdeps/alpha/fpu/s_fminf.S: New file.
11836         * sysdeps/alpha/fpu/s_isnan.c: New file.
11837         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11838         * sysdeps/alpha/fpu/s_llrint.c: New file.
11839         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11840         * sysdeps/alpha/fpu/s_lrint.c: New file.
11841         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11842         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11843         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11845         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11846         (__fdimf, fdimf, __fdim, fdim): Remove.
11847         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11848         (__isnanf, __isnan, __isnanl): New.
11850 2007-03-13  Richard Henderson  <rth@redhat.com>
11852         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11854 2007-03-13  Richard Henderson  <rth@redhat.com>
11856         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11857         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11858         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11859         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11860         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11861         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11863 2007-03-13  Richard Henderson  <rth@redhat.com>
11865         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11866         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11867         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11868         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11869         Move to dl-auxv.h; initialize instead of extern weak.
11870         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11871         weak symbol.
11872         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11873         Extern instead of initialized.
11875 2007-03-13  Richard Henderson  <rth@redhat.com>
11877         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11878         __sigsuspend_nocancel.
11880 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11882         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11883         172.16/12 address range.
11885 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11887         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11888         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11889         message.
11891 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11893         [BZ #4069]
11894         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11895         earlier.
11896         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11898         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11899         for x qNaN and y either +-inf or non-integer value.
11900         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11901         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11902         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11904 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11906         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11907         from sysdep_headers.
11909 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11911         * time/tzfile.c (find_transition): Instead of a linear search try to
11912         guess the transition index, use a linear search if the result is at
11913         most 10 transitions away from the guess or binary search otherwise.
11915 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11917         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11918         memory reallocation.
11920 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11922         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11923         and fix some typos.
11924         Optimize use of TOLOWER.
11926         [BZ #3325]
11927         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11928         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11929         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11931         [BZ #3458]
11932         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11933         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11935         [BZ #4076]
11936         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11937         (open_dir_stream): Likewise.
11938         * io/Makefile (tests): Add bug-ftw5.
11939         * io/bug-ftw5.c: New file.
11941         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11942         * nscd/servicescache.c (cache_addserv): Likewise.
11944         * nscd/grpcache.c (cache_addgr): In case a record changed on
11945         refresh, adjust key_copy.
11947         [BZ #4074]
11948         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11949         refresh, adjust key_copy.
11951         [BZ #4070]
11952         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11953         special cases.
11954         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11956 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11958         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11959         optimization.
11961         * stdio-common/vfscanf.c: Small cleanups throughout.
11963 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11965         [BZ #3325]
11966         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11967         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11968         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11969         Patch by Jared Casper <jaredcasper@gmail.com>.
11971         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11972         * sysdeps/unix/opendir.c: Likewise.
11973         * sysdeps/unix/readdir.c: Likewise.
11975         [BZ #2211]
11976         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11977         point numbers.
11978         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11980         * stdio-common/vfscanf.c: Fix problems in width accounting.
11981         * stdio-common/tst-sscanf.c (double_tests): New tests.
11982         (main): Hook them up.
11984         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11985         More simplifications of floating-point reader.
11987         * stdio-common/Makefile (tests): Add tst-swscanf.
11988         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11989         testing.
11990         * stdio-common/tst-swscanf.c: New file.
11992 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11994         [BZ #2633]
11995         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11996         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11997         Remove using for __jmp_buf_tag.
11998         * locale/locale.h (struct lconv): Also define in std namespace.
11999         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12001         [BZ #3842]
12002         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12003         using __libc_enable_secure.
12005         [BZ #3818]
12006         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12008         [BZ #3745]
12009         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12010         of names for ellipsises.
12012         [BZ #3348]
12013         * malloc/memusage.sh: Cleanups.
12014         * debug/xtrace.sh: Quoting and trap changes.
12016 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12018         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12020         * locale/iso-3166.def: Update entry for Serbia.
12021         * locale/iso-4217.def: Define RSD, remove CSD.
12023         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12024         and 64-bit operations.
12026         [BZ #4040]
12027         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12028         16-bit operations.
12030         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12031         of writev.
12033 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12035         [BZ #3991]
12036         * assert/assert.h (assert): Simplify.
12037         (assert_perror): Likewise.
12038         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12040         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12041         reqdata.
12043         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12044         change: don't pass NULL in place of an integer.
12046 2007-02-02  Bruno Haible  <bruno@clisp.org>
12048         [BZ #3954]
12049         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12050         Add mapping for U+327E.
12051         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12052         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12053         mapping of 0xD9 0xE8.
12054         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12055         mapping of U+327E.
12056         Reported by Jungshik Shin <jungshik@google.com>.
12058         [BZ #3955]
12059         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12060         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12061         Reported by Jungshik Shin <jungshik@google.com>.
12063 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12065         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12066         byte variants.
12068         [BZ #4040]
12069         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12070         byte variants.  Patch mostly be tom@tommay.net.
12072 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12074         [BZ #3996]
12075         * posix/glob.c (attribute_hidden): Define if not defined.
12076         (glob): Unescape dirname, filename or username when needed and not
12077         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12078         is NULL.  Handle unescaped [ in pattern without closing ].
12079         Don't pass GLOB_CHECK down to recursive glob for directories.
12080         (__glob_pattern_type): New function.
12081         (__glob_pattern_p): Implement using __glob_pattern_type.
12082         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12083         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12084         Remove unreachable code.
12085         * posix/globtest.sh: Add a couple of new tests.
12087 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12089         * po/ru.po: Update from translation team.
12091 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12093         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12094         to the list of i486+ CPUs.
12095         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12097 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12099         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12100         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12101         references.
12103 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12105         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12107         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12108         * resolv/res_mkquery.c: Define __res_nopt.
12109         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12110         try adding EDNS0 record.
12111         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12112         EDNS0 record was send make sure we don't try it again.
12113         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12114         * include/resolv.h: Declare __res_nopt.
12116 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12118         [BZ #3944]
12119         * time/strptime_l.c (__strptime_internal): Set have_mon for
12120         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12121         have been computed from tm_yday and tm_year.  Don't crash
12122         in day_of_the_week or day_of_the_year if not have_mon
12123         and tm_mon contains bogus value.
12124         * time/Makefile (tests): Add tst-strptime3.
12125         * time/tst-strptime3.c: New test.
12127 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12129         [BZ #3957]
12130         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12131         bit for RE_HAT_LISTS_NOT_NEWLINE.
12132         (build_charclass_op): Remove bogus comment.
12133         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12134         * posix/bug-regex27.c: New test.
12135         * posix/bug-regex28.c: New test.
12137 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12139         * po/sv.po: Update from translation team.
12141 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12143         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12145 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12147         * include/locale.h (__uselocale): Add libc_hidden_proto.
12148         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12150         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12151         gettimeofday.
12153 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12155         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12156         returning.
12157         (PTR_DEMANGLE): Real definition now that it's not the same as
12158         PRT_MANGLE anymore.
12159         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12161         * string/strerror_l.c: New file.
12162         * string/Makefile (routines): Add strerror_l.
12163         * string/string.h: Declare strerror_l.
12164         * string/Versions: Export strerror_l for GLIBC_2.6.
12166 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12168         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12169         as parameter.  Construct request record.  Try sending request
12170         before the first poll use, it usually succeeds.  Adjust all
12171         callers.
12172         * nscd/nscd-client.h: Define MAXKEYLEN.
12173         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12175 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12177         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12178         from return value.
12179         * nscd/nscd_helper.c: Include string.h.
12180         (__nscd_cache_search): Remove const qualifier from return value.
12181         On strict alignment architectures check hash entry and data head
12182         alignment.
12183         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12184         mmapped data during GC cycle contains garbage.  If
12185         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12186         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12187         dropped to 0.
12188         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12189         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12190         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12191         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12192         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12194 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12196         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12198 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12200         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12201         names not numbers in cfi_*.
12203 2007-01-26  Andreas Jaeger  <aj@suse.de>
12205         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12206         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12207         Correct values of PER_HPUX and PER_OSF4.
12209 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12211         * elf/dl-minimal.c: Undefine _itoa first.
12212         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12213         * malloc/mtrace.c: Revert last change.
12214         * posix/wordexp.c: Likewise.
12216 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12218         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12219         and __geode__ to the list of i486+ CPUs.
12220         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12222 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12224         * stdio-common/_itoa.c: Include <limits.h>.
12225         * stdio-common/_itowa.c: Likewise.
12227 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12229         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12230         platforms.
12231         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12232         64-bit platforms.
12233         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12234         possible.
12235         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12236         if possible.
12238         [BZ #3902]
12239         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12240         * stdio-common/Makefile (tests): Add bug17.
12241         * stdio-common/bug17.c: New file.
12243 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12245         * iconvdata/brf.c: New file.
12246         * iconvdata/testdata/BRF: New file.
12247         * iconvdata/testdata/BRF..UTF8: New file.
12248         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12249         * iconvdata/Makefile: Add rules to build BRF.
12250         * iconvdata/TESTS: Add BRF entry.
12251         * iconvdata/gconv-modules: Likewise.
12252         * iconvdata/tst-tables.sh: Likewise.
12254 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12256         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12257         type `long long int', not `long int'.
12258         (wcstoq): Likewise.
12260 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12262         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12263         of values on 64-bit platforms which are too large.
12265 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12266             Joe Kerian  <jkerian@us.us.ibm.com>
12268         [BZ #2749]
12269         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12270         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12271         (__copysignl): Use signbit() for comparison.
12272         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12273         SET_LDOUBLE_WORDS64.
12275         [BZ #2423, #2749]
12276         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12277         (__ceill): Remove calls to fegetround(), fesetround().
12278         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12282 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12284         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12286         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12288 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12290         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12291         demangle pointer.
12292         * csu/libc-start.c: Likewise.
12294 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12296         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12297         really work anyway.
12299 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12301         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12302         users.
12303         (handle_request): Remove unnecessary tests.
12305         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12307 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12309         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12310         workbits in semi-raw fraction.
12312         * math/test-misc.c: Add new tests.
12314 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12316         * math/basic-test.c: Include test-skeleton.c.
12317         (TEST_TRUNC): Define.
12318         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12319         (main): Rename to ...
12320         (do_test): ...this.  Run new tests.
12321         (TEST_FUNCTION): Define.
12323 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12324             Joe Kerian  <jkerian@us.us.ibm.com>
12326         [BZ #2749]
12327         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12328         handling for high words.
12329         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12330         and overflow for infinity.
12332 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12334         * nscd/connections.c (handle_request): Add a __builtin_expect.
12336         * nscd/connections.c (serv2db): Change type into structure which
12337         also says whether this is a request for data.  Renamed to
12338         servinfo.  All users changed.
12339         (handle_request): Much simpler test whether we should search the cache.
12341         * nscd/connections.c (handle_request): Fix thinko in selinux test
12342         invocation.
12344         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12345         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12346         it before getting dl_load_lock and then relock.
12347         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12348         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12349         case we unlocked the scope.
12350         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12351         _dl_lookup_symbol_x in case we locked the scope.
12352         (_dl_profile_fixup): Likewise.
12353         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12354         set DL_LOOKUP_SCOPE_LOCK.
12356 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12358         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12359         CFLAGS-getsrvbynpt_r.c.
12360         * nscd/getsrvbynm_r.c: New file.
12361         * nscd/getsrvbypt_r.c: New file.
12362         * nscd/nscd_getserv_r.c: New file.
12363         * nscd/servicescache.c: New file.
12364         * nscd/Makefile (routines): Add nscd_getserv_r.
12365         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12366         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12367         CFLAGS-getsrvbypt_r.c.
12368         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12369         table.  Add entries for services database.
12370         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12371         services database.
12372         (dbs): Add .reset_res and servdb initialization.
12373         (serv2db): Add entries for services database.
12374         (verify_persistent_db): Accept dbnr == servdb.
12375         (invalidate_cache): Rewrite database name recognition to use a table.
12376         Call res_init() if .reset_res is set for database.
12377         (handle_request): Add code to handle services database.
12378         * nscd/gai.c: Don't define __getservbyname_r.
12379         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12380         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12381         (serv_response_header): Define.
12382         (struct datahead): Add serv_response_header member.
12383         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12384         using table.
12385         * nscd/nscd.conf: Add entries for services database.
12386         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12387         Declare serv_iov_disabled.
12388         Declare addservbyname, readdservbyname, addservbyport, and
12389         readdservbyport.
12390         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12391         (find_db): Fix error message.
12392         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12393         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12394         * nscd/selinux.c (perms): Add entries for services database.
12395         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12396         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12398         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12399         * nscd/hstcache.c: Likewise.
12400         * nscd/pwdcache.c: Likewise.
12402         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12403         computation of keylen.
12405         * include/string.h: Only redefine strndupa if this is really for
12406         libc code.
12408 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12410         * nscd/nscd_gethst_r.c: Minor cleanups.
12412         * nscd/connections.c (handle_request): Check selinux permissions
12413         for all non-admin commands.
12415         * sysdeps/i386/i486/bits/atomic.h: Define
12416         atomic_compare_and_exchange_val_acq,
12417         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12418         using __sync_* built-ins for gcc >= 4.1.
12419         * sysdeps/x86_64/bits/atomic.h: Likewise.
12421         [BZ #3840]
12422         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12423         and .oS.d files.
12425 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12427         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12428         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12429         (do_test): Check errno and exit(0) if ENOSYS.
12431 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12433         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12434         thousands separators.
12435         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12436         * stdlib/tst-strtod4.c: New test.
12438         [BZ #3855]
12439         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12440         hexadecimal digit should accept just the initial 0.
12441         * stdlib/tst-strtod2.c (tests): New variable.
12442         (do_test): Run several tests rather than just one.
12444 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12446         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12447         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12449 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12451         * io/fts.c: Make sure fts_cur is always valid after return from
12452         fts_read.
12453         Patch by Miloslav Trmac <mitr@redhat.com>.
12455 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12457         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12458         (R_MIPS_NUM): Bump by 1.
12460 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12462         * posix/execvp.c: Include alloca.h.
12463         (allocate_scripts_argv): Renamed to...
12464         (scripts_argv): ... this.  Don't allocate buffer here nor count
12465         arguments.
12466         (execvp): Use alloca if possible.
12467         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12468         * posix/tst-vfork3.c: New test.
12470 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12472         * string/Makefile (tst-strxfrm2-ENV): Define.
12473         * stdlib/Makefile (tst-strtod3-ENV): Define.
12475 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12477         * posix/getconf.c: Update copyright year.
12478         * nss/getent.c: Likewise.
12479         * iconv/iconvconfig.c: Likewise.
12480         * iconv/iconv_prog.c: Likewise.
12481         * elf/ldconfig.c: Likewise.
12482         * catgets/gencat.c: Likewise.
12483         * csu/version.c: Likewise.
12484         * elf/ldd.bash.in: Likewise.
12485         * elf/sprof.c (print_version): Likewise.
12486         * locale/programs/locale.c: Likewise.
12487         * locale/programs/localedef.c: Likewise.
12488         * nscd/nscd.c (print_version): Likewise.
12489         * debug/xtrace.sh: Likewise.
12490         * malloc/memusage.sh: Likewise.
12491         * malloc/mtrace.pl: Likewise.
12492         * debug/catchsegv.sh: Likewise.
12494 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12496         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12497         attempts.
12499 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12501         * posix/wordexp.c: Remove some unnecessary tests.
12503 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12505         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12506         blacklist the group till after we look it up.
12508 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12510         * include/atomic.h (atomic_forced_read): New macro.
12512 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12514         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12516 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12518         * nss/getXXbyYY_r.c: Include atomic.h.
12519         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12520         add atomic_write_barrier () in between.
12522         * stdlib/Makefile (tests): Add tst-makecontext.
12523         * stdlib/tst-makecontext.c: New test.
12525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12526         (__makecontext): Don't realign uc_mcontext.uc_regs.
12528 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12530         * elf/dl-support.c: Include dl-procinfo.h.
12531         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12532         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12533         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12534         Define.
12535         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12536         hardcoded constants.
12537         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12538         PPC_PLATFORM_* macros for array designators.
12540 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12542         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12543         names to the beginning.
12544         (_dl_powerpc_platforms): Add "power6x".
12545         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12546         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12547         (_DL_PLATFORMS_COUNT): Increase.
12548         (_dl_string_platform): Handle power6x case.
12549         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12550         PPC_FEATURE_POWER6_EXT): Define.
12551         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12553 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12555         [BZ #3747]
12556         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12557         [-2^31 .. 2^31) range.
12558         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12559         targets.
12560         * stdlib/tst-rand48-2.c: New test.
12561         * stdlib/Makefile (tests): Add tst-rand48-2.
12563 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12565         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12567 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12569         * misc/tst-pselect.c (do_test): Make sure the helper process is
12570         terminating when the test is aborted.
12572 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12574         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12575         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12576         Handle relatime mount option.
12578         [BZ #2337]
12579         * libio/Makefile (tests): Add tst-setvbuf1.
12580         * libio/tst-setvbuf1.c: New file.
12582 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12584         [BZ #2337]
12585         * libio/genops.c (__uflow): Fix a typo.
12586         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12587         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12588         the narrow buffer size.
12590 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12592         [BZ #2337]
12593         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12594         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12595         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12596         in _flags.
12597         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12598         _IO_wstr_finish): Likewise.
12599         * libio/wmemstream.c (open_wmemstream): Likewise.
12600         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12601         even for wide streams.
12603 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12606         kernel-features.h.
12608 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12610         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12611         separators also if no non-zero digits found.
12612         * stdlib/Makefile (tests): Add tst-strtod3.
12614 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12616         [BZ #3632]
12617         * include/features.h: Fix comment about default value for
12618         _POSIX_C_SOURCE.
12620         [BZ #3664]
12621         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12622         empty parsed strings.
12623         * stdlib/Makefile (tests): Add tst-strtod2.
12624         * stdlib/tst-strtod2.c: New file.
12626         [BZ #3673]
12627         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12628         computation.
12629         * stdlib/Makefile (tests): Add tst-atof2.
12630         * stdlib/tst-atof2.c: New file.
12632         [BZ #3674]
12633         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12634         correctly if removing trailing zero of hex-float.
12635         * stdlib/Makefile (tests): Add tst-atof1.
12636         * stdlib/tst-atof1.c: New file.
12638 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12640         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12641         Start searching for next comma at p rather than rest.
12642         * misc/Makefile (tests): Add tst-mntent2.
12643         * misc/tst-mntent2.c: New test.
12645         * misc/getusershell.c (initshells): Check for integer overflows.
12646         Make strings buffer one bigger as fgets always succeeds when second
12647         argument is 1.  Don't use calloc for shells array.  Disallow
12648         / as shell.
12650 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12652         * malloc/memusage.c: Handle realloc with new size of zero and
12653         non-NULL pointer correctly.
12654         (me): Really write first record twice.
12655         (struct entry): Make format bi-arch safe.
12656         (dest): Write out more realloc statistics.
12657         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12659 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12661         * nis/nis_subr.c (nis_getnames): Revert last change.
12663 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12665         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12666         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12667         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12668         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12669         ENOTTY.
12670         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12671         * io/tst-ttyname_r.c: New test.
12673 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12675         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12677 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12679         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12680         jump table entries.
12682 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12684         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12685         `clone' function to ensure proper unwinding stop of gdb.
12686         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12688 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12690         * nscd/nscd.init: Remove obsolete and commented-out -S option
12691         handling.
12693 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12695         [BZ #3514]
12696         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12698         [BZ #3515]
12699         * manual/string.texi (strtok): Remove duplicate paragraph.
12701 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12703         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12704         libgcc not supporting `rflags' unwinding (register # >= 17).
12706 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12708         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12709         succeeded.
12711 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12712             Jakub Jelinek  <jakub@redhat.com>
12713             Jan Kratochvil  <jan.kratochvil@redhat.com>
12715         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12716         unwind information.
12717         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12718         'restore_rt' even in the 'signal' directory.
12719         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12721 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12723         [BZ #3559]
12724         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12725         malloc crashed.  Don't allocate memory unnecessarily in each
12726         loop.
12728 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12730         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12732 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12734         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12736 2006-11-18  Bruno Haible  <bruno@clisp.org>
12738         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12739         __sysconf only after having tried to call getgroups32.
12741 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12743         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12744         addresses for IPv4 queries if they can be mapped.
12746 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12748         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12749         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12750         (signmask): Add .size directive.
12751         (othermask): Add .type directive.
12753 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12755         * po/nl.po: Update from translation team.
12757         * timezone/zdump.c: Redo fix for BZ #3137.
12759 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12761         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12762         to first_unused after parsing :include: file.
12764 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12766         * timezone/africa: Update from tzdata2006o.
12767         * timezone/antarctica: Likewise.
12768         * timezone/asia: Likewise.
12769         * timezone/australasia: Likewise.
12770         * timezone/backward: Likewise.
12771         * timezone/europe: Likewise.
12772         * timezone/iso3166.tab: Likewise.
12773         * timezone/northamerica: Likewise.
12774         * timezone/southamerica: Likewise.
12775         * timezone/zone.tab: Likewise.
12777         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12778         on machines with 64-bit time_t.
12780         * timezone/checktab.awk: Update from tzcode2006o.
12781         * timezone/ialloc.c: Likewise.
12782         * timezone/private.h: Likewise.
12783         * timezone/scheck.c: Likewise.
12784         * timezone/tzfile.h: Likewise.
12785         * timezone/tzselect.ksh: Likewise.
12786         * timezone/zdump.c: Likewise.
12787         * timezone/zic.c: Likewise.
12789         [BZ #3483]
12790         * elf/ldconfig.c (main): Call setlocale and textdomain.
12791         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12793         [BZ #3480]
12794         * manual/argp.texi: Fix typos.
12795         * manual/charset.texi: Likewise.
12796         * manual/errno.texi: Likewise.
12797         * manual/filesys.texi: Likewise.
12798         * manual/lang.texi: Likewise.
12799         * manual/maint.texi: Likewise.
12800         * manual/memory.texi: Likewise.
12801         * manual/message.texi: Likewise.
12802         * manual/resource.texi: Likewise.
12803         * manual/search.texi: Likewise.
12804         * manual/signal.texi: Likewise.
12805         * manual/startup.texi: Likewise.
12806         * manual/stdio.texi: Likewise.
12807         * manual/sysinfo.texi: Likewise.
12808         * manual/syslog.texi: Likewise.
12809         * manual/time.texi: Likewise.
12810         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12812         [BZ #3465]
12813         * sunrpc/clnt_raw.c: Minimal message improvements.
12814         * sunrpc/pm_getmaps.c: Likewise.
12815         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12816         * nis/nis_print_group_entry.c: Likewise.
12817         * locale/programs/repertoire.c: Likewise.
12818         * locale/programs/charmap.c: Likewise.
12819         * malloc/memusage.sh: Likewise.
12820         * elf/dl-deps.c: Likewise.
12821         * locale/programs/ld-collate.c: Likewise.
12822         * libio/vswprintf.c: Likewise.
12823         * malloc/memusagestat.c: Likewise.
12824         * sunrpc/auth_unix.c: Likewise.
12825         * sunrpc/rpc_main.c: Likewise.
12826         * nscd/cache.c: Likewise.
12827         * locale/programs/repertoire.c: Unify output messages.
12828         * locale/programs/charmap.c: Likewise.
12829         * locale/programs/ld-ctype.c: Likewise.
12830         * locale/programs/ld-monetary.c: Likewise.
12831         * locale/programs/ld-numeric.c: Likewise.
12832         * locale/programs/ld-time.c: Likewise.
12833         * elf/ldconfig.c: Likewise.
12834         * nscd/selinux.c: Likewise.
12835         * elf/cache.c: Likewise.
12836         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12838         [BZ #3451]
12839         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12840         change atomic.
12841         (ceil): Likewise.
12843 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12845         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12846         if N is one bigger than return value.
12847         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12848         and l1 last arguments, if buf is defined, verify the return value
12849         equals to strlen (buf) and verify no byte beyond passed length
12850         is modified.
12852 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12854         * po/sv.po: Update from translation team.
12856 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12858         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12859         noinline attribute.
12861 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12864         noinline attribute.
12866         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12867         Use __new_sys_siglist instead of _sys_siglist_internal as
12868         second macro argument.
12869         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12870         strong_alias.
12872 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12874         [BZ #3493]
12875         * posix/unistd.h (sysconf): Remove const attribute.
12877         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12878         temporary or deprecated addresses.
12879         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12881         * string/Makefile (tests): Add tst-strxfrm2.
12882         * string/tst-strxfrm2.c: New file.
12884 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12886         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12887         rather than r->r_brk.
12889 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12891         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12892         optimization even if needed > n.
12894         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12895         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12896         return false, otherwise return true.
12897         (cache_rpath): Return decompose_rpath return value.
12899 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12901         * include/libc-symbols.h (declare_symbol): Rename to...
12902         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12903         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12904         .size directive.
12905         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12906         changes.
12907         * sysdeps/gnu/siglist.c: Likewise.
12909 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12911         * sysdeps/powerpc/fpu/bits/mathinline.h
12912         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12913         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12915 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12917         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12918         Update handling of cache descriptor 0x49 for new models.
12919         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12920         Likewise.
12922 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12924         * malloc/memusage.c (dest): Reset not_me back to false after
12925         printing statistics.
12927 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12929         * configure.in: Work around ld --help change and avoid -z relro
12930         test completely if the architecture doesn't care about security.
12932 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12934         * po/sv.po: Update from translation team.
12936 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12938         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12939         generate compatibility version.
12941 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12943         * configure.in: Relax -z relro requirement a bit.
12945         * po/sv.po: Update from translation team.
12947 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12949         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12950         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12951         * elf/dl-close.c (_dl_close_worker): Likewise.
12952         * elf/dl-open.c (_dl_open_worker): Likewise.
12953         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12955 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12957         * configure.in: Require assembler support for visibility, compiler
12958         support for visibility and aliases, linker support for various -z
12959         options.
12960         * Makeconfig: Remove conditional code which now is unnecessary.
12961         * config.h.in: Likewise.
12962         * config.make.in: Likewise.
12963         * dlfcn/Makefile: Likewise.
12964         * elf/Makefile: Likewise.
12965         * elf/dl-load.c: Likewise.
12966         * elf/rtld.c: Likewise.
12967         * include/libc-symbols.h: Likewise.
12968         * include/stdio.h: Likewise.
12969         * io/Makefile: Likewise.
12970         * io/fstat.c: Likewise.
12971         * io/fstat64.c: Likewise.
12972         * io/fstatat.c: Likewise.
12973         * io/fstatat64.c: Likewise.
12974         * io/lstat.c: Likewise.
12975         * io/lstat64.c: Likewise.
12976         * io/mknod.c: Likewise.
12977         * io/mknodat.c: Likewise.
12978         * io/stat.c: Likewise.
12979         * io/stat64.c: Likewise.
12980         * libio/stdio.c: Likewise.
12981         * nscd/Makefile: Likewise.
12982         * stdlib/Makefile: Likewise.
12983         * stdlib/atexit.c: Likewise.
12984         * sysdeps/generic/ldsodefs.h: Likewise.
12985         * sysdeps/i386/dl-machine.h: Likewise.
12986         * sysdeps/i386/sysdep.h: Likewise.
12987         * sysdeps/i386/i686/memcmp.S: Likewise.
12988         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12989         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12990         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12992         * Makerules: USE_TLS support is now default.
12993         * tls.make.c: Likewise.
12994         * csu/Versions: Likewise.
12995         * csu/libc-start.c: Likewise.
12996         * csu/libc-tls.c: Likewise.
12997         * csu/version.c: Likewise.
12998         * dlfcn/dlinfo.c: Likewise.
12999         * elf/dl-addr.c: Likewise.
13000         * elf/dl-cache.c: Likewise.
13001         * elf/dl-close.c: Likewise.
13002         * elf/dl-iteratephdr.c: Likewise.
13003         * elf/dl-load.c: Likewise.
13004         * elf/dl-lookup.c: Likewise.
13005         * elf/dl-object.c: Likewise.
13006         * elf/dl-open.c: Likewise.
13007         * elf/dl-reloc.c: Likewise.
13008         * elf/dl-support.c: Likewise.
13009         * elf/dl-sym.c: Likewise.
13010         * elf/dl-sysdep.c: Likewise.
13011         * elf/dl-tls.c: Likewise.
13012         * elf/ldconfig.c: Likewise.
13013         * elf/rtld.c: Likewise.
13014         * elf/tst-tls-dlinfo.c: Likewise.
13015         * elf/tst-tls1.c: Likewise.
13016         * elf/tst-tls10.h: Likewise.
13017         * elf/tst-tls14.c: Likewise.
13018         * elf/tst-tls2.c: Likewise.
13019         * elf/tst-tls3.c: Likewise.
13020         * elf/tst-tls4.c: Likewise.
13021         * elf/tst-tls5.c: Likewise.
13022         * elf/tst-tls6.c: Likewise.
13023         * elf/tst-tls7.c: Likewise.
13024         * elf/tst-tls8.c: Likewise.
13025         * elf/tst-tls9.c: Likewise.
13026         * elf/tst-tlsmod1.c: Likewise.
13027         * elf/tst-tlsmod13.c: Likewise.
13028         * elf/tst-tlsmod13a.c: Likewise.
13029         * elf/tst-tlsmod14a.c: Likewise.
13030         * elf/tst-tlsmod2.c: Likewise.
13031         * elf/tst-tlsmod3.c: Likewise.
13032         * elf/tst-tlsmod4.c: Likewise.
13033         * elf/tst-tlsmod5.c: Likewise.
13034         * elf/tst-tlsmod6.c: Likewise.
13035         * include/errno.h: Likewise.
13036         * include/link.h: Likewise.
13037         * include/tls.h: Likewise.
13038         * locale/global-locale.c: Likewise.
13039         * locale/localeinfo.h: Likewise.
13040         * malloc/arena.c: Likewise.
13041         * malloc/hooks.c: Likewise.
13042         * malloc/malloc.c: Likewise.
13043         * resolv/Versions: Likewise.
13044         * sysdeps/alpha/dl-machine.h: Likewise.
13045         * sysdeps/alpha/libc-tls.c: Likewise.
13046         * sysdeps/generic/ldsodefs.h: Likewise.
13047         * sysdeps/generic/tls.h: Likewise.
13048         * sysdeps/i386/dl-machine.h: Likewise.
13049         * sysdeps/ia64/dl-machine.h: Likewise.
13050         * sysdeps/ia64/libc-tls.c: Likewise.
13051         * sysdeps/mach/hurd/fork.c: Likewise.
13052         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13053         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13054         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13055         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13056         * sysdeps/s390/libc-tls.c: Likewise.
13057         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13058         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13059         * sysdeps/sh/dl-machine.h: Likewise.
13060         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13061         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13062         * sysdeps/x86_64/dl-machine.h: Likewise.
13064         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13065         split out locking and parameter checking.
13066         (_dl_close): Call _dl_close_worker after locking and checking.
13067         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13068         _dl_close.
13069         * elf/Makefile: Add rules to build and run tst-thrlock.
13070         * elf/tst-thrlock.c:  New file.
13072         [BZ #3426]
13073         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13074         reality.
13076         [BZ #3429]
13077         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13078         we are sure we do not need it anymore for _dl_close.  Also move
13079         the asserts inside the lock region.
13080         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13082 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13084         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13085         argument.
13086         (_dl_lookup_symbol_x): Adjust caller.
13088         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13089         _ns_global_scope.
13090         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13092         * elf/dl-libc.c: Revert l_scope name changes.
13093         * elf/dl-load.c: Likewise.
13094         * elf/dl-object.c: Likewise.
13095         * elf/rtld.c: Likewise.
13096         * elf/dl-close.c (_dl_close): Likewise.
13097         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13098         always use __rtld_mrlock_{change,done}.  Always free old scope list
13099         here if not l_scope_mem.
13100         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13101         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13102         the lookup and __rtld_mrlock_unlock it after the lookup.
13103         * elf/dl-sym.c: Likewise.
13104         * include/link.h (struct r_scoperec): Remove.
13105         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13106         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13108 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13110         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13112 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13114         * configure.in: Disable building profile libraries by default.
13116 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13118         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13119         as signed longs, check for x_base + pos overflow.
13120         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13121         * sunrpc/tst-xdrmem2.c: New test.
13123 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13125         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13126         _dl_lookup_symbol_x code.
13128 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13130         * elf/dl-runtime.c: Include sysdep-cancel.h.
13131         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13132         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13133         instead of catomic_* macros.
13134         * elf/dl-sym.c: Include sysdep-cancel.h.
13135         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13136         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13137         * elf/dl-close.c: Include sysdep-cancel.h.
13138         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13139         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13140         * elf/dl-open.c: Include sysdep-cancel.h.
13141         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13142         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13144 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13146         [BZ #3313]
13147         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13148         fastbin rather than end of fastbin array.
13150 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13152         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13153         body macro.
13154         * sysdeps/x86_64/bits/atomic.h
13155         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13156         (catomic_decrement): Use correct body macro.
13158 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13160         * include/atomic.h: Add a unique prefix to all local variables
13161         in macros.
13162         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13164 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13166         [BZ #3369]
13167         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13168         and 7.
13170 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13172         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13174 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13176         [BZ #3313]
13177         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13178         determine highest fast bin to consolidate, always look into all of
13179         them.
13180         (do_check_malloc_state): Only require for empty bins for large
13181         sizes in main arena.
13183         * libio/stdio.h: Add more __wur attributes.
13185         * elf/dl-minimal.c (realloc): Optimize last patch.
13187 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13189         [BZ #3352]
13190         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13191         and use memcpy() if it does.
13193 2006-11-12  Andreas Jaeger  <aj@suse.de>
13195         [BZ #2510]
13196         * manual/search.texi (Hash Search Function): Clarify.
13197         (Array Search Function): Clarify.
13199 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13201         [BZ #2830]
13202         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13203         shifting.
13204         * math/atest-exp2.c (read_mpn_hex): Likewise.
13205         * math/atest-sincos.c (main): Likewise.
13207 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13209         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13210         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13211         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13212         version GLIBC_2.6.
13213         * Versions.def: Add GLIBC_2.6 for libc.
13215         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13217         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13219 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13221         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13223         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13225         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13226         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13228 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13230         * include/atomic.c: Define catomic_* operations.
13231         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13232         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13233         * malloc/memusage.c: Likewise.
13234         * gmon/mcount.c: Likewise.
13235         * elf/dl-close.c: Likewise.
13236         * elf/dl-open.c: Likewise.
13237         * elf/dl-profile.c: Likewise.
13238         * elf/dl-sym.c: Likewise.
13239         * elf/dl-runtime.c: Likewise.
13240         * elf/dl-fptr.c: Likewise.
13241         * resolv/res_libc.c: Likewise.
13243 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13245         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13246         components which lack them.
13248         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13249         at least one entry consisting of the parameter concatenated with
13250         the domain.
13252 2006-10-10  Roland McGrath  <roland@frob.com>
13254         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13255         * sysdeps/mach/hurd/futimes.c: Likewise.
13256         * sysdeps/mach/hurd/lutimes.c: Likewise.
13258 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13259             Jakub Jelinek  <jakub@redhat.com>
13261         Implement reference counting of scope records.
13262         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13263         from the list in objects which remain.  Always allocate new scope
13264         record.
13265         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13266         don't resize, allocate a new one.
13267         * elf/dl-runtime.c: Update reference counters before using a scope
13268         array.
13269         * elf/dl-sym.c: Likewise.
13270         * elf/dl-libc.c: Adjust for l_scope name change.
13271         * elf/dl-load.c: Likewise.
13272         * elf/dl-object.c: Likewise.
13273         * elf/rtld.c: Likewise.
13274         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13275         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13276         Add l_scoperec_lock.
13277         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13278         * sysdeps/generic/rtld-lowlevel.h: New file.
13280         * include/atomic.h: Rename atomic_and to atomic_and_val and
13281         atomic_or to atomic_or_val.  Define new macros atomic_and and
13282         atomic_or which do not return values.
13283         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13284         Various cleanups.
13285         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13287         * po/sv.po: Update from translation team.
13289 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13291         * Versions.def: Add GLIBC_2.6 to libpthread.
13293         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13294         (versioned_symbol): Likewise.
13295         (compat_symbol): Likewise.
13297         * po/tr.po: Update from translation team.
13299 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13301         * nis/Banner: Removed.  It's been integral part forever and the
13302         author info is incomplete anyway.
13303         * libio/Banner: Likewise.
13305         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13306         code, make sure the nis_freeresult call doesn't crash and that the
13307         result is reported correctly.
13309 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13311         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13312         when callback is NULL.
13314         * nis/Versions (libnss_nisplus): Add
13315         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13316         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13317         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13318         _nss_create_tablename): Rename to...
13319         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13320         ... these.  No longer static.
13321         (internal_setgrent): Adjust users.
13322         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13323         Don't use locking around _nss_grp_create_tablename call.
13324         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13326 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13328         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13330 2006-10-06  Andreas Jaeger  <aj@suse.de>
13332         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13334 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13336         * po/pl.po: Update from translation team.
13338         * nscd/nscd.c (main): Fix typo in message.
13339         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13341 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13343         [BZ #3291]
13344         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13345         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13346         (__sigprocmask): Define.
13348 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13350         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13351         used.
13353 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13355         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13356         in oldtotal and newtotal calculation.
13357         * nscd/nscd-client.h (struct mapped_database): Add datasize
13358         field.
13359         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13360         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13361         increased.
13362         (__nscd_cache_search): Add checks to make sure we never reference
13363         data beyond the current mapping.
13365 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13367         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13368         variables const to avoid compiler warnings.
13370         * io/fts.c (fts_close): Remove redundant checks.
13371         (fts_build): Likewise.
13372         (fts_palloc): Likewise.
13374         * manual/message.texi (Advanced gettext functions,
13375         Using gettextized software): Fix typos.
13377 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13379         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13380         explain why there are no leaks.
13382 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13384         * libio/wmemstream.c: Include <wchar.h>.
13385         * libio/bug-wmemstream1.c: Likewise.
13386         * libio/tst-wmemstream1.c: Likewise.
13387         * libio/tst-wmemstream2.c: Likewise.
13389         * version.h (RELEASE): Bump to 2.5.
13390         * README: Regenerated.
13392         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13394         [BZ #3273]
13395         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13396         found no group members.
13397         Patch by Petr Baudis.
13399 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13401         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13402         assert bootstrap_map.l_tls_modid is zero.
13403         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13404         if USE___THREAD.
13406 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13408         * libio/stdio.h: Move open_wmemstream prototype to ...
13409         * wcsmbs/wchar.h: ... here.
13411 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13413         [BZ #3252]
13414         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13415         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13416         __{,l}chown to handle the rest.
13417         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13418         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13419         __{,l}chown to handle the rest.
13420         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13421         i386/fchownat.c.
13422         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13423         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13425         [BZ #3253]
13426         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13427         time, rather allocate increasingly bigger arrays of pointers, if
13428         possible with alloca, if too large with malloc.
13430 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13432         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13434         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13436 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13438         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13439         home addresses.
13440         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13441         IFA_F_HOMEADDRESS flag for interfaces.
13442         * include/ifaddrs.h (struct in6addrinfo): Define
13443         in6ai_homeaddress.
13445 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13447         [BZ #3225]
13448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13449         PTR_DEMANGLE3): Define.
13450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13451         PTR_DEMANGLE3): Likewise.
13452         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13453         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13454         Likewise.
13455         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13457 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13459         * po/libc.pot: Regenerated.
13460         * po/be.po: Updated.
13461         * po/ca.po: Likewise.
13462         * po/cs.po: Likewise.
13463         * po/da.po: Likewise.
13464         * po/de.po: Likewise.
13465         * po/el.po: Likewise.
13466         * po/en_GB.po: Likewise.
13467         * po/es.po: Likewise.
13468         * po/fi.po: Likewise.
13469         * po/fr.po: Likewise.
13470         * po/gl.po: Likewise.
13471         * po/hr.po: Likewise.
13472         * po/hu.po: Likewise.
13473         * po/ja.po: Likewise.
13474         * po/ko.po: Likewise.
13475         * po/nb.po: Likewise.
13476         * po/nl.po: Likewise.
13477         * po/pl.po: Likewise.
13478         * po/pt_BR.po: Likewise.
13479         * po/ru.po: Likewise.
13480         * po/rw.po: Likewise.
13481         * po/sk.po: Likewise.
13482         * po/sv.po: Likewise.
13483         * po/tr.po: Likewise.
13484         * po/zh_CN.po: Likewise.
13485         * po/zh_TW.po: Likewise.
13487         [BZ #3137]
13488         * iconv/iconv_prog.c (main): Fix spelling in error message.
13489         * iconv/iconvconfig.c (main): Likewise.
13490         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13491         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13492         * locale/programs/localedef.c (main): Likewise.
13493         * locale/programs/repertoire.c (repertoire_read): Likewise.
13494         * timezone/zdump.c (main): Likewise.
13495         * nscd/connections.c (handle_request): Fix spelling in log message.
13496         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13498 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13500         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13501         interfaces.
13503 2006-09-20  Andreas Jaeger  <aj@suse.de>
13505         * math/libm-test.inc (lrint_test_upward): Fix typo.
13507 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13509         [BZ #2592]
13510         * math/libm-test.inc (lrint_test_tonearest): New function.
13511         (lrint_test_towardzero): New function.
13512         (lrint_test_downward): New function.
13513         (lrint_test_upward): New function.
13514         (main): Run these new tests.
13515         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13516         of values near to 0.
13517         (two52): Use double not long double.
13518         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13519         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13520         (two23): Use float not double.
13521         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13522         (two23): Use float not double.
13523         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13524         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13525         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13526         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13528 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13530         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13531         Cast sp to unsigned long to avoid compiler warning.
13532         Use __makecontext_ret function instead of a trampoline on the stack.
13533         (__makecontext_ret): New function.
13534         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13536 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13538         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13539         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13540         bits.
13542 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13544         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13545         sure no reference to the unloaded map's search list remains in the
13546         dependency's scope.
13548 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13550         * elf/Makefile: Add rules to build and run unload7 test.
13551         * elf/unload7.c: New test.
13552         * elf/unload7mod1.c: New file.
13553         * elf/unload7mod2.c: New file.
13555 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13557         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13558         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13559         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13560         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13561         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13562         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13563         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13564         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13565         PTRACE_GETEVENTMSG): Likewise.
13566         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13567         values.
13569 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13571         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13572         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13573         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13574         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13576 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13578         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13579         write '\0' to the fd.
13580         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13581         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13582         Change regs to unsigned long pointer from unsigned int, fix fscr
13583         offset.
13585 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13587         * io/Makefile (CFLAGS-fstatat.c): Set.
13588         (CFLAGS-fstatat64.c): Likewise.
13589         (CFLAGS-mknodat.c): Likewise.
13591         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13592         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13593         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13594         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13596 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13597             Steven Munroe  <sjmunroe@us.ibm.com>
13599         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13600         names to the beginning.  Rename "cell" to "cellbe".
13601         (_dl_powerpc_platforms): New.
13602         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13603         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13604         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13605         (_DL_HWCAP_PLATFORM): Define to new mask.
13606         (_dl_platform_string, _dl_string_platform): New functions.
13607         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13608         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13610 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13612         [BZ #2526]
13613         * README.libm: Fix a thinko in sqrt algorithm description.
13615         [BZ #3143]
13616         * manual/string.texi (argz_delete): Fix prototype.
13617         Patch by <alpt@freaknet.org>.
13619 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13621         [BZ #3138]
13622         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13623         * io/tst-fcntl.c (do_prepare): Likewise.
13624         * posix/tst-exec.c (do_prepare): Likewise.
13625         * posix/tst-preadwrite.c (do_prepare): Likewise.
13626         * posix/tst-spawn.c (do_prepare): Likewise.
13627         * posix/tst-truncate.c (do_prepare): Likewise.
13628         * rt/tst-aio.c (do_prepare): Likewise.
13629         * rt/tst-aio64.c (do_prepare): Likewise.
13630         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13631         size_t.
13633 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13635         [BZ #2821]
13636         * time/mktime.c (guess_time_tm): Fix overflow detection.
13637         * time/Makefile (tests): Add bug-mktime1.
13638         * time/bug-mktime1.c: New file.
13640         [BZ #3189, #3188]
13641         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13642         (mremap): Likewise.
13644 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13646         [BZ #1006]
13647         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13648         Ensure relocation doesn't clobber any bits outside of the
13649         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13650         R_SPARC_HI22 and R_SPARC_H44.
13652         [BZ #2775]
13653         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13654         (long) (MINSIZE + nb - old_size) is positive.
13656         * malloc/arena.c (grow_heap): When growing bail even if new_size
13657         is negative.
13659         [BZ #3155]
13660         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13661         stack below r1.
13663 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13665         * posix/regex_internal.c (re_string_reconstruct): Handle
13666         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13667         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13668         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13669         re_string_context_at.
13670         * posix/Makefile: Add rules to build and run bug-regex26 test.
13671         * posix/bug-regex26.c: New test.
13673         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13674         rather than col_sym_free.  Move seqp declaration earlier.
13676         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13678 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13680         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13681         decl before first goto out.
13683 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13685         * Makerules (shlib.lds): If have-hash-style, put .hash section
13686         at the end of the RO segment.
13688 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13690         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13691         style hash table format is used.
13693 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13695         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13696         randomization rather than before.
13697         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13699 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13701         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13703         * malloc/malloc.c (_int_malloc): Use full list insert and not
13704         shortcut which assumes the list is empty for large requests
13705         too.
13707         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13709 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13711         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13712         and offout arguments to the prototype.
13713         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13714         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13715         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13716         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13717         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13718         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13719         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13720         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13722 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13724         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13726         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13727         dlopen parameters.
13729 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13731         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13732         only if herrno is NETDB_INTERNAL.  Handle errors other than
13733         ERANGE outside of the loops, handle TRY_AGAIN.
13735         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13736         if other's ctype category was missing.
13737         * locale/programs/ld-collate.c (collate_read): Return if
13738         copy_locale's collate category is missing.
13740 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13742         [BZ #2684]
13743         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13744         arenas if allocation failed.
13745         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13747 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13749         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13750         waste bins[0..1].
13751         (malloc_state): Reduce bins size by 2.
13752         (_int_malloc): Fix test for large enough buffer for early termination.
13753         When no unsorted block matches perfectly and an exiting block has
13754         to be split, use full list insert and not shortcut which assumes
13755         the list is empty.
13757         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13758         failure.
13760 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13762         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13763         do anything.
13765         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13766         symbol require exact match (these are PLTs).
13767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13768         (_dl_ppc64_addr_sym_match): Likewise.
13770         [BZ #2683]
13771         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13772         If symbol has a value use it.
13773         * elf/tst-dladdr1.c: New file.
13774         * elf/Makefile: Add rules to build and run tst-addr1.
13776 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13778         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13779         keeps failing and heap growth or new heap creation isn't
13780         successful either.
13781         * malloc/tst-malloc.c (main): Add new tests.
13783 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13785         [BZ #2734]
13786         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13787         as in the x86-64 code to use bswap.
13789 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13791         [BZ #2680]
13792         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13793         __USE_UNIX98.
13794         * posix/bits/unistd.h: Likewise.
13796 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13798         [BZ #2751]
13799         * string/strchr.c: Add cast to avoid warning.
13801 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13803         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13804         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13805         limit is needed to avoid the exploding of the address space
13806         requirement for secondary heaps.
13807         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13808         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13810 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13812         [BZ #3018]
13813         * Makerules (depfiles): Handle extra-test-objs the same as
13814         extra-objs.
13815         (common-mostlyclean): Likewise.
13816         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13817         instead.
13818         * elf/Makefile (extra-objs): Likewise.
13819         * stdlib/Makefile (extra-objs): Likewise.
13821 2006-08-14  Eric Blake  <ebb9@byu.net>
13823         [BZ #3044]
13824         * misc/error.h: Assume C89 or better.
13825         * misc/error.c: Likewise.
13827 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13829         [BZ #3040]
13830         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13831         __ASSUME_ATFCTS is defined.
13833 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13835         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13836         to sort in each call.
13838         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13839         is empty simply return and use next service.
13840         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13842         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13843         tells us when not finding a charmap file is an error.
13844         * locale/programs/charmap.h: Adjust charmap_read prototype.
13845         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13846         cannot find a charmap.
13847         * locale/programs/localedef.c (main): Adjust charmap_read call.
13849 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13851         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13852         sysdeps/posix/pause.c implementation instead.
13854 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13856         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13857         to EPERM.
13859 2006-08-13  Andreas Schwab  <schwab@suse.de>
13861         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13862         Don't clobber caller's LRSAVE.
13863         (_dl_prof_resolve): Likewise.
13865 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13867         [BZ #1996]
13868         * libio/memstream.c (open_memstream): Allocate initial buffer with
13869         calloc.
13870         * libio/wmemstream.c (open_wmemstream): Likewise.
13871         * libio/strops.c: Pretty printing.
13872         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13873         (enlarge_userbuf): New function.
13874         (_IO_str_seekoff): Call it if seek position is larger than current
13875         buffer.
13876         * libio/wstrops.c: Likewise.
13877         * libio/vasprintf.c: Add comment as to why we do not have to use
13878         calloc instead of malloc to allocate initial buffer.
13879         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13880         * libio/bug-memstream1.c: New file.
13881         * libio/bug-wmemstream1.c: New file.
13883 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13885         * libio/wstrops.c: Remove dead macro definitions and comments.
13886         * libio/strops.c: Likewise.
13888         [BZ #2764]
13889         * login/utmpname.c (__utmpname): Remove unnecessary test.
13891 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13893         [BZ #2832]
13894         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13895         0s from integers.
13897 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13899         [BZ #2987]
13900         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13901         for CPU clocks.
13902         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13903         setting of CPU clocks.
13905 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13907         [BZ #2841]
13908         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13909         since C99 requires the result to promote to 'int' when uint_least8_t
13910         and uint_least16_t promote to 'int'.
13912 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13914         [BZ #3013]
13915         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13916         lenght of one output field, correct bitmask creation.
13917         * locale/programs/ld-time.c: Add alignment.
13919         [BZ #2997]
13920         * misc/error.c: Add space between program name and message if file
13921         name is missing.
13923 2006-08-03  Eric Blake  <ebb9@byu.net>
13925         [BZ #2998]
13926         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13928 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13930         * malloc/memusagestat.c: Silence warnings.
13932         * malloc/malloc.c: Dynamically size mmap treshold if the program
13933         frees mmaped blocks.
13934         Patch by Valerie Henson and Arjan van de Ven.
13936 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13938         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13939         __USE_GNU.
13941         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13942         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13943         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13944         Only provide var definitions in strtol_l (or for *ull*
13945         in strtoll_l).
13947         * stdio-common/bug16.c (tests): New array.
13948         (do_tests): Allow the first hexadecimal digit
13949         to be 1, 2, 4 or 8.  Do 3 additional tests.
13951         * sysdeps/s390/fpu/libm-test-ulps: Update.
13953         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13954         fchownat syscall if available.
13955         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13956         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13957         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13959 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13961         * nis/nis_xdr.c: Avoid some function calls.
13963 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13964             Ulrich Drepper  <drepper@redhat.com>
13966         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13967         short cut if only one name component is stripped away.
13969 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13971         * nis/nis_call.c: Minor cleanups throughout.
13972         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13973         (first_shoot): Add search_parent_first parameter.  Only if it is set
13974         search parent server first.
13975         If directory for table found through cold start cache is not the same
13976         as referenced in the cache, don't use it.
13977         (__nisfind_server): Take additional parameter.  Pass it on to
13978         first_shoot.
13979         (__prepare_niscall): Adjust __nisfind_server call.
13980         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13981         * nis/nis_table.c: Adjust __nisfind_server call.
13982         * nis/nis_lookup.c: Likewise.
13983         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13985 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13987         [BZ #2182]
13988         * math/s_cacosh.c: Return values from positive branch.
13989         * math/s_cacoshf.c: Likewise.
13990         * math/s_cacoshl.c: Likewise.
13992         [BZ #2883]
13993         * sysvipc/sys/msg.h: Change return value to ssize_t.
13994         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13995         * sysvipc/msgrcv.c: Likewise.
13996         * include/sys/msg.h: Likewise.
13998         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13999         test introduced in patch for bz #661.
14000         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14001         element for NEWGROUPS.
14003         [BZ #2908]
14004         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14005         'f', use '1' as leading digit not '\1'.
14006         * stdio-common/Makefile (tests): Add bug16.
14007         * stdio-common/bug16.c: New file.
14009         [BZ #2914]
14010         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14011         and don't try to open it.  The patch introducing the macro
14012         contained a bug and used the same file name as the new file
14013         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14014         this out completely.
14016         [BZ #2926]
14017         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14018         Patch by Jerry James <Jerry.James@usu.edu>.
14020         * rt/Makefile (tests): Add tst-clock2.
14021         * rt/tst-clock2.c: New file.
14023         [BZ #2978]
14024         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14025         function and its parameters and pass it to new thread.
14026         (__gai_notify): Add support for alternative waiting for completion.
14027         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14028         waiting for completion.
14029         * resolv/getaddrinfo_a.c: Likewise.
14030         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14031         waiting for completion is used.
14032         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14033         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14034         * resolv/gai_error.c: Likewise.
14035         * resolv/gai_sigqueue.c: Likewise.
14037 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14039         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14040         errno to EBADF and return MACH_PORT_NULL.
14042 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14044         [BZ #2980]
14045         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14047 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14049         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14050         walk them instead of the symbol table.
14052 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14054         [BZ #2098]
14055         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14056         status of NSS calls, not the number of returned entries.
14058         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14059         request_key, keyctl.
14061 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14063         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14065 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14067         * elf/tst-auditmod1.c: Fix typo in #error.
14069 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14071         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14073         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14075 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14077         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14078         that the directory is empty even on non-POSIX filesystems.
14080 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14082         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14084         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14085         the backend NSS module.  If backend setgrent call failed, don't have
14086         internal_setgrent fail.  Just remember this until it is needed.
14087         * nis/nss_compat/compat-pwd.c: Likewise.
14088         * nis/nss_compat/compat-spwd.c: Likewise.
14090 2006-07-30  Roland McGrath  <roland@redhat.com>
14092         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14093         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14094         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14095         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14097         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14098         (nanosleep_not_cancel): New macro.
14099         (sigsuspend_not_cancel): new macro.
14100         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14101         (do_sigsuspend): Define as inline.
14102         (__sigsuspend): Always use do_sigsuspend.
14103         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14104         * include/signal.h: Declare __sigsuspend_nocancel.
14105         * sysdeps/posix/pause.c
14106         [! NO_CANCELLATION] (__pause_nocancel): New function.
14108         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14109         * include/time.h (__nanosleep_nocancel): Likewise.
14111 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14113         * locale/programs/localedef.c (add_to_readlist): Rename local
14114         variables to avoid confusion.
14116         * locale/programs/charmap.c (charmap_read): Emit error message if
14117         charmap couldn't be found or read.
14119 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14121         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14122         __ASSUME_FUTEX_LOCK_PI.
14123         * include/time.h: Declare __nanosleep_nocancel.
14124         * include/unistd.h: Declare __pause_nocancel.
14126         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14127         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14128         get the __stack_chk_fail_local definition when it's needed.
14130 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14132         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14133         * dlfcn/bug-atexit3.c: New file.
14134         * dlfcn/bug-atexit3-lib.cc: New file.
14136         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14137         used when the namespace is not the base namespace.
14139 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14141         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14142         (__new_exitfn): Bump it in every successful call.
14143         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14144         more exit handlers, call them right away.
14145         * stdlib/exit.h: Declare __new_exitfn_called.
14147 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14149         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14150         calling registered handler.
14152         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14153         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14155         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14156         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14157         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14158         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14159         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14161 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14163         * elf/dl-lookup.c (dl_new_hash): New functions.
14164         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14165         value here.  Compute new-style hash value.  Pass new hash value
14166         and reference to variable with the old value to do_lookup_x.
14167         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14168         old-style hash table.
14169         (_dl_debug_bindings): Pass new hash value and reference to variable
14170         with the old value to do_lookup_x.
14171         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14172         new-style hash value and change old-style hash value parameter to
14173         be a reference.  Reoganize functions to determine whether
14174         new-style hash table is available.  Only fall back on old-style
14175         table.  If old-style hash value is needed, compute it here.
14176         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14177         entry.
14178         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14179         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14180         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14181         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14182         * Makeconfig: If linker supports --hash-style option add it to all
14183         linker command lines to build DSOs.
14184         * config.make.in: Define have-hash-style.
14185         * configure.in: Test whether linker supports --hash-style option.
14187         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14188         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14190 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14192         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14193         auditing.
14195         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14196         RPATH of main map twice.
14198 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14200         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14201         look further, return original strings.
14202         (_nl_find_msg): Do not return found translation if the conversion
14203         failed.  Either signal the string is unusable or that something went
14204         wrong and the original should be used.
14206 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14208         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14210 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14212         [BZ #2766]
14213         * misc/insremque.c (insque): Handle prev == NULL.
14214         * misc/Makefile (tests): Add tst-insremque.
14215         * misc/tst-insremque.c: New test.
14217 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14219         [BZ #2792]
14220         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14221         conflict with DL_DST_REQUIRED.
14223 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14225         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14226         match what Solaris does.
14228 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14230         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14231         local_setegid instead of seteuid and setegid.
14232         * sysdeps/generic/local-setxid.h: New file.
14233         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14235         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14237         * string/Makefile (tests): Add bug-envz1.
14238         * string/bug-envz1.c: New file.
14240 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14242         * posix/regex_internal.c (re_string_skip_chars): If no character has
14243         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14244         to the byte which couldn't be converted.
14245         (re_string_reconstruct): Don't clear valid_raw_len before calling
14246         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14247         tip_context using re_string_context_at.
14248         * posix/Makefile: Add rules to build and run bug-regex25 test.
14249         * posix/bug-regex25.c: New test.
14251 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14253         [BZ #2703]
14254         * string/envz.c (envz_strip): Correct erroneously reversed src
14255         and dest parameters to memmove() invocation.
14257 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14259         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14260         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14261         to make sure the database has been already invalidated.
14262         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14263         after the cache has been invalidated.  Use pthread_mutex_lock rather
14264         than pthread_mutex_trylock if fd != -1.
14265         * nscd/connections.c (invalidate_cache): Add fd argument, write
14266         response to fd if not calling prune_cache, pass fd to prune_cache.
14267         (handle_request): Adjust invalidate_cache caller.
14268         (nscd_run): Pass -1 as fd to prune_cache.
14270 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14272         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14273         the correct place.
14275 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14277         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14278         * nscd/cache.c (prune_cache): Take prunelock before starting the
14279         work.  Just return in case it is already taken.
14280         * nscd/connections.c (dbs): Initialize .prunelock.
14282 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14284         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14285         copying.  No need to allocate new array for group members.  Just
14286         move the pointers and update the size.
14288         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14289         Avoid memory leak in case realloc fails.  Simplification for
14290         better code generation.
14292         Avoid deprecation warning because of libc_hidden_proto for
14293         inet6_option_alloc.
14294         * inet/inet6_option.c (option_alloc): Renamed from
14295         inet6_option_alloc.  Made static.
14296         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14297         (inet6_option_append): Call option_alloc.
14298         * include/netinet/in.h: Remove libc_hidden_proto for
14299         inet6_option_alloc.
14301         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14302         for cleanup when cb!=NULL [Coverity CID 233].
14304 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14306         [BZ #2693]
14307         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14308         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14309         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14310         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14311         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14312         and inet6_rth_getaddr.
14313         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14314         array.
14315         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14316         Mark inet6_option_* interfaces as deprecated.
14317         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14318         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14319         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14320         inet6_rth_segments, and inet6_rth_getaddr.
14321         * inet/inet6_opt.c: New file.
14322         * inet/inet6_rth.c: New file.
14324         * inet/netinet/icmp6.h: Pretty printing.
14326         [BZ #2683]
14327         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14329 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14331         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14332         doing it all here.  When server does not know the answer do not
14333         fail immediate, try parent first.
14335         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14336         overflow test.
14338 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14340         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14341         from __do_niscall.
14342         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14343         and exported.
14344         (__follow_path): New function.  Split out from nis_list.
14345         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14346         _xdr_nis_result.
14347         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14348         _xdr_nis_result.
14349         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14350         and __follow_path.
14351         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14352         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14353         from libnsl for version GLIBC_PRIVATE.
14354         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14355         Remove entry parameter from _nss_nisplus_parse_pwent and
14356         _nss_nisplus_parse_grent.
14357         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14358         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14359         again.  Rewrite getpwent handling to not use nis_first_entry and
14360         nis_next_entry.  Roll out own niscall handling.
14361         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14363         * sunrpc/xdr_rec.c: Fix typo in comment.
14365 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14367         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14368         handling.
14370         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14371         to allocate memory for my_pollfd.  Better initialization of
14372         cb_is_running.  Use TEMP_FAILURE_RETRY.
14374         * malloc/memusage.sh (memusageso): Add quotes.
14375         (memusagestat): Likewise.
14376         * debug/xtrace.sh (pcprofileso): Likewise.
14377         (pcprofiledump): Likewise.
14378         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14379         replacement.
14380         * malloc/Makefile ($(objpfx)memusage): Likewise.
14382         * nis/nis_callback.c (__nis_create_callback): Calls to
14383         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14384         asprintf call fails.
14386         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14387         no uninitialized memory is passed to sendto.
14389 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14391         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14392         of snprintf+strdup.  Handle OOM.
14393         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14394         cb->serv together.  Remove now obsolete free calls.
14395         (__nis_destroy_callback): Remove now obsolete free call.
14397 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14399         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14400         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14401         and ULA respectively). Set precedence for IPv4 address to 10 as
14402         defined in RFC3484 for preferring IPv6.
14403         * posix/gai.conf: Update to match the new default tables.
14405 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14407         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14408         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14409         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14410         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14412         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14413         Removed.
14414         (init_nss_interface): Remove initialization of these variables.
14416 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14418         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14419         nis_free_directory forward to avoid duplication.
14421 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14423         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14424         rec_dirsearch returning NULL.
14425         (first_shoot): Handle __nis_finddirectory returning NULL.
14426         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14428         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14429         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14431 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14433         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14434         pid changed.
14436 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14438         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14440         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14441         * nscd/nscd_getgr_r.c: Likewise.
14443         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14445         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14446         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14448         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14450         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14452         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14454         * include/rpc/auth.h: Mark xdr_des_block_internal and
14455         xdr_opaque_auth_internal as hidden.
14457         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14458         hidden.
14460         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14462         * misc/getusershell.c (okshells): Don't use static initializers,
14463         do it dynamically.
14465         * stdlib/fmtmsg.c (keywords): Change type of len element to
14466         uint32_t to not waste space on 64bit machines.
14468         * locale/setlocale.c: Change _nl_category_names into a string.
14469         Add new _nl_category_name_idxs.  Change all users.
14470         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14471         Declare _nl_category_name_idxs.
14472         * locale/findlocale.c: Adjust for _nl_category_names change.
14473         * locale/loadlocale.c: Likewise.
14474         * locale/newlocale.c: Likewise.
14475         * intl/dcigettext.c: Likewise.
14477         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14478         (add_alias2): ...here.  New function.
14479         (__gconv_read_conf): Simplify builtin alias handling.
14480         (builtin_aliases): Convert to string to avoid relocations.
14481         * iconv/gconv_builtin.h: Add comment about correct formatting.
14483 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14485         * resolv/res_debug.c (loc_ntoa): Make error const.
14487 2006-05-14  Andreas Schwab  <schwab@suse.de>
14489         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14491 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14493         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14494         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14495         sizeof (cpu_set_t).
14497 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14499         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14501         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14503         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14504         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14506         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14507         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14509         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14510         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14511         xdr_cback_data.
14513         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14514         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14515         xdr_ypupdate_args.
14517         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14518         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14520         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14521         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14523         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14524         * include/rpcsvc/nis_callback.h: New file.
14526         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14527         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14529         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14530         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14532         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14533         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14535         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14536         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14538         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14539         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14540         xdr_ypdelete_args.
14542         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14543         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14545         * nis/nis_error.c: Remove table of strings.  Use position
14546         independent mechanism.
14547         * nis/nis_error.h: New file.
14549 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14551         * locale/programs/ld-time.c (time_finish): If wide era name or
14552         format aren't provided, set both wname and wformat to L"".
14554 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14556         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14557         results if the call was succesful.
14559         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14561         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14562         as hidden.
14564 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14566         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14568 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14570         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14571         caller makes sure this is not the case.
14572         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14574 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14576         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14577         calls.
14579         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14580         [Coverity CID 229, 230]
14582         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14583         DGETTEXT calls.
14584         (hol_help): Likewise.  [Coverity CID 226, 227]
14586         * string/argz-replace.c (__argz_replace): Unconditionally call
14587         free on SRC.  [Coverity CID 225]
14589         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14590         the return value of __nis_default_owner and __nis_default_group,
14591         it has been especially allocated.  [Coverity CID 224]
14593         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14594         searchgroup and searchowner.  Significantly simplified.
14595         (__nis_default_owner): Remove duplication.  Do not locally copy the
14596         string before duplicating it.
14597         (__nis_default_group): Likewise.
14599         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14600         we must clear the variable before calling __nisfind_server.
14602         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14603         nis_getnames.  [Coverity CID 223]
14605         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14606         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14608         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14609         allocate memory for the input to add_bytes.  [Coverity CID 221]
14611         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14612         was allocated here.  [Coverity CID 219, 220]
14614         * posix/getconf.c (print_all): Free confstr data after printing.
14615         [Coverity CID 218]
14617         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14618         list allocation fails.  [Coverity CID 215]
14620         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14621         [Coverity CID 213]
14623         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14624         string is NULL.  [Coverity CID 212]
14625         * argp/Makefile: Add rules to build and run bug-argp1.
14626         * argp/bug-argp1.c: New file.
14628         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14629         end of string.
14630         * stdlib/canonicalize.c (__realpath): Likewise.
14632         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14633         pointer.  [Coverity CID 206]
14635         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14636         in statically linked code.
14637         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14638         statically built code, be prepared to have no link map.
14639         [Coverity CID 205]
14641         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14642         dgettext calls. [Coverity CID 204]
14644         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14645         the one user.
14646         (uparam_names): Reduce size.  Avoid relative relocations.
14647         Moved to read-only segment.
14648         (fill_in_uparams): Update for new layout.
14650         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14651         assumed to always be != NULL. [Coverity CID 202]
14653         * argp/argp-help.c (hol_entry_help): Remove some dead code
14654         [Coverity CID 200].
14656         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14657         away a few more unconditional yperr2nss calls.
14658         (_nss_nis_getservbyname_r): Likewise.
14660 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14662         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14663         architectures.
14665         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14666         that unused memory passed to sendto is nevertheless initialized.
14668         [BZ #2499]
14669         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14670         possibly unaligned memory accesses.
14672         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14673         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14674         and __putlong respectively.  Correct buffer overflow check for
14675         NS_NOTIFY_OP.
14677         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14679         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14680         (send_dg): Rewrite error handling to be more compact and avoid
14681         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14683         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14685         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14686         instead of ns_get16.
14687         (res_queriesmatch): Likewise.  Minor optimization.
14689         [BZ #2499]
14690         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14691         __libc_res_nsend might reallocate the buffer for the answer.  In
14692         this case we have to reload the HP pointer.
14694 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14696         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14697         some branch prediction hints.
14699         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14700         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14701         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14702         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14703         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14704         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14705         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14708 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14710         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14711         by a GOT relocation to make Scrt1.o position independent.
14712         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14714         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14715         six system call parameters.
14716         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14718 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14720         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14721         malloc&bzero.
14723         * sunrpc/svc_udp.c (BZERO): Remove definition.
14724         (CALLOC): Define.
14725         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14727         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14728         (des_SPtrans): Use uint32_t type.
14729         (des_skb): Likewise.
14731         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14733 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14735         [BZ #2509]
14736         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14737         on 32-bit arches.
14739 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14741         * locale/programs/ld-address.c (address_finish): Fix one more
14742         place where the iso639 array might be accessed beyond the limits.
14744 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14746         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14747         filling it for the first time.
14749         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14750         Adjust all callers.
14751         Free res object content before returning.
14753         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14755         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14756         client->cl_auth.
14758         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14759         cleanup for initial thread, just the free call on TVP.
14761         * nscd/gai.c (__getline): Define.
14764 See ChangeLog.16 for earlier changes.