Fix handling of STB_GNU_UNIQUE in LD_TRACE_PRELINKING
[glibc.git] / ChangeLog
blob9a2b2ca64c5a68393736dfb01741481f75cd4659
1 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
3         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
4         but tab->size != 0, just unlock and goto success, without
5         allocating anything or entering anything into the hash table.
6         (_dl_debug_bindings): Temporarily set tab->entries to NULL
7         around do_lookup_x in undef_map->l_local_scope[0].  If
8         undef_map->l_symbolic_in_local_scope, lookup also in
9         symbolic_searchlist of following libraries in l_local_scope
10         that have DT_SYMBOLIC set.
11         * elf/dl-deps.c (_dl_map_object_deps): Compute
12         l_symbolic_in_local_scope.
13         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
14         bitfield.
16 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
18         [BZ #11410]
19         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
21         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
22         C++ prototype handling to a better place.
24 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
26         * elf/dl-load.c (open_verify): Extend expected to the full size of the
27         e_ident array.  When loading, check that the fields in e_ident we don't
28         know are zero to allow future extensions.
30 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
32         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
33         when exit from loop.
35 2010-03-16  Andreas Schwab  <schwab@redhat.com>
37         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
38         address in debug statement.
39         (send_dg): Pass correct buffer pointer to DprintQ.
41 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
43         * libc-abis: Add a few more entries.
45 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
47         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
48         Not used here.
49         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
50         interface.
51         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
52         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
53         is Linux.
54         Fix includes.
55         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
57         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
58         definition to follow generic code.
60 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
62         * posix/getconf.c: Update copyright year.
63         * nss/getent.c: Likewise.
64         * iconv/iconvconfig.c: Likewise.
65         * iconv/iconv_prog.c: Likewise.
66         * elf/ldconfig.c: Likewise.
67         * catgets/gencat.c: Likewise.
68         * csu/version.c: Likewise.
69         * elf/ldd.bash.in: Likewise.
70         * elf/sprof.c (print_version): Likewise.
71         * locale/programs/locale.c: Likewise.
72         * locale/programs/localedef.c: Likewise.
73         * nscd/nscd.c (print_version): Likewise.
74         * debug/xtrace.sh: Likewise.
75         * malloc/memusage.sh: Likewise.
76         * malloc/mtrace.pl: Likewise.
77         * debug/catchsegv.sh: Likewise.
79         * Makerules: Add rule for libc-abis.h.
80         * csu/version.c: Use LIBC_ABIS_STRING string if available.
81         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
82         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
83         Add extra call to VALID_ELF_ABIVERSION.
85 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
87         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
89 2010-03-12  Andreas Schwab  <schwab@redhat.com>
91         * elf/dl-dst.h: Include "trusted-dirs.h".
92         (DL_DST_REQUIRED): Take $LIB into account.
94 2010-03-11  Roland McGrath  <roland@redhat.com>
96         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
97         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
99 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
101         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
102         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
104 2010-03-09  David S. Miller  <davem@davemloft.net>
106         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
107         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
108         64-bit ones.
110         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
112         * sysdeps/sparc/sparc32/strlen.S: Optimize.
113         * sysdeps/sparc/sparc64/strlen.S: Likewise.
114         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
115         XCC): Delete definitions, not needed.
117 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
119         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
120         Little follow-up patch from last change.
122 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
124         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
125         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
127 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
129         * resolv/res_send.c: Fixed DEBUG statements.
130         Moved tmpbuf declaration to block beginning and
131         updated pointer names used in multiple DprintQ() calls
133 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
135         * config.make.in (config-asflags-i686): Define.
136         * configure.in: Substitute libc_cv_as_i686.
137         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
138         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
139         if assembler supports -mtune=i686.
140         (ASFLAGS-.oX): Likewise.
142 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
144         * elf/elf.h (R_X86_64_SIZE32): Define.
145         (R_X86_64_SIZE64): Define.
147 2010-03-02  Richard Guenther  <rguenther@suse.de>
149         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
150         is sign-extending.
152 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
154         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
155         the kernel headers.
157 2010-03-04  David S. Miller  <davem@davemloft.net>
159         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
161         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
162         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
164 2010-03-03  David S. Miller  <davem@davemloft.net>
166         * math/math_private.h (INSERT_WORDS64): Fix argument order.
168 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
170         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
172 2010-03-03  David S. Miller  <davem@davemloft.net>
174         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
175         pass '1' for 't' argument to sparc_fixup_plt.
176         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
177         Likewise.
178         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
179         (sparc_fixup_plt): Document 't' argument.  Enable branch
180         optimization and use v9 branches when possible.  Explain why we
181         cannot unconditionally patch the branch into the first PLT
182         instruction.
183         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
184         argument.  Use v9 branches when possible.  Explain why we can in
185         fact unconditionally use a branch in the first PLT instruction
186         here.
188 2010-02-28  Roland McGrath  <roland@redhat.com>
190         * elf/elf.h (NT_X86_XSTATE): New macro.
192 2010-02-25  David S. Miller  <davem@davemloft.net>
194         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
195         * sysdeps/sparc/sparc64/align-cpy.S: New.
196         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
197         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
198         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
199         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
200         Remove.
201         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
202         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
203         Remove.
204         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
205         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
206         Remove.
208         * sysdeps/sparc/sparc32/bcopy.c: Delete.
209         * sysdeps/sparc/sparc32/memmove.c: Delete.
210         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
211         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
212         * sysdeps/sparc/sparc64/bcopy.c: Delete.
213         * sysdeps/sparc/sparc64/memmove.c: Delete.
214         * sysdeps/sparc/sparc64/memcopy.h: New.
215         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
216         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
217         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
218         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
219         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
221         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
222         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
223         gen-as-const-headers.
224         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
225         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
226         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
227         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
228         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
229         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
230         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
231         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
232         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
233         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
234         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
235         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
236         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
237         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
238         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
239         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
240         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
241         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
242         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
243         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
244         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
245         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
246         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
247         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
249 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
251         [BZ #11332]
252         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
253         and cfi_restore_state only if USE_AS_STRNCMP is defined.
255 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
257         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
259 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
261         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
262         (bk_write_less32bytes_2): Renamed to ...
263         (bk_write_less48bytes): This.
264         Use unsigned conditional jumps.
265         Correct unwind info.
266         Use add/sub instead of lea if possible.
267         (shl_0_gobble_cache_loop_tail): Removed.
268         (large_page): Properly adjust ECX.
270         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
271         conditional jumps.
272         Correct unwind info.
274         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
275         punpcklbw.
276         Use unsigned conditional jumps.
277         (128bytesormore_nt): Renamed to ...
278         (128bytesormore_endof_L1): This.
279         Use add instead of lea if possible.
280         Correct unwind info.
281         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
282         punpcklbw.
283         Use unsigned conditional jumps.
284         Use add instead of lea if possible.
285         Correct unwind info.
287 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
289         [BZ #11319]
290         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
291         undoing the stream because _IO_FINISH doesn't report failures.
293         [BZ #5553]
294         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
295         (public_pVALLOc): Likewise.
296         Patch by Petr Baudis.
298 2010-02-22  Jim Meyering  <meyering@redhat.com>
300         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
302         * manual/charset.texi: Adjust grammar.
304         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
305         * manual/charset.texi (Selecting the Conversion): Likewise.
306         * manual/getopt.texi (Getopt Long Options): Likewise.
307         * manual/memory.texi (Resizing the Data Segment): Likewise.
308         * manual/message.texi (GUI program problems): Likewise.
309         * manual/resource.texi (CPU Affinity): Likewise.
310         * manual/stdio.texi (Streams and Threads): Likewise.
311         * manual/time.texi (High Accuracy Clock): Likewise.
313 2009-02-20  David S. Miller  <davem@davemloft.net>
315         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
316         Adjust rela->r_offset by l->l_addr when rewriting PLT.
318         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
319         test end of buffer.
321         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
322         (__makecontext): Adjust arg counter properly when copying arg
323         stack slots.
325 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
327         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
328         Adjust rela->r_offset by l->l_addr when rewriting PLT.
330 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
332         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
333         non-existent `tiocsctty_port'.
335 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
337         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
338         instead of FEATURE_OFFSET.
339         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
341         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
342         Fix one unwind info problem.
344         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
346         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
348 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
349             Ulrich Drepper  <drepper@redhat.com>
351         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
352         Clean up a bit.
354 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
356         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
357         (tiocsctty_port): ...this new function.
359         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
360         `ioctl_handler_t'.
362 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
364         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
365         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
366         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
367         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
369         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
370         undefined code.
372 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
375         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
376         memcmp-c, memcmp-ssse3, and memcmp-sse4.
377         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
378         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
379         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
380         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
381         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
382         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
383         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
384         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
385         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
386         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
388 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
390         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
391         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
392         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
393         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
394         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
395         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
396         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
397         is not supported.
398         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
399         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
400         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
401         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
402         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
403         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
404         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
405         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
406         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
407         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
408         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
409         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
410         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
411         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
412         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
413         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
414         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
416         Likewise.
417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
418         Likewise.
419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
420         Likewise.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
422         Likewise.
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
425 2010-02-12  Alan Modra  <amodra@gmail.com>
427         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
428         Define and use for __powerpc64__ too.
429         [__powerpc__] (TLS_LD): Add r3 to clobbers.
430         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
431         [__powerpc64__] (TLS_GD): Make __result r3 reg.
432         [__powerpc64__] (TLS_IE): Relax output constraint.
434 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
436         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
437         instructions cu21 and cu24.  Add well-formedness checking
438         parameter and adjust the software implementation.
439         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
441 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
443         [BZ #11271]
444         * io/ftw.c (ftw_startup): Close descriptor for initial directory
445         after changing back to it.
447 2010-02-05  David S. Miller  <davem@davemloft.net>
449         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
450         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
451         ifunc relocs.
452         (elf_machine_lazy_rel): Likewise.
453         (sparc_fixup_plt): Pull out to...
454         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
455         * sysdeps/sparc/sparc32/dl-irel.h: New file.
456         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
457         ifunc relocs.
458         (elf_machine_lazy_rel): Likewise.
459         (sparc64_fixup_plt): Pull out to...
460         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
461         * sysdeps/sparc/sparc64/dl-irel.h: New file.
463 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
465         * elf/elf.h: Define m68k TLS relocations.
467 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
469         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
470         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
471         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
472         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
474         64-bit power7 fpu path.
475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
476         32-bit power7 fpu math.
478 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
480         * sysdeps/i386/rshift.S: More compact unwind information.
482         * sysdeps/i386/lshift.S: Fix unwind information.
484 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
486         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
487         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
488         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
489         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
490         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
491         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
492         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
493         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
494         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
495         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
496         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
497         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
499 2010-02-08  Andreas Schwab  <schwab@redhat.com>
501         * include/fenv.h: Add hidden proto for fegetenv.
502         * math/fegetenv.c: Add hidden alias.
503         * sysdeps/i386/fpu/fegetenv.c: Likewise.
504         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
505         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
506         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
507         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
508         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
509         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
511 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
513         [BZ #11230]
514         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
515         during recovery.
517 2010-01-26  Andreas Schwab  <schwab@redhat.com>
519         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
520         interface.
521         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
522         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
523         utmpx interface.
525         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
526         entry for 2.12.
528 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
530         [BZ #11235]
531         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
532         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
533         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
534         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
535         MS_ACTIVE, and MS_NOUSER.
536         (MS_RMT_MASK): Update according to current kernels.
538         [BZ #11242]
539         * misc/getusershell.c (initshells): Allocate one more byte in input
540         buffer so that fgets doesn't loop undefinitely.
542 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
544         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
545         __libc_use_alloca tells us not to.  Fix memory leak in an error
546         situation.  Based partially on patch by Jim Meyering.
548 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
550         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
551         get_phys_pages, get_avphys_pages): Add weak aliases.
553 2010-01-25  Andreas Schwab  <schwab@redhat.com>
555         * iconv/iconv_prog.c (write_output): Fix check for open failure.
557 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
559         [BZ #11200]
560         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
561         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
563 2010-01-22  Jim Meyering  <jim@meyering.net>
565         [BZ #11193]
566         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
567         buffer length computation.
569         [BZ #11192]
570         * posix/regexec.c (re_copy_regs): Don't leak when allocation
571         of the start buffer succeeds but allocation of the "end" one fails.
573         [BZ #11191]
574         * posix/regexec.c (re_search_2_stub): Check for overflow
575         when adding the sizes of the two strings.
577         [BZ #11190]
578         * posix/regexec.c (re_search_internal): Avoid overflow
579         in computing re_malloc buffer size.
581         [BZ #11189]
582         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
583         in computing re_malloc buffer size.
585         [BZ #11188]
586         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
587         in size calculation.
589         [BZ #11187]
590         * posix/regexec.c (re_search_2_stub): Use simpler method than
591         boolean for freeing internal storage.
593 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
595         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
596         failed mbrtowc call.
598 2010-01-22  Jim Meyering  <jim@meyering.net>
600         [BZ #11186]
601         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
602         fits in wchar_t.  Problem reported by Eric Blake.
604         [BZ #11185]
605         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
606         and stores into set-but-not-used local, "q".
608         [BZ #11184]
609         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
610         detection test.  Patch by Paul Eggert.
612         [BZ #11183]
613         * posix/regex_internal.c (re_string_realloc_buffers):
614         Detect and handle internal overflow.  Patch by Paul Eggert
616 2010-01-20  Andreas Schwab  <schwab@redhat.com>
618         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
619         (CHECK_SP): Fix check for alternate stack.
620         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
621         (CHECK_SP): Likewise.
623 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
625         * sysdeps/i386/i686/multiarch/memmove.S: Also check
626         bit_Fast_Rep_String when SHARED isn't defined.
628 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
630         [BZ #11194]
631         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
633 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
635         * sysdeps/mach/hurd/bits/libc-lock.h
636         (__rtld_lock_recursive_t): New type.
637         (__rtld_lock_initialize): New macro.
639 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
641         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
642         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
646 2010-01-18  Andreas Schwab  <schwab@redhat.com>
648         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
649         definitions of O_DSYNC and O_RSYNC.
651         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
652         casting d_tag.
654         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
655         dynamic entry types.
657 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
659         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
660         constant.
661         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
662         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
663         overflow.
664         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
666         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
667         math_opt_barrier and math_force_eval macros.
669 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
671         * posix/regcomp.c: Fix a few more cases of ignored return values.
672         * posix/regex_internal.c: Likewise.
673         * posix/regexec.c: Likewise.
675         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
676         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
677         if _XOPEN_SOURCE is not defined as well.
679 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
681         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
682         high gprs kernel facility.
683         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
684         Added high gprs check for DSOs.
685         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
686         new elf header flag.
688 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
690         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
691         dl_main.
692         * elf/dl-open.c (_dl_sysdep_start): Likewise..
693         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
694         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
695         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
696         started.
698 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
700         [BZ #11027]
701         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
702         to RFC 2474.
703         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
705         [BZ #11141]
706         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
707         addresses.
709         [BZ #11127]
710         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
711         re_node_set_insert failure; return REG_ESPACE.
712         Patch by Paul Eggert.
714         * bits/confname.h: Make pre-C99-safe.
716 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
718         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
719         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
720         files are found by GCC.
722 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
724         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
725         brk, and sbrk.
727         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
728         index, and rindex.
730         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
732         * Versions.def: Add GLIBC_2.12 for libpthread.
734         [BZ #11126]
735         * malloc/malloc.c (malloc_info): Initialize malloc if not already
736         done.  Handle empty bin lists.
738         * posix/unistd.h: Change getpagesize and getdtablesize declaration
739         visibility some more.
741         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
743         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
745         [BZ #11120]
746         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
747         needed outside libc.
749 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
751         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
753 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
755         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
757 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
759         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
761 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
763         * conform/data/complex.h-data: Test for POSIX2008.
765         * conform/data/ctype.h-data: Fix POSIX testing.
767         * conform/data/dirent.h-data: ino_t only needed for XSI.
769         * grp/grp.h: Declare getgrent and endgrent for XPG7.
771         * conform/data/inttypes.h-data: Use same types as the headers.
773         * resolv/netdb.h: Don't define old resolver macros for XPG7.
775         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
777         * conform/conformtest.pl: Implement tag for allow-header.
778         Fix newline handling in allow-header implementation.
780         * conform/data/time.h-data: Use allow-header instead of duplicating
781         information.
783         * conform/data/time.h-data: Allow sigevent tag.
785         * posix/sched.h: Define time_t and pid_t for XPG7.
787 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
789         * sysdeps/i386/i686/bcopy.S: New file.
791         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
793         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
794         and END_CHK.
795         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
796         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
797         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
799         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
801         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
802         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
803         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
804         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
805         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
806         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
807         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
808         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
809         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
810         * sysdeps/i386/i686/multiarch/bzero.S: New file.
811         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
812         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
813         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
814         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
815         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
816         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
817         * sysdeps/i386/i686/multiarch/memmove.S: New file.
818         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
819         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
820         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
821         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
822         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
823         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
824         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
825         * sysdeps/i386/i686/multiarch/memset.S: New file.
826         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
828         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
829         (END_CHK): Likewise.
831         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
832         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
833         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
835         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
836         for 0x0e and 0x80.
837         (__x86_64_data_cache_size): New.
838         (init_cacheinfo): Set __x86_64_data_cache_size.
840         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
841         on bit_Fast_Rep_String for Intel Core i7.
843         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
844         (index_Fast_Rep_String): Likewise.
845         (FEATURE_INDEX_1): Likewise.
846         (FEATURE_INDEX_MAX): Likewise.
847         (cpu_features): Add feature.
849 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
851         * conform/data/sys/select.h-data: Fix up for XPG7.
853 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
855         * posix/sys/wait.h: Don't define W* macros etc. if
856         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
858 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
860         * io/sys/stat.h: Declare fchmod for XPG7.
861         * conform/data/sys/stat.h-data: Fix up for XPG7.
863         * termios/termios.h: Define pid_t for XPG7.
865         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
866         * conform/data/tgmath.h-data: Likewise.
868         * conform/data/time.h-data: Fix POSIX tests.
870         * conform/data/wchar.h-data: Fix up XPG7 tests.
872         * include/features.h: Fix __USE_ISOC95 handling.
874         * conform/data/wordexp.h-data: Fix typo in last change.
876         * conform/data/unistd.h-data: Fix up older POSIX tests.
878         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
879         * posix/unistd.h: Likewise.
881         * posix/unistd.h: Include environments.h also for XPG6 and up.
882         Define intptr_t for XPG6 and up.
883         Fix up for XPG7.
884         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
886         * conform/data/sys/types.h-data: Fix up for XPG7.
888         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
889         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
890         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
891         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
892         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
893         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
894         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
895         * sysdeps/unix/sysv/bits/stat.h: Likewise.
896         * sysdeps/mach/hurd/bits/stat.h: Likewise.
898         * bits/confname.h: Fix typo in last change.
900         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
902 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
904         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
905         and SA_RESETHAND now available in Base.
906         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
907         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
908         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
909         * conform/data/signal.h-data: Update for XPG7.
911         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
913         * string/strings.h: Don't declare obsolete functions for XPG7.
914         Declare ffs only for XSI.
915         * conform/data/strings.h-data: Update for XPG7.
917 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
919         [BZ #11125]
920         * libio/stdio.h: Define va_list, off_t, and ssize_t.
922         * posix/glob.h: Define size_t.
924         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
926         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
928 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
930         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
931         be self-contained.
933         * conform/data/stdio.h-data: Expect off_t and ssize_t.
935 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
937         * libio/stdio.h: Define va_list also for XPG7.
939         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
940         * conform/data/ctype.h-data: Likewise.
941         * conform/data/dirent.h-data: Likewise.
942         * conform/data/errno.h-data: Likewise.
943         * conform/data/fcntl.h-data: Likewise.
944         * conform/data/fmtmsg.h-data: Likewise.
945         * conform/data/fnmatch.h-data: Likewise.
946         * conform/data/ftw.h-data: Likewise.
947         * conform/data/glob.h-data: Likewise.
948         * conform/data/grp.h-data: Likewise.
949         * conform/data/iconv.h-data: Likewise.
950         * conform/data/langinfo.h-data: Likewise.
951         * conform/data/libgen.h-data: Likewise.
952         * conform/data/limits.h-data: Likewise.
953         * conform/data/locale.h-data: Likewise.
954         * conform/data/math.h-data: Likewise.
955         * conform/data/monetary.h-data: Likewise.
956         * conform/data/mqueue.h-data: Likewise.
957         * conform/data/ndbm.h-data: Likewise.
958         * conform/data/netdb.h-data: Likewise.
959         * conform/data/pthread.h-data: Likewise.
960         * conform/data/pwd.h-data: Likewise.
961         * conform/data/regex.h-data: Likewise.
962         * conform/data/sched.h-data: Likewise.
963         * conform/data/search.h-data: Likewise.
964         * conform/data/semaphore.h-data: Likewise.
965         * conform/data/setjmp.h-data: Likewise.
966         * conform/data/signal.h-data: Likewise.
967         * conform/data/spawn.h-data: Likewise.
968         * conform/data/stdio.h-data: Likewise.
969         * conform/data/stdlib.h-data: Likewise.
970         * conform/data/string.h-data: Likewise.
971         * conform/data/strings.h-data: Likewise.
972         * conform/data/sys/ipc.h-data: Likewise.
973         * conform/data/sys/msg.h-data: Likewise.
974         * conform/data/sys/resource.h-data: Likewise.
975         * conform/data/sys/sem.h-data: Likewise.
976         * conform/data/sys/shm.h-data: Likewise.
977         * conform/data/sys/socket.h-data: Likewise.
978         * conform/data/sys/stat.h-data: Likewise.
979         * conform/data/sys/time.h-data: Likewise.
980         * conform/data/sys/types.h-data: Likewise.
981         * conform/data/sys/uio.h-data: Likewise.
982         * conform/data/sys/wait.h-data: Likewise.
983         * conform/data/syslog.h-data: Likewise.
984         * conform/data/tar.h-data: Likewise.
985         * conform/data/termios.h-data: Likewise.
986         * conform/data/time.h-data: Likewise.
987         * conform/data/ulimit.h-data: Likewise.
988         * conform/data/unistd.h-data: Likewise.
989         * conform/data/utmpx.h-data: Likewise.
990         * conform/data/wchar.h-data: Likewise.
991         * conform/data/wctype.h-data: Likewise.
992         * conform/data/wordexp.h-data: Likewise.
994         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
995         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
996         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
997         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
998         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
999         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1000         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1001         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1002         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1003         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1005         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1006         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1007         Declare mkstemp and getsubopt for XPG7.
1008         Declare posix_openpt for XPG6 XSI.
1010         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1011         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1013         * string/string.h: Declare strdup for XPG7.
1015 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1017         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1018         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1020         * dirent/dirent.h: Really fix feature selection.
1022         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1023         Fix all users.
1024         * locale/C-address.c: Fix all users.
1025         * locale/C-collate.c: Likewise.
1026         * locale/C-ctype.c: Likewise.
1027         * locale/C-identification.c: Likewise.
1028         * locale/C-measurement.c: Likewise.
1029         * locale/C-messages.c: Likewise.
1030         * locale/C-monetary.c: Likewise.
1031         * locale/C-name.c: Likewise.
1032         * locale/C-numeric.c: Likewise.
1033         * locale/C-paper.c: Likewise.
1034         * locale/C-telephone.c: Likewise.
1035         * locale/C-time.c: Likewise.
1036         * locale/findlocale.c: Likewise.
1037         * locale/global-locale.c: Likewise.
1038         * locale/loadarchive.c: Likewise.
1039         * locale/loadlocale.c: Likewise.
1040         * locale/nl_langinfo_l.c: Likewise.
1041         * locale/setlocale.c: Likewise.
1042         * locale/xlocale.c: Likewise.
1043         * locale/xlocale.h: Likewise.
1044         * stdio-common/vfscanf.c: Likewise.
1045         * stdlib/strfmon_l.c: Likewise.
1046         * stdlib/strtod_l.c: Likewise.
1047         * stdlib/strtol_l.c: Likewise.
1048         * string/strcoll_l.c: Likewise.
1049         * string/strxfrm_l.c: Likewise.
1050         * time/alt_digit.c: Likewise.
1051         * time/asctime.c: Likewise.
1052         * time/era.c: Likewise.
1053         * time/lc-time-cleanup.c: Likewise.
1054         * time/strftime_l.c: Likewise.
1055         * time/strptime_l.c: Likewise.
1056         * wcsmbs/wcsmbsload.c: Likewise.
1057         * wcsmbs/wcsmbsload.h: Likewise.
1059         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1060         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1061         for XPG7.
1062         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1063         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1065         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1066         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1067         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1069 2010-01-07  Roland McGrath  <roland@redhat.com>
1071         * elf/elf.h (PN_XNUM): New macro.
1073         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1074         literal 2.
1076 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1078         * dirent/dirent.h: Fix typo in feature selection macro use.
1080 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1082         [BZ #11115]
1083         * stdlib/tst-makecontext3.c: New file.
1084         * stdlib/Makefile (tests): Add new test.
1086         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1088 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1090         * configure.in: Enable multi-arch by default if the assembler
1091         supports gnu_indirect_function symbol type and the architecture
1092         supports it.
1094 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1096         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1097         is defined.
1099 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1101         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1102         MACH_PORT_NULL when id != cttyid.
1104 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1106         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1107         __mach_port_deallocate on rootdevid.
1109 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1111         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1112         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1113         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1114         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1116 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1118         [BZ #10992]
1119         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1120         Patch by Eric Blake <ebb9@byu.net>.
1122 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1124         [BZ #11093]
1125         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1126         POLLWRBAND also for POSIX 2008.
1127         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1128         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1130         * include/link.h (struct link_map): Move l_used into its own word.
1131         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1132         still zero.
1133         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1134         never really used.
1136 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1138         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1139         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1140         check processor feature.
1141         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1142         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1143         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1144         (index_SSE2): Likewise.
1146 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1148         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1149         if __ASSEMBLER__ is defined.
1150         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1151         (bit_SSE4_2): Likewise.
1152         (index_SSSE3): Likewise.
1153         (index_SSE4_2): Likewise.
1154         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1155         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1156         check processor feature.
1157         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1158         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1159         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1160         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1161         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1162         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1163         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1165 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1167         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1169 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1171         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1173 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1175         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1176         O_DSYNC to match 2.6.33+ kernels.
1177         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1178         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1179         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1180         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1181         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1182         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1184 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1186         [BZ #11000]
1187         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1188         *herrnop before returning.
1189         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1190         Likewise.
1191         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1192         TRYAGAIN errors separately.
1193         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1194         *name4_r after functions.
1196 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1198         [BZ #11046]
1199         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1200         version check.
1202 2009-11-05  Bruno Haible  <bruno@clisp.org>
1204         [BZ #11056]
1205         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1206         argv argument as non-NULL.
1207         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1209 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1211         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1212         recvmmsg.
1213         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1214         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1216 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1218         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1219         registers.
1220         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1221         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1222         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1224 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1226         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1227         SCHED_RESET_ON_FORK.
1229 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1231         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1232         only used on truly ancient kernel if configuration requires a more
1233         recent kernel.
1235 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1237         [BZ #3662]
1238         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1239         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1241         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1242         pass it on to __ptsname_internal.
1243         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1244         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1245         All the code from __ptsname_r but take additional parameter.  Use that
1246         instead of pointer to local stat64 variable.
1247         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1248         variable.
1249         * include/stdlib.h: Declare __ptsname_internal.
1251         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1252         before the exec.
1253         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1254         * login/programs/pt_chown.c (main): Don't print message on errors
1255         when doing real work.
1257         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1258         once.
1260         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1261         irel relocations split out from...
1262         (__libc_csu_init): ...here.
1263         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1265 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1267         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1268         for timestamps also if __USE_XOPEN2K8.
1269         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1270         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1271         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1272         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1274 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1276         * nscd/connections.c (restart): Try harder to re-exec.
1278         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1280         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1281         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1282         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1283         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1284         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1285         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1287         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1288         Define.
1289         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1291 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1293         [BZ #10162]
1294         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1295         than software pipeline.  Properly recover from shorter read.
1297 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1299         [BZ #10958]
1300         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1301         initialized before using it.
1302         (_IO_putwc_unlocked): Likewise.
1304         [BZ #10918]
1305         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1306         in cast to not throw away const-ness of parameters.
1307         (__CPU_EQUAL_S): Likewise.
1308         (__CPU_OP_S): Likewise.
1310         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1311         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1312         this gratuitous change and we have to keep compatibility.
1313         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1314         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1315         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1316         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1318         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1320 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1322         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1323         of parameters of sync_file_range.
1324         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1325         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1326         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1327         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1328         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1329         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1331 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1333         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1334         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1335         is defined.
1336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1337         file.
1339 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1341         * posix/bug-regex30.c: New file.
1342         * posix/Makefile: Add rules to build and run bug-regex30.
1343         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1344         character lead bytes when there is a range in a COMPLEX_BRACKET.
1345         Reported by Oleg Bylatov.
1347 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1349         [BZ #10969]
1350         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1351         * locale/tst-duplocale.c: New file.
1352         * locale/Makefile (tests): Add tst-duplocale.
1354         [BZ #10968]
1355         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1356         Patch by Bruno Haible <bruno@clisp.org>.
1357         * locale/tst-locname.c: New file.
1358         * locale/Makefile (tests): Add tst-locname.
1360         [BZ #10972]
1361         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1362         constants from recent kernels.
1363         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1364         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1365         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1366         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1367         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1368         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1370 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1372         [BZ #10162]
1373         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1374         software pipeline.
1376 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1378         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1379         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1380         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1382 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1384         * posix/bug-regex29.c: Include stdio.h.
1386 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1388         [BZ #10939]
1389         * Versions.def: Define GLIBC_2.12 for libc.
1390         * manual/errno.texi: Add ERFKILL entry.
1391         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1392         for 2.12.
1393         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1394         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1396         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1397         F_GETOWN_EX definitions according to corrected kernel definitions.
1398         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1399         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1400         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1401         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1402         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1403         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1405 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1407         * version.h: Bump for 2.12 development.
1409 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1411         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1412         out of buffer space.
1413         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1414         map_v4v6_hostent running out of space.
1416 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1418         * string/bits/string3.h (memset): If the second parameter is constant
1419         and zero there is likely no transposition.
1420         Patch by Caolan McNamara <caolanm@redhat.com.
1422 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1424         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1425         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1427 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1429         * malloc/memusagestat.c (main): Fix spelling in an error message.
1431 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1433         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1434         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1436 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1439         readahead.
1441 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1443         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1444         relocate opd entry when resolving prelink conflicts.
1446 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1448         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1449         when -D_FILE_OFFSET_BITS=64.
1451         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1452         of last two arguments when -D_FILE_OFFSET_BITS=64.
1453         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1455         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1456         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1457         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1458         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1460 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1462         [BZ #4457]
1463         * sysdeps/generic/libgcc_s.h: New file.
1464         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1466 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1468         * malloc/hooks.c (free_check): Restore locking and call _int_free
1469         appropriately.
1471 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1473         * version.h (VERSION): Bump for 2.11 release.
1474         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1476         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1478         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1480         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1481         to avoid warning.
1482         * stdlib/tst-strtoll.c (tests): Likewise.
1484         [BZ #9986]
1485         * time/strftime_l.c (__strftime_internal): Allow %OC.
1487         * misc/mkostemps.c: New file.
1488         * misc/mkostemps64.c: New file.
1490 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1492         * locale/programs/locale-spec.c: Include <error.h> and
1493         <libintl.h>.
1495         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1497 2009-10-28  Roland McGrath  <roland@redhat.com>
1499         * Makefile (dist-prepare): New target.
1500         (tag-for-dist): Target removed.
1501         (glibc-%.tar): Pattern rule removed.
1502         (%.tar): New pattern rule, does simple use of git archive.
1503         (dist-version): Remove variable definition.
1504         (dist): Just depend on that.  Add .tar.xz dependency.
1505         If dist-version variable not set on command line, depend on
1506         dist-prepare, re-invoke with dist-version set via git describe.
1508         * Makerules (%.xz): New pattern rule.
1510 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1512         * elf/ifuncdep2.c: Include ifunc-sel.h.
1513         (global): Delete.
1514         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1515         * elf/ifuncmain1.c (global): Delete.
1516         * elf/ifuncmain1vis.c: Likewise.
1517         * elf/ifuncmain2.c: Likewise.
1518         * elf/ifuncmain5.c: Likewise.
1519         * elf/ifuncmod3.c: Likewise.
1520         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1521         (foo_ifunc): Use ifunc_one.
1522         * elf/ifuncmain7.c: Likewise.
1523         * elf/ifuncmod1.c: Include ifunc-sel.h.
1524         (global): Define protected var.
1525         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1526         * elf/ifuncmod5.c: Likewise.
1527         * sysdeps/generic/elf/ifunc-sel.h: New file.
1528         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1530 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1532         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1533         (R_PPC_REL16*): Correct comments.
1534         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1535         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1536          R_PPC64_REL16_HA): Define.
1537         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1538         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1539         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1540         Delete unused "reloc" param.
1541         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1542         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1543         Delete "reloc" param.
1544         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1545         R_PPC_IRELATIVE.
1546         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1547         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1548         relocations.
1550 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1552         [BZ #10315]
1553         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1554         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1555         UDP_ENCAP_L2TPINUDP.
1557         [BZ #10349]
1558         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1559         parameter, specifying length of prefix.
1560         * stdio-common/tempname.c: Likewise.
1561         * include/stdio.h: Adjust prototypes.
1562         * libio/oldtmpfile.c: Adjust caller.
1563         * misc/mkdtemp.c: Likewise.
1564         * misc/mkostemp.c: Likewise.
1565         * misc/mkostemp64.c: Likewise.
1566         * misc/mkstemp.c:  Likewise.
1567         * misc/mkstemp64.c: Likewise.
1568         * misc/mktemp.c: Likewise.
1569         * stdio-common/tempnam.c: Likewise.
1570         * stdio-common/tmpfile.c: Likewise.
1571         * stdio-common/tmpnam.c: Likewise.
1572         * stdio-common/tmpnam_r.c: Likewise.
1573         * misc/mkstemps.c: New file.
1574         * misc/mkstemps64.c: New file.
1575         * stdlib/stdlib.h: Add prototypes.
1576         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1577         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1579 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1581         * locale/iso-639.def: Add sml entry.
1583         [BZ #10391]
1584         * resolv/res_send.c (send_dg): Initialize resplen.
1586         [BZ #10446]
1587         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1588         definition to the kernel's.
1589         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1591 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1593         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1594         offsets and record sizes in assert()s and response sending.
1595         * nscd/grpcache.c: Likewise.
1596         * nscd/hstcache.c: Likewise.
1597         * nscd/initgrcache.c: Likewise.
1598         * nscd/pwdcache.c: Likewise.
1600 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1602         [BZ #10540]
1603         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1604         /etc/hosts does not exist set errnop and herrnop appropriately.
1605         Patch by Steve Langasek <vorlon@debian.org>.
1607         [BZ #10553]
1608         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1609         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1611         [BZ #10564]
1612         * login/utmp_file.c (TIMEOUT): Increase to 10.
1614         [BZ #10609]
1615         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1616         for file names in case the syscall is not available.
1617         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1618         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1619         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1620         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1621         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1622         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1623         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1624         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1625         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1626         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1627         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1628         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1629         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1630         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1631         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1632         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1633         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1635         [BZ #10643]
1636         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1637         creation filed, remove the request from the 'requests' list and signal
1638         the caller that the request is finished.
1640         [BZ #10692]
1641         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1642         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1644         [BZ #10713]
1645         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1646         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1648         [BZ #10780]
1649         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1650         overflows the int return type.
1652         [BZ #10717]
1653         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1654         have to compute maxsize_total, we have to update the variables, and
1655         the also_total handling must happen after the repair.
1657         [BZ #10742]
1658         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1659         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1661 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1663         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1664         errno is always set when returning unsuccessfully.
1666 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1668         * malloc/memusage.c (update_data): Fix index wraparound handling
1669         so that buffer_cnt is actually reset.
1671 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1673         [BZ #10784]
1674         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1675         of the directory we look at into the static buffer if there is one
1676         at the start of the loop.
1678         [BZ #10789]
1679         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1680         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1682         [BZ #10840]
1683         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1684         __ASSUME_F_GETOWN_EX.
1685         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1686         if possible.
1687         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1689         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1690         and f_owner_ex.
1691         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1692         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1694         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1695         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1696         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1698         [BZ #10847]
1699         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1700         getutmpx symbol.
1702         [BZ #10823]
1703         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1704         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1706 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1708         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1710 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1712         [BZ #10817]
1713         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1714         Reported by Ray Chason.
1716 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1719         strend-sse4.
1720         * sysdeps/x86_64/multiarch/strchr.S: New file.
1721         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1722         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1724 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1726         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1728 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1730         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1731         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1732         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1733         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1734         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1735         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1736         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1737         __ieee751_expl to handle overflow.
1739 2009-10-14  David S. Miller  <davem@davemloft.net>
1741         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1742         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1744 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1746         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1747         !USE_MULTIARCH.
1749 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1751         [BZ #10730]
1752         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1753         Patch in part by Steve Ward <planet36@gmail.com>.
1755         [BZ #10731]
1756         * stdlib/rand_r.c: Fix typo.
1758         * po/cs.po: Update from translation team.
1760 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1762         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1763         returning if RTLD_NOLOAD.
1765 2009-10-06  Roland McGrath  <roland@redhat.com>
1767         * sysdeps/x86_64/multiarch/strstr-c.c
1768         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1770         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1771         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1773         * sysdeps/x86_64/multiarch/init-arch.h
1774         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1775         (HAS_CPU_FEATURE): New macro.
1776         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1777         * sysdeps/x86_64/multiarch/init-arch.c
1778         (__get_cpu_features): #undef it before definition.
1780 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1782         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1783         first_weekday to 1 and first_workday to 2.
1785 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1787         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1788         F_GETOWN_EX.
1789         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1790         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1791         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1792         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1793         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1794         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1796 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1798         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1799         * stdio-common/vfprintf.c: Likewise.
1801 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1803         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1804         (mkdirat): Call __directory_name_split_at instead of
1805         __directory_name_split.
1807 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1809         * locale/programs/locale-spec.c (locale_special): If nothing matches
1810         fail with an appropriate message.
1812 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1814         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1815         and XX.
1817 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1819         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1820         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1822 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1824         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1826 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1828         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1829         character size elements in step data.
1831 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1833         * po/hu.po: Update from translation team.
1834         * po/vi.po: Likewise.
1836 2009-09-19  Roland McGrath  <roland@redhat.com>
1838         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1840 2009-09-15  Roland McGrath  <roland@redhat.com>
1842         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1843         * nptl/sysdeps/pthread/configure: Regenerated.
1844         * nptl/sysdeps/x86_64/configure: Regenerated.
1845         * sysdeps/unix/sysv/linux/configure: Regenerated.
1846         * sysdeps/x86_64/elf/configure: Regenerated.
1848         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1850         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1851         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1852         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1853         * configure: Regenerated.
1855 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1857         * posix/getconf.c (main): Handle -- on command line.
1859 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1861         * configure.in: Support binutils 2.100 and 3.0.
1863 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1865         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1866         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1867         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1868         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1870 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1872         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1873         unnamed_section_defined field.
1874         (collate_read): Test and set unnamed_section_defined.
1876         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1877         _POSIX2_LINE_MAX.
1879 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1881         * configure.in: Support binutils 2.20.
1883 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1885         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1886         __strstr_ia32): Add attribute_hidden.
1888 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1890         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1891         parsing of group entry.
1893 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1895         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1896         external buffer.  Always discard readahead in internal buffer.
1897         * libio/Makefile (tests): Add bug-wsetpos.
1898         * libio/bug-wsetpos.c: New file.
1900 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1902         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1903         Add attribute_hidden.
1904         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1905         __strcasestr_sse2): Likewise.
1906         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1907         (__fma_fma): Make static.
1908         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1909         (__fmaf_fma): Make static.
1911 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1913         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1914         reformulate in-buffer optimisation check to match code in
1915         _IO_new_file_seekoff.
1917 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1919         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1920         to srwi in 32-bit memcpy for power6.
1922 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1924         * include/stdio.h: Declare hidden proto for fflush.
1925         * libio/iofflush.c: Add hidden weak alias for fflush.
1927 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1929         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1930         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1932 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1934         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1936 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1938         [BZ #10560]
1939         * malloc/malloc.c: Add local assert definition to avoid problems with
1940         memory allocation in the real one.
1942 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1944         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1945         Removed.
1946         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1947         turn off SSSE3 on Atom.
1949 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1951         * stdlib/tst-strtol.c (tests): More tests.
1952         * stdlib/tst-strtoll.c (tests): Likewise.
1954 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1958         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1960 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1962         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1963         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1965         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1967         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1969         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1971 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1973         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1975 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1977         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1978         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1980         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1982         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1983         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1985         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1986         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1988         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1989         leftover YMM_SIZE definition.
1991 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1993         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1994         union.
1995         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1996         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1997         Redefine.
1998         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2000         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2001         and SET_FLOAT_WORD definitions.
2003 2009-08-24  Roland McGrath  <roland@redhat.com>
2005         * sysdeps/unix/syscall-template.S: New file.
2006         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2007         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2008         (compile-syscall): Pass mkdep and -g options as normal.
2009         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2010         (common-generated): Don't add them here.
2012 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2014         * math/s_fdim.c: In case of overflows set errno.
2015         * math/s_fdimf.c: Likewise.
2016         * math/s_fdiml.c: Likewise.
2018         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2019         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2020         are using the inline optimizations.
2022         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2023         (__signbitf): Likewise.
2025 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2027         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2028         terminated.
2029         * posix/Makefile (tests): Add bug-regex29.
2030         * posix/bug-regex29.c: New file.
2032         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2033         older POSIX versions are selected.
2035         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2036         as well.
2037         * stdio-common/printf_fphex.c: Likewise.
2038         * stdio-common/tstdiomisc.c: Add more tests.
2040         * locale/locale.h: Include xlocale.h and the thread-local locale
2041         declarations for XPG7, not XPG6.
2043 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2045         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2046         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2049         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2050         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2052 2009-08-20  Roland McGrath  <roland@redhat.com>
2054         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2055         Use l_addr instead of l_map_start (dli_fbase).
2056         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2057         address when there is no proximate symbol.
2058         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2059         Likewise.
2061 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2063         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2065 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2067         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2068         Also handle SIGINT.  In that case only do the cleanup and then
2069         re-raise the signal.
2070         (main): Install handler for SIGINT.
2072 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2074         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2075         clobber list.
2077 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2079         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2080         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2081         tst-auditmod7b.c.
2082         (tests): Add tst-audit6 tst-audit7.
2083         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2084         tst-auditmod7a tst-auditmod7b.
2085         ($(objpfx)tst-audit6): New.
2086         ($(objpfx)tst-audit6.out): Likewise.
2087         ($(objpfx)tst-audit7): Likewise.
2088         ($(objpfx)tst-audit7.out): Likewise.
2089         (tst-audit6-ENV): Likewise.
2090         (tst-audit7-ENV): Likewise.
2091         (CFLAGS-tst-auditmod6b.c): Likewise.
2092         (CFLAGS-tst-auditmod6c.c): Likewise.
2093         (CFLAGS-tst-auditmod7b.c): Likewise.
2094         * elf/tst-audit6.c: New file.
2095         * elf/tst-audit7.c: New file.
2096         * elf/tst-auditmod6a.c: New file.
2097         * elf/tst-auditmod6b.c: New file.
2098         * elf/tst-auditmod6c.c: New file.
2099         * elf/tst-auditmod7a.c: New file.
2100         * elf/tst-auditmod7b.c: New file.
2101         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2102         saving and restoring SSE/AVX registers to ...
2103         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2105 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2107         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2108         only if SHARED is defined.
2109         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2111 2009-08-03  Jim Meyering  <meyering@redhat.com>
2113         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2115 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2117         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2118         section as the other functions for this architecture.
2119         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2121 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2123         * sysdeps/x86_64/strcmp.S: Add support to compile with
2124         USE_SSSE3.  In this case palignr is used.
2125         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2126         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2127         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2128         Add strcmp-ssse3 and strncmp-ssse3.
2129         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2130         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2132         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2133         warning through fake initialization.
2135 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2137         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2139 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2141         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2142         unique symbols.
2144 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2146         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2147         EBX from EAX = 1.  Handle EAX = 11.
2149 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2151         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2152         inside ''.
2154 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2156         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2157         hidden IFUNC functions.
2158         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2160         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2162         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2163         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2164         strcasestr-c.
2165         (CFLAGS-strcspn-c.c): Define.
2166         (CFLAGS-strpbrk-c.c): Define.
2167         (CFLAGS-strspn-c.c): Define.
2168         (CFLAGS-strstr.c): Define.
2169         (CFLAGS-strcasestr.c): Define.
2170         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2171         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2172         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2173         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2174         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2175         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2176         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2177         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2178         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2179         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2180         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2181         -16L instead of 0xfffffffffffffff0L.
2182         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2184 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2186         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2188 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2190         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2191         another rewrite.  Much smaller and faster.
2192         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2194         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2195         ss_flags from the correct location.
2197 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2199         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2200         * sysdeps/i386/i686/cacheinfo.c: New file.
2201         * sysdeps/i386/i686/multiarch/Makefile: New file.
2202         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2203         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2204         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2205         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2206         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2207         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2208         (__cpuid_count): New. Provide the default.
2209         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2210         (__x86_64_preferred_memory_instruction): Define only if
2211         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2212         (intel_check_word): Use __cpuid.
2213         (handle_intel): Likewise.
2214         (handle_amd): Likewise.
2215         (__cache_sysconf): Likewise.
2216         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2217         (__cache_sysconf): Likewise.
2218         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2219         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2220         (get_common_indeces): Use __cpuid.
2221         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2222         if ENABLE_SSSE3_ON_ATOM is not defined.
2223         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2224         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2225         popcnt instead of popcntq.
2227 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2229         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2231 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2233         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2234         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2235         which always causes a compile error.
2237         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2239         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2240         comes from...
2241         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2242         which always causes a compile error.
2244         * debug/Makefile (tests): Add tst-longjmp_chk2.
2245         * debug/tst-longjmp_chk2.c: New file.
2247         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2248         Remove incorrect use of BP_SYM.
2249         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2250         here now since it is more complex than just a simple check.
2252         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2253         we make no more progress.
2255 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2257         * math/s_fma.c: Don't define alias if __fma is a macro.
2258         * math/s_fmaf.c: Likewise.
2259         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2260         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2261         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2263         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2264         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2265         New macro HAS_FMA.
2266         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2267         function.
2268         * include/libc-symbols.h (libm_ifunc): Define.
2269         * sysdeps/x86_64/multiarch/Versions: New file.
2271         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2273 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2275         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2277 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2279         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2280         call that registers used in calling conventions need to be preserved.
2281         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2282         to preserve register content if necessary.
2283         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2284         (_dl_x86_64_restore_sse): New function.
2285         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2286         is allowed to modify xmm/ymm registers.
2288         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2289         application's perspective.
2290         * stdio-common/scanf17.c: Likewise.
2292 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2294         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2295         size to memsz.
2296         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2297         here.
2298         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2299         two steps to catch bugs.
2301 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2303         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2304         determines which files are used in runtime lookups and only checks
2305         those for SSE use.
2306         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2307         testing.
2308         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2309         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2310         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2311         take a while.
2313         * elf/dl-open.c: Move _dl_scope_free to...
2314         * elf/dl-scope.c: ...here.  New file.
2315         * elf/Makefile (dl-routines): Add scope.
2317         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2318         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2319         RES_USE_DNSSEC.
2320         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2321         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2322         all the places we handled RES_USE_EDNS0 only before.
2323         Patch by Adam Tkac <atkac@redhat.com>.
2325 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2327         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2328         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2329         Update size when reallocating.
2331 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2333         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2334         functions used in ld.so modify xmm/ymm registers.
2335         * sysdeps/x86_64/Makefile:  Hook new test up.
2336         * sysdeps/x86_64/rtld-memchr.c: New file.
2337         * sysdeps/x86_64/rtld-memcmp.c: New file.
2338         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2339         * sysdeps/x86_64/rtld-strchr.S: New file.
2340         * sysdeps/x86_64/rtld-strlen.S: New file.
2341         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2342         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2344 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2346         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2347         strncmp-c.
2348         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2349         (exit): Likewise.
2350         (Byte1): Likewise.
2351         (Byte2): Likewise.
2352         (Byte3): Likewise.
2353         (Byte4): Likewise.
2354         (Byte5): Likewise.
2355         (Byte6): Likewise.
2356         (next_8_bytes): Likewise.
2357         (Byte0): Remove commented out codes.
2358         (unaligned_table): Align jump table at 8 bytes.
2359         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2360         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2361         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2362         * sysdeps/x86_64/strncmp.S: New file.
2364 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2366         [BZ #10422]
2367         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2368         kernels, dropped when eventfd2 support was added.
2369         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2370         kernels, dropped when signalfd4 support was added.
2371         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2372         added, name them.
2374         [BZ #10452]
2375         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2376         replies up.
2378         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2380 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2382         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2383         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2385         [BZ #10448]
2386         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2387         callback we must touch the status to avoid using stale value.
2389         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2390         compiled in.
2392 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2394         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2395         /lib/modules/* headers anymore.  We have sane headers in the standard
2396         place now.
2398 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2400         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2401         "etf3enh" and "highgprs" added.
2402         (_dl_s390_platforms): "z10" added.
2403         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2404         Increased for the new entries.
2405         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2406         HWCAP_S390_HIGH_GPRS added.
2408         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2409         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2410         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2411         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2412         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2414 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2416         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2417         avoid additional cpuid instructions.  Most of the information is
2418         stored somewhere.
2420         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2421         cache descriptors.
2422         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2425         SSSE3 bit for Atoms.
2426         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2427         here anymore.
2429         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2430         structure before copying it to avoid warning.
2431         * posix/tst-rfc3484-2.c (do_test): Likewise.
2432         * posix/tst-rfc3484-3.c (do_test): Likewise.
2434         [BZ #10416]
2435         * include/unistd.h: Make header file suitable for C++ test cases.
2436         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2438         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2439         stack alignment in the exit code.
2441         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2442         potentially be zero.
2444         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2445         unique symbol definition.
2446         Patch by Jakub Jelinek.
2447         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2448         make sure the object with the definition cannot be unloaded.  Adjust
2449         a few types.
2450         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2451         the unique symbol hash table should not be const.
2453 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2455         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2456         unnecesary variables.  Comment fixes.
2458 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2460         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2461         Use NONASCII_CASE information provided by the locale to determine
2462         whether optimized string load function can be used.  Minor cleanups.
2464 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2466         * string/strcasestr.c (STRCASESTR): New macro.
2467         (__strcasestr): Renamed to ..
2468         (STRCASESTR): ...this.
2469         * string/strstr.c (STRSTR): New macro.
2470         (strstr): Renamed to ..
2471         (STRSTR): ...this.
2472         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2473         strstr-c strcasestr-c
2474         (CFLAGS-strstr.c): New.
2475         (CFLAGS-strcasestr.c): Likewise.
2476         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2477         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2478         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2479         * sysdeps/x86_64/multiarch/strstr.c: New file.
2481 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2483         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2484         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2485         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2486         _NL_CTYPE_NONASCII_CASE.
2487         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2488         field.
2489         (ctype_finish): Check whether there are any 8-bit characters outside
2490         the range ASCII has or whether the mapping isn't the same as for
2491         ASCII (±0x20).  Set nonascii_case appropriately.
2492         (ctype_output): Add output handler for nonascii_case.
2494 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2496         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2497         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2499 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2501         [BZ #10360]
2502         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2503         0xffff in the EDNS0 record.
2505 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2507         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2508         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2509         is written before the list head update.
2510         Patch by Andreas Schwab <aschwab@redhat.com>.
2512 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2513             Jakub Jelinek  <jakub@redhat.com>
2515         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2516         corruption thread-safe.
2518 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2520         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2521         overrides atomic_compare_and_exchange_val_rel, define to
2522         atomic_compare_and_exchange_val_rel by default, otherwise default
2523         to catomic_compare_and_exchange_val_acq.
2524         (catomic_compare_and_exchange_bool_rel): If arch overrides
2525         atomic_compare_and_exchange_bool_rel, define to
2526         atomic_compare_and_exchange_bool_rel by default.
2527         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2528         Use catomic_compare_and_exchange_val_rel instead of
2529         catomic_compare_and_exchange_val_acq.
2531 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2533         * sysdeps/generic/ldsodefs.h: Add prototype for
2534         _dl_higher_prime_number.
2535         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2537         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2538         restoring of ymm registers a bit.
2540 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2542         * sysdeps/x86_64/memcmp.S: New file.
2544 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2546         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2547         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2548         pointers in writable memory.
2550 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2552         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2553         * config.make.in: Add config-cflags-avx entry.
2554         * configure.in: Substitute libc_cv_cc_avx.
2555         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2556         * elf/tst-audit4.c: New file.
2557         * elf/tst-audit5.c: New file.
2558         * elf/tst-auditmod4a.c: New file.
2559         * elf/tst-auditmod4b.c: New file.
2560         * elf/tst-auditmod5a.c: New file.
2561         * elf/tst-auditmod5b.c: New file.
2562         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2563         link-defines.sym.
2564         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2565         (La_x86_64_vector): Likewise.
2566         (La_x86_64_regs): Append lr_vector.
2567         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2568         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2569         saving and restoring SSE registers to ...
2570         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2571         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2572         <link-defines.h>.
2573         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2574         La_x86_64_regs.  Allocate extra space and jump to memory at
2575         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2576         (save_and_restore_vector_sse): New.
2577         (save_and_restore_vector_avx): Likewise.
2578         (check_avx): Likewise.
2579         (save_and_restore_vector): Likewise.
2580         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2581         HAVE_AVX_SUPPORT.
2582         * sysdeps/x86_64/link-defines.sym: New file.
2584 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2586         * elf/do-lookup.h: Removed after folding content into...
2587         * elf/dl-lookup.c: ...here.
2589         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2591 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2593         * configure.in: Check for gnu_unique_symbol symbol type.
2594         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2595         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2596         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2597         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2598         change.
2599         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2600         unique symbol table.
2601         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2602         for first namespace.
2603         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2604         unique symbol hash table.
2605         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2606         * elf/tst-unique1.c: New file.
2607         * elf/tst-unique1mod1.c: New file.
2608         * elf/tst-unique1mod2.c: New file.
2609         * elf/tst-unique2.c: New file.
2610         * elf/tst-unique2mod1.c: New file.
2611         * elf/tst-unique2mod2.c: New file.
2613 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2615         * elf/elf.h (STB_GNU_UNIQUE): Define.
2617         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2618         from...
2619         * include/inline-hashtab.h: ...here.
2620         (htab_expand): Adjust for renamed function.  Correct memory handling.
2622 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2624         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2626 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2628         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2629         (PPC_FEATURE_HAS_VSX): Likewise.
2631 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2633         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2634         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2636         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2637         aligned to 16 byte boundaries.
2638         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2639         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2640         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2642 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2644         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2645         * config.make.in (config-cflags-sse4): New variable.
2646         * configure.in: Substitute libc_cv_cc_sse4.
2647         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2648         HAVE_SSE4_SUPPORT.
2649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2650         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2651         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2652         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2653         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2654         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2655         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2656         * sysdeps/x86_64/multiarch/strspn.S: New file.
2658 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2660         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2661         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2662         (tests): Add tst-audit3 for x86_64.
2663         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2664         ($(objpfx)tst-audit3): Define.
2665         ($(objpfx)tst-audit3.out): Define.
2666         (tst-audit3-ENV): Define.
2667         * elf/tst-audit3.c: New file.
2668         * elf/tst-auditmod3a.c: New file.
2669         * elf/tst-auditmod3b.c: New file.
2670         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2671         and restore xmm6.
2673         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2674         (__stpncpy): Renamed to ...
2675         (STPNCPY): This.
2676         (stpncpy): Create alias only if STPNCPY is not defined.
2677         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2678         defined.
2679         (strncpy): Renamed to ...
2680         (STRNCPY): This.
2681         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2682          stpncpy-c strncpy-c for string.
2683         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2684         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2685         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2686         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2687         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2688         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2690 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2692         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2693         adding to fast bin list.
2695 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2697         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2698         inet_makeaddr.  This worked only with class-based networks.
2699         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2700         Likewise.
2702         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2703         recognize all types.
2704         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2705         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2706         be in host byte order.
2708 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2710         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2711         (MODEL_OFFSET): Define.
2712         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2713         family and model.
2714         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2715         out common code into new function get_common_indeces. Determine
2716         extended family and model for Intel processors.
2718 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2720         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2721         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2722         option.
2723         * resolv/res_send.c (reopen): New function.  Broken out of...
2724         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2725         fallback mechanism.  If single-request fails switch to
2726         single-request-reopen mode which opens a new socket for the second
2727         request.
2729 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2731         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2732         (CHECK_SP): Use it.
2734 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2736         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2737         for saved registers.
2738         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2739         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2740         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2742 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2744         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2746 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2748         * po/id.po: Update from translation team.
2750         * po/bg.po: Update from translation team.
2752 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2754         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2755         defined.
2756         (strncmp): Renamed to STRNCMP.
2757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2758         strncmp-c for string.
2759         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2760         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2761         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2762         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2764 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2766         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2767         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2768         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2769         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2770         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2771         ifuncmain7static.c.
2772         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2773         ifuncmain7static, and ifuncmain7picstatic.
2774         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2775         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2776         $(objpfx)ifuncmain7pie.out.
2777         (modules-names): Add ifuncmod5 ifuncmod6
2778         (ifuncmod5.so-no-z-defs): Define.
2779         (ifuncmod6.so-no-z-defs): Define.
2780         (CFLAGS-ifuncmain5pic.c): Define.
2781         (CFLAGS-ifuncmain5picstatic.c): Define.
2782         (CFLAGS-ifuncmain5staticpic.c): Define.
2783         (CFLAGS-ifuncdep5pic.c): Define.
2784         (CFLAGS-ifuncmain7pic.c): Define.
2785         (CFLAGS-ifuncmain7picstatic.c): Define.
2786         (CFLAGS-ifuncmain1staticpie.c): Define.
2787         (CFLAGS-ifuncmain5pie.c): Define.
2788         (CFLAGS-ifuncmain6pie.c): Define.
2789         (CFLAGS-ifuncmain7pie.c): Define.
2790         ($(objpfx)ifuncmain1staticpie.out): Define.
2791         ($(objpfx)ifuncmain1staticpie): Define.
2792         ($(objpfx)ifuncmain5pie.out): Define.
2793         ($(objpfx)ifuncmain5pie): Define.
2794         ($(objpfx)ifuncmain6pie.out): Define.
2795         ($(objpfx)ifuncmain6pie): Define.
2796         ($(objpfx)ifuncmain5): Define.
2797         ($(objpfx)ifuncmain5pic): Define.
2798         ($(objpfx)ifuncmain5static): Define.
2799         ($(objpfx)ifuncmain5staticpic): Define.
2800         ($(objpfx)ifuncmain5picstatic): Define.
2801         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2802         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2803         ifuncmain6pie.out.
2804         * elf/b/elf/ifuncmain1staticpie.c: New file.
2805         * elf/ifuncdep5.c: New file.
2806         * elf/ifuncdep5pic.c: New file.
2807         * elf/ifuncmain5.c: New file.
2808         * elf/ifuncmain5pic.c: New file.
2809         * elf/ifuncmain5picstatic.c: New file.
2810         * elf/ifuncmain5pie.c: New file.
2811         * elf/ifuncmain5static.c: New file.
2812         * elf/ifuncmain5staticpic.c: New file.
2813         * elf/ifuncmain6pie.c: New file.
2814         * elf/ifuncmain7.c: New file.
2815         * elf/ifuncmain7pic.c: New file.
2816         * elf/ifuncmain7picstatic.c: New file.
2817         * elf/ifuncmain7pie.c: New file.
2818         * elf/ifuncmain7static.c: New file.
2819         * elf/ifuncmod5.c: New file.
2820         * elf/ifuncmod6.c: New file.
2822 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2824         [BZ #10085]
2825         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2826         (nss_endgrent): New variable.
2827         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2828         fields. Change type of files to bool and adjust all users.
2829         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2830         (internal_endgrent): Call nss_endgrent if necessary.
2831         (add_group): New function.  Broken out of...
2832         (check_and_add_group): ...here.
2833         (getgrent_next_nss): Remove test that any callback is available.
2834         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2835         callback.  If there is no blacklist we can trust the results returned
2836         by the initgroups_dyn callback.  In case there is a callback and we
2837         find a group entry for the group ID but it doesn't contain the
2838         correct member, switch to the slow mode and use getgrent_r.
2839         (internal_getgrent_r): When we see a +: entry, determine whether
2840         there is any callback and which we can use the initgroups_dyn
2841         callback.
2843 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2845         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2846         (_int_free): Likewise.
2848         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2849         AF_IEEE802154.
2850         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2851         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2852         and ARPHRD_IEEE802154_PHY.
2854         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2855         relative to generic Linux version.
2857 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2859         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2860         ($(objpfx)ifuncmain1vispie): Likewise.
2862 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2864         * login/Makefile: Build pt_chown as PIE.
2866 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2868         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2869         a format string.
2870         * elf/sln.c (usage): Likewise.
2871         * malloc/memusage.sh (do_help): Likewise.
2872         * nss/getent.c (more_help): Likewise.
2873         * posix/getconf.c (main): Likewise.
2874         * sunrpc/rpcinfo.c (usage): Likewise.
2875         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2877 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2879         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2880         those needed.
2881         * login/Makefile: If necessary link pt_chown with -lcap.
2882         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2883         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2885 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2887         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2888         comparisons.
2889         * string/test-memchr.c (do_random_tests): Test very large lengths
2890         as well.
2892 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2894         * Makeconfig (+link-pie): Define.
2895         (+prectorS): Define.
2896         (+postctorS): Define.
2897         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2898         * nscd/Makefile ($(objpfx)nscd): Likewise.
2900 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2902         [BZ #10107]
2903         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2904         with cmplwi.
2905         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2907 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2909         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2910         into ...
2911         * sysdeps/unix/grantpt.c: ...here.
2913 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2915         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2916         chmod if it is necessary.
2918         [BZ #10166]
2919         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2920         when the slave device is in devpts or devfs.
2922         [BZ #10183]
2923         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2925         [BZ #10195]
2926         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2927         of nd_opt_home_agent_info_preference to uint16_t.
2928         Patch by Arnaud Ebalard <arno@natisbad.org>.
2930         [BZ #10207]
2931         * nss/getent.c: Add support for printing gshadow data.
2933         [BZ #10203]
2934         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2935         not just the currently used one and those which follow.
2936         Patch by Joe Landers <jlanders@vmware.com>.
2938         [BZ #10196]
2939         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2940         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2941         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2943         [BZ #10217]
2944         * stdlib/abort.c: Define variable __abort_msg.
2945         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2946         * include/stdlib.h: Declare __abort_msg.
2947         * assert/assert-perr.c: Don't free buffer for message immediately.
2948         Store atomically in __abort_msg and free old buffer if necessary.
2949         * assert/assert.c: Likewise.
2950         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2951         store pointer in __abort_msg, and possibly free old string.
2952         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2954         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2956         [BZ #10211]
2957         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2958         handle leap seconds if they are available.
2959         Patch by Akinori Hattori <hattya@gentoo.org>.
2961         * timezone/tzselect.ksh: Update from tzcode2009i.
2962         * timezone/zdump.c: Likewise.
2963         * timezone/zic.c: Likewise.
2965         * timezone/africa: Update from tzdata2009i.
2966         * timezone/antarctica: Likewise.
2967         * timezone/asia: Likewise.
2968         * timezone/australasia: Likewise.
2969         * timezone/backward: Likewise.
2970         * timezone/etcetera: Likewise.
2971         * timezone/europe: Likewise.
2972         * timezone/factory: Likewise.
2973         * timezone/iso3166.tab: Likewise.
2974         * timezone/leapseconds: Likewise.
2975         * timezone/northamerica: Likewise.
2976         * timezone/pacificnew: Likewise.
2977         * timezone/solar87: Likewise.
2978         * timezone/solar88: Likewise.
2979         * timezone/solar89: Likewise.
2980         * timezone/southamerica: Likewise.
2981         * timezone/systemv: Likewise.
2982         * timezone/yearistype: Likewise.
2983         * timezone/zone.tab: Likewise.
2985 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2987         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2988         STT_GNU_IFUNC symbol or in 8 into type_class.
2990         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2991         instead of Elf64_Addr.
2993 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2995         * po/sv.po: Update from translation team.
2997         [BZ #10229]
2998         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2999         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3000         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3001         the C version.
3003 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3005         * Versions.def: Add GLIBC_2.11 for libpthread.
3007 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3009         * resolv/res_send.c (send_dg): Remember we switched to
3010         single-request mode.
3012 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3014         * dlfcn/dlfcn.h: Remove comma at end of enum.
3015         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3017         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3018         parsing mode string.
3020 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3022         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3024         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3026         * sysdeps/x86_64/multiarch/strlen.S: New file.
3027         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3028         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3029         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3030         content.
3032         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3033         is defined.
3035 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3037         * sysdeps/x86_64/strlen.S: Minor optimizations.
3039 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3041         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3042         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3043         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3044         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3045         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3046         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3047         ifuncmain3.c, ifuncmod3.c,.
3048         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3049         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3050         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3051         ifuncmain4picstatic.
3052         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3053         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3054         ifuncmain3, ifuncmain4.
3055         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3056         $(objpfx)ifuncmain1vispie.out.
3057         (modules-names): Add ifuncmod1 ifuncmod3.
3058         (generated): Add ifuncmain1pie ifuncmain1pie.out
3059         ifuncmain1vispie ifuncmain1vispie.out.
3060         Define rules to build and run the tests.
3061         * elf/ifuncdep1.c: New file.
3062         * elf/ifuncdep1pic.c: New file.
3063         * elf/ifuncdep2.c: New file.
3064         * elf/ifuncdep2pic.c: New file.
3065         * elf/ifuncmain1.c: New file.
3066         * elf/ifuncmain1pic.c: New file.
3067         * elf/ifuncmain1picstatic.c: New file.
3068         * elf/ifuncmain1pie.c: New file.
3069         * elf/ifuncmain1static.c: New file.
3070         * elf/ifuncmain1staticpic.c: New file.
3071         * elf/ifuncmain1vis.c: New file..
3072         * elf/ifuncmain1vispic.c: New file..
3073         * elf/ifuncmain1vispie.c: New file.
3074         * elf/ifuncmain2.c: New file.
3075         * elf/ifuncmain2pic.c: New file.
3076         * elf/ifuncmain2picstatic.c: New file.
3077         * elf/ifuncmain2static.c: New file.
3078         * elf/ifuncmain3.c: New file.
3079         * elf/ifuncmain4.c: New file.
3080         * elf/ifuncmain4picstatic.c: New file.
3081         * elf/ifuncmain4static.c: New file.
3082         * elf/ifuncmod1.c: New file.
3083         * elf/ifuncmod3.c: New file.
3085 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3087         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3089 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3091         [BZ #10221]
3092         * posix/Makefile (routines): Add execvpe.
3093         * posix/Versions: Export execvpe for GLIBC_2.11.
3094         * posix/execvp.c: Now only a wrapper.  Move code to...
3095         * posix/execvpe.c: ...here.  New file.
3096         * posix/unistd.h: Declare execvpe.
3098 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3100         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3101         for STT_GNU_IFUNC handling for efficiency.
3102         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3104         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3105         _exit.
3106         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3108 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3110         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3111         for !SHARED.
3113 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3115         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3116         is not defined.
3117         (__rela_iplt_start): New declaration.
3118         (__rela_iplt_end): Likewise.
3119         (__rel_iplt_start): Likewise.
3120         (__rel_iplt_end): Likewise.
3121         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3122         * elf/elf.h (R_386_IRELATIVE): New macro.
3123         (R_X86_64_IRELATIVE): New macro.
3124         (R_386_NUM): Updated.
3125         (R_X86_64_NUM): Likewise.
3126         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3127         (libc_ifunc_hidden_def): New macro.
3128         * sysdeps/generic/dl-irel.h: New file.
3129         * sysdeps/i386/dl-irel.h: New file.
3130         * sysdeps/x86_64/dl-irel.h: New file.
3131         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3132         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3133         Handle R_386_IRELATIVE.
3134         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3135         (elf_machine_lazy_rela): Likewise.
3136         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3137         R_X86_64_IRELATIVE.
3138         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3140 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3142         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3143         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3144         are no differences.  If an architecture has bits in CPUID index 1
3145         meaning different things the values for the COMMON_CPUID_INDEX_1
3146         index must not be set.
3147         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3148         (HAS_POPCOUNT): ...this.  New macro.
3149         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3150         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3151         to set the value for Intel and AMD architectures.
3152         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3153         INTEL_CPUID_INDEX_1.
3154         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3155         change.
3157 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3159         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3160         and $build.
3162 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3164         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3165         (__expm1l): Set errno to ERANGE on overflow.
3166         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3167         (__tanl): Set errno to EDOM for Â±Inf.
3168         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3169         (__cosl): Set errno to EDOM for Â±Inf.
3170         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3171         (__sinl): Set errno to EDOM for Â±Inf.
3173         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3174         defined, use it.
3175         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3176         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3177         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3179 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3181         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3182         code accessing it.
3183         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3185 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3187         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3188         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3189         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3190         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3192         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3193         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3194         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3195         defined.
3196         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3197         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3199 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3201         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3202         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3203         is, either do nothing at all if __ASSUME_ACCEPT4, or
3204         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3205         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3206         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3207         define.
3208         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3209         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3210         internal_accept4 in socket directory.
3212 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3214         * sysdeps/ia64/configure.in: New file.
3216 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3218         [BZ #10162]
3219         * sysdeps/ia64/memchr.S: Use speculative load.
3221         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3222         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3223         use it.
3225         * sysdeps/i386/__longjmp.S: Add .text.
3226         * sysdeps/x86_64/__longjmp.S: Likewise.
3228 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3230         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3231         __ASSUME_ACCEPT4 for IA-64.
3233 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3235         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3237         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3238         (SOCKOP_accept4): Define.
3240 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3242         Sun approved the change of the license.
3243         * sunrpc/auth_des.c: Replace license text.
3244         * sunrpc/auth_none.c: Likewise.
3245         * sunrpc/auth_unix.c: Likewise.
3246         * sunrpc/authdes_prot.c: Likewise.
3247         * sunrpc/authuxprot.c: Likewise.
3248         * sunrpc/bindrsvprt.c: Likewise.
3249         * sunrpc/clnt_gen.c: Likewise.
3250         * sunrpc/clnt_perr.c: Likewise.
3251         * sunrpc/clnt_raw.c: Likewise.
3252         * sunrpc/clnt_simp.c: Likewise.
3253         * sunrpc/clnt_tcp.c: Likewise.
3254         * sunrpc/clnt_udp.c: Likewise.
3255         * sunrpc/clnt_unix.c: Likewise.
3256         * sunrpc/des_crypt.c: Likewise.
3257         * sunrpc/des_soft.c: Likewise.
3258         * sunrpc/get_myaddr.c: Likewise.
3259         * sunrpc/getrpcport.c: Likewise.
3260         * sunrpc/key_call.c: Likewise.
3261         * sunrpc/key_prot.c: Likewise.
3262         * sunrpc/openchild.c: Likewise.
3263         * sunrpc/pm_getmaps.c: Likewise.
3264         * sunrpc/pm_getport.c: Likewise.
3265         * sunrpc/pmap_clnt.c: Likewise.
3266         * sunrpc/pmap_prot.c: Likewise.
3267         * sunrpc/pmap_prot2.c: Likewise.
3268         * sunrpc/pmap_rmt.c: Likewise.
3269         * sunrpc/rpc/auth.h: Likewise.
3270         * sunrpc/rpc/auth_unix.h: Likewise.
3271         * sunrpc/rpc/clnt.h: Likewise.
3272         * sunrpc/rpc/des_crypt.h: Likewise.
3273         * sunrpc/rpc/key_prot.h: Likewise.
3274         * sunrpc/rpc/netdb.h: Likewise.
3275         * sunrpc/rpc/pmap_clnt.h: Likewise.
3276         * sunrpc/rpc/pmap_prot.h: Likewise.
3277         * sunrpc/rpc/pmap_rmt.h: Likewise.
3278         * sunrpc/rpc/rpc.h: Likewise.
3279         * sunrpc/rpc/rpc_des.h: Likewise.
3280         * sunrpc/rpc/rpc_msg.h: Likewise.
3281         * sunrpc/rpc/svc.h: Likewise.
3282         * sunrpc/rpc/svc_auth.h: Likewise.
3283         * sunrpc/rpc/types.h: Likewise.
3284         * sunrpc/rpc/xdr.h: Likewise.
3285         * sunrpc/rpc_clntout.c: Likewise.
3286         * sunrpc/rpc_cmsg.c: Likewise.
3287         * sunrpc/rpc_common.c: Likewise.
3288         * sunrpc/rpc_cout.c: Likewise.
3289         * sunrpc/rpc_dtable.c: Likewise.
3290         * sunrpc/rpc_hout.c: Likewise.
3291         * sunrpc/rpc_main.c: Likewise.
3292         * sunrpc/rpc_parse.c: Likewise.
3293         * sunrpc/rpc_parse.h: Likewise.
3294         * sunrpc/rpc_prot.c: Likewise.
3295         * sunrpc/rpc_sample.c: Likewise.
3296         * sunrpc/rpc_scan.c: Likewise.
3297         * sunrpc/rpc_scan.h: Likewise.
3298         * sunrpc/rpc_svcout.c: Likewise.
3299         * sunrpc/rpc_tblout.c: Likewise.
3300         * sunrpc/rpc_util.c: Likewise.
3301         * sunrpc/rpc_util.h: Likewise.
3302         * sunrpc/rpcinfo.c: Likewise.
3303         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3304         * sunrpc/rpcsvc/key_prot.x: Likewise.
3305         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3306         * sunrpc/rpcsvc/mount.x: Likewise.
3307         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3308         * sunrpc/rpcsvc/rex.x: Likewise.
3309         * sunrpc/rpcsvc/rstat.x: Likewise.
3310         * sunrpc/rpcsvc/rusers.x: Likewise.
3311         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3312         * sunrpc/rpcsvc/spray.x: Likewise.
3313         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3314         * sunrpc/rtime.c: Likewise.
3315         * sunrpc/svc.c: Likewise.
3316         * sunrpc/svc_auth.c: Likewise.
3317         * sunrpc/svc_authux.c: Likewise.
3318         * sunrpc/svc_raw.c: Likewise.
3319         * sunrpc/svc_run.c: Likewise.
3320         * sunrpc/svc_simple.c: Likewise.
3321         * sunrpc/svc_tcp.c: Likewise.
3322         * sunrpc/svc_udp.c: Likewise.
3323         * sunrpc/svc_unix.c: Likewise.
3324         * sunrpc/svcauth_des.c: Likewise.
3325         * sunrpc/xcrypt.c: Likewise.
3326         * sunrpc/xdr.c: Likewise.
3327         * sunrpc/xdr_array.c: Likewise.
3328         * sunrpc/xdr_float.c: Likewise.
3329         * sunrpc/xdr_mem.c: Likewise.
3330         * sunrpc/xdr_rec.c: Likewise.
3331         * sunrpc/xdr_ref.c: Likewise.
3332         * sunrpc/xdr_sizeof.c: Likewise.
3333         * sunrpc/xdr_stdio.c: Likewise.
3335         * po/da.po: Update from translation team.
3337 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3339         * sysdeps/sh/____longjmp_chk.S: New file.
3340         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3341         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3343 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3344             Ulrich Drepper  <drepper@redhat.com>
3346         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3347         (__nscd_cache_search): Assume each entry in the
3348         hash chain needs one hashentry and half of datahead.  Use
3349         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3351 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3353         * posix/sys/wait.h: Fix typos.  Pretty printing.
3354         * stdlib/stdlib.h: Likewise.  Correct comments.
3356         [BZ #10159]
3357         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3359         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3360         patch.
3362 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3364         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3365         Use it if we absolutely cannot reach any more correct list elements
3366         because that many do not fit into the currently mapped database.
3368 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3370         * nscd/nscd_helper.c: Include stddef.h.
3371         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3372         in a couple of places.  Return NULL if trail is not less than
3373         datasize, don't consider dataheads with length smaller than
3374         offsetof (struct datahead, data) + datalen.
3375         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3376         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3377         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3378         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3379         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3380         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3381         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3383         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3384         Rename ...
3385         (fallocate64): ... to this.
3386         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3387         Rename ...
3388         (fallocate64): ... to this.
3389         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3390         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3391         fallocate64@@GLIBC_2.10.
3392         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3393         fallocate64@@GLIBC_2.11.
3394         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3396         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3397         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3399         * nscd/selinux.c (nscd_avc_destroy): Removed.
3400         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3401         * nscd/nscd.c (termination_handler): Don't call
3402         nscd_avc_destroy.
3404 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3406         * include/atomic.h: Formatting.
3407         (catomic_compare_and_exchange_val_acq): Don't define if already
3408         defined by bits/atomic.h.
3410 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3412         * math/libm-test.inc (expm1_test): Add test for range error.
3414         * Versions.def: Add GLIBC_2.11 for libc.
3415         * debug/Makefile (routines): Add longjmp_chk.
3416         Add rules to build and run tst-longjmp_chk.
3417         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3418         * debug/longjmp_chk.c: New file.
3419         * debug/tst-longjmp_chk.c: New file.
3420         * include/bits/setjmp2.: New file.
3421         * include/stdio.h: Mark __fortify_fail as internal_function.
3422         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3423         * setjmp/bits/setjmp2.h: New file.
3424         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3425         of the aliases.
3426         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3427         defined.
3428         * sysdeps/i386/____longjmp_chk.S: New file.
3429         * sysdeps/x86_64/____longjmp_chk.S: New file.
3430         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3431         * sysdeps/x86_64/__longjmp.S: Likewise.
3433         * version.h: Bump for 2.11 development.
3435         * elf/check-execstack.c: New file.
3436         * elf/Makefile: Add rules to build and run check-execstack.
3438 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3440         * version.h (VERSION): Bump to 2.10.1.
3442         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3443         compatibility functions.
3444         * nss/getXXent_r.c: Likewise.
3445         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3446         * gshadow/getsgnam_r.c: Likewise.
3447         * gshadow/Version: Remove duplicate entries.
3449         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3450         for recent processor.
3451         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3452         Likewise.
3454 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3456         * version.h (VERSION): Bump for 2.10 release.
3457         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3459         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3460         same place we add ASFLAGS-config.
3462 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3464         [BZ #10128]
3465         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3466         or FORMERR and the other NOERROR, don't raise an error.
3468 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3470         [BZ #10118]
3471         * Makeconfig (+asflags): New variable based upon ASFLAG or
3472         asflags-cpu.
3473         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3474         * config.make.in (asflags-cpu): Add variable based upon
3475         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3476         the assembler.
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3478         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3479         recognizes power6 instruction set due to passing -mcpu=power6 from
3480         --with-cpu=power6 when compiling .S files.
3481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3482         Likewise.
3483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3484         Likewise.
3485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3486         Likewise.
3488 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3490         * string/stratcliff.c (do_test): Test for zero length
3491         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3492         at the end of the page.
3494 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3496         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3498         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3499         count is zero.
3501         * po/da.po: Update from translation team.
3503 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3505         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3506         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3508 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3510         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3511         and READ_IMPLIES_EXEC.
3513 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3515         * po/da.po: Update from translation team.
3517 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3519         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3520         comment change.
3522 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3524         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3525         to MAP_ANON in PROT_NONE mmap64 call.
3526         (open_archive): Likewise.
3527         (file_data_available_p): Use mmap64 instead of mremap.
3528         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3529         Attempt to reserve address space after mmap64 region.
3531 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3533         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3534         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3535         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3537         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3538         atanh should set ERANGE.
3540         [BZ #10087]
3541         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3542         result of lookup to make call to implement STT_GNU_IFUNC.
3543         (_dl_profile_fixup): Likewise.
3544         Patch by H.J. Lu <hjl.tools@gmail.com>.
3546         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3547         warning.
3549         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3550         from definition.
3552         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3553         label if it is not used.
3555         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3556         of gmon_hist_hdr and gmon_hdr structures and use them.
3557         * elf/sprof.c: Likewise.
3559         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3560         warning.
3562         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3564         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3565         to avoid cast.
3567         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3568         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3569         to avoid warnings.
3570         (iruserok_af): Use ss_family instead of casts.
3572         * gmon/gmon.c (write_hist): Define real-type variant of
3573         gmon_hist_hdr structure and use it.
3574         (write_gmon): Likewise for gmon_hdr.
3576         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3577         function if we are not going to define it.
3578         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3580         * inet/inet6_option.c (option_alloc): Add temporary variable to
3581         avoid warning.
3583         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3584         name of VTable element.
3585         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3586         * libio/iovsscanf.c: Likewise.
3587         * libio/vasprintf.c: Likewise.
3588         * libio/vsnprintf.c: Likewise.
3589         * stdio-common/isoc99_vsscanf.c: Likewise.
3590         * stdlib/strfmon_l.c: Likewise.
3591         * debug/vasprintf_chk.c: Likewise.
3592         * debug/vsnprintf_chk.c: Likewise.
3593         * debug/vsprintf_chk.c: Likewise.
3595         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3596         function pointers.
3598 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3600         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3602 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3604         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3606         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3607         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3608         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3609         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3610         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3611         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3612         * math/libm-test.inc: Add tests for errno after tan calls with
3613         Â±Inf.
3615         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3616         errno value vor pow(+-0,neg).
3617         * math/libm-test.inc (pow_test): Add tests for errno value for
3618         pole errors.
3620         * math/w_fmod.c: Also handle x=±Inf as error.
3621         * math/w_fmodf.c: Likewise.
3622         * math/w_fmodl.c: Likewise.
3623         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3624         x=±Inf or y=0.
3626         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3627         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3628         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3629         * sysdeps/i386/fpu/s_sin.S: Likewise.
3630         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3631         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3632         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3633         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3634         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3635         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3636         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3637         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3638         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3639         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3640         Â±Inf.
3642         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3643         ERANGE for underflows.
3644         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3646         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3647         the 2001 revision.
3649         * libio/tst-widetext.input: Remove surrogates.
3651         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3653         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3654         for lgamma should set errno to ERANGE, not EDOM.
3655         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3657 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3659         [BZ #10093]
3660         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3661         UTF-16 surrogates.
3663         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3664         space when temporarily mapping the whole content of the old file.
3666         [BZ #10100]
3667         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3668         not zero.
3670 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3672         * iconvdata/sjis.c (BODY): Don't advance inptr before
3673         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3674         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3675         two byte chars.
3677 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3679         * locale/locarchive.h (struct locarhandle): Rename len field to
3680         mmaped and add new reserved field.
3681         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3682         (create_archive): Reserve address space and then map file into it.
3683         (open_archive): Likewise.
3684         (file_data_available_p): New function.
3685         (compare_from_file): New function.
3686         (close_archive): Adjust to member name changes.
3687         (add_locale): Before comparing locale data, check it is mapped.
3688         Otherwise fall back to reading from the file.
3690 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3692         * stdio-common/psiginfo.c: Include <errno.h>.
3694 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3696         [BZ #9920]
3697         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3698         to get consistency between 32 and 64 bit architectures.
3700         [BZ #10052]
3701         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3702         directory for dummy syscall rules.
3703         Patch by Chris Steinbroner <hesh@pobox.com>.
3705 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3707         [BZ #10092]
3708         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3709         MNT_EXPIRE.
3711 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3713         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3714         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3716 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3718         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3719         data from vector to temporary buffer and call PWRITEV after it
3720         instead of vice versa.
3721         * sysdeps/posix/preadv.c: Fix up comment.
3722         * misc/preadv.c: Likewise.
3723         * misc/preadv64.c: Likewise.
3724         * misc/pwritev.c: Likewise.
3725         * misc/pwritev64.c: Likewise.
3726         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3728 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3730         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3732         * shadow/Makefile (tests): Add tst-shadow.
3733         * shadow/tst-shadow.c: New file.
3735         [BZ #9955]
3736         * gshadow/Makefile: New file.
3737         * gshadow/Versions: New file.
3738         * gshadow/fgetsgent.c: New file.
3739         * gshadow/fgetsgent_r.c: New file.
3740         * gshadow/getsgent.c: New file.
3741         * gshadow/getsgent_r.c: New file.
3742         * gshadow/getsgnam.c: New file.
3743         * gshadow/getsgnam_r.c: New file.
3744         * gshadow/gshadow.h: New file.
3745         * gshadow/putsgent.c: New file.
3746         * gshadow/sgetsgent.c: New file.
3747         * gshadow/sgetsgent_r.c: New file.
3748         * gshadow/tst-gshadow.c: New file.
3749         * include/gshadow.h: New file.
3750         * Makeconfig (all-subdirs): Add gshadow.
3751         * Makefile (installed-headers): Add gshadow/gshadow.h.
3752         * nss/Makefile (databases): Add sgrp.
3753         * nss/Versions: Add gshadow functions as private exports.
3754         * nss/nsswitch.conf: Add gshadow entry.
3755         * nss/sgrp-lookup.c: New file.
3756         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3757         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3758         * nss/nss_files/files-sgrp.c: New file.
3759         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3760         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3762 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3764         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3765         * stdio-common/reg-modifier.c: Likewise.
3767 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3769         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3770         is no FPU.
3772 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3774         [BZ #10086]
3775         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3776         headers up to 2.6.30.
3778         * po/ca.po: Update from translation team.
3780 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3782         [BZ #10069]
3783         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3784         an object that uses static TLS if the TLS modid is higher than the
3785         reserve we always allocate.  At least for multi-threaded code.
3787 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3789         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3790         Numerically stable check for valid width.
3792         * locale/programs/locarchive.c (open_archive): Map the entire file
3793         and not just the administrative data.
3794         (add_locale): When we find a hash sum match compare the content
3795         to be sure.
3797         * malloc/malloc.c (malloc_info): Output address space information.
3799 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3801         * malloc/malloc.c (malloc_info): Also output system memory information.
3803         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3804         architectures have preadv/pwritev in 2.6.30.
3806         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3807         * sysdeps/posix/readv.c: Likewise.
3808         Reported by Markus Armbruster <armbru@redhat.com>.
3810         * malloc/hooks.c (top_check): Force hook value into register.
3812 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3814         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3815         calls to _dl_relocate_object.
3817 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3819         [BZ #9957]
3820         * malloc/malloc.c (force_reg): Define.
3821         (sYSMALLOc): Load hook variable into variable
3822         before test and force into register.
3823         (sYSTRIm): Likewise.
3824         (public_mALLOc): Force hook value into register.
3825         (public_fREe): Likewise.
3826         (public_rEALLOc): Likewise.
3827         (public_mEMALIGn): Likewise.
3828         (public_vALLOc): Likewise.
3829         (public_pVALLOc): Likewise.
3830         (public_cALLOc): Likewise.
3831         (__posix_memalign): Likewise.
3832         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3833         before test and force into register.
3834         * malloc/hooks.c (top_check): Likewise.
3835         (public_sET_STATe): Pretty printing.
3837         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3838         in case we only receive one reply in single-request mode.
3840 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3842         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3843         are dlopened in statically linked program even for __LM_ID_CALLER.
3845 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3847         * resolv/res_send.c (send_dg): Don't switch into single-request
3848         mode if we already are in it.
3850 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3852         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3853         are always at least 4 bytes in the returned line.
3855 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3857         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3858         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3859         instead of 8K.  Stop searching in /proc/stat after hitting first
3860         line not starting with cpu.
3861         (next_line): Truncate too long
3862         lines at buffer size * 3/4 instead of pretending there were line
3863         breaks inside of large lines.
3865 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3867         * sysdeps/x86_64/mp_clz_tab.c: New file.
3869 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3870             Ulrich Drepper  <drepper@redhat.com>
3872         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3873         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3874         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3876 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3878         * sysdeps/sh/libc-tls.c: New file.
3880         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3882 2009-04-14  Roland McGrath  <roland@redhat.com>
3884         * elf/elf.h: Add various missing ARM constants, to match binutils.
3886 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3888         Optimizations from GMP.
3889         * sysdeps/x86_64/add_n.S: New file.
3890         * sysdeps/x86_64/addmul_1.S: New file.
3891         * sysdeps/x86_64/lshift.S: New file.
3892         * sysdeps/x86_64/mul_1.S: New file.
3893         * sysdeps/x86_64/rshift.S: New file.
3894         * sysdeps/x86_64/sub_n.S: New file.
3895         * sysdeps/x86_64/submul_1.S: New file.
3897 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3899         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3900         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3901         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3902         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3904 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3906         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3907         preadv/pwritev.
3909 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3911         * sysdeps/x86-64/strrchr.S: New file.
3913 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3915         * stdio-common/printf.h (struct printf_info): Add user element.
3916         New types printf_arginfo_size_function, printf_va_arg_function.
3917         Declare register_printf_specifier, register_printf_modifier,
3918         register_printf_type.
3919         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3920         (union printf_arg): Add pa_user element.
3921         Adjust __printf_arginfo_table type.
3922         Add __printf_va_arg_table, __printf_modifier_table,
3923         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3924         declarations.
3925         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3926         If registered arginfo call failed try normal specifier.
3927         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3928         function.
3929         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3930         * stdio-common/Versions: Export register_printf_modifier,
3931         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3932         * stdio-common/reg-modifier.c: New file.
3933         * stdio-common/reg-type.c: New file.
3934         * stdio-common/reg-printf.c (__register_printf_specifier): New
3935         function.  Mostly the old __register_printf_function function but
3936         uses locking and type of third parameter changed.
3937         (__register_printf_function): Implement using
3938         __register_printf_specifier.
3939         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3940         calls to arginfo functions.  Allocate enough memory for user-defined
3941         types.  Call new va_arg functions to get user-defined types.
3942         Try installed handlers even for existing format specifiers first.
3944 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3946         * sysdeps/x86_64/rawmemchr.S: New file.
3948         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3949         Simplified code and possible copy problem fixed.
3951         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3952         function if it is not defined.  Add some necessary casts.
3953         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3955         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3956         have preadv/pwritev in 2.6.30.
3958 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3960         * malloc/malloc.c (malloc_info): New function.
3961         * malloc/malloc.h: Declare it.
3962         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3964         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3965         to avoid PLT slot.
3967         * malloc/malloc.c (_int_realloc): Add parameter with old block
3968         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3969         Adjust all callers.
3970         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3972 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3974         * sysdeps/x86_64/strchrnul.S: New file.
3976         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3977         depending libcrypt on -lfreebl3.
3979         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3980         preadv/pwritev in 2.6.30.
3982         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3983         instead of __strcasecmp.
3985         * string/stratcliff.c (do_test): Add memchr tests..
3986         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3987         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3988         first read quad word.
3990 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3992         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3993         * string/tst-svc.input: Add new test case.
3994         * string/tst-svc.expect: Adjust.
3995         * string/Makefile: Don't ignore tst-svc error.
3997         * sysdeps/x86_64/memchr.S: New file.
3999         * resolv/resolv.h (RES_SNGLKUP): Define.
4000         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4001         * resolv/res_send.c (send_dg): If we sent two requests at once and
4002         only get one reply before timeout switch to mode where we send the
4003         second request only after the first answer has been received.
4005 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4007         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4008         * sysdeps/x86_64/strchr.S: Likewise.
4010 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4012         * configure.in: We need to test for the compiler earlier.
4014         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4015         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4016         GLIBC_2.10.
4017         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4018         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4019         and pwritev.
4020         * misc/preadv.c: New file.
4021         * misc/preadv64.c: New file.
4022         * misc/pwritev.c: New file.
4023         * misc/pwritev64.c: New file.
4024         * sysdeps/posx/preadv.c: New file.
4025         * sysdeps/posx/preadv64.c: New file.
4026         * sysdeps/posx/pwritev.c: New file.
4027         * sysdeps/posx/pwritev64.c: New file.
4028         * sysdeps/unix/sysv/linux/preadv.c: New file.
4029         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4030         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4031         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4032         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4033         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4035         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4036         compatibility code.
4037         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4039         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4040         __ASSUME_COMPLETE_READV_WRITEV.
4041         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4042         with modern kernels.
4043         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4045         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4046         to free a possible malloced buffer in case of cancellation.
4047         * sysdeps/posix/writev.c: Likewise for write.
4049 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4051         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4053         * configure.in: Recognize --enable-nss-crypt.
4054         * config.make.in: Add nss-crypt entry.
4055         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4056         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4057         and include path for NSS directory to compiler for md5-crypt,
4058         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4059         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4060         function implementation, use NSS.  Introduce wrappers around the
4061         hash function calls.  Little code size optimization.
4062         * crypt/sha256-crypt.c: Likewise.
4063         * crypt/sha512-crypt.c: Likewise.
4064         * scripts/check-local-headers.sh: Ignore nss3 directory.
4066         * configure.in: Rename pic_default to libc_cv_pic_default.
4067         * config.make.in: Likewise.
4069 2009-04-01  Roland McGrath  <roland@redhat.com>
4071         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4072         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4073         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4074         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4075         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4076         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4077         (R_SPARC_NUM): Update.
4078         From Dave Miller <davem@davemloft.net>.
4080 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4082         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4084 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4086         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4087         those which are used.
4088         * elf/dl-addr.c: Likewise.
4089         * elf/dl-caller.c: Likewise.
4090         * elf/dl-fini.c: Likewise.
4091         * elf/dl-iteratephdr.c: Likewise.
4092         * elf/dl-libc.c: Likewise.
4093         * elf/dl-load.c: Likewise.
4094         * elf/dl-support.c: Likewise.
4095         * elf/dl-sym.c: Likewise.
4096         * elf/rtld.c: Likewise.
4097         * sysdeps/generic/ldsodefs.h: Likewise.
4099         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4100         * elf/dl-minimal.c: Likewise.
4101         * elf/dl-misc.c: Likewise.
4102         * elf/rtld.c: Likewise.
4103         * sysdeps/generic/ldsodefs.h: Likewise.
4105 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4107         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4108         Avoid reuse of complex expression.
4110         * po/fr.po: Update from translation team.
4112 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4114         * include/dirent.h: Yet more changes to match sort function type
4115         change.
4116         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4117         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4118         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4120 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4122         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4124 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4126         * nscd/connections.c (restart): Try to preserve the process name
4127         by reading the /proc/self/exe symlink and using the return name.
4128         Patch by Jeff Bastian <jbastian@redhat.com>.
4130 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4132         [BZ #9733]
4133         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4134         if we are not loading a new audit library.
4135         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4136         Only use profiling trampoline for auditing if we are not relocating
4137         an audit library.
4138         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4139         * elf/rtld.c: Likewise.
4140         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4142         * elf/rtld.c (dl_main): Extend help message for --audit option.
4144         [BZ #9759]
4145         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4146         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4147         * dirent/alphasort.c: Adjust implementation to type change.
4148         * dirent/alphasort64.c: Likewise.
4149         * dirent/scandir.c: Likewise.
4150         * dirent/versionsort.c: Likewise.
4151         * dirent/versionsort64.c: Likewise.
4152         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4153         declaration.
4154         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4155         declaration.
4157         [BZ #9880]
4158         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4159         correctly.  Set segleft member in output as required.
4160         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4161         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4163         [BZ #9881]
4164         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4165         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4166         * inet/Makefile (tests): Add tst-inet6_rth.
4167         * inet/tst-inet6_rth.c: New file.
4169         [BZ #5807]
4170         * string/strlen.c (strlen): Fix omission in the expression to test
4171         for NUL bytes.
4173 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4175         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4177         * elf/dl-runtime.c (reloc_offset): Define.
4178         (reloc_index): Define.
4179         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4180         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4181         computing index from reloc_offset.
4182         (_dl_call_pltexit): Likewise.
4183         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4184         the relocation index to _dl_fixup.
4185         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4186         _dl_call_pltexit.
4187         * sysdeps/x86_64/dl-runtime.c: New file.
4189         [BZ #9893]
4190         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4191         alignment of La_x86_64_regs.  Store xmm parameters.
4192         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4194         [BZ #9913]
4195         * string/strverscmp.c (__strverscmp): Fix case of different digits
4196         in fractional part of string.
4197         Patch by Jingyu Liu <jyliu@fortinet.com>.
4198         * string/Makefile (tests): Add tst-svc2.
4199         * string/tst-svc2.c: New file.
4201         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4203         * locale/iso-639.def: Add Min Nan.
4205 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4207         [BZ #9948]
4208         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4210 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4212         * elf/dl-sysdep.c (auxvars): Compress data structure.
4214         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4215         STT_GNU_IFUNC handling.
4216         (elf_machine_rela): Likewise.
4218 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4220         * config.h.in (USE_MULTIARCH): Define.
4221         * configure.in: Handle --enable-multi-arch.
4222         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4223         (_dl_fixup_profile): Likewise.
4224         * elf/do-lookup.c (dl_lookup_x): Likewise.
4225         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4226         * elf/elf.h (STT_GNU_IFUNC): Define.
4227         * include/libc-symbols.h (libc_ifunc): Define.
4228         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4229         framework in init-arch.h to get CPUID values.
4230         * sysdeps/x86_64/multiarch/Makefile: New file.
4231         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4232         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4233         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4235         * config.make.in (experimental-malloc): Define.
4236         * configure.in: Handle --enable-experimental-malloc.
4237         * malloc/Makefile: Handle experimental-malloc flag.
4238         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4239         * malloc/arena.c: Likewise.
4240         * malloc/hooks.c: Likewise.
4241         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4243 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4245         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4246         prediction.  A few size optimizations.
4248 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4250         * time/tzset.c: Optimize a bit for size.
4252 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4254         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4255         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4257         * elf/sprof.c: Avoid warning about multi-line comment.
4259 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4261         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4262         DST name.
4263         * time/tst-posixtz.c: Add tests for quoted timezone names.
4265 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4267         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4268         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4269         200809L instead of 200112L.
4270         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4271         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4273         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4274         instead of __quick_exit_funcs to __run_exit_handlers.
4275         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4276         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4277         (__cxa_at_quick_exit): Remove attribute_hidden.
4278         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4279         to __run_exit_handlers.
4280         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4281         attribute_hidden.
4283 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4285         * po/id.po: Update from translation team.
4287 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4290         .machine push; .machine "power6" and .machine pop around mtfsf
4291         insns outside of _ARCH_PWR6 define.
4292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4294         Likewise.
4295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4296         Likewise.
4297         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4298         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4299         relax_fenv_state): Likewise.
4301 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4303         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4304         cxa_at_quick_exit.
4305         (static-only-routines): Add at_quick_exit.
4306         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4307         GLIBC_2.10.
4308         * stdlib/quick_exit.c: New file.
4309         * stdlib/at_quick_exit.c: New file.
4310         * stdlib/cxa_at_quick_exit.c: New file.
4311         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4312         it appropriately.
4313         (__internal_atexit): New function.
4314         (__new_exitfn): Now takes parameter to point to the list to use.
4315         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4316         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4317         (exit): ...here.  Just call __run_exit_handlers appropriately.
4318         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4319         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4320         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4321         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4323         * po/id.po: Update from translation team.
4325 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4327         * po/ru.po: Update from translation team.
4329 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4331         * po/nl.po: Update from translation team.
4333 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4335         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4337         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4338         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4339         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4340         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4343         * po/pl.po: Update from translation team.
4345 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4347         [BZ #7083]
4348         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4349         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4350         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4351         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4352         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4353         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4354         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4355         for GLIBC_2.10.
4356         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4357         Add fallocate and fallocate64.
4359         * io/fcntl.h: Pretty printing.
4361 2009-03-02  Richard Guenther  <rguenther@suse.de>
4363         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4364         attribute also for non-C99 inline semantics variant.
4366 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4368         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4369         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4370         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4371         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4373         Likewise.
4374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4375         Likewise.
4377 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4379         * po/cs.po: Update from translation team.
4381 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4383         * po/bg.po: Update from translation team.
4384         * po/sv.po: Likewise.
4385         * po/fi.po: Likewise.
4386         * po/vi.po: Likewise.
4388 2009-02-27  Roland McGrath  <roland@redhat.com>
4390         * Makeconfig (%.v.i): Depend on Makeconfig.
4391         Exclude % lines from initial #-comment removal.
4393 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4395         * po/ko.po: Update from translation team.
4397 2009-02-26  Roland McGrath  <roland@redhat.com>
4399         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4400         avoids unused warning.
4402 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4403             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4405         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4406         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4407         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4408         and asm/user.h.  Include asm/ptrace.h.
4409         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4410         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4411         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4412         Undefine.
4413         (start_thread): Don't undefine.
4414         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4415         Define.
4417 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4419         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4420         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4421         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4422         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4423         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4424         200112L to 200809L.
4425         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4426         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4427         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4428         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4429         _SC_THREAD_ROBUST_PRIO_PROTECT.
4430         * posix/unistd.h: fexecve is in POSIX 2008.
4431         * time/time.h: strftime_l is in POSIX 2008.
4432         * io/sys/stat.h: futimens is in POSIX 2008.
4433         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4434         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4435         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4436         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4437         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4438         open_memstream, and vdprintf are in POSIX 2008.
4440 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4442         * include/features.h: Define macros for XPG7/POSIX 2008.
4443         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4444         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4445         POSIX 2008.
4446         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4447         * locale/xlocale.h: Define locale_t type.
4448         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4449         in POSIX 2008.  Don't define locale_t here.
4450         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4451         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4452         UTIME_OMIT only with __USE_ATFILE.
4453         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4454         * stdio-common/psiginfo.c: New file.
4455         * stdio-common/psiginfo-data.h: New file.
4456         * stdio-common/psiginfo-define.h: New file.
4457         * stdio-common/Makefile (routines): Add psiginfo.
4458         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4459         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4460         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4461         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4462         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4463         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4464         * io/sys/stat.h: Move mknodat definition into same conditional as
4465         mknod.
4466         * time/sys/time.h: futimesat is not among the functions accepted
4467         into the POSIX standard.
4469         * include/features.h: If no feature selection given and we select
4470         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4471         * posix/Versions: Export __posix_getopt.
4472         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4473         Use it to alternatively initialize __posixly_correct.
4474         (_getopt_internal_r): Take addition parameter.  Pass on to
4475         _getopt_initialize.
4476         (_getopt_internal): Take addition parameter.  Pass on to
4477         _getopt_internal_r.
4478         (getopt): Pass additional zero to _getopt_internal.
4479         (__posix_getopt): New function.
4480         * posix/getopt.h: Add redirection for getopt.
4481         * posix/getopt1.c (getopt_long): Pass additional zero to
4482         _getopt_internal.
4483         (getopt_long_only): Likewise.
4484         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4485         (_getopt_long_only_r): Likewise.
4486         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4487         _getopt_internal_r.
4489 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4491         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4492         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4493         * sysdeps/posix/sysconf.c (__sysconf): Handle
4494         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4495         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4497 2009-02-24  Roland McGrath  <roland@redhat.com>
4499         [BZ #9895]
4500         * README.template: Reworded not to use substituted version number.
4501         Renamed to ...
4502         * README: ... here (no longer generated).
4503         * Makefile (README): Target removed.
4505 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4507         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4508         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4509         instead.
4511         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4513         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4515 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4517         * po/bg.po: Update from translation team.
4519 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4521         * stdlib/monetary.h: Uglify function parameter names.
4522         * sunrpc/rpc/pmap_clnt.h: Likewise.
4523         * sunrpc/rpc/svc.h: Likewise.
4524         * sunrpc/rpc/xdr.h: Likewise.
4525         * sunrpc/rpc/clnt.h: Likewise.
4526         * resolv/netdb.h: Likewise.
4527         * resolv/arpa/nameser.h: Likewise.
4528         * resolv/resolv.h: Likewise.
4529         * argp/argp.h: Likewise.
4530         * locale/langinfo.h: Likewise.
4531         * io/sys/stat.h: Likewise.
4532         * posix/spawn.h: Likewise.
4533         * nis/rpcsvc/nislib.h: Likewise.
4534         * malloc/obstack.h: Likewise.
4535         * sysdeps/ia64/bits/link.h: Likewise.
4536         * sysdeps/i386/bits/link.h: Likewise.
4537         * sysdeps/s390/bits/link.h: Likewise.
4538         * sysdeps/powerpc/bits/link.h: Likewise.
4539         * sysdeps/x86_64/bits/link.h: Likewise.
4540         * sysdeps/sparc/bits/link.h: Likewise.
4541         * sysdeps/sh/bits/link.h: Likewise.
4542         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4543         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4544         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4545         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4547 2008-12-01  Fredrik Unger  <fred@tree.se>
4549         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4550         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4551         _FP_UNPACK_RAW_2, fix up first argument.
4553 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4555         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4556         (GET_NPROCS_PARSER): Change parameters and use next_line.
4557         (__get_nprocs): Rewrite to not use stdio routines.
4558         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4559         Change parameters and use next_line.
4561 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4563         [BZ #5381]
4564         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4565         Change mempool_alloc prototype.
4566         * nscd/mem.c (gc): Don't handle mem_in_flight.
4567         (mempool_alloc): Third parameter now only indicates whether this is the
4568         first call (to allocate data) or not.  If it is, get db rdlock.
4569         Release it on error.  Don't handle mem_in_flight.
4570         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4571         Adjust third parameter of mempool_alloc calls.
4572         Nothing to do here in case mempool_alloc fails.
4573         Avoid local variable shadowing parameter.  No need to get db rdlock
4574         before calling cache_add.
4575         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4576         no mem_in_flight array anymore.
4577         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4578         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4579         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4580         in case mempool_alloc fails. No need to get db rdlock before calling
4581         cache_add.
4582         * nscd/hstcache.c (cache_addhst): Likewise.
4583         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4584         * nscd/servicescache.c (cache_addserv): Likewise.
4585         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4587 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4589         * po/lt.po: Update from translation team.
4591 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4593         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4594         defined, allow additional data to be added using the optional
4595         MORE_ELF_HEADER_DATA macro.
4596         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4597         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4599 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4601         * include/atomic.h: Define catomic_and if not already defined.
4602         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4603         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4605 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4607         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4608         Change all callers.
4609         (_int_realloc): Likewise.  Third argument is now padded size
4610         All _int_* functions are now static.
4612         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4613         * malloc/arena.c: Likewise.
4614         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4615         functions.
4617         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4618         easily.
4620         * malloc/malloc.c: Add branch prediction for use of the hooks.
4622         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4624 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4626         [BZ #7095]
4627         * bits/confname.h: Add SUSv7 macros for getconf environments.
4628         * bits/environments.h: Likewise.
4629         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4630         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4631         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4632         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4633         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4634         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4635         * posix/getconf.c: Likewise.
4636         * posix/sysconf.c: Likewise.
4637         * sysdeps/posix/sysconf.c: Likewise.
4638         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4639         environments.
4641 2009-01-16  Petr Baudis  <pasky@suse.cz>
4643         [BZ #9753]
4644         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4645         even if we currently have zero nscount.
4647 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4649         [BZ #9781]
4650         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4651         the input line is too long.
4653         * po/Makefile (libc.pot): Add f_print as function taking c-format
4654         parameter.
4656         * debug/xtrace.sh: Unify translatable messages.
4657         * elf/ldd.bash.in: Likewise.
4658         * elf/sprof.c: Likewise.
4659         * locale/programs/locale.c: Likewise.
4660         * malloc/memusage.sh: Likewise.
4661         * nss/getent.c: Likewise.
4663 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4665         * debug/pcprofiledump.c (print_version,
4666         argp_program_version_hook): New function.
4667         * elf/ldconfig.c (more_help): New function.
4668         (argp): Use it.
4669         * elf/sln.c (usage): New function.
4670         (main): Support --help and --version.
4671         * malloc/memusagestat.c (print_version): New function.
4672         (argp_program_version_hook): New variable.
4673         * nscd/nscd.c (more_help): New function.
4674         (argp): Use it.
4675         * posix/getconf.c (main): Send --version output to stdout.
4676         Support --help.
4677         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4678         arguments.  All callers changed.
4679         (print_version): New function.
4680         (parseargs): Support --help and --version.
4681         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4682         changed.
4683         (print_version): New function.
4684         (main): Use getopt_long.  Support --help and --version.
4685         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4686         --version.
4688 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4690         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4691         (update_data): Fix handling of wrapping back
4692         to the beginning of the buffer.
4694         [BZ #9823]
4695         * stdio-common/psignal.c (psignal): Fix test for empty string.
4697 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4699         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4700         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4701         move _null_auth to .rodata.
4703         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4704         value of 24.
4706         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4708         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4709         today than when the original code was written.  Use larger
4710         buffers.  This also makes it unnecessary to have stat information,
4711         if this causes extra efforts.
4712         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4713         __alloc_dir.
4715 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4717         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4718         is set.
4719         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4720         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4721         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4722         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4723         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4724         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4726 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4728         * po/ru.po: Update from translation team.
4730 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4732         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4733         Add _tid slot to maintain consistency with kernel.
4735 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4737         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4738         incomplete characters at end of input buffer.
4739         * libio/Makefile (tests): Add tst-fgetwc.
4740         * libio/tst-fgetwc.c: New file.
4741         * libio/tst-fgetwc.input: New file.
4743 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4745         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4747 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4749         [BZ #9793]
4750         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4751         *OUTBUFSTART unless the whole output fit into the buffer.
4752         * iconv/Makefile (tests): Add tst-iconv4.
4753         * iconv/tst-iconv4.c: New file.
4755 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4757         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4758         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4760 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4762         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4763         newer linker scripts.
4765 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4767         [BZ #7040]
4768         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4769         inotify_rm_watch should have type int.
4771 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4773         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4774         Make aligned_restore_vmx a local symbol.
4775         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4776         Likewise.
4778 2009-01-30  Andreas Jaeger  <aj@suse.de>
4780         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4781         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4782         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4783         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4784         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4785         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4786         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4788 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4790         [BZ #9726]
4791         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4792         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4794 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4796         [BZ #9726]
4797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4798         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4800         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4802 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4804         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4805         memcpy instead of memcmp.
4806         (_dl_setup_pointer_guard): Likewise.
4808 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4810         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4811         manipulated brk, use malloc_printerr.
4812         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4813         requests.
4815 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4817         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4818         rindex): For C++ add inlines so that they can be recognized as
4819         builtins.
4820         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4822 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4823             Jakub Jelinek  <jakub@redhat.com>
4825         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4826         * wcsmbs/wchar.h: Likewise.
4828 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4830         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4831         (stackinfo_sub_sp): Define.
4833 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4835         [BZ #9750]
4836         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4837         * include/alloca.h (alloca_account): Define.
4838         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4839         (stackinfo_sub_sp): Define.
4841         * nscd/connections.c (nscd_init): If database file access fails
4842         check whether this is due to permission problems and bail in that
4843         case.
4845         [BZ #9741]
4846         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4847         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4849 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4851         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4852         Add "t" to clobber list.
4853         (INTERNAL_SYSCALL_NCS): Likewise.
4855 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4857         * nss/getent.c (print_networks): Don't print comma between aliases.
4859 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4861         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4863         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4864         the hash table.
4865         * misc/Makefile (tests): Add bug-hsearch1.
4866         * misc/bug-hsearch1.c: New file.
4868 2009-01-22  Roland McGrath  <roland@redhat.com>
4870         * Makeconfig (%.v.i): Strip trailing # comments,
4871         not only whole-line comments.
4873 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4875         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4876         one parameter.  If non-NULL use it to initialize return value.
4877         (_dl_setup_pointer_guard): New function.
4878         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4879         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4880         * elf/rtld.c (security_init): Pass _dl_random to
4881         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4882         pointer_chk_guard.
4883         * elf/dl-sysdep.c (_dl_random): New variable.
4884         (_dl_sysdep_start): Handle AT_RANDOM.
4885         (_dl_show_auxv): Likewise.
4886         * elf/dl-support.c (_dl_random): New variable.
4887         (_dl_aux_init): Handle AT_RANDOM.
4888         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4889         to _dl_setup_stack_chk_guard.
4891         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4893 2009-01-10  Roland McGrath  <roland@redhat.com>
4895         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4897 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4899         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4901         [BZ #9706]
4902         * nss/nss_files/files-parse.c (strtou32): New function.
4903         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4904         across 32-bit and 64-bit platforms.
4905         (INT_FIELD_MAYBE_NULL): Likewise.
4907 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4909         [BZ #9720]
4910         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4911         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4912         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4913         Likewise.
4915 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4917         [BZ #697]
4918         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4919         being NULL also if there are no backreferences.
4920         * posix/rxspencer/tests: Add testcases.
4922 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4924         [BZ #9697]
4925         * posix/bug-regex17.c: Add testcases.
4926         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4927         handling.
4929 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4931         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4932         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4933         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4934         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4935         for elf subdir.
4936         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4937         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4938         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4939         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4940         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4941         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4943 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4945         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4946         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4947         re_string_skip_chars, re_string_reconstruct): Likewise.
4948         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4950 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4952         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4953         adjust the buffer alignment.
4955 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4957         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4958         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4959         net/route.h.
4961         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4962         flavor to description only when flavor is not NULL.
4964         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4965         mutex after SIGIO/SIGURG lookup loop.
4967 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4969         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4971 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4973         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4974         handling.
4976 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4978         * sysdeps/unix/sysv/linux/kernel-features.h
4979         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4981         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4982         if no output is written.
4984         * version.h: Bump to 2.10 development.
4986         * posix/getconf.c: Update copyright year.
4987         * nss/getent.c: Likewise.
4988         * iconv/iconvconfig.c: Likewise.
4989         * iconv/iconv_prog.c: Likewise.
4990         * elf/ldconfig.c: Likewise.
4991         * catgets/gencat.c: Likewise.
4992         * csu/version.c: Likewise.
4993         * elf/ldd.bash.in: Likewise.
4994         * elf/sprof.c (print_version): Likewise.
4995         * locale/programs/locale.c: Likewise.
4996         * locale/programs/localedef.c: Likewise.
4997         * nscd/nscd.c (print_version): Likewise.
4998         * debug/xtrace.sh: Likewise.
4999         * malloc/memusage.sh: Likewise.
5000         * malloc/mtrace.pl: Likewise.
5001         * debug/catchsegv.sh: Likewise.
5003 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5005         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5006         script.
5008 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5010         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5011         gethostbyname4_r function call succeeded, just leave the loop.
5013         [BZ #9694]
5014         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5015         very end.
5016         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5017         * wctype/Makefile (tests): Add bug-wctypeh.
5018         * wctype/bug-wctypeh.c: New file.
5020         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5021         LOCALDOMAIN is defined.
5022         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5024         * sysdeps/x86_64/bits/select.h: New file.
5026         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5028 2008-12-21  Bruno Haible  <bruno@clisp.org>
5030         [BZ #9677]
5031         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5032         if no output is written.
5034 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5036         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5037         libc internal symbol __dup2 to avoid access through the PLT.
5039 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5041         [BZ #6545]
5042         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5043         available only for __USE_GNU.
5045         * inet/Makefile (tests): Add tst-getni2.
5046         * inet/tst-getni2.c: New file.
5048         [BZ #7080]
5049         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5050         NULL when NI_NAMEREQD is set.
5051         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5052         * inet/Makefile (tests): Add tst-getni1.
5053         * inet/tst-getni1.c: New file.
5055 2008-12-03  Petr Baudis  <pasky@suse.cz>
5057         [BZ #7067]
5058         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5059         instead of prune_lock.
5060         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5061         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5063 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5065         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5066         use.
5068         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5069         handling.
5071         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5072         after reading name server list.
5074         [BZ #7058]
5075         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5076         handling for host name aliases.
5078 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5080         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5081         instead of doing things manually.
5083 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5085         * posix/regex_internal.h (build_wcs_upper_buffer):
5086         Return type is reg_error_t.
5088 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5090         * posix/globtest.sh: Use mktemp to create temporary file and
5091         directory.
5093         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5094         sets correctly.
5095         (__CPU_CLR_S): Likewise.
5096         (__CPU_ISSET_S): Likewise.
5098 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5099             Ulrich Drepper  <drepper@redhat.com>
5101         * scripts/firstversion.awk: Use custom comparison function to compare
5102         version numbers.
5103         * scripts/versions.awk: Use sort invocation which can handle
5104         multi-digit sub-version numbers.
5106 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5108         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5109         * locale/iso-639.def: Add Chhattisgarhi entry.
5111 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5113         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5114         ESRCH return value.
5115         (_nss_dns_gethostbyname4_r): Likewise.
5116         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5117         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5118         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5119         the no_data variable.
5121         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5122         information at the correct index.
5124         * socket/sys/socket.h: Declare accept4.
5125         * socket/accept4.c: New file.
5126         * sysdeps/unix/sysv/linux/accept4.c: New file.
5127         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5128         * socket/Makefile (routines): Add accept4.
5129         * socket/Versions: Export accept4 with version GLIBC_2.10.
5130         * socket/paccept.c: Removed.
5131         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5132         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5133         * Versions.def: Define GLIBC_2.10 for libc.
5134         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5136         * nscd/connections.c: Use accept4.
5138         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5140 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5142         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5143         flag already set.
5145         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5146         not exist.
5147         * stdlib/Makefile (tests): Add tst-unsetenv1.
5148         * stdlib/tst-unsetenv1.c: New file.
5150 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5152         * login/utmp_file.c (file_writable): New variable.
5153         (setutent_file): Don't try to open file for writing.
5154         (pututline_file): Before writing, make descriptor writable if
5155         necessary.
5157 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5159         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5160         to IPv4 or IPv6 if an interface has been found.
5162 2008-11-26  Roland McGrath  <roland@redhat.com>
5164         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5165         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5167         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5168         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5169         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5171         * elf/elf.h (NT_386_IOPERM): New macro.
5172         (NT_PPC_VSX): New macro.
5174 2008-11-25  Roland McGrath  <roland@redhat.com>
5176         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5177         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5178         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5179         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5180         Subdirectories moved to ports repository.
5181         * configure.in (base_machine): Remove alpha case.
5183 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5185         * sysdeps/mach/strerror_l.c: New file.
5187 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5189         [BZ #6411]
5190         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5191         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5192         magic numbers.
5193         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5194         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5195         (relax_fenv_state): Same as above.
5196         (FPSCR_29): Reserve bit in ISA 2.05.
5197         (FPSCR_NI): Provide define for compat.
5198         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5199         magic numbers.
5200         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5201         magic numbers.
5202         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5203         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5204         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5205         access to hwcap to account for hwcap size increase to uint64_t.
5206         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5207         Likewise.
5208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5209         (*setcontext): Likewise.
5210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5211         New file.
5212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5213         New file.
5214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5215         (*setcontext): dynamically select mtfsf insn based on
5216         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5217         increase to uint64_t.
5218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5219         (*swapcontext): dynamically select mtfsf insn based on
5220         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5221         increase to uint64_t.
5222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5223         New file.
5224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5225         New file.
5226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5227         (*setcontext): dynamically select mtfsf insn based on
5228         PPC_FEATURE_HAS_DFP.
5229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5230         (*swapcontext): dynamically select mtfsf insn based on
5231         PPC_FEATURE_HAS_DFP.
5233 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5235         * version.h: Bump for 2.9 release.
5236         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5238         [BZ #7029]
5239         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5240         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5241         all the rounding.
5243 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5245         [BZ #7009]
5246         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5247         unknown request types for now.
5249 2008-11-11  Roland McGrath  <roland@redhat.com>
5251         * sysdeps/x86_64/configure: New file.
5253         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5254         * configure: Regenerated.
5256 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5258         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5259         correct instruction to remove the stack frame.
5261 2008-11-03  Michael Matz  <matz@suse.de>
5263         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5264         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5266 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5268         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5269         Remove.
5271         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5272         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5273         of the thread variable instead of void *.
5274         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5275         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5276         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5277         __libc_tsd_define arguments.
5278         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5279         __libc_tsd_address arguments.  Remove union hack.
5280         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5281         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5282         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5283         Adjust __libc_tsd_{set,get} arguments.
5284         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5285         __libc_tsd_define arguments.
5286         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5287         arguments.
5288         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5289         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5290         (LOCALE): Adjust __libc_tsd_define arguments.
5291         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5292         arguments.
5293         (LOCALE): Adjust __libc_tsd_define arguments.
5294         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5295         arguments.
5296         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5297         arguments.
5299 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5301         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5302         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5304 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5306         [BZ #6966]
5307         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5309 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5310             Ulrich Drepper  <drepper@redhat.com>
5312         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5313         definition for GCC 3.1 and later.
5315 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5317         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5318         refetch dtv, as it might have changed.
5319         * elf/Makefile: Add rules to build and run tst-tls18.
5320         * elf/tst-tls18.c: New test.
5321         * elf/tst-tlsmod18a.c: New file.
5323 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5325         [BZ #6875]
5326         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5328 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5330         [BZ #6867]
5331         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5333         [BZ #6919]
5334         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5335         Fix length of copy operation.
5337 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5339         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5340         and fix its calling convention.
5342 2008-10-07  Andreas Schwab  <schwab@suse.de>
5344         [BZ #6942]
5345         * resolv/res_send.c (send_vc): Fix last change.
5346         (send_dg): Align here as well.
5348 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5350         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5351         return value in case rlimit is RLIM_INFINITY.
5353         [BZ #6947]
5354         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5355         for UL_SETFSIZE.
5356         * resource/Makefile (tests): Add bug-ulimit1.
5357         * resource/bug-ulimit1.c: New file.
5359         [BZ #6974]
5360         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5361         without dot.  Properly terminate the string with a null byte.
5362         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5364         [BZ #6980]
5365         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5366         negative sizees.
5367         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5368         negative __size.
5370         [BZ #6995]
5371         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5373 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5375         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5376         abort if there is no initgroups_dyn function.
5378         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5379         result if any of the queries really provided an answer.
5381 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5383         * po/lt.po: Update from translation team.
5385 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5387         * po/id.po: Update from translation team.
5389 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5391         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5392         Fix tests for existence of second reply.
5394 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5396         * po/id.po: New file.
5397         Contributed by the Indonesian translation team.
5399 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5401         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5402         initialization.
5404 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5406         * elf/Makefile: Add rules to build and run tst-tls17.
5407         * elf/tst-tls17.c: New test.
5408         * elf/tst-tlsmod17a.c: New file.
5409         * elf/tst-tlsmod17b.c: Likewise.
5411 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5413         * stdlib/divmod_1.c: Use correct type for dummy variable.
5414         * stdlib/mod_1.c: Likewise.
5416 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5418         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5420 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5422         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5423         __nonnull order for C++.
5424         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5425         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5427 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5429         * stdlib/longlong.h: Update from GCC.
5431 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5432             David S. Miller  <davem@davemloft.net>
5434         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5435         make sure any registers used with 64-bit 'branch-on-register'
5436         instructions have their top 32-bits clear.
5437         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5438         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5440 2008-09-18  Andreas Schwab  <schwab@suse.de>
5442         [BZ #6942]
5443         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5444         Properly handle partial reads.
5446 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5448         * elf/elf.h (STO_MIPS_PLT): New.
5449         (R_MIPS_COPY): New.
5450         (R_MIPS_JUMP_SLOT): New.
5451         (R_MIPS_NUM): Redefine to 128.
5452         (DT_MIPS_PLTGOT): New.
5453         (DT_MIPS_RWPLT): New.
5454         (DT_MIPS_NUM): Redefine to 0x35.
5456 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5458         * timezone/africa: Update from tzdata2008f.
5459         * timezone/asia: Likewise.
5460         * timezone/australasia: Likewise.
5461         * timezone/europe: Likewise.
5462         * timezone/leapseconds: Likewise.
5463         * timezone/northamerica: Likewise.
5464         * timezone/southamerica: Likewise.
5465         * timezone/zone.tab: Likewise.
5467 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5469         * nscd/connections.c: Disable use of paccept for now.
5471 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5473         * socket/Versions: Remove paccept export for GLIBC_2.9.
5474         * socket/Makefile (routines): Remove paccept.
5475         * socket/sys/socket.h: Remove paccept declaration.
5477         * po/sv.po: Update from translation team.
5479 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5481         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5482         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5484 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5486         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5487         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5489 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5491         * sunrpc/rpc/svc.h: Declare svcfd_create.
5492         Patch by Michael Solberg <msolberg@redhat.com>.
5494 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5495             Ulrich Drepper  <drepper@redhat.com>
5497         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5498         _int_valloc fails.
5499         (public_pVALLOc): Likewise.
5501 2008-09-02  Andreas Jaeger  <aj@suse.de>
5503         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5504         commit.
5506 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5508         [BZ #6860]
5509         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5511 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5513         * Makefile (check-data): Check data directory in add-ons.
5514         * elf/Makefile (check-data): Likewise.
5516 2008-08-18  Roland McGrath  <roland@redhat.com>
5518         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5519         * configure: Regenerated.
5520         * config.make.in (cflags-cpu): New substituted variable.
5521         (with-cpu): Variable removed.
5522         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5524 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5526         [BZ #6845]
5527         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5528         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5529         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5530         redundant.  Functions which call floating point assembler operations
5531         should go into a sysdeps powerpc/fpu directory.
5533 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5535         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5536         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5538 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5540         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5542         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5543         change related to AT_EXECFN.  We cannot use that string.
5544         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5545         _dl_execfn member.
5546         * elf/dl-support.c: Remove _dl_execfn variable.
5547         (_dl_aux_init): Remove handling of AT_EXECFN.
5548         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5549         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5551 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5553         [BZ #6544]
5554         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5555         byte gets added to writes and seeks from the end use the length of
5556         the buffer and not the currently terminating NUL byte.
5558         [BZ #6634]
5559         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5560         Set to true if locking failed.
5561         (getutid_r_file): Adjust caller.
5562         (pututline_file): Likewise.  Return NULL in this case.
5563         Patch mostly by halesh.s@gmail.com.
5565 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5567         [BZ #6589]
5568         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5569         Define.
5570         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5572 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5574         [BZ #6839]
5575         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5576         macro since it is now available in elf/dynamic-link.h.
5578 2008-08-12  Roland McGrath  <roland@frob.com>
5580         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5581         in case used outside of libc.
5582         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5584 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5586         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5587         directly instead of going through dn_comp.
5589 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5591         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5592         Fix asm constraints.
5594 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5596         [BZ #6790]
5597         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5598         (IPV6_PMTUDISC_PROBE): Likewise.
5600 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5602         [BZ #6791]
5603         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5605 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5606             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5608         [BZ #6817]
5609         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5610         Added the members 'vsx' and 'arch_2_06'.
5611         (_dl_powerpc_platforms): Add the member 'power7'.
5612         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5613         to reflect the changes required by VSX and ISA 2.06.
5614         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5615         'power7'.
5616         Defined PPC_PLATFORM_POWER7.
5617         (_dl_string_platform): Add support for POWER7.
5618         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5619         capability and ISA 2.06.
5621 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5623         [BZ #6824]
5624         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5625         macro to detect use of 128 bit long double.
5626         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5628 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5630         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5632         [BZ #5794]
5633         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5634         parameters.
5635         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5636         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5638 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5640         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5641         guaranteed to be large enough to read inotify event.  Ignore
5642         EAGAIN error.  Better error message.  Add branch predicition.
5643         (main_loop_epoll): Likewise.
5645 2008-08-02  Roland McGrath  <roland@frob.com>
5647         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5648         Add memory clobbers.
5650 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5652         * manual/arith.texi: Avoid @strong{Note:}.
5653         * manual/creature.texi: Likewise.
5654         * manual/filesys.texi: Likewise.
5655         * manual/math.texi: Likewise.
5656         * manual/memory.texi: Likewise.
5657         * manual/resource.texi: Likewise.
5658         * manual/syslog.texi: Likewise.
5659         * manual/time.texi: Likewise.
5661         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5662         to prevent warning.
5664 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5666         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5667         new epoll_create1 interface.
5668         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5669         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5670         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5672         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5673         (NS_GET32): Likewise.
5675         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5676         syscalls, too.
5678         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5679         use the AT_EXECFN value if it is no absolute path.
5680         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5681         __ASSUME_AT_EXECFN.
5683         * Versions.def: Add GLIBC_2.9 to libresolv.
5684         * include/resolv.h: Remove hidden proto declarations for __ns_*
5685         functions.  Add them for __dn_count_labels and __p_secstodate.
5686         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5687         Define ns_msg_getflags macro here.
5688         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5689         and __p_secstodate.
5690         * resolv/Versions: Export functions from <arpa/nameser.h> from
5691         libresolv in version GLIBC_2.9.
5692         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5693         hidden definitions.
5694         * resolv/ns_netint.c: Likewise.
5695         * resolv/ns_parse.c: Likewise.
5696         * resolv/ns_print.c: Likewise.
5697         * resolv/ns_samedomain.c: Likewise.
5698         * resolv/ns_ttl.c: Likewise.
5699         * resolv/arpa/nameser_compat.h: Likewise.
5700         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5701         function calls.
5702         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5703         instead of ns_get16.
5704         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5705         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5706         (gaih_getanswer_slice): Likewise.
5707         * resolv/Makefile (libresolv-routines): Add ns_date.
5708         * resolv/ns_date.c: New file.
5710         * elf/Makefile (check-localplt.out): Also check libresolv and
5711         libcrypt.
5713 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5715         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5716         __ASSUME_O_CLOEXEC.
5718 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5720         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5721         buffer passed to NSS functions.
5723         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5725         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5726         Define.
5728         * misc/syslog.c (openlog_internal): Fix compile problem.
5730 2008-07-28  Roland McGrath  <roland@redhat.com>
5732         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5734 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5736         * io/ftw.c (add_object): Remove inline to avoid warning.
5738         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5740         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5741         Use it instead of locally defined resplen2 variable.
5742         (res_nsend): Adjust for __libc_res_nsend interface change.
5743         (send_vc): Initialize *resplen2 if necessary.  Read length of
5744         package into an appropriately aligned variable.  Store converted length
5745         in new variable and use it appropriately.
5746         Add branch prediction help.
5747         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5748         and pass it on to __libc_res_nsend.  Adjust all callers.
5749         (__libc_res_nsearch): Likewise.
5750         (__libc_res_nqeurydomain): Likewise.
5751         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5752         change.
5753         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5754         Define resplen2 variable and pass it to __libc_res_nsearch and then
5755         to gaih_getanswer.
5756         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5757         Add branch prediction.
5758         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5759         (gaih_getanswer): Don't decode second slice if first one failed due
5760         to a too small buffer.  Don't let not found status of second
5761         decoder shadow results of the first.
5762         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5763         and __libc_res_nquery interface changes
5764         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5765         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5766         __libc_res_nsearch, and __libc_res_nsend.
5767         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5768         change.
5769         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5770         __libc_res_nsearch interface changes.
5772 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5774         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5776         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5777         file descriptors with close-on-exec set.
5778         (exec_comm_child): Fix the case where the write end of the pipe is
5779         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5781         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5782         * io/pipe2.c: Likewise.
5783         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5784         instead of __ASSUME_PACCEPT.
5785         * include/unistd.h: Declare __have_pipe2.
5786         * libio/iopopen.c: Implement "e" flag.
5787         * libio/Makefile (tests): Add tst-popen1.
5788         * libio/tst-popen1.c: New file.
5790         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5791         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5793 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5795         [BZ #6771]
5796         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5797         success call of _IO_SEEKOFF or calls which failed because the
5798         descriptor is for a pipe.
5800         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5801         magic number.
5803         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5805         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5806         F_SETFD use if we know fopen set the flag.
5808         * login/utmp_file.c (setutent_file): Minor optimization in case
5809         O_CLOEXEC is available.
5811 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5813         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5814         * elf/Makefile: Use pie-ccflag variable.
5815         * nscd/Makefile: Likewise.
5816         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5818 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5820         [BZ #6724]
5821         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5822         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5823         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5824         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5825         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5826         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5827         utmp32, utmpx32 and login32.
5828         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5829         versions of struct utmp functions to libc and libutil.
5830         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5831         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5832         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5833         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5834         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5835         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5836         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5837         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5838         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5839         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5840         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5841         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5842         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5843         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5844         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5845         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5846         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5847         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5848         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5849         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5850         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5851         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5853 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5855         * scripts/gen-as-const.awk: Generate more widely usable code by
5856         using 64-bit arithmetic.
5858         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5859         the same treatment as narrow output code in last patch.
5861         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5863         [BZ #6763]
5864         * elf/dl-load.c (local_strdup): Remove inline.
5865         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5866         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5867         part of the object.
5869         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5871 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5873         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5874         the new syscalls, too.
5876         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5877         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5879         [BZ #6698]
5880         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5881         parameter for end of buffer.  If temporary copy is too large use
5882         malloc.
5883         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5884         interface change.
5885         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5886         string rewrite when allocating buffer.
5888         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5889         syscalls, too.
5891         * nscd/connections.c (nscd_init): Clean up fcntl call.
5893         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5894         SOCK_NONBLOCK if possible.
5896         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5897         SOCK_CLOEXEC if available.
5899         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5900         __libc_clntudp_bufcreate_internal.
5901         * include/sys/socket.h: Declare __have_sock_cloexec.
5902         * socket/Makefile (aux): Add have_sock_cloexec.
5903         * socket/have_sock_cloexec.c: New file.
5904         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5905         __libc_clntudp_bufcreate.
5906         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5907         which takes an additional parameter.  Create socket with non-blocking
5908         mode and close-on-exec flag set, if wanted.
5909         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5910         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5911         instead of clntudp_create.  The socket has already the close-on-exec
5912         flag set if SOCK_CLOEXEC is defined.
5914 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5916         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5917         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5918         appropriate.
5919         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5920         non-blocking mode by using socket, paccept, and inotify_init1.
5922         * Versions.def (glibc): Add GLIBC_2.9.
5923         * io/Makefile (routines): Add dup3 and pipe2.
5924         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5925         * io/dup3.c: New file.
5926         * io/pipe2.c: New file.
5927         * posix/unistd.h: Declare dup3 and pipe2.
5928         * socket/Makefile (routines): Add paccept.
5929         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5930         * socket/paccept.c: New file.
5931         * socket/sys/socket.h: Declare paccept.
5932         * sysdeps/unix/syscalls.list: Add entry for dup3.
5933         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5934         epoll_create2 and inotify_init1.
5935         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5936         * sysdeps/unix/sysv/linux/paccept.c: New file.
5937         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5938         possible.
5939         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5940         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5941         inotify_init1, and pipe2 entries.
5942         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5943         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5944         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5945         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5946         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5947         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5948         SOCK_NONBLOCK.
5949         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5950         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5951         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5952         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5953         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5954         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5955         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5956         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5957         EPOLL_NONBLOCK.  Declare epoll_create2.
5958         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5959         EFD_NONBLOCK.
5960         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5961         IN_NONBLOCK.  Declare inotify_init1.
5962         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5963         SFD_NONBLOCK.
5964         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5965         TFD_NONBLOCK.
5967         * elf/elf.h: Define AT_EXECFN.
5968         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5969         LD_ORIGIN_PATH.
5970         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5971         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5972         if __ASSUME_AT_EXECFN is defined.
5973         (_dl_aux_init): Handle AT_EXECFN.
5974         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5975         for 2.6.27 and up.
5976         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5977         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5978         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5979         _dl_execfn if available and avoid compatibility code if
5980         __ASSUME_AT_EXECFN is defined.
5982         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5983         _dl_discover_osversion only for older kernels.
5985 2008-07-22  Roland McGrath  <roland@frob.com>
5987         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5989 2008-07-21  Roland McGrath  <roland@frob.com>
5991         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5992         returned too much data out of line.
5994 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5996         * locale/setlocale.c (setname): Remove inline to avoid compiler
5997         warning.
5999         [BZ #6712]
6000         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6002 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6004         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6005         doesn't manage to write anything, fail.
6007         * malloc/hooks.c (__malloc_check_init): Remove printf.
6009 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6011         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6013 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6015         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6016         from inotify.
6017         (main_loop_epoll): Likewise.
6019 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6021         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6023         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6024         if DEBUG is defined.
6026         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6027         query.  Adjust buffer size computation for padding.
6029 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6031         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6032         * stdio-common/tst-setvbuf1.c: New file.
6033         * stdio-common/tst-setvbuf1.expect: New file.
6035         [BZ #6719]
6036         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6037         when selecting fully-buffered stream.
6038         Patch by Wang Xin <wxinee@gmail.com>.
6040 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6042         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6043         (__open_2): New function.
6044         (__open64_2): New alias to __open_2.
6045         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6046         (__openat_2): New function.
6047         (__openat64_2): New alias to __openat_2.
6049 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6051         [BZ #6723]
6052         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6054 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6056         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6057         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6058         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6059         __hurd_dfail.
6060         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6061         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6062         * sysdeps/mach/hurd/send.c (__send): Likewise.
6063         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6064         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6066 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6068         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6069         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6070         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6071         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6072         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6073         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6075 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6077         [BZ #6657]
6078         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6079         of %EY.
6080         Patch by Petr Baudis.
6082 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6084         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6085         Patch by Peter Jones <pjones@redhat.com>.
6087 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6089         [BZ #6654]
6090         * stdlib/canonicalize.c (__realpath): readlink can write too much
6091         into the buffer on platforms without PATH_MAX.
6093 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6095         [BZ #6653]
6096         * posix/tst-regex.c (main): Rename to...
6097         (do_test): ... this. Remove cmdline option processing.
6098         (TIMEOUT): Define.
6099         (TEST_FUNCTION): Define.
6100         (CMDLINE_OPTIONS): Define.
6102 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6104         [BZ #5210]
6105         * configure.in: Add -Werror to -fstack-protector test to catch
6106         unsupported architectures.
6107         Patch by Gilles Esponasse <g.esp@free.fr>.
6109 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6111         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6112         getcontext returns ENOSYS.
6114 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6116         * nscd/connections.c (main_loop_poll): Fix test for read error.
6117         (main_loop_epoll): Likewise.
6119 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6121         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6122         better place so it is not called when nscd is used.
6124         * nscd/connections.c: Also recognize and handle changes to the
6125         resolver configuration file.
6127 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6129         * time/strftime.c: Pass reference to tzset_called around to handle
6130         recursive calls.
6132         [BZ #6612]
6133         * time/strftime.c (__strftime_internal): Call tzset() only
6134         when printing timezone-dependent values.
6135         Based on a patch by Petr Baudis <pasky@suse.cz>.
6137         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6138         unconditionally use second gaih_getanswer_slice result.
6140         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6141         (getaddrinfo): RES must always be non-NULL.
6143 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6145         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6146         cr[34] registers.
6147         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6148         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6149         Likewise.
6150         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6151         register.
6153 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6155         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6156         fields.
6157         * nscd/connections.c (inotify_fd): New variable.
6158         (nscd_init): Try to open an inotify descriptor.
6159         If successful, watch files for databases using inotify instead of
6160         having prune threads stat the files.
6161         (nscd_run_prune): Recognize clear_cache flag being set and call
6162         prune_cache appropriately.
6163         (main_loop_poll): Add inotify descriptor to wait set and handle the
6164         reported changes.
6165         (main_loop_epoll): Likewise.
6166         * nscd/cache.c (prune_cache): Don't stat files for databases if
6167         inotify is used.
6168         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6169         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6171         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6172         fixed-size portion of the record.
6173         * nscd/servicescache.c (cache_addserv): Likewise.
6174         * nscd/pwdcache.c (cache_addpw): Likewise.
6175         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6177 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6179         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6180         out we don't use uninitialized memory.
6182         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6183         the client.
6185 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6187         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6188         ignore T_DNAME messages.
6189         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6191 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6193         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6194         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6196 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6198         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6199         instead of portstr to nscd_getserv_r.  Patch by
6200         Roman Kagan <rkagan@mail.ru>.
6202 2008-05-26  Jim Meyering  <meyering@redhat.com>
6204         Remove more useless "if" tests before "free".
6205         * include/inline-hashtab.h (htab_delete): Likewise.
6206         * libio/freopen.c (freopen): Likewise.
6207         * libio/freopen64.c (freopen64): Likewise.
6208         * locale/programs/ld-collate.c (collate_read): Likewise.
6209         * misc/fstab.c (libc_freeres_fn): Likewise.
6210         * posix/glob.c (globfree): Likewise.
6212 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6214         * string/Makefile (strop-tests): Add memmem.
6215         * string/test-memmem.c: New file.
6216         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6217         (test_init): Size buf1 according to BUF1PAGES.
6219 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6221         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6222         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6223         (CFLAGS-scanf17.c): New.
6224         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6225         * stdio-common/scanf15.c (main): Likewise.
6226         * stdio-common/scanf16.c: New file.
6227         * stdio-common/scanf17.c: New file.
6229 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6231         * resolv/res_send.c (send_dg): If we already have one of two
6232         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6233         use the one answer insted of failing.
6235 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6237         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6238         being executed on PowerPC as the expected result exceeds IBM
6239         long double 128 __LDBL_MAX__.
6241 2008-05-21  Roland McGrath  <roland@redhat.com>
6243         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6245         * Makefile (check-data): Use $(abi-name) before other guesses.
6246         Look in $(add-ons) dirs before scripts/data/.
6247         * elf/Makefile (check-data): Likewise.
6249         * scripts/soversions.awk: Grok ABI line.
6250         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6251         Emit definition for abi-name variable.
6253 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6255         * string/endian.h: Define new fixed-size hto* and *toh macros only
6256         if [__USE_BSD].
6258         * iconvdata/Depend: Add localedata.
6260 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6262         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6264 2008-05-08  David S. Miller  <davem@davemloft.net>
6266         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6267         HIDDEN_JUMPTARGET.
6268         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6269         (__SYSCALL_CLOBBERS): Remove %g* registers.
6270         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6271         (__SYSCALL_CLOBBERS): Likewise.
6272         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6273         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6275 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6277         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6278         (CALL_ERRNO_LOCATION): Define.
6279         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6280         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6281         (CALL_ERRNO_LOCATION): Define.
6282         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6283         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6284         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6286 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6288         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6289         variable.
6291 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6293         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6294         (FIRST_FRAME_POINTER): Define.
6296 2008-05-09  David S. Miller  <davem@davemloft.net>
6298         * sysdeps/sparc/sparc64/backtrace.c: New file.
6300 2008-05-14  David S. Miller  <davem@davemloft.net>
6302         * sysdeps/sparc/machine-gmon.h: New file.
6303         * sysdeps/sparc/sparc-mcount.S: Likewise.
6304         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6305         sysdep_routines in gmon directory.
6307 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6309         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6311 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6313         * resolv/res_query.c (__libc_res_nquery): In case one of two
6314         answer was too short don't try to read that answer's header.
6316         * resolv/res_send.c (send_dg): In case of timeout and there are
6317         two queries and one has been answered, return value indicating
6318         success.
6320 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6322         * nscd/cache.c (cache_add): Take additional parameter specifying
6323         whether this is in response of a cache refill.  Check alignment
6324         of package data.  Revamp waking of pruning thread.
6325         (prune_cache): Small optimization.
6326         * nscd/nscd.h: Adjust cache_add prototypes.
6327         * nscd/aicache.c: Adjust cache_add calls.
6328         * nscd/grpcache.c: Likewise.
6329         * nscd/hstcache.c: Likewise.
6330         * nscd/initgrcache.c: Likewise.
6331         * nscd/pwdcache.c: Likewise.
6332         * nscd/servicescache.c: Likewise.
6333         * nscd/connections.c (restart): Really disable cache use before
6334         exec attempt.  If it fails, reenable cache.
6335         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6336         time to max to be able to notice concurrent cache additions.  Unlock
6337         prune_lock while performing gc.  Afterwards compute wakeup time with
6338         current wakeup_time value in mind.
6340 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6342         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6344         * nscd/mem.c (gc): Correctly determine highest used array element
6345         in mark.
6347         * nscd/mem.c (markrange): Add assert to check entries are all
6348         aligned.  Small cleanup in bitmap use.
6350         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6351         blockoff of type nscd_ssize_t.
6352         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6353         (mempoll_alloc): Record block offset and not address.
6355         * nscd/mem.c (gc): Fix test for stack overuse.
6357         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6358         more asserts.
6360         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6361         entry is available, believe it.
6363         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6364         no answers return NSS_STATUS_NOTFOUND.
6365         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6366         buffer does not have any content.
6368 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6370         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6372         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6373         lookup, don't assign canon unconditionally.
6375 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6377         * string/Makefile (distribute): Add str-two-way.h.
6379 2008-03-29  Eric Blake  <ebb9@byu.net>
6381         Rewrite string searches to O(n) rather than O(n^2).
6382         * string/str-two-way.h: New file.  For linear fixed-allocation
6383         string searching.
6384         * string/memmem.c: New implementation.
6385         * string/strstr.c: New implementation.
6386         * string/strcasestr.c: New implementation.
6388 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6390         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6391         opr.ctx_type.
6392         (calc_first): Initialize constraint field.
6393         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6394         Use search_duplicated_node to avoid loops.  Fix grammar.
6395         (duplicate_node): Merge constraint field for all node types.
6396         (calc_eclosure_iter): Look at constraint field for all node types.
6397         * posix/regex_internal.c (create_cd_newstate): Don't look at
6398         create_cd_newstate.
6400 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6402         [BZ #6428]
6403         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6405         [BZ #6442]
6406         * string/endian.h: Add macros for fixed-size endian conversion.
6407         * bits/byteswap.h: Allow inclusion from <endian.h>.
6408         * sysdeps/i386/bits/byteswap.h: Likewise.
6409         * sysdeps/ia64/bits/byteswap.h: Likewise.
6410         * sysdeps/s390/bits/byteswap.h: Likewise.
6411         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6412         * string/Makefile (tests): Add tst-endian.
6413         * string/tst-endian.c: New file.
6415         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6416         Patch by Reuben Thomas.
6418 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6420         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6422 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6424         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6426         [BZ #6461]
6427         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6428         Add missing braces.
6429         (BODY for __gconv_transform_internal_ascii): Likewise.
6431         [BZ #6472]
6432         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6433         to be treated like link-local addresses.
6434         (match_prefix): Don't treat IPv4 loopback address special when
6435         converting to v4 mapped addressed.
6437         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6438         if necessary.
6439         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6440         * posix/tst-rfc3484-2.c: Likewise.
6441         * posix/tst-rfc3484-3.c: Likewise.
6443         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6444         and SCTP.
6446         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6448         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6450         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6452 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6454         * po/lt.po: New file.  From Lituanian translation team.
6456 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6458         Introduce TLS descriptors for i386 and x86_64.
6459         * include/inline-hashtab.h: New file, copied from 2005's
6460         libiberty, with fix for memory leak imported afterwards by
6461         Glauber de Oliveira Costa.
6462         * elf/tlsdeschtab.h: New file.
6463         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6464         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6465         (CHECK_STATIC_TLS): Move to...
6466         * elf/dynamic-link.h: ... this file.
6467         (TRY_STATIC_TLS): New macro.
6468         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6469         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6470         R_386_TLS_DESC): Define.
6471         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6472         binutils.
6473         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6474         R_X86_64_TLSDESC): Define.
6475         (R_386_NUM, R_X86_64_NUM): Adjust.
6476         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6477         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6478         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6479         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6480         release tlsdesc_table.
6481         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6482         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6483         (elf_machine_rel): Handle R_386_TLS_DESC.
6484         (elf_machine_rela): Likewise.
6485         (elf_machine_lazy_rel): Likewise.
6486         (elf_machine_lazy_rela): Likewise.
6487         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6488         * sysdeps/i386/dl-tlsdesc.S: New file.
6489         * sysdeps/i386/dl-tlsdesc.h: New file.
6490         * sysdeps/i386/tlsdesc.c: New file.
6491         * sysdeps/i386/tlsdesc.sym: New file.
6492         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6493         tlsdesc_table.
6494         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6495         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6496         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6497         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6498         release tlsdesc_table.
6499         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6500         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6501         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6502         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6503         (elf_machine_rela): Likewise.
6504         (elf_machine_lazy_rel): Likewise.
6505         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6506         (__tls_get_addr): Do not declare for non-shared compiles.
6507         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6508         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6509         * sysdeps/x86_64/tlsdesc.c: New file.
6510         * sysdeps/x86_64/tlsdesc.sym: New file.
6511         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6512         tlsdesc_table for both 32- and 64-bit structs.
6514 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6516         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6517         its own function.  This reduces the frame setup costs and more.
6519 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6521         [BZ #3406]
6522         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6523         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6525 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6527         * io/openat.c (__openat_2): Also pass fd to __openat.
6528         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6529         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6531         * string/tester.c (test_memcmp): Add a few more tests.
6532         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6534 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6536         * nscd/cache.c (cache_add): Before returning with failure and this
6537         is the first use of the record, mark it as unusable.
6538         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6539         reporting a failure.
6540         * nscd/grpcache.c: Likewise
6541         * nscd/hstcache.c: Likewise.
6542         * nscd/initgrcache.c: Likewise.
6543         * nscd/pwdcache.c: Likewise.
6544         * nscd/servicescache.c: Likewise.
6546 2008-05-10  Roland McGrath  <roland@redhat.com>
6548         [BZ #6505]
6549         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6551 2008-05-08  David S. Miller  <davem@davemloft.net>
6553         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6555         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6556         (__ieee754_y0l): Likewise.
6557         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6558         (__ieee754_y1l): Likewise.
6559         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6560         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6561         frexpl and ldexpl.  math_private.h provides them and the latter
6562         is not even used.
6563         (__log1pl): Use __frexpl.
6565 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6567         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6568         prototypes.
6569         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6570         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6571         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6572         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6573         af==AF_UNSPEC.
6574         (_nss_nis_gethostbyname4_r): New function.
6575         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6576         Change to also handle af==AF_UNSPEC.
6577         (get_tablename): New function.  Use it to avoid duplication.
6578         (_nss_nisplus_gethostbyname4_r): New function.
6579         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6580         available.
6581         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6582         * nss/nss.h: Define struct gaih_addrtuple.
6583         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6584         af==AF_UNSPEC.
6585         (_nss_files_gethostbyname4_r): New function.
6586         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6587         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6588         calls.
6589         * resolv/res_query.c (__libc_res_nquery): Take two additional
6590         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6591         look up IPv4 and IPv6.
6592         Change all callers.
6593         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6594         for an additional query and answer buffer.  Pass to send_vc and
6595         send_dg.
6596         (send_vc): Send possibly two requests and receive two answers.
6597         (send_dg): Likewise.
6598         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6599         __libc_res_nquery.
6600         (_nss_dns_gethostbyname4_r): New function.
6601         (gaih_getanswer_slice): Likewise.
6602         (gaih_getanswer): Likewise.
6603         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6604         __libc_res_nquery call.
6605         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6606         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6607         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6608         available.
6610 2008-05-05  David S. Miller  <davem@davemloft.net>
6612         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6613         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6615 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6617         Fix termios bit macros.
6618         Move *DLY definitions where they belong, in termios.h.
6619         Add *[0-3] definitions.
6620         Fixes confusion between VT and FF.
6621         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6622         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6623         are already defined to avoid collision with termios.h.
6624         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6625         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6626         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6627         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6628         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6629         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6630         VTDLY, VT0, VT1): New macros.
6631         [__USE_GNU] (OLCUC): Change value of macro.
6632         [__USE_XOPEN] (OFILL): New macro.
6633         [__USE_BSD] (CRTSCTS): Change value.
6634         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6635         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6636         (B7200, B14400, B28800, B76800): New macros.
6638 2008-05-01  David S. Miller  <davem@davemloft.net>
6640         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6641         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6642         (gen-as-const-headers): Add it.
6643         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6644         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6645         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6646         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6648         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6649         six system call parameters.
6650         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6652 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6654         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6655         RUSAGE_LWP.
6656         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6657         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6659 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6661         * stdlib/tst-setcontext.c: Include unistd.h.
6663 2008-04-25  David S. Miller  <davem@davemloft.net>
6665         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6666         Pass "union semun" properly in to sys_ipc, it must be passed
6667         by value, not by reference.
6669 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6671         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6672         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6673         * nscd/connections.c (mem_in_flight): Likewise.
6675         * nscd/nscd.h (dbs): Make hidden.
6677         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6678         Avoid returning -1, return 0 instead.
6680 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6682         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6684 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6686         [BZ #5209]
6687         * sysdeps/unix/sysv/linux/times.c: New file.
6689         [BZ #5381]
6690         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6691         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6692         prototype.
6693         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6694         appropriate mem_in_flight element.
6695         (gc): Take allocations which have not yet been committed to the
6696         database into account.
6697         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6698         Reset mem_in_flight before returning.
6699         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6700         cue it up in mem_in_flight_list.
6701         * nscd/aicache.c: Adjust mempool_alloc call.
6702         * nscd/grpcache.c: Likewise.
6703         * nscd/hstcache.c: Likewise.
6704         * nscd/initgrcache.c: Likewise.
6705         * nscd/pwdcache.c: Likewise.
6706         * nscd/servicescache.c: Likewise.
6707         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6708         of -fpie.
6710         * nscd/connections.c (handle_request): Provide better error message
6711         in case SELinux forbids the service.
6713         * version.h (VERSION): Bump to 2.8.90.
6715 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6717         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6719 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6721         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6722         Also use for 32-bit.
6723         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6724         __nextafter instead of nextafter to avoid local PLT.
6725         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6726         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6728         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6730         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6731         __fe_nomask_env.
6732         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6733         <fenv_libc.h> instead of <fenv.h>.
6734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6737         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6739         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6740         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6741         function from fegetexcept and make old name weak alias.
6742         * include/fenv.h: Declare __fegetexcept.
6743         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6744         fegetexcept.
6745         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6746         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6747         to fetestexcept.
6748         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6749         instead of frexpl to avoid local PLT.
6750         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6751         ilogbl to avoid local PLT.
6752         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6753         instead of ldexpl to avoid local PLT.
6754         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6755         __roundl not roundl to avoid local PLT.
6756         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6757         local PLTs.  Use __sincosl instead of separate sinl and cosl
6758         calls.
6759         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6761         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6762         version for ppc64 to 2.4.21 since without it makecontext will fail.
6764         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6765         to the ABI in use.
6766         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6767         .__tls_get_addr.
6768         [__powerpc64__] (TLS_GD): Likewise.
6770 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6772         [BZ #4997]
6773         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6774         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6775         mantissa.
6776         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6777         Likewise.  Also account for when x is an odd number between 2^52
6778         and 2^53-1.
6779         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6780         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6781         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6782         detect aforementioned erroneous conditions.
6784 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6786         * configure.in: Check for -fno-section-anchors in addition to
6787         -fno-toplevel-reorder.
6789 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6791         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6793         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6794         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6795         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6796         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6797         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6798         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6800 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6802         [BZ #5443]
6803         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6804         * time/alt_digit.c: Likewise.
6805         * wcsmbs/wcsmbsload.c: Likewise.
6807 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6809         * version.h (VERSION): Bump to 2.8.
6811         * timzeone/asia: Update from tzdata2008b.
6812         * timezone/backward: Likewise.
6813         * timezone/europe: Likewise.
6814         * timezone/northamerica: Likewise.
6815         * timezone/southamerica: Likewise.
6816         * timezone/iso3166.tab: Likewise.
6817         * timezone/leapseconds: Likewise.
6818         * timezone/zone.tab: Likewise.
6819         * timezone/private.h: Update from tzcode2008a.
6820         * timezone/zdump.c: Likewise.
6821         * timezone/zic.c: Likewise.
6823 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6825         [BZ #5741]
6826         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6827         Define additonal Data Cache Block instruction macros.
6828         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6829         Replace dcbst with dcbf and sync with sync/isync.
6831 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6833         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6834         Always set ELF_RTYPE_CLASS_PLT.
6835         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6837 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6839         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6840         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6841         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6842         For ISA 2.01 and later replace mftb with mfspr 268.
6844 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6846         [BZ #5768]
6847         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6848         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6850 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6852         [BZ #5768]
6853         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6854         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6855         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6856         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6858 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6860         * stdlib/tst-makecontext.c (othervar): New variable.
6861         (cf): Test sign extending the argument to long.
6863 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6865         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6866         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6867         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6868         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6869         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6870         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6871         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6873 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6875         * elf/Makefile (tests): Substitute tests-vis-yes here.
6876         (tests-vis-yes): Delete.
6877         (modules-name, modules-vis-yes): Similarly.
6879 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6881         [BZ #4407]
6882         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6883         Preserve sign in signgamp when x is zero.
6885 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6887         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6888         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6889         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6890         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6891         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6892         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6894 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6896         [BZ #4314]
6897         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6898         buffers.
6900         [BZ #5209]
6901         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6902         a reserved error value.
6904         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6905         value to check for correct sign extension.
6907         [BZ #5436]
6908         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6909         Copy 64-bit parameter values even though this is not required in
6910         the standard.
6912         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6913         PC save.
6915 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6917         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6918         PC save.
6920 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6922         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6924 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6926         [BZ #5998]
6927         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6928         in line-buffered stream failed.
6929         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6931 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6933         [BZ #6024]
6934         * scripts/abi-versions.awk: If the version specified by
6935         --enable-oldest-abi is older than the first version for this
6936         architecture, use the default version.
6938         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6939         as well when ignoring the whole category.
6941 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6943         [BZ #6042]
6944         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6945         ETHERTYPE_* definitions.
6946         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6948 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6950         * stdlib/mbtowc.c (__no_r_state): Remove.
6951         (mbtowc): New static state variable.  Use it instead of
6952         __no_r_state.
6953         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6954         (__wctomb_state): New hidden variable.
6955         (wctomb): Use __wctomb_state instead of __no_r_state.
6956         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6957         (__wctomb_state): New extern decl.
6958         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6960 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6962         [BZ #5475]
6963         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6965 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6967         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6969 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6971         * po/nl.po: Update from translation team.
6973 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6975         [BZ #6007]
6976         * string/strfry.c: Handle empty strings again.
6978 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6980         [BZ #5443]
6981         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6982         before looking for translation.
6983         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6984         * locale/freelocale.c: Likewise.
6985         * locale/newlocale.c: Likewise.
6986         * locale/setlocale.c: Likewise.
6987         Based partially on a patch by ryo@np.css.fujitsu.com.
6989 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6991         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6992         acquiring wrlock.  Do conv_tab allocation while holding lock.
6993         * intl/Makefile: Add rules to build and run tst-gettext6.
6994         * intl/tst-gettext6.c: New test.
6995         * intl/tst-gettext6.sh: New file.
6997 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6999         * po/nl.po: Update from translation team.
7001         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7002         provided through st_blksize, try the default size before giving up.
7004 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7006         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7008         [BZ #5939]
7009         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7011         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7012         error message.  POSIX today does not require the messages to be in
7013         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7015         [BZ #5979]
7016         * sunrpc/auth_unix.c: Unify printed strings.
7017         * sunrpc/clnt_tcp.c: Likewise.
7018         * sunrpc/clnt_udp.c: Likewise.
7019         * sunrpc/clnt_unix.c: Likewise.
7020         * sunrpc/svc_tcp.c: Likewise.
7021         * sunrpc/svc_udp.c: Likewise.
7022         * sunrpc/svc_unix.c: Likewise.
7023         * sunrpc/xdr.c: Likewise.
7024         * sunrpc/xdr_array.c: Likewise.
7025         * sunrpc/xdr_rec.c: Likewise.
7026         * sunrpc/xdr_ref.c: Likewise.
7027         * locale/programs/ld-time.c (time_finish): Unify messages.
7028         * locale/programs/locfile.c (handle_copy): Fix typo.
7029         * nscd/nscd.c (options): Fix typo.
7031         [BZ #5995]
7032         * stdlib/strtod_l.c: Use correct sign for result in one more
7033         underflow case.
7034         Patch by Eric Blake <ebb9@byu.net>.
7036 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7038         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7039         and creat system calls.
7040         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7041         call.
7042         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7043         system calls.
7044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7045         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7046         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7048 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7050         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7051         <linux/limits.h> has defined it.
7052         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7053         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7054         headers.
7055         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7056         it instead of ARG_MAX.
7058 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7060         * posix/gai.conf: Fix comment for scope nullbits.
7061         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7062         default to 128 bits for v4 mapped addresses.
7064 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7066         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7067         ptrace call to get the ieee_instruction_pointer from the kernel.
7068         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7069         ptrace call to set the ieee_instructtion_pointer.
7070         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7071         Add comment that ieee_instruction_pointer is always 0.
7073 2008-03-09  Andreas Jaeger  <aj@suse.de>
7075         [BZ #5857]
7076         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7077         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7078         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7080         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7081         (rint_test): Likewise.
7083 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7085         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7086         call.
7087         (__nisfind_server): Similar for open readColdStartFile call.
7088         Patch partially by Jim Meyering.
7089         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7090         around internal_setent call.
7092         * po/vi.po: New Vietnamese translation.
7094         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7095         ADJ_OFFSET_SS_READ.
7097         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7098         remove CLONE_STOPPED.
7100 2008-02-10  Jim Meyering  <meyering@redhat.com>
7102         Remove useless "if" before "free":
7103         * elf/ldconfig.c (parse_conf_include): Likewise.
7104         * gmon/gmon.c (weak_alias): Likewise.
7105         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7106         * inet/rcmd.c (__validuser2_sa): Likewise.
7107         * intl/bindtextdom.c (set_binding_values): Likewise.
7108         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7109         * libio/genops.c (save_for_backup): Likewise.
7110         * libio/wgenops.c (save_for_wbackup): Likewise.
7111         * locale/programs/ld-collate.c (collate_read): Likewise.
7112         * locale/programs/linereader.c (get_string): Likewise.
7113         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7114         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7115         * resolv/res_debug.c (do_section): Likewise.
7116         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7117         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7118         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7119         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7120         * time/tzset.c (tzset_internal): Likewise.
7122 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7124         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7125         of ASSEMBLER.
7127 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7129         [BZ #5903]
7130         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7131         not stream for output file.  Open output file here.
7132         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7133         and output file name.
7134         (process_fd): Likewise.
7135         (process_file): Likewise.
7136         (main): Adjust callers of changed functions.
7137         * iconv/iconv_prog.h: Adjust prototype.
7139 2008-03-09  Andreas Jaeger  <aj@suse.de>
7141         [BZ #5753]
7142         * sysdeps/ia64/ieee754.h: Use protected namespace
7143         __BIG_ENDIAN/__LITTLE_ENDIAN.
7144         * sysdeps/ieee754/ieee754.h: Likewise.
7145         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7147 2008-03-08  Roland McGrath  <roland@frob.com>
7149         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7150         ignore a signal that came from a machine exception, treat it as a
7151         fatal core-dump signal instead.
7152         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7154         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7155         Clear DF bit in thread state's eflags.
7156         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7158 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7160         [BZ #5774]
7161         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7162         of NAN(...) sequence.
7163         * stdlib/Makefile (tests): Add tst-strtod6.
7164         * stdlib/tst-strtod6.c: New file.
7166         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7168         [BZ #5762]
7169         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7170         putting offending option character in quotes.  Clean up error
7171         messages.
7172         * po/be.po: Adjust msgstr in translation file.
7173         * po/bg.po: Likewise.
7174         * po/ca.po: Likewise.
7175         * po/cs.po: Likewise.
7176         * po/da.po: Likewise.
7177         * po/de.po: Likewise.
7178         * po/es.po: Likewise.
7179         * po/fr.po: Likewise.
7180         * po/hr.po: Likewise.
7181         * po/ko.po: Likewise.
7182         * po/nl.po: Likewise.
7183         * po/rw.po: Likewise.
7184         * po/sk.po: Likewise.
7185         * po/sv.po: Likewise.
7186         * po/tr.po: Likewise.
7187         * po/zh_CN.po: Likewise.
7188         * po/zh_TW.po: Likewise.
7190         [BZ #5760]
7191         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7192         Patch by Roland Bless <roland@bless.de>.
7194         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7195         .o file.
7196         * elf/Makefile (routines): Add dl-sysdep.
7197         (elide-routines.os): Likewise.
7199 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7201         [BZ #5786]
7202         * elf/dl-sysdep.c: Undefine ROUND after use.
7203         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7204         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7205         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7206         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7207         to ...
7208         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7209         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7210         if necessary.
7211         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7213         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7214         _dl_tls_get_addr_soft element.
7215         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7216         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7217         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7218         GLRO.
7219         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7220         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7221         of internal_function.
7223         * stdlib/Makefile (aux): Add tens_in_limb.
7224         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7225         * stdlib/tens_in_limb.c: ...here.  New file.
7227         [BZ #5778]
7228         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7229         __statfs_chown_restricted.
7230         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7231         for _PC_CHOWN_RESTRICTED.
7232         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7233         Implement __statfs_chown_restricted.
7234         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7235         _POSIX_CHOWN_RESTRICTED value to zero.
7236         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7237         defined to zero.
7239         * sysdeps/x86_64/rtld-memset.c: New file.
7241 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7243         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7245         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7246         Barcelona machine.  Make default fall through branch of
7247         __x86_64_preferred_memory_instruction check as the integer code path.
7249 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7251         * sysdeps/x86_64/cacheinfo.c
7252         (__x86_64_preferred_memory_instruction): New variable.
7253         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7255         * sysdeps/x86_64/memset.S: Rewrite.
7257 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7259         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7260         __obstack_printf_chk): New prototypes.
7261         (__vasprintf_chk, __vdprintf_chk,
7262         __obstack_vprintf_chk): Likewise.
7263         Add libc_hidden_proto.
7264         * libio/obprintf.c
7265         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7266         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7267         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7268         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7269         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7270         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7271         __obstack_vprintf_chk): New prototypes.
7272         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7273         obstack_vprintf): New inlines.
7274         * debug/dprintf_chk.c: New file.
7275         * debug/vdprintf_chk.c: New file.
7276         * debug/asprintf_chk.c: New file.
7277         * debug/vasprintf_chk.c: New file.
7278         * debug/obprintf_chk.c: New file.
7279         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7280         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7281         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7282         @@GLIBC_2.8.
7283         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7284         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7285         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7286         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7287         libc_hidden_proto.
7288         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7289         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7290         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7291         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7292         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7293         @@GLIBC_2.8.
7294         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7295         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7296         obstack_vprintf_chk.
7297         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7298         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7299         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7300         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7301         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7302         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7304 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7306         [BZ #5779]
7307         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7308         Patch by Roy Marples <roy@marples.name>.
7310         [BZ #5736]
7311         * malloc/malloc.c: Fix typo in comment.
7313         [BZ #5627]
7314         * locale/iso-639.def: Add Shuswap.
7316 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7318         [BZ #5790]
7319         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7320         overwrite *h_errnop/*errnop values from getanswer_r in case of
7321         failure.
7323 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7325         [BZ #5818]
7326         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7327         (verify_persistent_db): Remove one unnecessary test and add a new one
7328         for bad configuration.
7329         (nscd_init): Improve error reported when persistent database cannot
7330         be reused.
7331         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7332         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7333         .suggested_module and .max_db_size and case config file says the
7334         values are zero.
7335         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7337         [BZ #5854]
7338         * nis/ypclnt.c (yp_order): Fix handling of return value of
7339         do_ypcall_tr call.
7340         Patch by Jeff Moyer <jmoyer@redhat.com>.
7342         * po/fr.po: Update from translation team.
7344 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7345             Carlos O'Donell <carlos@systemhalted.org>
7347         [BZ #5012]
7348         * FAQ.in: Describe why glibc needs to be compiled with
7349         optimization.
7351 2008-02-19  Roland McGrath  <roland@redhat.com>
7353         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7355 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7357         [BZ #5737]
7358         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7359         __USE_MISC is defined.
7361 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7363         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7364         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7365         sys/timerfd.h.
7366         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7367         timerfd_gettime, timerfd_settime.
7368         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7369         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7371 2008-02-08  Roland McGrath  <roland@redhat.com>
7373         * elf/elf.h (NT_PPC_SPE): New macro.
7375 2008-02-06  Roland McGrath  <roland@redhat.com>
7377         * Makerules ($(common-objpfx)sysd-rules):
7378         Depend on $(sysdep-makeconfigs).
7380 2008-01-31  Roland McGrath  <roland@redhat.com>
7382         [BZ #5442]
7383         * configure.in: Use -print-file-name if it yields a directory,
7384         for each of include and include-fixed.
7385         * configure: Regenerated.
7387         * Makeconfig (sysd-rules-targets): New variable.
7388         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7389         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7391 2008-01-30  Roland McGrath  <roland@redhat.com>
7393         * manual/libc.texinfo: Update back-cover text.
7395         * elf/elf.h (NT_386_TLS): New macro.
7397 2008-01-29  Roland McGrath  <roland@redhat.com>
7399         * Makeconfig (sysd-rules-patterns): New variable.
7400         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7401         (check-inhibit-asm): New canned sequence, replaces ...
7402         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7403         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7404         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7405         (CFLAGS-rtld): Variable removed.
7407 2008-01-24  Roland McGrath  <roland@redhat.com>
7409         * configure.in: Let configure fragments set base_os.
7410         * configure: Regenerated.
7412 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7414         * po/ko.po: Update from translation team.
7416 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7418         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7420 2008-01-12  Andreas Jaeger  <aj@suse.de>
7422         [BZ #5040]
7423         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7424         Add EPOLLRDHUP.
7426 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7428         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7429         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7430         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7432 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7434         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7435         * elf/dl-close.c (_dl_close): Check for it.
7436         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7437         (_dl_allocate_static_tls): Likewise.
7438         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7439         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7440         to it.
7441         * elf/tst-tls16.c: New file.
7442         * elf/tst-tlsmod16a.c: New file.
7443         * elf/tst-tlsmod16b.c: New file.
7444         * elf/Makefile: Add rules to build and run tst-tls16.
7446 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7448         [BZ #5628]
7449         * bits/shm.h: Fix comment describing shmid_ds.
7450         * sysdeps/gnu/bits/shm.h: Likewise.
7451         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7452         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7453         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7454         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7455         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7456         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7457         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7458         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7459         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7461         [BZ #5607]
7462         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7463         prototypes.
7464         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7465         additional suffixes.
7466         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7467         Add optional functions mq_timedreceive and mq_timedsend.
7468         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7469         * conform/data/pthread.h-data: Fix prototype of
7470         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7471         * conform/data/semaphore.h-data: Allow time.h definitions.
7472         * conform/data/signal.h-data: Likewise.
7473         * conform/data/stdio.h-data: getw and putw are not required in v6.
7474         * conform/data/stdlib.h-data: Change setstate prototype.
7475         * conform/data/string.h-data: Fix strerror_r prototype.
7476         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7477         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7478         Fix readlink prototype.
7479         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7480         in6addr_loopback.
7481         * inet/netinet/in.h: Cleanup namespace.
7482         * posix/regex.h: Likewise.
7483         * resolv/netdb.h: Likewise.
7484         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7485         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7486         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7487         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7488         of names of in in6_addr.
7489         (default_precedence): Likewise.
7490         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7491         NULL definition.
7493 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7495         * conform/data/fmtmsg.h-data: Add missing allows.
7496         * conform/data/ftw.h-data: Likewise.
7497         * conform/data/inttypes.h-data: Likewise.
7498         * conform/data/math.h-data: Likewise.
7499         * conform/data/signal.h-data: Likewise.
7500         * conform/data/net/if.h-data: Likewise.
7501         * conform/data/netinet/in.h-data: Likewise.
7502         * conform/data/sys/socket.h-data: Likewise.
7504         [BZ #5614]
7505         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7506         (__strtok_r): Simplify.
7507         * string/tester.c (test_strtok_r): Add test case for futile search
7508         with single-character seach string.
7510 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7512         * po/ko.po: Update from translation team.
7514 2008-01-11  Andreas Jaeger  <aj@suse.de>
7516         [BZ #5600]
7517         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7518         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7519         kernel header.
7521 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7523         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7524         native interface lookup in all the relevant places.
7526 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7527             Ulrich Drepper  <drepper@redhat.com>
7529         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7530         field.  Use sockaddr_in6 for source_addr.
7531         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7532         (match_prefix): Likewise.
7533         (get_label): Likewise.
7534         (get_precedence): Likewise.
7535         (rfc3484_sort): Change to use indirect access to results array.
7536         Adjust to use of sockaddr_in6.  Replace service_order test with
7537         simple index comparison.
7538         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7539         service_order field.  Adjust qsort_t calls.  Access sorted result
7540         array indirectly through order array.
7541         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7542         * posix/tst-rfc3484-2.c: Likewise.
7543         * posix/tst-rfc3484-3.c: Likewise.
7545 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7547         [BZ #5541]
7548         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7549         pollfd structures.
7550         Patch by André Cruz.
7552         [BZ #5545]
7553         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7554         (clnt_spcreateerror): Likewise.
7556         [BZ #5553]
7557         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7558         (public_mEMALIGn): Likewise.
7559         Patch mostly by Daniel Jacobowitz.
7561 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7563         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7564         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7565         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7566         * stdlib/tst-makecontext2.c: New test.
7568 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7570         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7571         defined.
7572         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7573         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7574         transliteration hooks and REINIT_PARAMS afterwards.
7575         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7576         status.
7577         (REINIT_PARAMS): Define.
7578         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7579         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7580         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7581         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7582         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7583         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7584         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7585         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7586         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7587         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7588         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7589         * iconvdata/tst-iconv7.c: New test.
7591 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7593         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7595 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7597         [BZ #5112]
7598         * nscd/connections.c (restart): Fix condition.
7600 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7602         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7603         __ctype_toupper_loc): Add __THROW.
7605 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7607         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7608         recognition of interface family.
7610         * posix/getconf.c: Update copyright year.
7611         * nss/getent.c: Likewise.
7612         * iconv/iconvconfig.c: Likewise.
7613         * iconv/iconv_prog.c: Likewise.
7614         * elf/ldconfig.c: Likewise.
7615         * catgets/gencat.c: Likewise.
7616         * csu/version.c: Likewise.
7617         * elf/ldd.bash.in: Likewise.
7618         * elf/sprof.c (print_version): Likewise.
7619         * locale/programs/locale.c: Likewise.
7620         * locale/programs/localedef.c: Likewise.
7621         * nscd/nscd.c (print_version): Likewise.
7622         * debug/xtrace.sh: Likewise.
7623         * malloc/memusage.sh: Likewise.
7624         * malloc/mtrace.pl: Likewise.
7625         * debug/catchsegv.sh: Likewise.
7627 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7629         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7630         second lookup.
7632 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7634         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7635         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7637 2007-12-17  Roland McGrath  <roland@redhat.com>
7639         * inet/ether_line.c (ether_line): Remove unused variable.
7641 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7643         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7644         and winp.
7645         * login/openpty.c (openpty): Likewise.
7646         * login/pty.h (openpty, forkpty): Likewise.
7647         * manual/terminal.texi (openpty, forkpty): Likewise.
7649 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7651         * malloc/malloc.c (public_cALLOc): For arenas other than
7652         main_arena, count all bytes inside the mprotect_size range of the
7653         heap as uninitialized.
7655 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7657         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7658         executable stacks.
7660         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7661         mTRIm for all of them.
7662         (mTRIm): Additionally iterate over all free blocks and use madvise
7663         to free memory for all those blocks which contain at least one
7664         memory page.
7665         * malloc/tst-trim1.c: New file.
7666         * malloc/Makefile (tests): Add tst-trim1.
7668         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7670 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7672         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7673         First cast argument to long
7674         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7675         Return long.
7676         (__vdso_clock_gettime): Likewise.
7677         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7678         return long.
7680 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7682         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7683         * locale/nl_langinfo_l.c: Real implementation, copied from
7684         nl_langinfo.c.
7685         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7687 2007-12-01  Jim Meyering  <meyering@redhat.com>
7689         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7690         that would inhibit utf8-optimization of a regexp containing line-
7691         or buffer-anchors, e.g., `^', `$'.
7693 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7695         * time/bug-getdate1.c (do_test): Don't use century values which
7696         aren't valid on 32-bit systems.
7698 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7700         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7701         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7702         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7703         __strcat_g, __strncat_g): Add __asm__.
7705 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7707         [BZ #5477]
7708         * io/fchmodat.c: Fix typo in stub_warning use.
7709         Patch by Petr Salinger.
7711 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7713         * iconvdata/hp-thai8.c: New file.
7714         * iconvdata/Makefile: Add rules for hp-thai8.c.
7715         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7716         * iconvdata/gconv-modules: Likewise.
7718         [BZ #5464]
7719         * iconvdata/hp-greek8.c: New file.
7720         * iconvdata/Makefile: Add rules for hp-greek8.c.
7721         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7722         * iconvdata/gconv-modules: Likewise.
7724         [BZ #5463]
7725         * iconvdata/hp-turkish8.c: New file.
7726         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7727         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7728         * iconvdata/gconv-modules: Likewise.
7730         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7731         (shrink_heap): ... this new function.
7732         (heap_trim): Call shrink_heap instead of grow_heap.
7734         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7735         case don't call alloc_perturb.
7737 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7739         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7740         possible.
7741         * sysdeps/unix/sysv/linux/kernel-features.h
7742         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7743         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7745 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7747         [BZ #5424]
7748         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7749         * stdio-common/Makefile (tests): Add bug22.
7750         * stdio-common/bug22.c: New file.
7752         [BZ #5451]
7753         * time/getdate.c: Fix filling in default values.
7754         * time/bug-getdate1.c: New file.
7755         * time/Makefile: Add rules to build and run bug-getdate1.
7757         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7758         * iconvdata/ebcdic-es.c: Likewise.
7759         * iconvdata/ebcdic-es-a.c: Likewise.
7760         * iconvdata/ebcdic-uk.c: Likewise.
7761         * iconvdata/iso8859-16.c: Likewise.
7762         * iconvdata/viscii.c: Likewise.
7763         * iconvdata/iso8859-9e.c: Likewise.
7764         * iconvdata/Makefile: Adjust appropriately.
7766         [BZ #5428]
7767         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7768         __need_wint_t.
7770 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7772         [BZ #5427]
7773         * iconvdata/hp-roman9.c: New file.
7774         * iconvdata/Makefile: Add rules for hp-roman9.c.
7775         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7776         * iconvdata/gconv-modules: Likewise.
7778         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7779         * iconvdata/Makefile: Adjust appropriately.
7781         [BZ #5441]
7782         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7783         structure, it's allocated with alloca.
7784         * stdio-common/Makefile (tests): Add bug21.
7785         * stdio-common/bug21.c: New file.
7787 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7789         [BZ #5452]
7790         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7791         keyword for gcc's braced-groups.
7793 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7795         [BZ #5454]
7796         * inet/ether_line.c: Strip hostname of whitespaces.
7797         * inet/Makefile (tests): Add tst-ether_line.
7798         * inet/tst-ether_line.c: New file.
7800 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7802         [BZ #5439]
7803         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7805         [BZ #5435]
7806         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7808         * stdlib/tst-setcontext.c: Catch the case where the links gets
7809         messed up and we do not reach main again.
7811         * po/ca.po: Update from translation team.
7813 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7815         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7816         * posix/regex.h (REG_ENOSYS): Likewise.
7817         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7819 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7821         * nscd/nscd.h (MAX_STACK_USE): Define.
7822         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7823         (gc): Initialize stack_used based on allocation in prune_cache.
7824         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7825         Clear array before use.
7827         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7828         memory allocation failed.
7829         * nscd/hstcache.c (cache_addhst): Likewise.
7830         * nscd/grpcache.c (cache_addgr): Likewise.
7831         * nscd/servicescache.c (cache_addserv): Likewise.
7832         * nscd/pwdcache.c (cache_addpw): Likewise.
7833         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7835 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7838         and creat system calls.
7840         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7842 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7844         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7845         Add netiucv/iucv.h.
7846         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7847         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7848         protocol.
7849         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7850         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7851         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7853 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7855         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7856         strncat): Define as macros to avoid compile errors.
7858         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7859         creat entries.
7861 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7863         [BZ #5382]
7864         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7865         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7866         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7867         overflow it.
7868         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7870         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7871         Return zero in case the thread library is not NPTL.
7873         [BZ #5375]
7874         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7875         initializing interface list.
7877         [BZ #5378]
7878         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7879         use result of nss_getgrgid_r if nothing was found.  For other
7880         error return with a failure.
7881         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7883         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7884         macro name.
7886 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7888         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7889         (get_scope): For IPv4 scope, use scopes table.
7890         (fini): Free scopes table if necessary.
7891         (free_scopelist): New function.
7892         (scopecmp): New function.
7893         (gaiconf_init): Also handle scopev4 entries.
7894         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7895         * posix/tst-rfc3484-2.c (do_test): Likewise.
7896         * posix/gai.conf: Document scopev4 defaults.
7897         * posix/Makefile (tests): Add tst-rfc3484-3.
7898         * posix/tst-rfc3484-3.c: New file.
7900         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7901         Teredo tunnels.
7902         * posix/gai.conf: Update for current default tables.
7904 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7906         * po/tr.po: Update from translation team.
7908 2007-11-18  Roland McGrath  <roland@frob.com>
7910         * manual/arith.texi (Remainder Functions): Spelling fix.
7911         From Shaun Silk <genix@mysoul.com.au>.
7913         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7915 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7917         * po/zh_CN.po: Update from translation team.
7919         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7920         Add sys/signalfd.h and sys/eventfd.h.
7922 2007-11-15  Bruno Haible  <bruno@clisp.org>
7924         [BZ #5346]
7925         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7926         union.
7927         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7928         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7929         it needs only fixed stack space. Delay the initialization of
7930         msgid_len until it is needed.
7932 2007-11-15  Andreas Jaeger  <aj@suse.de>
7934         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7935         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7937 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7939         * po/ko.po: Update from translation team.
7941 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7943         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7944         significantly.  The device type is also part of the ifinfomsg data.
7946         * po/sv.po: Update from translation team.
7947         * po/nl.po: Likewise.
7949         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7950         to wake up in 24 hours.
7952         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7954 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7956         * po/cs.po: Update from translation team.
7957         * po/pl.po: Likewise.
7959         * include/ifaddrs.h: Remove in6ai_temporary.
7960         (struct in6addrinfo): Add index element.
7961         Declare __check_native.
7962         * inet/Makefile (aux): Add check_native.
7963         * sysdeps/unix/sysv/linux/check_native.c: New file.
7964         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7965         IFA_F_TEMPORARY.  Pass back ifa_index.
7966         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7967         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7968         call __check_native if necessary.
7969         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7970         to sort addresses.  Pass information about the results.
7971         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7972         of rfc3484_sort interface.
7973         * posix/tst-rfc3484-2.c: Likewise.
7975         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7976         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7977         for _quicksort.
7978         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7979         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7980         on as third parameter to compare function and _quicksort.
7981         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7982         to the compare function.
7983         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7984         * Versions.def: Add GLIBC_2.8 for libc.
7986         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7987         * posix/tst-rfc3484-2.c: Likewise.
7989         * include/kernel-features.h: Moved to...
7990         * sysdeps/mach/hurd/kernel-features.h: ...here.
7992 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7994         * sysdeps/i386/i586/memcpy_chk.S: New file.
7995         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7996         * sysdeps/i386/i586/memset_chk.S: Likewise.
7998 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8000         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8001         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8002         list of interfaces.  Also store prefix length.
8003         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8004         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8005         prefix if source and destination address are in the same subnet.
8006         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8007         Always look for matching record in in6ai list.
8008         Correct source_addr_len value for IPv6->IPv4 converted records.
8010 2007-11-11  Roland McGrath  <roland@frob.com>
8012         * include/kernel-features.h: New file.
8014 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8016         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8017         complications for 64-bit platforms.
8019         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8020         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8021         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8022         open64_2.
8023         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8024         entries.
8025         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8026         * sysdeps/wordsize-64/alphasort.c: New file.
8027         * sysdeps/wordsize-64/alphasort64.c: New file.
8028         * sysdeps/wordsize-64/fseeko.c: New file.
8029         * sysdeps/wordsize-64/fseeko64.c: New file.
8030         * sysdeps/wordsize-64/ftello.c: New file.
8031         * sysdeps/wordsize-64/ftello64.c: New file.
8032         * sysdeps/wordsize-64/ftw.c: New file.
8033         * sysdeps/wordsize-64/ftw64.c: New file.
8034         * sysdeps/wordsize-64/iofgetpos.c: New file.
8035         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8036         * sysdeps/wordsize-64/iofopen.c: New file.
8037         * sysdeps/wordsize-64/iofopen64.c: New file.
8038         * sysdeps/wordsize-64/iofsetpos.c: New file.
8039         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8040         * sysdeps/wordsize-64/lockf.c: New file.
8041         * sysdeps/wordsize-64/lockf64.c: New file.
8042         * sysdeps/wordsize-64/mkostemp.c: New file.
8043         * sysdeps/wordsize-64/mkostemp64.c: New file.
8044         * sysdeps/wordsize-64/mkstemp.c: New file.
8045         * sysdeps/wordsize-64/mkstemp64.c: New file.
8046         * sysdeps/wordsize-64/scandir.c: New file.
8047         * sysdeps/wordsize-64/scandir64.c: New file.
8048         * sysdeps/wordsize-64/tmpfile.c: New file.
8049         * sysdeps/wordsize-64/tmpfile64.c: New file.
8050         * sysdeps/wordsize-64/versionsort.c: New file.
8051         * sysdeps/wordsize-64/versionsort64.c: New file.
8052         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8053         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8054         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8055         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8056         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8057         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8058         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8059         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8060         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8061         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8062         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8063         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8065         * crypt/sha256-crypt.c: Fix a comment.
8066         * crypt/sha512-crypt.c: Likewise.
8068 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8070         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8072 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8074         [BZ #5277]
8075         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8076         because output buffer is too small break, don't loop.
8077         * iconvdata/Makefile (tests): Add bug-iconv6.
8078         * iconvdata/bug-iconv6.c: New file.
8080 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8082         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8083         with size_t type.
8084         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8085         size_t.  Add casts where needed.
8087         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8088         old headers, don't call avc_has_perm if we don't have the
8089         permission information.
8091 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8093         * elf/rtld.c (dl_main): Use the page size to find the map start.
8095 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8097         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8098         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8100         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8101         when the lookup call failed.
8103         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8104         Add prune_cond and wakeup_time.
8105         (CACHE_PRUNE_INTERNAL): Define.
8106         Update declarations of prune_cache and setup_thread.
8107         * nscd/connections.c (dbs): Update initializers.
8108         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8109         (nscd_init): Default number of threads is now 4.
8110         (invalidate_cache): Take lock before calling prune_cache.
8111         (handle_request): If SELinux forbids the request, say so.
8112         (readylist_cond): Use static initializer.
8113         (nscd_run_prune): New function.  Used only by pruning threads.
8114         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8115         here.
8116         (fd_ready): Update nscd_run reference.
8117         (start_threads): No need to initialize readylist_cond.
8118         Start pruning threads separately.
8119         * nscd/nscd_setup_thread.c: Change return value type to int and always
8120         return 0.
8121         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8122         to int and return nonzero value if we can use the TID address hack.
8123         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8124         the database is later than the new entry's timeout, update the
8125         wakeup time and wake the cleanup thread.
8126         (prune_cache): Return seconds the next entry in the database is still
8127         valid.  Remove locking for pruning here.
8128         * nscd/nscd.conf: Document default number of threads.
8130 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8132         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8133         stack is properly aligned for the target function.
8134         Correct unwind info.
8136         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8137         when using auditing libraries.
8139 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8141         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8142         _nss_dns_getnetbyaddr2_r.
8143         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8144         extra parameter to getanswer_r.
8145         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8146         _nss_dns_getnetbyaddr2_r.
8148         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8149         gethstbynm3_r.
8150         * nscd/gethstbynm2_r.c: Remove.
8151         * nscd/gethstbynm3_r.c: New file.
8152         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8153         __gethostbyaddr_r.
8154         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8155         __gethostbyaddr_r compatibility wrapper.
8156         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8157         determining timeout of entry.
8158         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8159         __gethostbyaddr2_r.
8160         (addhstbyX): Pass reference to variable for TTL to lookup and
8161         cache_addhst.
8162         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8163         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8164         and __nss_next2.  Remove __nss_services_lookup.
8165         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8166         Add compat wrapper.
8167         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8168         __nss_next2.
8169         * nss/getXXent_r.c: Likewise.
8170         * nss/getnssent_r.c: Likewise.
8171         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8172         does not exist in module, try the optional second name.
8173         (__nss_next2): New function.
8174         (__nss_next): Now wrapper around __nss_next2.
8175         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8176         Declare __nss_next2.
8177         Adjust definition of db_lookup_function type.
8178         * nss/service-lookup.c: Define NO_COMPAT.
8179         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8180         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8181         * inet/ether_ntoh.c: Likewise.
8182         * sunrpc/netname.c: Likewise.
8183         * sunrpc/publickey.c: Likewise.
8184         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8185         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8186         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8187         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8188         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8190         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8192         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8194 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8196         [BZ #5204]
8197         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8198         * crypt/sha512c-test.c: Likewise.
8200         [BZ #5225]
8201         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8202         to keep track of end of %[ format string element.
8203         * stdio-common/Makefile (tests): Add bug20.
8204         * stdio-common/bug20.c: New file.
8206         [BZ #5222]
8207         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8208         path elements in counting mode.
8210 2007-10-27  Andreas Jaeger  <aj@suse.de>
8212         [BZ #5040]
8213         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8215         [BZ #3112]
8216         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8217         (__cleanup): Free shared library when exiting.
8218         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8219         (__cleanup): Free shared library when exiting.
8221 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8223         [BZ #2549]
8224         * math/libm-test.inc (check_float_internal): Support
8225         denormalized return.
8227 2007-10-23  Andreas Jaeger  <aj@suse.de>
8229         [BZ #5208]
8230         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8231         __LONG_LONG_PAIR to handle little endian byte order.
8232         Suggested by abhishekrai@google.com
8234 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8236         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8238 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8240         * nscd/cache.c (prune_cache): Move test for modified file outside
8241         of locking.
8243 2007-10-21  Andreas Jaeger  <aj@suse.de>
8245         * manual/texinfo.tex: Update to latest version.
8247         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8249         * manual/arith.texi (Status bit operations): Fix formatting.
8251         * manual/errno.texi (Error Messages): Fix formatting.
8253         * manual/sysinfo.texi (System Parameters): Fix formatting.
8255         * manual/libc.texinfo: Update VERSION and UPDATED.
8257 2007-10-19  Roland McGrath  <roland@redhat.com>
8259         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8261 2007-10-06  David S. Miller  <davem@davemloft.net>
8263         * configure.in: Add sparcv9v2 and sparc64v2.
8264         * scripts/config.sub: Likewise.
8265         * configure: Regenerate.
8266         * elf/elf.h (HWCAP_SPARC_N2): New.
8267         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8268         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8269         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8270         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8271         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8272         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8273         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8275 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8277         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8278         even if the poll result indicates there is data to read.
8279         Patch by Jeff Moyer <jmoyer@redhat.com>.
8281 2007-10-18  Roland McGrath  <roland@redhat.com>
8283         * elf/elf.h (NT_PPC_VMX): New macro.
8285 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8287         * version.h (VERSION): Set to 2.7.90.
8289 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8291         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8292         weak_alias.
8294 2007-10-17  Roland McGrath  <roland@frob.com>
8296         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8297         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8299 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8301         * version.h (VERSION): Bump to 2.7.
8302         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8304         [BZ #5186]
8305         * time/tzset.c (__tz_convert): Don't force testing for a change of
8306         TZ if not called from localtime.  But then also see whether the
8307         file changed, in case __use_tzfile is set.
8309         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8310         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8311         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8312         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8313         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8314         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8315         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8316         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8318 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8320         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8321         and admin selects to be able to replace the gai.conf file, lock
8322         data structures around the qsort call.
8324 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8326         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8327         new memset.
8328         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8329         too high for the improvements.  Implement bzero unconditionally for
8330         use in libc.
8332 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8333             Jakub Jelinek  <jakub@redhat.com>
8335         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8336         even when time_t is 32-bit.
8337         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8338         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8339         always set after the search.
8341 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8343         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8344         unreachable code on 32-bit machines.
8346 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8348         [BZ #5184]
8349         * time/strftime_l.c: Include stdbool.h.
8350         (my_strftime): New wrapper, old function renamed to...
8351         (__strftime_internal): ... new function.  Add tzset_called
8352         argument, pass it down to recursive calls, don't call tzset ()
8353         if already true, set to true after call to tzset ().
8355 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8357         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8358         into account when copying TZ string.
8360 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8362         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8363         num_transition rather than num_transitions - 1.
8365 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8367         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8368         PIC indirect jump.
8370         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8371         a local label rather than HIDDEN_JUMPTARGET.
8373 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8375         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8376         (init_cacheinfo): Initialize it.
8377         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8378         Always define bzero.
8379         Remove non-glibc code.
8380         * sysdeps/x86_64/bzero.S: Make an empty file.
8382 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8384         * sysdeps/x86_64/cacheinfo.c
8385         (__x86_64_preferred_memory_instruction): New.
8386         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8388         * sysdeps/x86_64/memset.S: Rewrite.
8390 2007-10-15  Roland McGrath  <roland@redhat.com>
8392         * po/libc.pot: Regenerated.
8394 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8396         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8397         pointers.
8399         [BZ #3425]
8400         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8401         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8402         address record to T_A/T_AAAA requests.
8404 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8406         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8408         * posix/glob.c: Add some branch prediction throughout.
8410         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8411         read from nscd.
8413         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8414         service_order.
8415         (rfc3484_sort): Make sure that even if qsort doesn't support
8416         stable sorting out sorting here is stable by comparing service_order.
8417         (getaddrinfo): Initialize service_order.
8418         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8419         service_order field to sorting structure.
8420         * posix/tst-rfc3484-2.c (do_test): Likewise.
8422         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8423         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8424         __tzset_parse_tz and updating of daylight, timezone, tzname into
8425         update_vars.
8426         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8427         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8428         happens in __tz_compute.
8429         * time/tzfile.c (__tzfile_read): Also read TZ string.
8430         (find_transition): Fold into __tzfile_compute.
8431         (__tzfile_compute): For times beyond the last transition try to
8432         use the TZ string.
8433         * timezone/tst-timezone.c: Information in daylight and tzname does
8434         change for Asia/Tokyo timezone with more concrete information.
8435         Remove the test.
8437         * include/stdio.h: Add libc_hidden_proto for ftello.
8438         * libio/ftello.c: Add libc_hidden_def.
8440         [BZ #1140]
8441         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8442         on the specified time and not the last entries in the file.  Move
8443         code to determine tzname[] to...
8444         (find_transition): ...here.  Add ugly guess for times before the
8445         first transition.
8447 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8449         [BZ #3195]
8450         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8451         no entry.
8452         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8453         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8454         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8455         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8457         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8458         read mechanism when there are no group members and avoid no-op
8459         read syscall in this case.
8461         [BZ #3242]
8462         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8463         (__readall): If reading failed due to EAGAIN error wait a bit
8464         and possibly try again.
8465         (__readvall): Likewise.
8467 2007-10-13  Bruno Haible  <bruno@clisp.org>
8469         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8470         when we cannot recode the message.
8472 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8474         [BZ #4359]
8475         * libio/__freading.c (__freading): Don't return true for
8476         write-only streams.  For read/write streams, check whether we
8477         performed a read operation already.
8478         * libio/Makefile (tests): Add tst-ext2.
8479         * libio/tst-ext2.c: New file.
8481 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8483         * locale/programs/repertoire.c (repertoire_read): Always free
8484         memory for repertoire file name [Coverity CID 270].
8486         * elf/cache.c (save_aux_cache): Free memory allocated for
8487         temporary file name [Coverity CID 267].
8489 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8491         * misc/Makefile (headers): Add bits/error.h.
8493 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8495         * posix/fnmatch_loop.c: Take rule index returned as part of
8496         findidx return value into account when accessing weights.
8497         * posix/regcomp.c: Likewise.
8498         * posix/regexec.c: Likewise.
8500         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8501         (skip_to): Fix problems with parameter of elifdef/elifndef.
8503 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8505         * iconv/gconv_simple.c: Add some branch prediction.
8507 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8509         * locale/programs/ld-collate.c (collate_read): If ignore_content
8510         and nowtok is tok_define, eat any tok_eol tokens.
8512 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8514         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8515         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8517         * inet/netinet/in.h: Don't include bits/socket.h.
8518         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8519         macro.
8520         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8522 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8524         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8525         and tok_elifndef.
8526         * locale/programs/locfile-kw.gperf: Likewise.
8527         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8529 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8531         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8532         (__find_specwc): Change into __extern_always_inline function.
8533         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8534         (__parse_one_specmb): Remove ps argument.
8535         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8536         Adjust __find_specmb and __parse_one_specmb callers.
8537         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8538         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8539         Removed.
8540         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8541         caller.
8543 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8545         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8546         with some Pentium Ds.
8548 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8550         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8551         __read not read.
8552         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8553         __write not write.
8555 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8557         [BZ #181]
8558         * locale/C-time.c: Set week_1stday data to 19971201.
8559         * locale/programs/ld-time.c (time_finish): Default for
8560         first_workday is Monday.
8562         [BZ #2633]
8563         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8565         [BZ #5103]
8566         * posix/glob.c (glob): Recognize patterns starting \/.
8567         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8568         (main): Add test for pattern starting \/.
8570         * misc/error.h: Use __const instead of const.
8571         * misc/bits/error.h: Likewise.
8573 2007-10-07  Andreas Jaeger  <aj@suse.de>
8575         * include/bits/error.h: New file.
8577         * misc/bits/error.h (error_at_line): Fix prototype.
8579 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8581         [BZ #3924]
8582         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8583         more little bugs in creating the stack frame when pltexit has to
8584         be called.
8586         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8587         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8589         [BZ #4407]
8590         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8591         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8592         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8593         * math/libm-test.inc: Add test for this case.
8595         [BZ #5010]
8596         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8597         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8598         map service succeeded.
8599         (svc_is_mapped): New function.
8600         (svc_unregister): Use it before trying to unmap service.
8602 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8604         * timezone/zic.c: Update from tzcode2007h.
8606         [BZ #5063]
8607         * timezone/africa: Update from tzdata2007h.
8608         * timezone/antarctica: Likewise.
8609         * timezone/asia: Likewise.
8610         * timezone/australasia: Likewise.
8611         * timezone/europe: Likewise.
8612         * timezone/leapseconds: Likewise.
8613         * timezone/northamerica: Likewise.
8614         * timezone/southamerica: Likewise.
8615         * timzeone/zone.tab: Likewise.
8617         [BZ #5104]
8618         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8620         [BZ #5113]
8621         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8622         avoid warning with -Wconversion.
8623         (__strndup): Likewise.
8624         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8626         [BZ #5112]
8627         * nscd/connections.c (restart): Don't resync if database is
8628         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8630         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8631         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8633         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8634         evetnfd_read, eventfd_write.
8635         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8636         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8637         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8638         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8639         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8640         eventfd_write for GLIBC_2.7.
8642         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8643         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8644         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8645         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8647 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8649         * stdlib/msort.c: Include stdint.h.
8650         (struct msort_param): New type.
8651         (msort_with_tmp): Use struct msort_param pointer for unchanging
8652         parameters.  Add optimized handling for several common sizes
8653         and indirect sorting mode.
8654         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8655         sorting.
8656         Suggested by Belazougui Djamel .
8658         * stdlib/Makefile (tests): Add tst-qsort2.
8659         * stdlib/tst-qsort2.c: New test.
8661 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8663         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8664         for dup2 in case another thread races with the current one.  Retry
8665         in this case.
8667         * misc/error.h: Remove support for use outside of libc.  We have to
8668         include <features.h> now.  Include <bits/error.h> if possible.
8669         * misc/bits/error.h: New file.
8671 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8673         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8674         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8675         __extern_always_inline functions unconditionally, drop macros.
8677         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8678         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8679         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8681         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8682         add __artificial__ attribute.
8684 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8686         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8687         backward to forward direction.
8689         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8691         [BZ #645]
8692         * locale/programs/ld-collate.c (collate_finish): Compare against last
8693         used section which is known to have rules defined.
8694         (collate_read): After order_start, correctly record order of sections
8695         and queue sections up.
8697 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8699         [BZ #5071]
8700         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8701         the same number of pages.
8702         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8704         * locale/programs/ld-collate.c (collate_read): After initial copy
8705         statement, continue in state 0.
8707         * include/stdio_ext.h (__fsetlocking): Define as macro.
8709 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8711         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8712         of section order.
8714         * po/pt_BR.po: Fix typo.
8716 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8718         * iconvdata/Makefile (modules): Add ISO8859-9E.
8719         (distribute): Add iso8859-9e.c.
8720         (gen-8bit-gap-modules): Add iso8859-9e.
8721         * iconvdata/iso8859-9e.c: New file.
8722         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8723         * iconvdata/TESTS: Likewise.
8724         * iconvdata/tst-tables.sh: Likewise.
8726         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8728         * locale/iso-639.def: Add several new entries.
8730 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8732         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8733         void * pointers instead of struct link_map **.
8734         (_dl_scope_free): Change argument type to void *.
8735         * include/link.h (struct link_map): Change type of l_reldeps
8736         to struct link_map_reldeps, move l_reldepsact into that
8737         struct too.
8738         * elf/dl-deps.c: Include atomic.h.
8739         (_dl_map_object_deps): Only change l->l_initfini when it is
8740         fully populated, use _dl_scope_free for freeing it.  Optimize
8741         removal of libs from reldeps by using l_reserved flag, when
8742         some removal is needed, allocate a new list instead of
8743         reallocating and free the old with _dl_scope_free.  Adjust
8744         for l_reldeps and l_reldepsact changes.
8745         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8746         searching in l_initfini and l_reldeps without holding dl_load_lock.
8747         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8748         l_reldepsact changes.
8749         * elf/dl-close.c (_dl_close_worker): Likewise.
8750         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8752 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8754         * iconvdata/Makefile (modules): Add KOI8-RU.
8755         (distribute): Add koi8-ru.c.
8756         (gen-8bit-gap-modules): Add koi8-ru.
8757         * iconvdata/koi8-ru.c: New file.
8758         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8759         * iconvdata/TESTS: Likewise.
8760         * iconvdata/tst-tables.sh: Likewise.
8762         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8764 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8766         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8767         with __warning__/__error__ attributes.
8768         (__warnattr): Define.
8769         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8770         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8771         __warnattr.
8772         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8773         of __*_chk if compile time detectable overflow is found.
8774         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8775         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8776         with __warnattr.
8777         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8778         instead of __*_chk if compile time detectable overflow is found.
8779         (__gets_alias): Rename to...
8780         (__gets_warn): ... this.  Add __warnattr.
8781         (gets): Call __gets_warn instead of __gets_alias.
8782         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8783         aliases with __warnattr.
8784         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8785         time detectable overflow is found.
8786         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8787         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8788         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8789         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8790         __getdomainname_chk_warn): New aliases with __warnattr.
8791         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8792         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8793         __*_chk_warn instead of __*_chk if compile time detectable overflow
8794         is found.
8795         (__getgroups_chk): Rename argument to __listlen from listlen.
8796         (__getwd_alias): Rename to...
8797         (__getwd_warn): ... this.  Add __warnattr.
8798         (getwd): Call __getwd_warn instead of __getwd_alias.
8799         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8800         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8801         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8802         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8803         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8804         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8805         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8806         compile time detectable overflow is found.
8807         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8808         to use __*_chk or not.
8809         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8810         in comparisons which function should be called and in __*_chk*
8811         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8812         detectable overflow is found.
8813         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8814         __*_chk argument.
8815         * debug/tst-chk1.c (do_test): Add a few more tests.
8817 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8819         [BZ #5058]
8820         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8821         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8822         (_nl_unload_domain): Finalize conversions_lock.
8823         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8824         handling table of known conversions.
8826 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8828         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8829         close_not_cancel_no_status instead of close.
8831 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8833         [BZ #5028]
8834         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8835         nrules != 0 for multibyte chars.
8837 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8839         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8840         Provide better error message in case the type is unknown.
8842         [BZ #4963]
8843         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8844         * string/stratcliff.c: Make usable to test wide char functions.
8845         * wcsmbs/wcsatcliff.c: New file.
8846         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8848         [BZ #4972]
8849         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8850         (distribute): Add mac-centraleurope.c.
8851         (gen-8bit-gap-modules): Add mac-centraleurope.
8852         * iconvdata/mac-centraleurope.c: New file.
8853         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8854         * iconvdata/TESTS: Likewise.
8855         * iconvdata/tst-tables.sh: Likewise.
8857         [BZ #5043]
8858         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8860 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8862         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8863         from __x86_64_core_cache_size_half.
8864         (init_cacheinfo): Compute shared cache size for AMD processors with
8865         shared L3 correctly.
8866         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8867         name change.
8868         Patch in large parts by Evandro Menezes.
8870 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8872         * elf/dl-lookup.c (add_dependency): Handle failing memory
8873         allocation for dependency list.  Remove unnecessary check.
8875         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8876         open/close when determining source addresses.
8878         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8879         sha512-crypt, and sha512.
8880         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8881         (distribute): Add sha256.h and sha512.h.
8882         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8883         and call the appropriate code.
8884         * crypt/sha256-crypt.c: New file.
8885         * crypt/sha256.c: New file.
8886         * crypt/sha256.h: New file.
8887         * crypt/sha256c-test.c: New file.
8888         * crypt/sha256test.c: New file.
8889         * crypt/sha512-crypt.c: New file.
8890         * crypt/sha512.c: New file.
8891         * crypt/sha512.h: New file.
8892         * crypt/sha512c-test.c: New file.
8893         * crypt/sha512test.c: New file.
8895 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8897         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8898         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8899         __syslog_chk.
8901 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8903         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8904         %as in fscanf format strings.
8906         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8907         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8908         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8909         Likewise.
8910         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8911         Likewise.
8913         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8914         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8915         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8916         * elf/dl-sym.c (do_sym): Likewise.
8917         * include/link.h (struct link_map): Add l_serial field.
8918         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8919         * elf/dl-lookup.c (add_dependency): Add flags argument.
8920         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8921         flags, use THREAD_GSCOPE_RESET_FLAG before and
8922         THREAD_GSCOPE_SET_FLAG after
8923         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8924         Don't dereference map until it has been found on some list.
8925         If map->l_serial changed, return -1.
8927 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8929         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8930         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8931         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8932         libc_hidden_proto.
8933         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8934         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8935         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8936         add libc_hidden_proto.
8937         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8938         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8939         conformance requested.
8940         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8941         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8942         conformance requested.
8943         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8944         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8945         conformance requested.
8946         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8947         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8948         ISO C99 or POSIX conformance requested.
8949         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8950         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8951         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8952         and __isoc99_vsscanf@@GLIBC_2.7.
8953         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8954         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8955         (tests): Add scanf14.
8956         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8957         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8958         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8959         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8960         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8961         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8962         from using internal headers.
8963         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8964         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8965         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8966         and __isoc99_vswscanf@@GLIBC_2.7.
8967         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8968         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8969         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8970         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8971         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8972         * stdio-common/isoc99_scanf.c: New file.
8973         * stdio-common/isoc99_vsscanf.c: New file.
8974         * stdio-common/isoc99_vscanf.c: New file.
8975         * stdio-common/isoc99_vfscanf.c: New file.
8976         * stdio-common/isoc99_fscanf.c: New file.
8977         * stdio-common/isoc99_sscanf.c: New file.
8978         * wcsmbs/isoc99_fwscanf.c: New file.
8979         * wcsmbs/isoc99_vswscanf.c: New file.
8980         * wcsmbs/isoc99_swscanf.c: New file.
8981         * wcsmbs/isoc99_wscanf.c: New file.
8982         * wcsmbs/isoc99_vwscanf.c: New file.
8983         * wcsmbs/isoc99_vfwscanf.c: New file.
8984         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8985         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8986         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8987         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8988         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8989         * stdio-common/scanf14.c: New test.
8990         * stdio-common/scanf15.c: New test.
8991         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8992         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8993         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8994         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8995         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8996         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8997         __nldbl___isoc99_scanf@@GLIBC_2.7,
8998         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8999         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9000         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9001         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9002         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9003         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9004         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9005         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9006         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9007         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9008         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9009         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9010         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9011         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9012         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9013         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9014         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9015         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9016         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9017         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9018         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9019         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9020         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9021         functions.
9022         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9023         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9024         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9025         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9026         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9027         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9028         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9029         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9030         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9031         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9032         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9033         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9035         * stdio-common/Makefile (tests): Add scanf13.
9036         (scanf13-ENV): New.
9037         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9038         m modifier followed by l.
9039         (STRING_ARG): Add width argument.
9040         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9041         <case L_('C')>: Handle %mlc and %mC.
9042         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9043         arguments.
9044         * stdio-common/scanf13.c: New test.
9046         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9047         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9049 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9051         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9052         type and __THROW marker of splice, vmsplice, and tee.
9053         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9054         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9055         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9056         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9057         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9058         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9059         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9060         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9061         as cancellation points.
9063 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9065         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9066         parse more than three parts of the version number.
9068 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9070         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9071         modifier.  Patch by Jakub Jelinek.
9073 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9075         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9076         call_fallocate in misc subdir.
9077         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9078         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9079         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9080         instead of __fallocate64.
9081         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9083 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9085         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9086         * rt/Makefile (headers): Add bits/mqueue2.h.
9087         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9088         optimizing with GCC and __va_arg_pack_len is defined.
9089         * rt/bits/mqueue2.h: New file.
9090         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9091         (mq_open): New strong_alias.
9092         (__mq_open_2): New function.
9093         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9094         (mq_open): New strong_alias.
9095         (__mq_open_2): New function.
9096         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9097         * Versions.def (librt): Add GLIBC_2.7 version.
9098         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9099         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9101         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9102         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9103         is defined rather than when not C++.
9104         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9105         __openat64_alias): New redirects.
9106         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9107         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9108         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9109         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9110         functions instead of function-like macros.
9112 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9114         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9115         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9116         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9118 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9120         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9121         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9123 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9125         * inet/tst-network.c: Increment ERRORS for failing tests.
9127 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9129         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9130         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9131         implement as __extern_always_inline function.
9132         (vsyslog): Define as __extern_always_inline function unconditionally.
9133         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9134         When __va_arg_pack is defined, implement as __extern_always_inline
9135         functions.
9136         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9137         __extern_always_inline functions unconditionally.
9138         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9139         bits/stdio2.h will be included.
9140         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9141         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9142         implement as __extern_always_inline functions.
9143         (vswprintf, vwprintf, vfwprintf): Define as
9144         __extern_always_inline functions unconditionally.
9145         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9147 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9149         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9150         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9151         attribute.
9152         * include/features.h (__USE_EXTERN_INLINES): Define only when
9153         __extern_inline is defined.
9154         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9155         is defined instead of when not __cplusplus.
9156         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9157         is defined instead of when not __cplusplus.
9158         * socket/sys/socket.h: Include bits/socket2.h when
9159         __extern_always_inline is defined instead of when not __cplusplus.
9160         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9161         is defined instead of when not __cplusplus.
9162         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9163         is defined instead of when not __cplusplus.
9164         * string/string.h: Include bits/string3.h when __extern_always_inline
9165         is defined instead of when not __cplusplus.
9166         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9167         is defined instead of when not __cplusplus.
9168         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9169         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9170         is not defined.
9171         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9172         defined __extern_always_inline instead of !defined __cplusplus.
9173         * libio/bits/stdio-ldbl.h: Likewise.
9174         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9175         * misc/bits/syslog.h (syslog): Don't define for C++.
9176         (vsyslog): Use __extern_always_inline function for C++ instead of
9177         a macro.
9178         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9179         whenever that macro is defined.
9180         (vprintf): Don't provide the inline for C++.
9181         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9182         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9183         define the macros for C++.
9184         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9185         __extern_always_inline functions for C++.
9186         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9187         stat64, lstat64, fstat64, fstatat64): Don't define if not
9188         __USE_EXTERN_INLINES.
9189         * wcsmbs/bits/wchar2.h: Fix #error message.
9190         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9191         (vswprintf, vwprintf, vfwprintf): Define using
9192         __extern_always_inline functions for C++.
9193         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9194         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9195         strncpy, strcat, strncat): Define as __extern_always_inline
9196         functions instead of macros for C++.
9197         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9198         defined __extern_inline.
9199         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9200         to __extern_inline whenever that macro is defined.
9201         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9202         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9203         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9204         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9205         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9206         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9207         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9208         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9209         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9210         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9211         prototypes.  Only provide __extern_inline routines if
9212         __USE_EXTERN_INLINES.
9213         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9214         tests.
9215         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9216         For now avoid some *printf tests in C++.  Skip all testing
9217         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9218         is not.
9219         * debug/tst-chk4.cc: New file.
9220         * debug/tst-chk5.cc: New file.
9221         * debug/tst-chk6.cc: New file.
9222         * debug/tst-lfschk4.cc: New file.
9223         * debug/tst-lfschk5.cc: New file.
9224         * debug/tst-lfschk6.cc: New file.
9225         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9226         prototypes in C++.
9227         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9228         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9229         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9231 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9233         * po/cs.po: Update from translation team.
9235 2007-09-11  Roland McGrath  <roland@redhat.com>
9237         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9238         compiling.
9240 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9242         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9244 2007-09-05  Roland McGrath  <roland@redhat.com>
9246         * manual/signal.texi (Signaling Another Process): Typo fix.
9247         From Karl Berry <karl@freefriends.org>.
9249 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9251         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9252         zero if not defined.
9253         (make_request): Recognize optimistic addresses and treat them like
9254         deprecated addresses.
9255         Reported by Neil Horman <nhorman@redhat.com>.
9257 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9259         * nscd/connections.c (send_ro_fd): Also transfer file size.
9260         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9261         file size don't call fstat.
9263         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9264         ahead and map the file.  This should always be correct and we can
9265         catch problems later.
9267 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9269         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9270         prototypes.
9271         (__fread_alias, __fread_unlocked_alias): New aliases.
9272         (fread): New extern inline.
9273         (fread_unlocked): Likewise.  Undef macro before definition of
9274         the inline function.
9275         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9276         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9277         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9278         and __fread_unlocked_chk@@GLIBC_2.7.
9279         * debug/fread_chk.c: New file.
9280         * debug/fread_u_chk.c: New file.
9281         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9283 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9285         * sysdeps/unix/sysv/linux/syscalls.list
9286         (personality): Change caller to EXTRA.
9288 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9290         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9291         to keep gcc quiet.
9292         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9294         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9295         NDEBUG is defined.
9297         * Makerules: Use -p option with mkdir.
9299         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9300         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9301         (_xdr_directory_obj): Likewise.
9302         (xdr_entry_obj): Likewise.
9303         (xdr_group_obj): Likewise.
9304         (xdr_link_obj): Likewise.
9305         (xdr_table_obj): Likewise.
9306         (_xdr_nis_result): Likewise.
9307         (_xdr_ns_request): Likewise.
9308         (_xdr_ib_request): Likewise.
9309         (_xdr_nis_taglist): Likewise.
9310         (xdr_cback_data): Likewise.
9311         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9312         (xdr_ypresp_maplist): Likewise.
9314         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9316         * posix/regex_internal.h: Prevent some declarations and definitions
9317         to be seen when used in tests.
9319         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9320         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9322         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9324         * config.make.in (datarootdir): Add to shut up configure.
9326         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9327         associativity for fully-associative caches.
9329         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9330         requests.  Fill on more associativity values for L2.
9331         Patch mostly by Evandro Menezes.
9333 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9335         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9336         (_libc_vdso_platform_setup): Avoid using exported variable by using
9337         alias.
9339         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9341         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9342         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9343         defined.
9345 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9347         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9348         align stack for call if pltexit is to be used.
9350         [BZ #3924]
9351         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9352         align for function call in case pltexit has to be called later.
9354         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9355         implicit atomic operation when storing function pointer.
9356         (_dl_runtime_profile): Likewise.
9358 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9360         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9361         NIS_NOTFOUND.
9363 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9365         [BZ #4566]
9366         * string/strtok.c: Fix typo in comment.
9368         [BZ #4582]
9369         * debug/segfault.c: Fix typos in comments.
9371         [BZ #4588]
9372         * stdio-common/tempnam.c: Fix comment, it is not checked that
9373         TMPDIR points to a writable directory.
9375         [BZ #4726]
9376         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9377         memory allocated for the name server address.
9379         [BZ #4946]
9380         * nscd/connections.c (handle_request): Using sendfile always
9381         requires that mmap is used for the database.
9382         Patch by Petr Baudis <pasky@suse.cz>.
9384         [BZ #4905]
9385         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9386         suddenly has two or more addresses, ignore it and remove the old
9387         entry.
9389         [BZ #4814]
9390         * resolv/res_hconf.c: Prepare for compiling outside libc.
9391         * nscd/res_hconf.c: New file.
9392         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9393         the new file.
9394         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9395         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9397         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9399         [BZ #4925]
9400         * debug/pcprofiledump.c: Turn on internationalization by calling
9401         setlocale.  Patch mostly by Benno Schulenberg.
9403         [BZ #4936]
9404         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9405         the state.
9406         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9407         * iconvdata/bug-iconv5.c: New file.
9409 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9411         [BZ #4896]
9412         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9413         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9414         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9415         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9416         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9417         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9418         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9419         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9421 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9423         [BZ #4937]
9424         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9425         lookup loop.  Suggested by John Reiser.
9427 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9429         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9431 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9433         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9434         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9435         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9436         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9437         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9438         to...
9439         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9441 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9443         * po/nl.po: Update from translation team.
9445 2007-08-16  Andreas Jaeger  <aj@suse.de>
9447         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9448         Reported by Peter Festner <peter.festner@ewetel.net>.
9450 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9452         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9454 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9456         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9457         to check for undefined symbols.
9459         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9460         If the syscall fails, set errno to the actual returned error number
9461         rather than EINVAL.
9462         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9463         arguments are incorrect, set errno to EINVAL, if the syscall
9464         fails, set errno to the actual returned error number.
9466         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9467         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9469         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9470         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9471         file.
9472         (ASI_PNF, ASI_BLK_P): Don't define.
9473         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9474         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9475         file.
9476         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9477         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9478         file.
9480 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9482         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9483         FE_UNDERFLOW on Niagara CPUs.
9485         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9486         exceptions.
9488 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9490         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9491         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9492         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9493         flush should be used or not inside of the function.
9494         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9496         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9497         __thread_start): Use HIDDEN_JUMPTARGET.
9498         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9499         __thread_start): Likewise.
9500         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9502         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9503         Add libc_hidden_proto.
9504         (STRTOF): Add libc_hidden_proto.
9505         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9506         (strtold_l, wcstold_l): Use them as second argument for
9507         long_double_symbol.
9509 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9511         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9513 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9515         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9517 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9519         * po/bg.po: New file.  From the translation team.
9521 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9523         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9524         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9525         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9526         when each feature was introduced.
9528         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9529         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9530         (CHECK_HASH): New macro.
9531         (PREPARE_VERSION): Use it.
9533         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9534         prototype if not __ASSUME_PSELECT.
9535         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9536         prototype if not __ASSUME_PPOLL.
9538         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9540         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9541         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9542         is defined.
9544 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9546         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9547         (_libc_vdso_platform_setup): If vDSO is not available point
9548         __vdso_gettimeofday to the vsyscall.
9549         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9550         __vdso_gettimeofday instead of vsyscall.
9552 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9554         * nscd/servicescache.c: Include kernel-features.h.
9555         * nscd/gai.c: Likewise.
9556         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9557         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9558         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9559         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9560         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9561         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9562         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9563         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9564         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9566 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9568         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9569         and _dl_get_origin defines anymore.
9571         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9572         Build fix for systems which might lack POSIX timer support.
9574         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9575         (_libc_vdso_platform_setup): Mangle function pointers before storing
9576         them.
9577         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9578         Demangle vdso pointer before use.
9579         (INTERNAL_VSYSCALL): Likewise.
9581         * elf/cache.c (primes): Mark as const.
9582         Noted by Roland McGrath.
9584 2007-08-01  Andreas Jaeger  <aj@suse.de>
9585             Jakub Jelinek  <jakub@redhat.com>
9587         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9588         (options): Add option.
9589         (parse_opt): Handle option.
9590         (manual_link): Adjust process_file caller.  Call implicit_soname.
9591         (search_dir): Formatting.  Use and populate auxiliary cache.
9592         (main): Load and save auxiliary cache.
9593         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9594         stat64 from fstat64 to caller.
9595         (implicit_soname): New function.
9596         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9597         leave *soname as NULL.
9598         * elf/cache.c: Include libgen.h.
9599         (print_entry, print_cache, compare, save_cache, add_to_cache):
9600         Formatting and cleanups.
9601         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9602         aux_cache_file): New structures.
9603         (AUX_CACHEMAGIC): Define.
9604         (primes): New array.
9605         (aux_hash_size, aux_hash): New variables.
9606         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9607         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9608         load_aux_cache, save_aux_cache): New functions.
9609         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9610         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9611         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9612         (process_file): Adjust prototype.
9614 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9616         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9617         with __need_size_t.
9619 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9621         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9622         r_found_version structure as second parameter.
9623         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9624         (_dl_vdso_vsym): Change type of second parameter accordingly.
9625         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9626         (_libc_vdso_platform_setup): Adjust.
9627         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9628         (_libc_vdso_platform_setup): Likewise.
9630         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9631         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9632         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9633         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9634         * csu/libc-start.c: Pretty printing.
9635         Use VDSO_SETUP if defined.
9636         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9637         and let generic code call into _libc_vdso_platform_setup.
9638         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9639         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9640         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9641         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9642         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9643         for GLIBC_PRIVATE.
9644         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9645         (sysdep_rountines): Add dl-vdso.
9647         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9648         of routines.
9650         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9651         attribute_hidden to __vdso_gettimeofday prototype.
9653 2007-08-12  Roland McGrath  <roland@redhat.com>
9655         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9656         From: Karl Berry <karl@freefriends.org>.
9658 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9660         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9661         an atime update for the files we read.
9663 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9665         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9667         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9668         instead of mkstemp.
9670         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9671         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9672         * misc/mkostemp.c: New file.
9673         * misc/mkostemp64.c: New file.
9674         * stdlib/stdlib.h: Declare the new functions.
9675         * sysdeps/posix/tempname.c: Add new parameter which is added to
9676         the flags for open.  Remove __GT_BIGFILE handling.
9677         * stdio-common/tempname.c: Likewise.
9678         * include/stdio.h: Adjust __gen_tempname prototype.
9679         Renumber __GT_* constants.
9680         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9681         * misc/mkdtemp.c: Likewise.
9682         * misc/mkstemp.c: Likewise.
9683         * misc/mkstemp64.c: Likewise.
9684         * misc/mktemp.c: Likewise.
9685         * stdio-common/tempnam.c: Likewise.
9686         * stdio-common/tmpfile.c: Likewise.
9687         * stdio-common/tmpfile64.c: Likewise.
9688         * stdio-common/tmpnam.c: Likewise.
9689         * stdio-common/tmpnam_r.c: Likewise.
9691 2007-08-10  Roland McGrath  <roland@frob.com>
9693         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9694         New macros.
9695         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9696         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9698 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9700         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9701         possible.
9702         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9703         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9704         * nss/nss_files/files-have_o_cloexec.c: New file.
9706         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9707         available.
9709 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9711         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9712         ___new_wcstold_l): New weak aliases.
9713         (strtold_l, wcstold_l): Use them as second argument for
9714         long_double_symbol.
9716 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9718         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9719         register in test for error.
9721         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9722         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9724         * po/sv.po: Update from translation team.
9726 2007-08-06  Roland McGrath  <roland@redhat.com>
9728         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9729         Remove __strto*_l inlines.
9730         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9731         * stdlib/strtod.c: Add libc_hidden_def.
9732         * stdlib/strtod_l.c: Likewise.
9733         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9734         for __new_strtold and __new_wcstold.
9735         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9736         __STRTOF, STRTOF.
9737         * stdlib/strtol.c: Add libc_hidden_def.
9738         * stdlib/strtol_l.c: Likewise.
9739         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9740         strtoq.
9742         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9744         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9745         * scripts/data/localplt-generic.data: ... here.
9746         * elf/Makefile (check-data): Get generic file if no other.
9747         ($(objpfx)check-localplt.out): Make target unconditional.
9749         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9750         Use ElfW(Nhdr).
9752 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9754         * po/zh_CN.po: Updated translation from translation team.
9756 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9759         Don't use CGOTSETUP and CGOTRESTORE macros.
9761 2007-08-04  Roland McGrath  <roland@redhat.com>
9763         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9765 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9767         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9768         __extension__ around the whole statement expression.
9770 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9772         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9773         elements during initialization.
9775         * po/pl.po: Updated translation from translation team.
9776         * po/tr.po: Likewise.
9777         * po/nl.po: Likewise.
9779 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9781         * rt/aio.h: Add __nonnull attributes.
9783 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9785         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9786         * stdlib/Makefile (tests): Add tst-strtod5.
9787         (tst-strtod5-ENV): New.
9788         * stdlib/tst-strtod5.c: New file.
9790         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9791         failed.
9792         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9793         on failure.
9795         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9796         allocated.
9798 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9800         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9801         numbers.
9803 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9805         * io/Makefile (aux): Add have_o_cloexec.
9806         * include/fcntl.h: Declare __have_o_cloexec.
9807         * io/have_o_cloexec.c: New file.
9808         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9809         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9810         fcntl call if not necessary.
9811         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9812         of local variable.
9814         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9815         Avoid memset, add explicit initialization.
9816         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9817         to the end and change into zero-sized array.
9818         Move lock member to fill a hole on 64-bit platforms.
9820         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9821         inline functions.
9822         * include/stdlib.h: Add __strto*_internal prototypes here.
9823         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9824         inline functions.
9825         * include/wchar.h: Add __wcsto*_internal prototypes.
9826         * sysdeps/generic/inttypes.h: No need to protect the declaration
9827         of the __strto*_internal and __wcsto*_internal members here.
9829         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9831 2007-08-02  Roland McGrath  <roland@redhat.com>
9833         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9834         $(inst_bindir)/getconf if possible.
9836         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9837         (generated): Add it.
9838         ($(inst_libexecdir)/getconf): Use it.
9840 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9842         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9843         /proc is faster and sufficient.  /sys is still needed for
9844         __get_nprocs_conf.
9846 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9848         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9849         syscall as __fallocate64.
9850         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9851         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9853 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9855         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9856         value.
9858         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9859         if off_t is different rank from size_t.
9861         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9862         uw_frame_state_for): Avoid type punning warnings.
9863         * sysdeps/generic/unwind-dw2-fde-glibc.c
9864         (_Unwind_IteratePhdrCallback): Likewise.
9865         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9866         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9867         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9868         pointers.
9870 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9872         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9873         total processors using sysfs.
9874         (__get_nprocs): Use sysfs to determine which processors are online.
9876 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9878         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9879         syscall arguments count.
9881         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9883 2007-07-30  Roland McGrath  <roland@redhat.com>
9885         * manual/libc.texinfo: Update copyrights, formatting magic, and
9886         @dircategory.  From Karl Berry <karl@freefriends.org>.
9888 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9890         [BZ #4860]
9891         * io/Makefile (headers): Add bits/fcntl2.h.
9893         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9894         using gcc builtin.
9895         (__CPU_EQUAL_S): Likewise.
9897         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9898         (tests): Add tst-cpuset.
9899         * posix/sched_cpualloc.c: New file.
9900         * posix/sched_cpufree.c: New file.
9901         * posix/tst-cpuset.c: New file.
9902         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9903         GLIBC_2.7.
9904         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9905         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9906         macros.  Define CPU_*_S macros.
9908 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9910         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9911         entry.
9913         [BZ #4858]
9914         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9915         #.0g and value rounded to 1.0.
9916         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9918 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9920         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9921         for int_frac_digits and frac_digits.
9923         * login/logout.c (logout): Avoid aliasing violation.
9924         * login/logwtmp.c (logwtmp): Likewise.
9926         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9928         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9929         to avoid warning.
9930         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9931         warning.
9932         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9933         warning.
9934         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9935         to avoid warnings.
9937         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9938         void **.
9939         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9941         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9942         char * to avoid warning.
9943         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9945         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9947         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9948         allocate_arrays): Cast second argument to charmap_find_symbol
9949         to char * to avoid warnings.
9951         * locale/programs/repertoire.c (repertoire_new_char): Change
9952         from_nr, to_nr and cnt to unsigned long, adjust printf format
9953         string.
9955         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9956         Cast second argument to new_element to char * to avoid warnings.
9958         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9960         * intl/gettextP.h (struct loaded_domain): Change plural to const
9961         struct expression *.
9962         * intl/plural-eval.c (plural_eval): Change first argument to
9963         const struct expression *.
9964         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9965         argument to const struct expression **.
9966         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9967         prototypes.
9968         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9969         in call to __gettext_free_exp.
9971         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9972         unitialized wstring/wpattern var warnings.
9974         * posix/runtests.c (struct a_test): Make data field const char *.
9976         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9977         vars if not LDBL_MANT_DIG >= 106.
9979         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9981         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9982         __find_specmb to avoid warning.
9984         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9986         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9987         to avoid warnings.
9989         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9990         initializer.
9992         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9993         tv var when it will be actually used.
9995         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9996         to avoid warnings.
9998         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9999         char array resp. pointer.
10000         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10001         char array.
10002         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10003         to const unsigned char **.
10004         (ucs4_to_cns11643): Change second argument to unsigned char *.
10005         * iconvdata/euc-tw.c (BODY): Change endp type to
10006         const unsigned char *.
10007         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10008         to unsigned char *.
10009         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10010         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10011         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10012         types to unsigned char pointers/arrays instead of char.
10013         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10014         to unsigned char *.
10015         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10016         * iconvdata/jis0212.h: Include assert.h.
10017         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10018         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10019         of trying to handle that.
10020         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10021         shut up a warning.
10022         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10023         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10024         two dimensional const unsigned char arrays.
10025         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10026         Initialize endp to inptr to shut up a warning.
10028 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10030         [BZ #4772]
10031         * time/strptime_l.c (__strptime_internal): Silently ignore
10032         strftime modifiers and field width in recursive calls.
10034         * include/time.h (enum ptime_locale_status): Remove.
10035         (__strptime_internal): Remove decided and era_cnt arguments,
10036         add statep argument.
10037         * time/strptime_l.c (__strptime_internal): Remove decided
10038         and era_cnt arguments, add statep argument.  Don't recompute
10039         any fields in recursive calls, only update caller's tm
10040         and state, if recursive call fails, don't change tm nor
10041         any state.
10042         (get_alt_number): Adjust.
10043         (recursive): Adjust caller.
10044         (strptime): Likewise.
10045         * time/strptime.c (strptime): Likewise.
10047 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10049         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10050         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10051         if from and to charsets are the same.
10052         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10053         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10054         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10056 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10058         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10059         Don't define wint_t when __need_mbstate_t unless it
10060         is necessary.
10061         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10062         in the typedef if possible.
10063         * wctype/wctype.h (wint_t): Define by including
10064         wchar.h with __need_wint_t instead of including stddef.h
10065         with __need_wint_t and as fallback definining it ourselves.
10066         * iconv/gconv.h (__need_wint_t): Define before including
10067         wchar.h.
10068         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10069         or _GLIBCPP_USE_WCHAR_T.
10070         (__need_wchar_t): Don't define
10071         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10072         (__need_wint_t): Don't define before including stddef.h,
10073         define before including wchar.h only if _LIBC or
10074         _GLIBCPP_USE_WCHAR_T.
10075         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10076         * sysdeps/mach/hurd/_G_config.h: Likewise.
10077         * sysdeps/generic/_G_config.h: Likewise.
10078         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10079         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10080         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10081         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10083 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10085         * sysdeps/posix/posix_fallocate64.c: Undefine
10086         __posix_fallocate64_l64 before alias handling.
10087         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10088         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10089         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10090         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10092         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10094 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10096         * locale/programs/ld-collate.c (atwc): New variable.
10097         (add_to_tablewc): New toplevel function, moved from collate_output.
10098         (collate_output): Remove add_to_tablewc nested function.
10100         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10101         (name_insert): New function.
10102         (write_output): Remove hash_table and hash_size vars and name_insert
10103         nested function.
10105 2007-07-24  Roland McGrath  <roland@redhat.com>
10107         * Makerules (install-others-programs-nosubdir): New target.
10108         (install-no-libc.a-nosubdir): Depend on it.
10110         * iconv/Makefile (install-others-programs): Set this instead of
10111         install-others.
10112         * login/Makefile (install-others-programs): Likewise.
10113         * posix/Makefile (install-others-programs): Likewise.
10115         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10116         dependencies.
10118 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10120         * io/Makefile (tests): Add tst-posix_fallocate.
10121         * io/tst-posix_fallocate.c: New file.
10123         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10124         __ASSUME_FALLOCATE.
10126 2007-07-22  Roland McGrath  <roland@frob.com>
10128         * hurd/getdport.c: Add missing copyright year update.
10130         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10131         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10133 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10135         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10137         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10138         O_CLOEXEC is needed.
10139         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10140         Avoid additional fcntl to set O_CLOEXEC if not needed.
10141         * nis/nss_compat/compat-initgroups.c: Likewise.
10142         * nis/nss_compat/compat-pwd.c: Likewise.
10143         * nis/nss_compat/compat-spwd.c: Likewise.
10145 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10147         [BZ #3665]
10148         * manual/errno.texi: Change ECANCELED value to 119.
10150         [BZ #4610]
10151         * mach/lock-intern.h: Include <sys/cdefs.h>.
10153         [BZ #4178]
10154         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10155         reading A.
10157         [BZ #4126]
10158         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10159         to __sigsuspend.
10161         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10163 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10165         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10166         `__ASSEMBLER__'.
10167         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10169 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10171         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10172         descriptor received from nscd.
10174         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10176         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10177         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10178         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10179         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10180         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10181         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10183 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10185         [BZ #4816]
10186         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10188         [BZ #4813]
10189         * login/forkpty.c (forkpty): Close master and slave fds on
10190         fork failure.  Patch by
10191         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10193 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10195         * include/features.h (__USE_ISOC95): New define.
10196         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10197         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10198         for -std=iso9899:199409.
10199         * CONFORMANCE: Remove comments about unsupported AMD1.
10201 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10203         * sysdeps/ia64/sched_cpucount.c: New file.
10204         * sysdeps/powerpc/sched_cpucount.c: New file.
10206         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10207         __BEGIN_DECLS/__END_DECLS around the prototype.
10208         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10209         pointer to const cpu_set_t.
10211         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10212         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10213         __need_size_t and include stddef.h.
10214         * sysvipc/sys/msg.h: Likewise.
10215         * posix/sched.h: Likewise.
10216         * hurd/hurd/signal.h (__need_size_t): Define.
10218         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10219         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10220         no longer defines wint_t or wchar_t.
10222         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10223         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10224         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10225         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10226         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10227         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10228         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10229         * debug/printf_chk.c (__printf_chk): Likewise.
10230         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10231         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10233         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10234         Define.
10236         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10237         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10239 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10241         [BZ #4792]
10242         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10243         * malloc/malloc.h (realloc): Likewise.
10245         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10246         if one of proc_file_chain streams has that fileno.
10247         * stdio-common/Makefile (tests): Add tst-popen2.
10248         * stdio-common/tst-popen2.c: New test.
10250 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10252         * elf/ldconfig.c: Allow GPLv2 or any later version.
10253         * elf/readlib.c: Likewise.
10254         * elf/chroot_canon.c: Likewise.
10255         * elf/cache.c: Likewise.
10256         * nscd/mem.c: Likewise.
10257         * nscd/getpwuid_r.c: Likewise.
10258         * nscd/grpcache.c: Likewise.
10259         * nscd/aicache.c: Likewise.
10260         * nscd/getsrvbynm_r.c: Likewise.
10261         * nscd/nscd.c: Likewise.
10262         * nscd/servicescache.c: Likewise.
10263         * nscd/getsrvbypt_r.c: Likewise.
10264         * nscd/initgrcache.c: Likewise.
10265         * nscd/gethstbyad_r.c: Likewise.
10266         * nscd/gethstbynm2_r.c: Likewise.
10267         * nscd/getgrnam_r.c: Likewise.
10268         * nscd/nscd_setup_thread.c: Likewise.
10269         * nscd/getpwnam_r.c: Likewise.
10270         * nscd/gai.c: Likewise.
10271         * nscd/connections.c: Likewise.
10272         * nscd/dbg_log.c: Likewise.
10273         * nscd/cache.c: Likewise.
10274         * nscd/hstcache.c: Likewise.
10275         * nscd/nscd_conf.c: Likewise.
10276         * nscd/getgrgid_r.c: Likewise.
10277         * nscd/pwdcache.c: Likewise.
10278         * catgets/gencat.c: Likewise.
10279         * locale/programs/linereader.h: Likewise.
10280         * locale/programs/locarchive.c: Likewise.
10281         * locale/programs/ld-paper.c: Likewise.
10282         * locale/programs/locfile-kw.h: Likewise.
10283         * locale/programs/ld-address.c: Likewise.
10284         * locale/programs/xmalloc.c: Likewise.
10285         * locale/programs/ld-time.c: Likewise.
10286         * locale/programs/localedef.c: Likewise.
10287         * locale/programs/simple-hash.c: Likewise.
10288         * locale/programs/xstrdup.c: Likewise.
10289         * locale/programs/ld-numeric.c: Likewise.
10290         * locale/programs/locfile-kw.gperf: Likewise.
10291         * locale/programs/ld-collate.c: Likewise.
10292         * locale/programs/charmap-kw.gperf: Likewise.
10293         * locale/programs/charmap.h: Likewise.
10294         * locale/programs/charmap-kw.h: Likewise.
10295         * locale/programs/config.h: Likewise.
10296         * locale/programs/locfile.c: Likewise.
10297         * locale/programs/ld-ctype.c: Likewise.
10298         * locale/programs/charmap.c: Likewise.
10299         * locale/programs/ld-messages.c: Likewise.
10300         * locale/programs/repertoire.h: Likewise.
10301         * locale/programs/locale.c: Likewise.
10302         * locale/programs/ld-name.c: Likewise.
10303         * locale/programs/linereader.c: Likewise.
10304         * locale/programs/locfile.h: Likewise.
10305         * locale/programs/3level.h: Likewise.
10306         * locale/programs/ld-monetary.c: Likewise.
10307         * locale/programs/ld-measurement.c: Likewise.
10308         * locale/programs/charmap-dir.c: Likewise.
10309         * locale/programs/ld-identification.c: Likewise.
10310         * locale/programs/localedef.h: Likewise.
10311         * locale/programs/charmap-dir.h: Likewise.
10312         * locale/programs/repertoire.c: Likewise.
10313         * locale/programs/simple-hash.h: Likewise.
10314         * locale/programs/ld-telephone.c: Likewise.
10315         * locale/programs/locale-spec.c: Likewise.
10316         * locale/programs/locfile-token.h: Likewise.
10317         * posix/getconf.c: Likewise.
10318         * iconv/dummy-repertoire.c: Likewise.
10319         * iconv/iconv_charmap.c: Likewise.
10320         * iconv/iconvconfig.c: Likewise.
10321         * iconv/iconv_prog.c: Likewise.
10322         * malloc/memusagestat.c: Likewise.
10323         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10325 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10327         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10328         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10329         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10330         check for the first argument.
10332 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10334         [BZ #4775]
10335         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10336         (__tgmath_real_type): Fix if expr is const int or other const
10337         qualified integral type.
10338         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10339         expressions and handle const qualified arguments.
10340         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10341         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10342         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10343         statement expressions.
10344         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10345         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10346         (__TGMATH_UNARY_IMAG): Define.
10347         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10348         * math/Makefile (tests): Add test-tgmath2.
10349         (CFLAGS-test-tgmath2.c): Add.
10350         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10351         count_cfloat, count_cldouble): New variables.
10352         (NCCALLS): Define.
10353         (main): Check number of complex calls as well.
10354         (F(compile_test)): Add complex tests and tests with const qualified
10355         arguments.
10356         (y, z, ccount): Define.
10357         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10358         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10359         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10360         F(cproj)): New functions.
10361         * math/test-tgmath2.c: New test.
10363 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10365         [BZ #4776]
10366         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10367         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10368         instead output ".".
10369         * dlfcn/Makefile (distribute): Add glreflib3.c.
10370         (module-names): Add glreflib3.
10371         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10372         glreflib1.so.
10373         (LDFLAGS_glreflib3.so): New.
10374         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10375         glreflib1.so.
10376         * dlfcn/glreflib3.c: New file.
10378         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10379         returned -1, return NULL.
10380         * intl/explodename.c (_nl_explode_name): Return -1 if
10381         _nl_normalize_codeset failed.
10383 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10385         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10386         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10387         and avoid branch misspredicts for > 31 bytes memset case.
10388         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10389         Remove toc ref to __cache_line_size.
10391         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10392         to get ISA-V2.0 branch hints.
10393         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10394         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10395         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10396         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10397         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10398         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10399         Remove toc ref to __cache_line_size.
10401         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10402         Include math_ldbl_opt.h.
10404 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10406         [BZ #4773]
10407         * time/strptime_l.c (__strptime_internal): Implement greedy
10408         matching of weekday and month names.
10410 2007-07-09  Roland McGrath  <roland@redhat.com>
10412         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10413         (ELF_NOTE_ABI): Use it.
10414         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10416 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10418         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10419         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10421 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10423         [BZ #4745]
10424         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10425         in loop to look for conversion specifier to avoid testing of
10426         wrong errno value.
10427         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10428         * stdio-common/bug18.c: New file.
10429         * stdio-common/bug18a.c: New file.
10430         * stdio-common/bug19.c: New file.
10431         * stdio-common/bug19a.c: New file.
10433 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10435         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10436         running awk script.
10438 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10440         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10441         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10442         Return NULL if mmap failed instead of asserting it does not.
10443         (calloc): Check for integer overflow.
10445         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10446         than LONG_MAX / 10.
10448 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10450         [BZ #4702]
10451         * nis/nss-default.c: Include errno.h.
10452         (init): Preserve errno.
10454 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10456         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10458 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10460         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10462 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10464         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10466 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10468         * sysdeps/s390/dl-procinfo.c: New file.
10469         * sysdeps/s390/dl-procinfo.h: New file.
10470         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10472 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10474         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10475         in PT_NOTE segments with multiple notes.
10476         * elf/readelflib.c (process_elf_file): Likewise.
10478 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10480         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10481         ISO C compliant.
10483 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10485         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10487 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10489         * include/link.h: Don't include rtld-lowlevel.h.
10490         (struct link_map): Remove l_scope_lock.
10491         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10492         (_dl_scope_free_list): New field (variable) in _rtld_global.
10493         (DL_LOOKUP_SCOPE_LOCK): Remove.
10494         (_dl_scope_free): New prototype.
10495         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10496         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10497         (_dl_profile_fixup): Likewise.
10498         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10499         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10500         THREAD_GSCOPE_RESET_FLAG around it.
10501         * elf/dl-close.c (_dl_close_worker): Don't use
10502         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10503         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10504         scopes were queued or if l_scope_mem has been abandoned.
10505         * elf/dl-open.c (_dl_scope_free): New function.
10506         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10507         * elf/dl-support.c (_dl_scope_free_list): New variable.
10508         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10509         Remove DL_LOOKUP_SCOPE_LOCK handling.
10510         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10511         handling.
10512         * elf/dl-object.c (_dl_new_object): Don't use
10513         __rtld_mrlock_initialize.
10515 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10517         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10518         to fill in holes
10519         (rtld_global_ro): Likewise.
10521 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10523         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10524         Move PT_LOAD checking to...
10525         (_dl_addr_inside_object): ... here, new function.
10526         * elf/dl-sym.c (do_sym): If not l_contiguous,
10527         call _dl_addr_inside_object.
10528         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10529         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10530         * elf/dl-open.c (dl_open_worker): Likewise.
10531         (_dl_addr_inside_object): New function if IS_IN_rtld.
10532         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10533         holes are present or are PROT_NONE protected.
10534         * include/link.h (struct link_map): Add l_contiguous field.
10535         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10537 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10538             Tomas Janousek  <tjanouse@redhat.com>
10539             Ulrich Drepper  <drepper@redhat.com>
10541         [BZ #4647]
10542         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10543         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10544         socket.
10545         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10546         unused member a bitmap.
10547         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10548         servers are configured.
10550 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10552         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10554 2007-06-17  Andreas Schwab  <schwab@suse.de>
10556         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10558 2007-06-16  Andreas Jaeger  <aj@suse.de>
10560         [BZ #4125]
10561         * sysdeps/unix/sysv/linux/sys/ptrace.h
10562         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10563         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10564         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10565         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10566         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10567         Define.
10568         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10569         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10570         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10571         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10573 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10575         [BZ #4599]
10576         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10577         determining whether there are IPv4/IPv6 addresses, ignore loopback
10578         addresses.
10580 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10582         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10583         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10584         as the return type.  Change type of "r" variable to CMPtype.
10585         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10586         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10587         * soft-fp/gedf2.c (__gedf2): Likewise.
10588         * soft-fp/gesf2.c (__gesf2): Likewise.
10589         * soft-fp/getf2.c (__getf2): Likewise.
10590         * soft-fp/ledf2.c (__ledf2): Likewise.
10591         * soft-fp/lesf2.c (__lesf2): Likewise.
10592         * soft-fp/letf2.c (__letf2): Likewise.
10593         * soft-fp/unorddf2 (__unorddf2): Likewise.
10594         * soft-fp/unordsf2 (__unordsf2): Likewise.
10595         * soft-fp/unordtf2 (__unordtf2): Likewise.
10597 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10599         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10600         make sure gcc doesn't mess around with this.
10602 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10604         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10606 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10608         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10609         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10610         at most once per _dl_close_worker.
10612 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10614         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10615         __sched_cpucount as const.
10616         * posix/sched_cpucount.c: Adjust.
10618         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10619         instruction for counting bits.
10620         * sysdeps/x86_64/sched_cpucount.c: New file.
10622 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10624         * configure.in: Avoid variable named BASH.
10625         * config.make.in: Likewise.
10626         Patch in part by Mike Frysinger.
10628 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10630         [BZ #4586]
10631         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10632         pseudo-zeros as zero.
10633         * sysdeps/x86_64/ldbl2mpn.c: New file.
10634         * sysdeps/ia64/ldbl2mpn.c: New file.
10636 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10638         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10639         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10640         Remove unreachable code at the end.
10642 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10644         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10645         ldbl-128ibm in comment.
10646         (fpclassifyl): Correct classification of denormals.
10647         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10648         return value for MIN denormal. Rewrite using long double math too
10649         correctly handle denormals and canonicalize the results.
10651 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10653         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10654         (__mpn_construct_long_double): Fix conversion where result ought
10655         to be smaller than __LDBL_MIN__, or the low double should be
10656         denormal.  Fix decision where to negate low double - honor round
10657         to even rules.
10658         * stdio-common/tst-sprintf2.c: Include string.h.
10659         (COMPARE_LDBL): Define.
10660         (TEST): Also test whether a string hexadecimal float representation
10661         can be parsed back to the number.
10662         (main): Add a couple of further tests.
10664 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10666         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10667         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10668         is non-zero, but smaller than 2 * __DBL_MIN__.
10669         * stdio-common/tst-sprintf2.c: New test.
10670         * stdio-common/Makefile (tests): Add tst-sprintf2.
10672         * math/test-misc.c (main): Don't run last batch of tests with
10673         IBM long double format.
10675 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10677         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10678         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10679         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10680         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10681         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10682         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10683         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10684         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10685         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10686         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10689         New file.
10690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10691         New file.
10692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10693         New file.
10694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10695         New file.
10696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10697         New file.
10698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10700         New file.
10701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10702         New file.
10703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10704         New file.
10705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10706         New file.
10707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10708         New file.
10710 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10712         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10714         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10716         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10717         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10718         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10719         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10721 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10723         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10724         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10725         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10726         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10727         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10728         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10729         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10730         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10732 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10734         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10735         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10736         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10737         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10739 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10741         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10742         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10744 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10746         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10747         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10748         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10749         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10751 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10753         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10754         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10756 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10758         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10759         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10761         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10762         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10763         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10764         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10766 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10768         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10769         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10770         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10771         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10773 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10775         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10776         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10777         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10778         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10779         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10780         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10782 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10784         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10785         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10786         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10787         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10789 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10791         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10792         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10793         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10794         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10795         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10797         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10798         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10799         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10800         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10801         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10802         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10803         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10804         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10805         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10806         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10808 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10810         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10811         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10813 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10815         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10816         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10818 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10820         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10821         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10822         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10823         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10824         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10825         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10826         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10827         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10828         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10829         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10831 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10833         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10835 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10837         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10838         branch miss-predicts. Ensure that cache line crossing does not impact
10839         dispatch grouping.
10841 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10843         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10844         "../../powerpc32/power4/memcopy.h".
10845         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10846         "../../powerpc32/power4/wordcopy.c".
10848 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10850         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10851         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10852         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10853         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10854         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10855         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10857 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10859         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10861 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10863         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10864         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10865         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10866         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10867         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10868         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10869         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10870         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10872 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10874         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10876 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10878         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10879         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10880         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10881         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10882         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10883         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10884         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10886 2007-05-29  Roland McGrath  <roland@redhat.com>
10888         * po/Makefile (po-sed-cmd): New variable.
10889         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10891 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10893         * crypt/md5-crypt.c: Fix comment.
10895         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10896         of crashing.  When this is the case or if the reply is malformed,
10897         don't try to close the new file descriptor since it does not
10898         exist.
10899         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10901 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10903         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10904         if __NR_utimensat is not defined.
10906 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10908         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10910 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10912         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10913         (open): Fix comment typos.  Don't call __open_2 if flags
10914         is a compile time constant without O_CREAT.
10915         (__open64_2): Add nonnull attribute.
10916         (open64): Fix comment typos.  Don't call __open64_2 if flags
10917         is a compile time constant without O_CREAT.
10918         (__openat_2): Add nonnull attribute, fix nonnull attribute
10919         on redirect.
10920         (openat): Fix comment typos.  Don't call __openat_2 if flags
10921         is a compile time constant without O_CREAT.
10922         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10923         on redirect.
10924         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10925         is a compile time constant without O_CREAT.
10927 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10929         * Makerules (sysd-rules): Define PTW for ptw-* files.
10930         * Versions: Define GLIBC_2.7 for libc.
10931         * include/stdio.h: Declare __fortify_fail.
10932         * debug/fortify_fail.c: New file.
10933         * debug/Makefile (routines): Add fortify_fail.
10934         * debug/chk_fail.c: Use __fortify_fail.
10935         * debug/stack_chk_fail.c: Likewise.
10936         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10937         __openat64_2 for GLIBC_2.7.
10938         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10939         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10940         and fails if necessary.
10941         * io/open64.c: Likewise.
10942         * io/openat.c: Likewise.
10943         * io/openat64.c: Likewise.
10944         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10945         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10946         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10947         * io/bits/fcntl2.h: New file.
10948         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10949         __openat64_2.
10950         * include/bits/fcntl2.h: New file.
10951         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10952         Add open_2.
10953         * sysdeps/unix/sysv/linux/open_2.c: New file.
10955 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10957         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10958         as second parameter to handle_intel.
10960         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10961         the entry.
10963         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10964         handling to ...
10965         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10966         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10967         cacheinfo.
10968         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10969         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10970         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10972         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10974 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10976         [BZ #4525]
10977         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10978         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10979         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10981         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10983         [BZ #4514]
10984         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10985         reinitialize workend at the start of each do_positional format spec
10986         loop, free workstart before do_positional loops.
10987         (printf_unknown): Fix size of work_buffer.
10988         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10990         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10991         (public_sET_STATe): If ms->version < 3, put all chunks into
10992         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10993         chunks.
10995         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10996         * malloc/hooks.c: Likewise.
10997         * malloc/arena.c: Likewise.
10998         * malloc/malloc.c (do_check_malloc_state): Don't assert
10999         n_mmaps is not greater than n_mmaps_max.  This removes the need
11000         for the previous change.
11002         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11003         2007-05-07 commit.
11005 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11007         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11008         Define for kernel >= 2.6.22.
11010 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11012         * elf/dl-close.c (_dl_close_worker): When removing object from
11013         global scope, wait for all lookups to finish afterwards.
11014         * elf/dl-open.c (add_to_global): When global scope array must
11015         grow, allocate a new one and free old array only after all
11016         lookups finish.
11017         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11018         (_dl_lookup_symbol_x): Likewise.
11019         * elf/dl-support.c: Define _dl_wait_lookup_done.
11020         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11021         _dl_wait_lookup_done.
11023         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11024         not overlapping with arena.
11026         * malloc/mcheck.c (reallochook): If size==0, free the block.
11028         * rt/tst-shm.c: Use fstat64 instead of fstat.
11030         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11031         __NR_sync_file_range is not defined.
11033 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11035         Dummy files to prevent stub versions from being used.
11036         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11037         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11038         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11039         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11041         * version.h (VERSION): Set to 2.6.90.
11043 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11045         * version.h (VERSION): Define to 2.6.
11046         * include/features.h (__GLIBC_MINOR__): Define to 6.
11048         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11050         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11051         sizes.
11053 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11055         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11056         number of mmaps.  n_mmaps_max is the target.
11057         * malloc/hooks.c: Likewise.
11058         * malloc/arena.c: Likewise.
11060 2007-05-12  Andreas Jaeger  <aj@suse.de>
11062         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11063         getpid.
11065 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11067         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11068         adding new variables.
11070         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11071         optimize.  Completely extend global scope array before making the
11072         new entries visible.
11074 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11076         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11077         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11078         tst-getcpu.
11080         * include/link.h: Move l_version and l_nversion members around to
11081         fill gaps.
11083         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11085         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11086         (__sched_setaffinity_new): If syscall was successful and
11087         RESET_VGETCPU_CACHE is defined, use it before returning.
11088         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11090         * io/sys/stat.h: Make sure struct timespec is defined for
11091         __USE_ATFILE.
11093         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11094         UTIME_OMIT.
11095         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11096         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11097         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11098         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11099         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11100         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11101         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11102         * io/sys/stat.h: Declare utimensat, futimens.
11103         * io/utimensat.c: New file.
11104         * io/futimens.c: New file.
11105         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11106         * sysdeps/unix/sysv/linux/futimens.c: New file.
11107         * io/Makefile (routines): Add utimensat, futimens.
11108         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11109         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11110         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11111         available.
11113         * include/sys/cdefs.h: Redefine __nonnull so that test for
11114         incorrect parameters in the libc code itself are not omitted.
11116 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11118         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11119         exception in addition to inexact when asked to raise only FE_INEXACT.
11121         [BZ #3427]
11122         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11123         in *envp.
11125 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11127         [BZ #4403]
11128         * string/strfry.c (strfry): Make result more random.
11130 2007-05-07  Richard Henderson  <rth@redhat.com>
11132         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11133         if __NO_LONG_DOUBLE_MATH.
11134         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11135         available in the compiler, add .arch directive to the assembly.
11137 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11139         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11140         compat_symbol to GLIBC_2_1.
11141         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11142         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11143         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11144         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11145         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11146         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11147         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11148         libc, not libm.
11149         (__isnanl): New compat_symbol.
11151 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11152             Jakub Jelinek  <jakub@redhat.com>
11154         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11155         (new_heap): Initialize mprotect_size.
11156         (grow_heap): When growing, only mprotect from mprotect_size till
11157         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11158         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11160 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11161             Peter Bergner  <bergner@us.ibm.com>
11163         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11164         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11165         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11166         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11167         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11168         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11169         Call __fe_mask_env() if all FP exceptions disabled.
11170         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11171         from old FPSCR to new fenv to propagate DFP rounding modes.
11172         Call __fe_mask_env() if FP exceptions previously enabled.
11173         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11174         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11175         transitioning from all exceptions disabled to any exception enabled
11176         or visa versa.
11177         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11178         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11179         when transitioning from all exceptions disabled to any exception
11180         enabled or visa versa.
11181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11188 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11190         [BZ #4465]
11191         * posix/unistd.h: Remove __THROW from fdatasync.
11193 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11195         [BZ #4465]
11196         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11198 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11200         * stdio-common/vfprintf.c (process_string_arg): Optimize
11201         ridiculous precision in wide char code printing multi-byte string.
11202         Reported by Jim Meyering <jim@meyering.net>.
11204         [BZ #4131]
11205         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11206         boundaries to work around systems with overlapping binary loading.
11207         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11209 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11211         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11212         __mbsnrtowcs after last change.
11214         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11215         (get_ident): Likewise.
11217 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11219         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11220         with setting the sticky bit.
11221         * math/test-misc.c (main): Add more truncation tests.
11223 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11225         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11226         double in the function declaration.
11227         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11228         double in the function declaration.
11229         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11230         float in the function declaration.
11231         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11232         float in the function declaration.
11234         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11235         denormal operands.  Do not generate FP_EX_DENORM exception.
11236         (FP_UNPACK_RAW_EP): Ditto.
11237         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11238         undefined _FP_UNPACK_RAW_E.
11239         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11240         undefined _FP_UNPACK_RAW_EP.
11241         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11242         undefined _FP_PACK_RAW_E.
11243         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11244         undefined _FP_PACK_RAW_EP.
11246         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11247         _FP_FRAC_COPY_2.
11248         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11249         _FP_FRAC_COPY_4.
11251 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11252             Jakub Jelinek  <jakub@redhat.com>
11254         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11255         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11256         this case.
11257         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11259 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11261         * math/test-misc.c (main): Add tests for rounding long double
11262         values close to smallest double denormalized value to double.
11264 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11266         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11267         condition for truncating to 0.  Set sticky bit for such
11268         truncation.
11270 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11272         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11273         fixed length array for ignore.
11275 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11277         [BZ #4438]
11278         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11279         stack for large precisions.
11280         * stdio-common/test-vfprintf.c (main): Add test for large
11281         precision.
11283 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11285         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11286         for exponent 0.
11287         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11289         [BZ #4439]
11290         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11291         account in the size check.
11292         * resolv/tst-inet_ntop.c: New test.
11293         * resolv/Makefile (tests): Add tst-inet_ntop.
11295 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11296             Jakub Jelinek  <jakub@redhat.com>
11298         [BZ #4349]
11299         * malloc/malloc.c: Keep separate list for first blocks on the bin
11300         lists with a given size.  This helps skipping over list elements
11301         we know won't fit in two places.
11302         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11304 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11306         [BZ #4102]
11307         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11308         label to Teredo tunnel addresses 2001://32.
11310 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11312         * locale/programs/ld-collate.c (collate_read): Allow order_start
11313         after copy.
11315         * locale/programs/ld-collate.c (collate_read): Fix printing of
11316         error message.
11318         [BZ #3213]
11319         * locale/C-translit.h.in: Add entry for U2044.
11321         [BZ #4342]
11322         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11323         hexa-decimal floats without exponent.
11324         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11326 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11328         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11329         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11330         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11331         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11332         GLIBC_2.6.
11333         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11334         Add sched_getcpu.
11336 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11338         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11339         of 0 after the out_fail label.
11341 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11343         [BZ #4406]
11344         * iconv/gconv_charset.h (strip): Allow ':'.
11345         * iconv/iconv_open.c (iconv_open): Adjust comment.
11347 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11349         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11350         version.
11352 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11354         [BZ #4381]
11355         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11356         alignment of buffer and tmp_buffer.
11357         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11358         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11359         alignment of buffer.
11360         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11361         bigger than INT_MAX.
11362         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11363         h_errnop arguments.  Fail if buflen is too small.
11364         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11366 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11368         [BZ #4405]
11369         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11370         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11372 2007-04-22  Roland McGrath  <roland@redhat.com>
11374         * elf/elf.h (NT_PRXFPREG): New macro.
11376 2007-04-19  Andreas Jaeger  <aj@suse.de>
11378         [BZ #3905]
11379         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11380         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11381         Added.
11383 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11385         * include/sys/mman.h: Mark madvise hidden.
11386         * misc/madvise.c: Add libc_hidden_def.
11388 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11390         * nis/nis_domain_of.c (__nis_domain_of): New function.
11391         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11392         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11393         * nis/nis_call.c (rec_dirsearch): Likewise.
11394         (first_shoot): Likewise.  Remove search_parent_first argument.
11395         (struct nis_server_cache): Rename search_parent_first field
11396         to search_parent.
11397         (nis_server_cache_search, nis_server_cache_add): Rename
11398         search_parent_first argument to search_parent.
11399         (__nisfind_server): Likewise.  If search_parent, call
11400         __nis_domain_of.
11402 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11404         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11406 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11408         [BZ #4368]
11409         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11411 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11413         [BZ #4364]
11414         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11416 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11418         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11419         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11420         current number of locales in SUPPORTED.
11421         (create_archive): Initialize serial.
11422         (enlarge_archive): Preserve aliases rather than duplicating
11423         their locrecs.
11425 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11427         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11428         after _IO_un_link, not before it.
11430         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11431         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11432         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11434 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11436         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11437         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11438         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11439         Remove __THROW.
11440         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11441         _IO_file_xsgetn_maybe_mmap): Likewise.
11442         * libio/oldfileops.c (old_do_write): Likewise.
11443         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11444         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11445         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11446         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11447         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11448         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11449         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11450         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11451         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11452         _IO_file_underflow, _IO_file_underflow_mmap,
11453         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11454         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11455         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11456         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11457         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11458         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11459         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11460         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11461         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11462         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11463         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11464         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11465         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11466         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11467         _IO_adjust_column_internal, _IO_default_uflow_internal,
11468         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11469         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11470         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11471         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11472         _IO_file_close_it_internal, _IO_file_underflow_internal,
11473         _IO_file_overflow_internal, _IO_file_attach_internal,
11474         _IO_file_fopen_internal, _IO_file_sync_internal,
11475         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11476         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11477         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11478         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11479         _IO_seekpos_unlocked): Likewise.
11480         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11481         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11483 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11485         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11486         argument in xmalloc size computation.
11488 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11490         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11491         math_opt_barrier and math_force_eval macros.
11493 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11495         [BZ #3306]
11496         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11497         * sysdeps/i386/fpu/math_private.h: New file.
11498         * sysdeps/x86_64/fpu/math_private.h: New file.
11499         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11500         math_force_eval macros.  Use "+m" constraint on asm rather than
11501         "=m" and "m".
11502         * math/s_nextafter.c (__nextafter): Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11504         Likewise.
11505         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11506         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11507         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11508         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11509         math_opt_barrier and math_force_eval macros.
11510         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11511         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11512         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11513         (__nexttoward): Use math_opt_barrier and
11514         math_force_eval macros.  Use "+m" constraint on asm rather than
11515         "=m" and "m".  Only use asm to force double result if
11516         FLT_EVAL_METHOD is 2.
11517         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11518         (__nexttowardf): Use math_opt_barrier and
11519         math_force_eval macros.  Use "+m" constraint on asm rather than
11520         "=m" and "m".  Only use asm to force double result if
11521         FLT_EVAL_METHOD is not 0.
11522         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11523         (__nexttowardf): Use math_opt_barrier and
11524         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11525         x to float using asm.
11526         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11527         (__nldbl_nexttowardf): Use math_opt_barrier and
11528         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11529         x to float using asm.
11530         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11531         (__nexttowardf): Use math_opt_barrier and math_force_eval
11532         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11533         * math/bug-nextafter.c (zero, inf): New variables.
11534         (main): Add new tests.
11535         * math/bug-nexttoward.c (zero, inf): New variables.
11536         (main): Add new tests.
11538 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11540         [BZ #3427]
11541         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11542         exceptions both in SW and MXCSR.
11543         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11544         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11545         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11546         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11547         in MXCSR if SSE is available.
11548         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11549         and ldsodefs.h.
11550         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11551         Fix comment typo.
11552         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11553         Return 0 rather than 1.
11554         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11555         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11556         * math/test-fenv.c (feholdexcept_tests): New function.
11557         (main): Call it.
11559 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11561         [BZ #3427]
11562         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11563         in SW.
11565 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11567         [BZ #4344]
11568         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11569         Reported by David Anderson <davea42@earthlink.net>.
11571 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11573         * posix/sys/wait.h: Remove unnecessary forward declaration.
11575 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11577         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11578         with obj->do_servers after first_shoot.
11580 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11582         * posix/Makefile (routines): Add sched_cpucount.
11583         (tests): Add tst-cpucount.
11584         * posix/sched_cpucount.c: New file.
11585         * posix/tst-cpucount.c: New file.
11586         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11587         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11588         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11589         * posix/sched.h: Define CPU_COUNT.
11591 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11593         * posix/fnmatch.c (STRUCT): Define.
11594         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11595         * posix/fnmatch_loop.c (struct STRUCT): New type.
11596         (FCT): Add ends argument.  If ends != NULL and normal * is
11597         seen in the pattern, store current pattern and string pointers
11598         and return.  Adjust recursive calls.
11599         (EXT): Adjust FCT callers.
11600         (STRUCT): Undef at the end of the file.
11601         * posix/Makefile (tests): Add tst-fnmatch2.
11602         * posix/tst-fnmatch2.c: New test.
11604 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11606         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11607         and 1 on failure.
11609         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11610         Change last argument to unsigned int.
11612 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11614         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11616 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11618         * config.h.in (HAVE_LIBCAP): Add.
11619         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11620         sys/capabilities.h.
11621         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11622         free_caps.  Cast away const from 4th cap_set_flag argument.
11624 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11626         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11627         GLIBC_2.6.
11628         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11629         Add sync_file_range.
11630         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11632 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11634         * sysdeps/powerpc/bits/atomic.h
11635         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11636         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11637         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11638         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11639         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11640         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11641         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11642         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11643         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11644         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11645         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11646         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11647         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11648         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11649         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11650         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11651         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11652         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11653         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11654         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11656 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11658         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11659         (__cache_line_size): Define the variable here.  Add
11660         attribute_hidden, remove weak_extern.
11661         (__libc_start_main): Set __cache_line_size
11662         unconditionally.
11663         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11664         (__cache_line_size): Define the variable here.  Add
11665         attribute_hidden, remove weak_extern.
11666         (DL_PLATFORM_AUXV): Set __cache_line_size
11667         unconditionally.
11668         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11669         weak_extern, add attribute_hidden.
11670         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11671         defined in ld.so.
11672         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11673         definition.
11674         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11676 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11678         [BZ #4276]
11679         * timezone/africa: Update from tzdata2007d.
11680         * timezone/asia: Likewise.
11681         * timezone/australasia: Likewise.
11682         * timezone/backward: Likewise.
11683         * timezone/europe: Likewise.
11684         * timezone/iso3166.tab: Likewise.
11685         * timezone/leapseconds: Likewise.
11686         * timezone/northamerica: Likewise.
11687         * timezone/southamerica: Likewise.
11688         * timezone/zone.tab: Likewise.
11690         * timezone/private.h: Update from tzcode2007d.
11691         * timezone/zdump.c: Likewise.
11692         * timezone/zic.c: Likewise.
11694 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11696         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11697         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11698         variables.
11699         (nis_server_cache_search, nis_server_cache_add): New functions.
11700         (__nisfind_server): Use them.  Add dbp and flags argument, if
11701         call __nisbind_create.
11702         (__nisbind_create): Add server_used and current_ep arguments,
11703         only call __nis_findfastest if server_used is ~0.
11704         (__do_niscall2, __prepare_niscall): Adjust callers.
11705         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11706         ckey_cache_euid, ckey_cache_lock): New variables.
11707         (get_ckey): New function.
11708         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11709         __pmap_getnisport.  Save __pmap_getnisport result in
11710         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11711         key.
11712         * nis/nis_lookup.c (nis_lookup): Likewise.
11713         * nis/nis_table.c (nis_list): Likewise.
11714         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11715         prototypes.
11717         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11718         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11719         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11720         _nss_nisplus_getservbyport_r): Likewise.
11721         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11722         _nss_nisplus_getnetbyaddr_r): Likewise.
11723         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11724         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11725         _nss_nisplus_getntohost_r): Likewise.
11726         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11727         _nss_nisplus_getrpcbynumber_r): Likewise.
11729 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11731         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11732         * configure: Rebuilt.
11734         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11735         bit-fields.
11736         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11738 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11740         [BZ #2831]
11741         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11742         bit-fields.
11744 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11746         * nscd/gai.c: Include alloca.h.
11747         (__libc_use_alloca): Define.
11749 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11751         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11752         smaller scopes.
11753         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11754         (DL_DST_REQUIRED): Adjust user.
11756         * include/dlfcn.h (struct link_map): New forward decl.
11758         * inet/getnameinfo.c: Include stddef.h.
11759         (getnameinfo): Use offsetof.
11761         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11763         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11765         * string/strerror_l.c: Include stdlib.h.
11767         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11768         * config.make.in (gnu89-inline-CFLAGS): New variable.
11769         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11770         -std=gnu99.
11771         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11772         * argp/argp.h: Use it.
11773         * bits/mathinline.h: Likewise.
11774         * bits/sigset.h: Likewise.
11775         * bits/string.h: Likewise.
11776         * ctype/ctype.h: Likewise.
11777         * hurd/hurd.h: Likewise.
11778         * hurd/hurd/fd.h: Likewise.
11779         * hurd/hurd/port.h: Likewise.
11780         * hurd/hurd/signal.h: Likewise.
11781         * hurd/hurd/threadvar.h: Likewise.
11782         * hurd/hurd/userlink.h: Likewise.
11783         * io/sys/stat.h: Likewise.
11784         * libio/bits/stdio.h: Likewise.
11785         * libio/bits/stdio2.h: Likewise.
11786         * mach/lock-intern.h: Likewise.
11787         * mach/mach/mig_support.h: Likewise.
11788         * math/bits/cmathcalls.h: Likewise.
11789         * posix/bits/unistd.h: Likewise.
11790         * socket/bits/socket2.h: Likewise.
11791         * stdlib/bits/stdlib.h: Likewise.
11792         * stdlib/stdlib.h: Likewise.
11793         * string/argz.h: Likewise.
11794         * string/bits/string2.h: Likewise.
11795         * string/bits/string3.h: Likewise.
11796         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11797         * sysdeps/generic/inttypes.h: Likewise.
11798         * sysdeps/generic/machine-lock.h: Likewise.
11799         * sysdeps/generic/machine-sp.h: Likewise.
11800         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11801         * sysdeps/i386/i486/bits/string.h: Likewise.
11802         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11803         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11804         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11805         * sysdeps/mach/i386/machine-lock.h: Likewise.
11806         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11807         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11808         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11809         * sysdeps/s390/bits/string.h: Likewise.
11810         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11811         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11812         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11813         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11814         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11815         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11816         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11817         * wcsmbs/bits/wchar2.h: Likewise.
11818         * wcsmbs/wchar.h: Likewise.
11819         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11820         __extern_inline definition.
11822 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11824         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11825         NULL.
11827         [BZ #3919]
11828         * math/libm-test.inc (log_test): Test -Inf and NaN.
11829         (log10_test, log1p_test, log2_test): Test -Inf.
11830         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11831         FE_INVALID when argument is qNaN.
11832         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11833         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11834         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11835         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11836         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11837         testb $4, %ah and jump if non-zero.
11838         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11839         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11841         [BZ #4101]
11842         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11843         ancestors with the same depths.
11844         Patch by Niels Moeller <nisse@lysator.liu.se>.
11845         (filter_doc): Don't crash if argp is NULL.
11846         * argp/Makefile (tests): Add tst-argp2.
11847         * argp/tst-argp2.c: New test.
11849         [BZ #4130]
11850         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11851         open_not_cancel_2.
11852         (updwtmp_file): Likewise.
11854         [BZ #4181]
11855         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11856         (inet6_opt_append): Don't check extlen is big enough if extbuf
11857         is NULL.
11858         (inet6_opt_finish): Likewise.
11859         * inet/Makefile (tests): Add test-inet6_opt.
11860         * inet/test-inet6_opt.c: New test.
11862         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11863         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11864         NLMSG_ERR.  Instead use a page sized buffer.
11865         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11866         buffer.
11868 2007-03-14  Richard Henderson  <rth@redhat.com>
11870         * sysdeps/alpha/fpu/s_llround.c: New file.
11871         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11872         * sysdeps/alpha/fpu/s_lround.c: New file.
11873         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11874         * sysdeps/alpha/fpu/s_round.c: New file.
11875         * sysdeps/alpha/fpu/s_roundf.c: New file.
11876         * sysdeps/alpha/fpu/s_trunc.c: New file.
11877         * sysdeps/alpha/fpu/s_truncf.c: New file.
11879         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11880         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11881         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11882         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11883         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11884         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11886         * sysdeps/alpha/fpu/s_fmax.S: New file.
11887         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11888         * sysdeps/alpha/fpu/s_fmin.S: New file.
11889         * sysdeps/alpha/fpu/s_fminf.S: New file.
11890         * sysdeps/alpha/fpu/s_isnan.c: New file.
11891         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11892         * sysdeps/alpha/fpu/s_llrint.c: New file.
11893         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11894         * sysdeps/alpha/fpu/s_lrint.c: New file.
11895         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11896         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11897         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11899         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11900         (__fdimf, fdimf, __fdim, fdim): Remove.
11901         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11902         (__isnanf, __isnan, __isnanl): New.
11904 2007-03-13  Richard Henderson  <rth@redhat.com>
11906         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11908 2007-03-13  Richard Henderson  <rth@redhat.com>
11910         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11911         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11912         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11913         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11914         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11915         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11917 2007-03-13  Richard Henderson  <rth@redhat.com>
11919         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11920         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11921         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11922         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11923         Move to dl-auxv.h; initialize instead of extern weak.
11924         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11925         weak symbol.
11926         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11927         Extern instead of initialized.
11929 2007-03-13  Richard Henderson  <rth@redhat.com>
11931         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11932         __sigsuspend_nocancel.
11934 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11936         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11937         172.16/12 address range.
11939 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11941         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11942         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11943         message.
11945 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11947         [BZ #4069]
11948         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11949         earlier.
11950         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11952         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11953         for x qNaN and y either +-inf or non-integer value.
11954         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11955         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11956         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11958 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11960         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11961         from sysdep_headers.
11963 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11965         * time/tzfile.c (find_transition): Instead of a linear search try to
11966         guess the transition index, use a linear search if the result is at
11967         most 10 transitions away from the guess or binary search otherwise.
11969 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11971         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11972         memory reallocation.
11974 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11976         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11977         and fix some typos.
11978         Optimize use of TOLOWER.
11980         [BZ #3325]
11981         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11982         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11983         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11985         [BZ #3458]
11986         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11987         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11989         [BZ #4076]
11990         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11991         (open_dir_stream): Likewise.
11992         * io/Makefile (tests): Add bug-ftw5.
11993         * io/bug-ftw5.c: New file.
11995         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11996         * nscd/servicescache.c (cache_addserv): Likewise.
11998         * nscd/grpcache.c (cache_addgr): In case a record changed on
11999         refresh, adjust key_copy.
12001         [BZ #4074]
12002         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12003         refresh, adjust key_copy.
12005         [BZ #4070]
12006         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12007         special cases.
12008         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12010 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12012         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12013         optimization.
12015         * stdio-common/vfscanf.c: Small cleanups throughout.
12017 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12019         [BZ #3325]
12020         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12021         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12022         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12023         Patch by Jared Casper <jaredcasper@gmail.com>.
12025         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12026         * sysdeps/unix/opendir.c: Likewise.
12027         * sysdeps/unix/readdir.c: Likewise.
12029         [BZ #2211]
12030         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12031         point numbers.
12032         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12034         * stdio-common/vfscanf.c: Fix problems in width accounting.
12035         * stdio-common/tst-sscanf.c (double_tests): New tests.
12036         (main): Hook them up.
12038         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12039         More simplifications of floating-point reader.
12041         * stdio-common/Makefile (tests): Add tst-swscanf.
12042         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12043         testing.
12044         * stdio-common/tst-swscanf.c: New file.
12046 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12048         [BZ #2633]
12049         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12050         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12051         Remove using for __jmp_buf_tag.
12052         * locale/locale.h (struct lconv): Also define in std namespace.
12053         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12055         [BZ #3842]
12056         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12057         using __libc_enable_secure.
12059         [BZ #3818]
12060         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12062         [BZ #3745]
12063         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12064         of names for ellipsises.
12066         [BZ #3348]
12067         * malloc/memusage.sh: Cleanups.
12068         * debug/xtrace.sh: Quoting and trap changes.
12070 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12072         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12074         * locale/iso-3166.def: Update entry for Serbia.
12075         * locale/iso-4217.def: Define RSD, remove CSD.
12077         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12078         and 64-bit operations.
12080         [BZ #4040]
12081         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12082         16-bit operations.
12084         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12085         of writev.
12087 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12089         [BZ #3991]
12090         * assert/assert.h (assert): Simplify.
12091         (assert_perror): Likewise.
12092         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12094         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12095         reqdata.
12097         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12098         change: don't pass NULL in place of an integer.
12100 2007-02-02  Bruno Haible  <bruno@clisp.org>
12102         [BZ #3954]
12103         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12104         Add mapping for U+327E.
12105         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12106         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12107         mapping of 0xD9 0xE8.
12108         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12109         mapping of U+327E.
12110         Reported by Jungshik Shin <jungshik@google.com>.
12112         [BZ #3955]
12113         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12114         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12115         Reported by Jungshik Shin <jungshik@google.com>.
12117 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12119         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12120         byte variants.
12122         [BZ #4040]
12123         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12124         byte variants.  Patch mostly be tom@tommay.net.
12126 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12128         [BZ #3996]
12129         * posix/glob.c (attribute_hidden): Define if not defined.
12130         (glob): Unescape dirname, filename or username when needed and not
12131         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12132         is NULL.  Handle unescaped [ in pattern without closing ].
12133         Don't pass GLOB_CHECK down to recursive glob for directories.
12134         (__glob_pattern_type): New function.
12135         (__glob_pattern_p): Implement using __glob_pattern_type.
12136         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12137         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12138         Remove unreachable code.
12139         * posix/globtest.sh: Add a couple of new tests.
12141 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12143         * po/ru.po: Update from translation team.
12145 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12147         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12148         to the list of i486+ CPUs.
12149         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12151 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12153         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12154         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12155         references.
12157 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12159         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12161         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12162         * resolv/res_mkquery.c: Define __res_nopt.
12163         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12164         try adding EDNS0 record.
12165         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12166         EDNS0 record was send make sure we don't try it again.
12167         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12168         * include/resolv.h: Declare __res_nopt.
12170 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12172         [BZ #3944]
12173         * time/strptime_l.c (__strptime_internal): Set have_mon for
12174         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12175         have been computed from tm_yday and tm_year.  Don't crash
12176         in day_of_the_week or day_of_the_year if not have_mon
12177         and tm_mon contains bogus value.
12178         * time/Makefile (tests): Add tst-strptime3.
12179         * time/tst-strptime3.c: New test.
12181 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12183         [BZ #3957]
12184         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12185         bit for RE_HAT_LISTS_NOT_NEWLINE.
12186         (build_charclass_op): Remove bogus comment.
12187         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12188         * posix/bug-regex27.c: New test.
12189         * posix/bug-regex28.c: New test.
12191 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12193         * po/sv.po: Update from translation team.
12195 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12197         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12199 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12201         * include/locale.h (__uselocale): Add libc_hidden_proto.
12202         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12204         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12205         gettimeofday.
12207 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12209         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12210         returning.
12211         (PTR_DEMANGLE): Real definition now that it's not the same as
12212         PRT_MANGLE anymore.
12213         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12215         * string/strerror_l.c: New file.
12216         * string/Makefile (routines): Add strerror_l.
12217         * string/string.h: Declare strerror_l.
12218         * string/Versions: Export strerror_l for GLIBC_2.6.
12220 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12222         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12223         as parameter.  Construct request record.  Try sending request
12224         before the first poll use, it usually succeeds.  Adjust all
12225         callers.
12226         * nscd/nscd-client.h: Define MAXKEYLEN.
12227         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12229 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12231         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12232         from return value.
12233         * nscd/nscd_helper.c: Include string.h.
12234         (__nscd_cache_search): Remove const qualifier from return value.
12235         On strict alignment architectures check hash entry and data head
12236         alignment.
12237         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12238         mmapped data during GC cycle contains garbage.  If
12239         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12240         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12241         dropped to 0.
12242         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12243         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12244         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12245         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12246         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12248 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12250         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12252 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12254         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12255         names not numbers in cfi_*.
12257 2007-01-26  Andreas Jaeger  <aj@suse.de>
12259         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12260         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12261         Correct values of PER_HPUX and PER_OSF4.
12263 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12265         * elf/dl-minimal.c: Undefine _itoa first.
12266         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12267         * malloc/mtrace.c: Revert last change.
12268         * posix/wordexp.c: Likewise.
12270 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12272         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12273         and __geode__ to the list of i486+ CPUs.
12274         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12276 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12278         * stdio-common/_itoa.c: Include <limits.h>.
12279         * stdio-common/_itowa.c: Likewise.
12281 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12283         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12284         platforms.
12285         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12286         64-bit platforms.
12287         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12288         possible.
12289         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12290         if possible.
12292         [BZ #3902]
12293         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12294         * stdio-common/Makefile (tests): Add bug17.
12295         * stdio-common/bug17.c: New file.
12297 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12299         * iconvdata/brf.c: New file.
12300         * iconvdata/testdata/BRF: New file.
12301         * iconvdata/testdata/BRF..UTF8: New file.
12302         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12303         * iconvdata/Makefile: Add rules to build BRF.
12304         * iconvdata/TESTS: Add BRF entry.
12305         * iconvdata/gconv-modules: Likewise.
12306         * iconvdata/tst-tables.sh: Likewise.
12308 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12310         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12311         type `long long int', not `long int'.
12312         (wcstoq): Likewise.
12314 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12316         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12317         of values on 64-bit platforms which are too large.
12319 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12320             Joe Kerian  <jkerian@us.us.ibm.com>
12322         [BZ #2749]
12323         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12324         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12325         (__copysignl): Use signbit() for comparison.
12326         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12327         SET_LDOUBLE_WORDS64.
12329         [BZ #2423, #2749]
12330         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12331         (__ceill): Remove calls to fegetround(), fesetround().
12332         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12333         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12334         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12336 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12338         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12340         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12342 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12344         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12345         demangle pointer.
12346         * csu/libc-start.c: Likewise.
12348 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12350         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12351         really work anyway.
12353 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12355         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12356         users.
12357         (handle_request): Remove unnecessary tests.
12359         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12361 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12363         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12364         workbits in semi-raw fraction.
12366         * math/test-misc.c: Add new tests.
12368 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12370         * math/basic-test.c: Include test-skeleton.c.
12371         (TEST_TRUNC): Define.
12372         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12373         (main): Rename to ...
12374         (do_test): ...this.  Run new tests.
12375         (TEST_FUNCTION): Define.
12377 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12378             Joe Kerian  <jkerian@us.us.ibm.com>
12380         [BZ #2749]
12381         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12382         handling for high words.
12383         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12384         and overflow for infinity.
12386 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12388         * nscd/connections.c (handle_request): Add a __builtin_expect.
12390         * nscd/connections.c (serv2db): Change type into structure which
12391         also says whether this is a request for data.  Renamed to
12392         servinfo.  All users changed.
12393         (handle_request): Much simpler test whether we should search the cache.
12395         * nscd/connections.c (handle_request): Fix thinko in selinux test
12396         invocation.
12398         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12399         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12400         it before getting dl_load_lock and then relock.
12401         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12402         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12403         case we unlocked the scope.
12404         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12405         _dl_lookup_symbol_x in case we locked the scope.
12406         (_dl_profile_fixup): Likewise.
12407         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12408         set DL_LOOKUP_SCOPE_LOCK.
12410 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12412         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12413         CFLAGS-getsrvbynpt_r.c.
12414         * nscd/getsrvbynm_r.c: New file.
12415         * nscd/getsrvbypt_r.c: New file.
12416         * nscd/nscd_getserv_r.c: New file.
12417         * nscd/servicescache.c: New file.
12418         * nscd/Makefile (routines): Add nscd_getserv_r.
12419         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12420         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12421         CFLAGS-getsrvbypt_r.c.
12422         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12423         table.  Add entries for services database.
12424         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12425         services database.
12426         (dbs): Add .reset_res and servdb initialization.
12427         (serv2db): Add entries for services database.
12428         (verify_persistent_db): Accept dbnr == servdb.
12429         (invalidate_cache): Rewrite database name recognition to use a table.
12430         Call res_init() if .reset_res is set for database.
12431         (handle_request): Add code to handle services database.
12432         * nscd/gai.c: Don't define __getservbyname_r.
12433         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12434         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12435         (serv_response_header): Define.
12436         (struct datahead): Add serv_response_header member.
12437         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12438         using table.
12439         * nscd/nscd.conf: Add entries for services database.
12440         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12441         Declare serv_iov_disabled.
12442         Declare addservbyname, readdservbyname, addservbyport, and
12443         readdservbyport.
12444         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12445         (find_db): Fix error message.
12446         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12447         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12448         * nscd/selinux.c (perms): Add entries for services database.
12449         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12450         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12452         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12453         * nscd/hstcache.c: Likewise.
12454         * nscd/pwdcache.c: Likewise.
12456         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12457         computation of keylen.
12459         * include/string.h: Only redefine strndupa if this is really for
12460         libc code.
12462 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12464         * nscd/nscd_gethst_r.c: Minor cleanups.
12466         * nscd/connections.c (handle_request): Check selinux permissions
12467         for all non-admin commands.
12469         * sysdeps/i386/i486/bits/atomic.h: Define
12470         atomic_compare_and_exchange_val_acq,
12471         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12472         using __sync_* built-ins for gcc >= 4.1.
12473         * sysdeps/x86_64/bits/atomic.h: Likewise.
12475         [BZ #3840]
12476         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12477         and .oS.d files.
12479 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12481         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12482         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12483         (do_test): Check errno and exit(0) if ENOSYS.
12485 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12487         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12488         thousands separators.
12489         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12490         * stdlib/tst-strtod4.c: New test.
12492         [BZ #3855]
12493         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12494         hexadecimal digit should accept just the initial 0.
12495         * stdlib/tst-strtod2.c (tests): New variable.
12496         (do_test): Run several tests rather than just one.
12498 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12500         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12501         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12503 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12505         * io/fts.c: Make sure fts_cur is always valid after return from
12506         fts_read.
12507         Patch by Miloslav Trmac <mitr@redhat.com>.
12509 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12511         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12512         (R_MIPS_NUM): Bump by 1.
12514 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12516         * posix/execvp.c: Include alloca.h.
12517         (allocate_scripts_argv): Renamed to...
12518         (scripts_argv): ... this.  Don't allocate buffer here nor count
12519         arguments.
12520         (execvp): Use alloca if possible.
12521         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12522         * posix/tst-vfork3.c: New test.
12524 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12526         * string/Makefile (tst-strxfrm2-ENV): Define.
12527         * stdlib/Makefile (tst-strtod3-ENV): Define.
12529 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12531         * posix/getconf.c: Update copyright year.
12532         * nss/getent.c: Likewise.
12533         * iconv/iconvconfig.c: Likewise.
12534         * iconv/iconv_prog.c: Likewise.
12535         * elf/ldconfig.c: Likewise.
12536         * catgets/gencat.c: Likewise.
12537         * csu/version.c: Likewise.
12538         * elf/ldd.bash.in: Likewise.
12539         * elf/sprof.c (print_version): Likewise.
12540         * locale/programs/locale.c: Likewise.
12541         * locale/programs/localedef.c: Likewise.
12542         * nscd/nscd.c (print_version): Likewise.
12543         * debug/xtrace.sh: Likewise.
12544         * malloc/memusage.sh: Likewise.
12545         * malloc/mtrace.pl: Likewise.
12546         * debug/catchsegv.sh: Likewise.
12548 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12550         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12551         attempts.
12553 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12555         * posix/wordexp.c: Remove some unnecessary tests.
12557 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12559         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12560         blacklist the group till after we look it up.
12562 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12564         * include/atomic.h (atomic_forced_read): New macro.
12566 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12568         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12570 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12572         * nss/getXXbyYY_r.c: Include atomic.h.
12573         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12574         add atomic_write_barrier () in between.
12576         * stdlib/Makefile (tests): Add tst-makecontext.
12577         * stdlib/tst-makecontext.c: New test.
12579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12580         (__makecontext): Don't realign uc_mcontext.uc_regs.
12582 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12584         * elf/dl-support.c: Include dl-procinfo.h.
12585         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12586         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12587         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12588         Define.
12589         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12590         hardcoded constants.
12591         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12592         PPC_PLATFORM_* macros for array designators.
12594 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12596         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12597         names to the beginning.
12598         (_dl_powerpc_platforms): Add "power6x".
12599         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12600         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12601         (_DL_PLATFORMS_COUNT): Increase.
12602         (_dl_string_platform): Handle power6x case.
12603         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12604         PPC_FEATURE_POWER6_EXT): Define.
12605         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12607 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12609         [BZ #3747]
12610         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12611         [-2^31 .. 2^31) range.
12612         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12613         targets.
12614         * stdlib/tst-rand48-2.c: New test.
12615         * stdlib/Makefile (tests): Add tst-rand48-2.
12617 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12619         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12621 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12623         * misc/tst-pselect.c (do_test): Make sure the helper process is
12624         terminating when the test is aborted.
12626 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12628         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12629         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12630         Handle relatime mount option.
12632         [BZ #2337]
12633         * libio/Makefile (tests): Add tst-setvbuf1.
12634         * libio/tst-setvbuf1.c: New file.
12636 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12638         [BZ #2337]
12639         * libio/genops.c (__uflow): Fix a typo.
12640         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12641         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12642         the narrow buffer size.
12644 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12646         [BZ #2337]
12647         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12648         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12649         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12650         in _flags.
12651         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12652         _IO_wstr_finish): Likewise.
12653         * libio/wmemstream.c (open_wmemstream): Likewise.
12654         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12655         even for wide streams.
12657 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12660         kernel-features.h.
12662 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12664         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12665         separators also if no non-zero digits found.
12666         * stdlib/Makefile (tests): Add tst-strtod3.
12668 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12670         [BZ #3632]
12671         * include/features.h: Fix comment about default value for
12672         _POSIX_C_SOURCE.
12674         [BZ #3664]
12675         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12676         empty parsed strings.
12677         * stdlib/Makefile (tests): Add tst-strtod2.
12678         * stdlib/tst-strtod2.c: New file.
12680         [BZ #3673]
12681         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12682         computation.
12683         * stdlib/Makefile (tests): Add tst-atof2.
12684         * stdlib/tst-atof2.c: New file.
12686         [BZ #3674]
12687         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12688         correctly if removing trailing zero of hex-float.
12689         * stdlib/Makefile (tests): Add tst-atof1.
12690         * stdlib/tst-atof1.c: New file.
12692 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12694         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12695         Start searching for next comma at p rather than rest.
12696         * misc/Makefile (tests): Add tst-mntent2.
12697         * misc/tst-mntent2.c: New test.
12699         * misc/getusershell.c (initshells): Check for integer overflows.
12700         Make strings buffer one bigger as fgets always succeeds when second
12701         argument is 1.  Don't use calloc for shells array.  Disallow
12702         / as shell.
12704 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12706         * malloc/memusage.c: Handle realloc with new size of zero and
12707         non-NULL pointer correctly.
12708         (me): Really write first record twice.
12709         (struct entry): Make format bi-arch safe.
12710         (dest): Write out more realloc statistics.
12711         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12713 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12715         * nis/nis_subr.c (nis_getnames): Revert last change.
12717 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12719         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12720         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12721         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12722         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12723         ENOTTY.
12724         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12725         * io/tst-ttyname_r.c: New test.
12727 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12729         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12731 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12733         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12734         jump table entries.
12736 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12738         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12739         `clone' function to ensure proper unwinding stop of gdb.
12740         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12742 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12744         * nscd/nscd.init: Remove obsolete and commented-out -S option
12745         handling.
12747 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12749         [BZ #3514]
12750         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12752         [BZ #3515]
12753         * manual/string.texi (strtok): Remove duplicate paragraph.
12755 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12757         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12758         libgcc not supporting `rflags' unwinding (register # >= 17).
12760 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12762         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12763         succeeded.
12765 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12766             Jakub Jelinek  <jakub@redhat.com>
12767             Jan Kratochvil  <jan.kratochvil@redhat.com>
12769         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12770         unwind information.
12771         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12772         'restore_rt' even in the 'signal' directory.
12773         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12775 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12777         [BZ #3559]
12778         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12779         malloc crashed.  Don't allocate memory unnecessarily in each
12780         loop.
12782 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12784         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12786 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12788         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12790 2006-11-18  Bruno Haible  <bruno@clisp.org>
12792         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12793         __sysconf only after having tried to call getgroups32.
12795 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12797         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12798         addresses for IPv4 queries if they can be mapped.
12800 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12802         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12803         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12804         (signmask): Add .size directive.
12805         (othermask): Add .type directive.
12807 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12809         * po/nl.po: Update from translation team.
12811         * timezone/zdump.c: Redo fix for BZ #3137.
12813 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12815         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12816         to first_unused after parsing :include: file.
12818 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12820         * timezone/africa: Update from tzdata2006o.
12821         * timezone/antarctica: Likewise.
12822         * timezone/asia: Likewise.
12823         * timezone/australasia: Likewise.
12824         * timezone/backward: Likewise.
12825         * timezone/europe: Likewise.
12826         * timezone/iso3166.tab: Likewise.
12827         * timezone/northamerica: Likewise.
12828         * timezone/southamerica: Likewise.
12829         * timezone/zone.tab: Likewise.
12831         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12832         on machines with 64-bit time_t.
12834         * timezone/checktab.awk: Update from tzcode2006o.
12835         * timezone/ialloc.c: Likewise.
12836         * timezone/private.h: Likewise.
12837         * timezone/scheck.c: Likewise.
12838         * timezone/tzfile.h: Likewise.
12839         * timezone/tzselect.ksh: Likewise.
12840         * timezone/zdump.c: Likewise.
12841         * timezone/zic.c: Likewise.
12843         [BZ #3483]
12844         * elf/ldconfig.c (main): Call setlocale and textdomain.
12845         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12847         [BZ #3480]
12848         * manual/argp.texi: Fix typos.
12849         * manual/charset.texi: Likewise.
12850         * manual/errno.texi: Likewise.
12851         * manual/filesys.texi: Likewise.
12852         * manual/lang.texi: Likewise.
12853         * manual/maint.texi: Likewise.
12854         * manual/memory.texi: Likewise.
12855         * manual/message.texi: Likewise.
12856         * manual/resource.texi: Likewise.
12857         * manual/search.texi: Likewise.
12858         * manual/signal.texi: Likewise.
12859         * manual/startup.texi: Likewise.
12860         * manual/stdio.texi: Likewise.
12861         * manual/sysinfo.texi: Likewise.
12862         * manual/syslog.texi: Likewise.
12863         * manual/time.texi: Likewise.
12864         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12866         [BZ #3465]
12867         * sunrpc/clnt_raw.c: Minimal message improvements.
12868         * sunrpc/pm_getmaps.c: Likewise.
12869         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12870         * nis/nis_print_group_entry.c: Likewise.
12871         * locale/programs/repertoire.c: Likewise.
12872         * locale/programs/charmap.c: Likewise.
12873         * malloc/memusage.sh: Likewise.
12874         * elf/dl-deps.c: Likewise.
12875         * locale/programs/ld-collate.c: Likewise.
12876         * libio/vswprintf.c: Likewise.
12877         * malloc/memusagestat.c: Likewise.
12878         * sunrpc/auth_unix.c: Likewise.
12879         * sunrpc/rpc_main.c: Likewise.
12880         * nscd/cache.c: Likewise.
12881         * locale/programs/repertoire.c: Unify output messages.
12882         * locale/programs/charmap.c: Likewise.
12883         * locale/programs/ld-ctype.c: Likewise.
12884         * locale/programs/ld-monetary.c: Likewise.
12885         * locale/programs/ld-numeric.c: Likewise.
12886         * locale/programs/ld-time.c: Likewise.
12887         * elf/ldconfig.c: Likewise.
12888         * nscd/selinux.c: Likewise.
12889         * elf/cache.c: Likewise.
12890         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12892         [BZ #3451]
12893         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12894         change atomic.
12895         (ceil): Likewise.
12897 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12899         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12900         if N is one bigger than return value.
12901         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12902         and l1 last arguments, if buf is defined, verify the return value
12903         equals to strlen (buf) and verify no byte beyond passed length
12904         is modified.
12906 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12908         * po/sv.po: Update from translation team.
12910 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12912         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12913         noinline attribute.
12915 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12917         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12918         noinline attribute.
12920         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12921         Use __new_sys_siglist instead of _sys_siglist_internal as
12922         second macro argument.
12923         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12924         strong_alias.
12926 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12928         [BZ #3493]
12929         * posix/unistd.h (sysconf): Remove const attribute.
12931         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12932         temporary or deprecated addresses.
12933         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12935         * string/Makefile (tests): Add tst-strxfrm2.
12936         * string/tst-strxfrm2.c: New file.
12938 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12940         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12941         rather than r->r_brk.
12943 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12945         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12946         optimization even if needed > n.
12948         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12949         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12950         return false, otherwise return true.
12951         (cache_rpath): Return decompose_rpath return value.
12953 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12955         * include/libc-symbols.h (declare_symbol): Rename to...
12956         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12957         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12958         .size directive.
12959         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12960         changes.
12961         * sysdeps/gnu/siglist.c: Likewise.
12963 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12965         * sysdeps/powerpc/fpu/bits/mathinline.h
12966         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12967         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12969 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12971         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12972         Update handling of cache descriptor 0x49 for new models.
12973         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12974         Likewise.
12976 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12978         * malloc/memusage.c (dest): Reset not_me back to false after
12979         printing statistics.
12981 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12983         * configure.in: Work around ld --help change and avoid -z relro
12984         test completely if the architecture doesn't care about security.
12986 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12988         * po/sv.po: Update from translation team.
12990 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12992         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12993         generate compatibility version.
12995 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12997         * configure.in: Relax -z relro requirement a bit.
12999         * po/sv.po: Update from translation team.
13001 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13003         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13004         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13005         * elf/dl-close.c (_dl_close_worker): Likewise.
13006         * elf/dl-open.c (_dl_open_worker): Likewise.
13007         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13009 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13011         * configure.in: Require assembler support for visibility, compiler
13012         support for visibility and aliases, linker support for various -z
13013         options.
13014         * Makeconfig: Remove conditional code which now is unnecessary.
13015         * config.h.in: Likewise.
13016         * config.make.in: Likewise.
13017         * dlfcn/Makefile: Likewise.
13018         * elf/Makefile: Likewise.
13019         * elf/dl-load.c: Likewise.
13020         * elf/rtld.c: Likewise.
13021         * include/libc-symbols.h: Likewise.
13022         * include/stdio.h: Likewise.
13023         * io/Makefile: Likewise.
13024         * io/fstat.c: Likewise.
13025         * io/fstat64.c: Likewise.
13026         * io/fstatat.c: Likewise.
13027         * io/fstatat64.c: Likewise.
13028         * io/lstat.c: Likewise.
13029         * io/lstat64.c: Likewise.
13030         * io/mknod.c: Likewise.
13031         * io/mknodat.c: Likewise.
13032         * io/stat.c: Likewise.
13033         * io/stat64.c: Likewise.
13034         * libio/stdio.c: Likewise.
13035         * nscd/Makefile: Likewise.
13036         * stdlib/Makefile: Likewise.
13037         * stdlib/atexit.c: Likewise.
13038         * sysdeps/generic/ldsodefs.h: Likewise.
13039         * sysdeps/i386/dl-machine.h: Likewise.
13040         * sysdeps/i386/sysdep.h: Likewise.
13041         * sysdeps/i386/i686/memcmp.S: Likewise.
13042         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13043         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13044         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13046         * Makerules: USE_TLS support is now default.
13047         * tls.make.c: Likewise.
13048         * csu/Versions: Likewise.
13049         * csu/libc-start.c: Likewise.
13050         * csu/libc-tls.c: Likewise.
13051         * csu/version.c: Likewise.
13052         * dlfcn/dlinfo.c: Likewise.
13053         * elf/dl-addr.c: Likewise.
13054         * elf/dl-cache.c: Likewise.
13055         * elf/dl-close.c: Likewise.
13056         * elf/dl-iteratephdr.c: Likewise.
13057         * elf/dl-load.c: Likewise.
13058         * elf/dl-lookup.c: Likewise.
13059         * elf/dl-object.c: Likewise.
13060         * elf/dl-open.c: Likewise.
13061         * elf/dl-reloc.c: Likewise.
13062         * elf/dl-support.c: Likewise.
13063         * elf/dl-sym.c: Likewise.
13064         * elf/dl-sysdep.c: Likewise.
13065         * elf/dl-tls.c: Likewise.
13066         * elf/ldconfig.c: Likewise.
13067         * elf/rtld.c: Likewise.
13068         * elf/tst-tls-dlinfo.c: Likewise.
13069         * elf/tst-tls1.c: Likewise.
13070         * elf/tst-tls10.h: Likewise.
13071         * elf/tst-tls14.c: Likewise.
13072         * elf/tst-tls2.c: Likewise.
13073         * elf/tst-tls3.c: Likewise.
13074         * elf/tst-tls4.c: Likewise.
13075         * elf/tst-tls5.c: Likewise.
13076         * elf/tst-tls6.c: Likewise.
13077         * elf/tst-tls7.c: Likewise.
13078         * elf/tst-tls8.c: Likewise.
13079         * elf/tst-tls9.c: Likewise.
13080         * elf/tst-tlsmod1.c: Likewise.
13081         * elf/tst-tlsmod13.c: Likewise.
13082         * elf/tst-tlsmod13a.c: Likewise.
13083         * elf/tst-tlsmod14a.c: Likewise.
13084         * elf/tst-tlsmod2.c: Likewise.
13085         * elf/tst-tlsmod3.c: Likewise.
13086         * elf/tst-tlsmod4.c: Likewise.
13087         * elf/tst-tlsmod5.c: Likewise.
13088         * elf/tst-tlsmod6.c: Likewise.
13089         * include/errno.h: Likewise.
13090         * include/link.h: Likewise.
13091         * include/tls.h: Likewise.
13092         * locale/global-locale.c: Likewise.
13093         * locale/localeinfo.h: Likewise.
13094         * malloc/arena.c: Likewise.
13095         * malloc/hooks.c: Likewise.
13096         * malloc/malloc.c: Likewise.
13097         * resolv/Versions: Likewise.
13098         * sysdeps/alpha/dl-machine.h: Likewise.
13099         * sysdeps/alpha/libc-tls.c: Likewise.
13100         * sysdeps/generic/ldsodefs.h: Likewise.
13101         * sysdeps/generic/tls.h: Likewise.
13102         * sysdeps/i386/dl-machine.h: Likewise.
13103         * sysdeps/ia64/dl-machine.h: Likewise.
13104         * sysdeps/ia64/libc-tls.c: Likewise.
13105         * sysdeps/mach/hurd/fork.c: Likewise.
13106         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13107         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13108         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13109         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13110         * sysdeps/s390/libc-tls.c: Likewise.
13111         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13112         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13113         * sysdeps/sh/dl-machine.h: Likewise.
13114         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13115         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13116         * sysdeps/x86_64/dl-machine.h: Likewise.
13118         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13119         split out locking and parameter checking.
13120         (_dl_close): Call _dl_close_worker after locking and checking.
13121         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13122         _dl_close.
13123         * elf/Makefile: Add rules to build and run tst-thrlock.
13124         * elf/tst-thrlock.c:  New file.
13126         [BZ #3426]
13127         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13128         reality.
13130         [BZ #3429]
13131         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13132         we are sure we do not need it anymore for _dl_close.  Also move
13133         the asserts inside the lock region.
13134         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13136 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13138         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13139         argument.
13140         (_dl_lookup_symbol_x): Adjust caller.
13142         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13143         _ns_global_scope.
13144         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13146         * elf/dl-libc.c: Revert l_scope name changes.
13147         * elf/dl-load.c: Likewise.
13148         * elf/dl-object.c: Likewise.
13149         * elf/rtld.c: Likewise.
13150         * elf/dl-close.c (_dl_close): Likewise.
13151         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13152         always use __rtld_mrlock_{change,done}.  Always free old scope list
13153         here if not l_scope_mem.
13154         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13155         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13156         the lookup and __rtld_mrlock_unlock it after the lookup.
13157         * elf/dl-sym.c: Likewise.
13158         * include/link.h (struct r_scoperec): Remove.
13159         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13160         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13162 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13164         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13166 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13168         * configure.in: Disable building profile libraries by default.
13170 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13172         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13173         as signed longs, check for x_base + pos overflow.
13174         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13175         * sunrpc/tst-xdrmem2.c: New test.
13177 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13179         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13180         _dl_lookup_symbol_x code.
13182 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13184         * elf/dl-runtime.c: Include sysdep-cancel.h.
13185         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13186         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13187         instead of catomic_* macros.
13188         * elf/dl-sym.c: Include sysdep-cancel.h.
13189         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13190         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13191         * elf/dl-close.c: Include sysdep-cancel.h.
13192         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13193         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13194         * elf/dl-open.c: Include sysdep-cancel.h.
13195         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13196         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13198 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13200         [BZ #3313]
13201         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13202         fastbin rather than end of fastbin array.
13204 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13206         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13207         body macro.
13208         * sysdeps/x86_64/bits/atomic.h
13209         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13210         (catomic_decrement): Use correct body macro.
13212 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13214         * include/atomic.h: Add a unique prefix to all local variables
13215         in macros.
13216         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13218 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13220         [BZ #3369]
13221         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13222         and 7.
13224 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13226         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13228 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13230         [BZ #3313]
13231         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13232         determine highest fast bin to consolidate, always look into all of
13233         them.
13234         (do_check_malloc_state): Only require for empty bins for large
13235         sizes in main arena.
13237         * libio/stdio.h: Add more __wur attributes.
13239         * elf/dl-minimal.c (realloc): Optimize last patch.
13241 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13243         [BZ #3352]
13244         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13245         and use memcpy() if it does.
13247 2006-11-12  Andreas Jaeger  <aj@suse.de>
13249         [BZ #2510]
13250         * manual/search.texi (Hash Search Function): Clarify.
13251         (Array Search Function): Clarify.
13253 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13255         [BZ #2830]
13256         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13257         shifting.
13258         * math/atest-exp2.c (read_mpn_hex): Likewise.
13259         * math/atest-sincos.c (main): Likewise.
13261 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13263         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13264         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13265         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13266         version GLIBC_2.6.
13267         * Versions.def: Add GLIBC_2.6 for libc.
13269         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13271         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13273 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13275         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13277         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13279         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13280         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13282 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13284         * include/atomic.c: Define catomic_* operations.
13285         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13286         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13287         * malloc/memusage.c: Likewise.
13288         * gmon/mcount.c: Likewise.
13289         * elf/dl-close.c: Likewise.
13290         * elf/dl-open.c: Likewise.
13291         * elf/dl-profile.c: Likewise.
13292         * elf/dl-sym.c: Likewise.
13293         * elf/dl-runtime.c: Likewise.
13294         * elf/dl-fptr.c: Likewise.
13295         * resolv/res_libc.c: Likewise.
13297 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13299         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13300         components which lack them.
13302         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13303         at least one entry consisting of the parameter concatenated with
13304         the domain.
13306 2006-10-10  Roland McGrath  <roland@frob.com>
13308         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13309         * sysdeps/mach/hurd/futimes.c: Likewise.
13310         * sysdeps/mach/hurd/lutimes.c: Likewise.
13312 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13313             Jakub Jelinek  <jakub@redhat.com>
13315         Implement reference counting of scope records.
13316         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13317         from the list in objects which remain.  Always allocate new scope
13318         record.
13319         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13320         don't resize, allocate a new one.
13321         * elf/dl-runtime.c: Update reference counters before using a scope
13322         array.
13323         * elf/dl-sym.c: Likewise.
13324         * elf/dl-libc.c: Adjust for l_scope name change.
13325         * elf/dl-load.c: Likewise.
13326         * elf/dl-object.c: Likewise.
13327         * elf/rtld.c: Likewise.
13328         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13329         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13330         Add l_scoperec_lock.
13331         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13332         * sysdeps/generic/rtld-lowlevel.h: New file.
13334         * include/atomic.h: Rename atomic_and to atomic_and_val and
13335         atomic_or to atomic_or_val.  Define new macros atomic_and and
13336         atomic_or which do not return values.
13337         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13338         Various cleanups.
13339         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13341         * po/sv.po: Update from translation team.
13343 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13345         * Versions.def: Add GLIBC_2.6 to libpthread.
13347         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13348         (versioned_symbol): Likewise.
13349         (compat_symbol): Likewise.
13351         * po/tr.po: Update from translation team.
13353 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13355         * nis/Banner: Removed.  It's been integral part forever and the
13356         author info is incomplete anyway.
13357         * libio/Banner: Likewise.
13359         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13360         code, make sure the nis_freeresult call doesn't crash and that the
13361         result is reported correctly.
13363 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13365         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13366         when callback is NULL.
13368         * nis/Versions (libnss_nisplus): Add
13369         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13370         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13371         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13372         _nss_create_tablename): Rename to...
13373         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13374         ... these.  No longer static.
13375         (internal_setgrent): Adjust users.
13376         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13377         Don't use locking around _nss_grp_create_tablename call.
13378         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13380 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13382         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13384 2006-10-06  Andreas Jaeger  <aj@suse.de>
13386         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13388 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13390         * po/pl.po: Update from translation team.
13392         * nscd/nscd.c (main): Fix typo in message.
13393         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13395 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13397         [BZ #3291]
13398         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13399         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13400         (__sigprocmask): Define.
13402 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13404         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13405         used.
13407 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13409         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13410         in oldtotal and newtotal calculation.
13411         * nscd/nscd-client.h (struct mapped_database): Add datasize
13412         field.
13413         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13414         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13415         increased.
13416         (__nscd_cache_search): Add checks to make sure we never reference
13417         data beyond the current mapping.
13419 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13421         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13422         variables const to avoid compiler warnings.
13424         * io/fts.c (fts_close): Remove redundant checks.
13425         (fts_build): Likewise.
13426         (fts_palloc): Likewise.
13428         * manual/message.texi (Advanced gettext functions,
13429         Using gettextized software): Fix typos.
13431 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13433         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13434         explain why there are no leaks.
13436 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13438         * libio/wmemstream.c: Include <wchar.h>.
13439         * libio/bug-wmemstream1.c: Likewise.
13440         * libio/tst-wmemstream1.c: Likewise.
13441         * libio/tst-wmemstream2.c: Likewise.
13443         * version.h (RELEASE): Bump to 2.5.
13444         * README: Regenerated.
13446         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13448         [BZ #3273]
13449         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13450         found no group members.
13451         Patch by Petr Baudis.
13453 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13455         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13456         assert bootstrap_map.l_tls_modid is zero.
13457         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13458         if USE___THREAD.
13460 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13462         * libio/stdio.h: Move open_wmemstream prototype to ...
13463         * wcsmbs/wchar.h: ... here.
13465 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13467         [BZ #3252]
13468         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13469         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13470         __{,l}chown to handle the rest.
13471         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13472         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13473         __{,l}chown to handle the rest.
13474         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13475         i386/fchownat.c.
13476         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13477         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13479         [BZ #3253]
13480         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13481         time, rather allocate increasingly bigger arrays of pointers, if
13482         possible with alloca, if too large with malloc.
13484 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13486         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13488         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13490 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13492         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13493         home addresses.
13494         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13495         IFA_F_HOMEADDRESS flag for interfaces.
13496         * include/ifaddrs.h (struct in6addrinfo): Define
13497         in6ai_homeaddress.
13499 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13501         [BZ #3225]
13502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13503         PTR_DEMANGLE3): Define.
13504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13505         PTR_DEMANGLE3): Likewise.
13506         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13507         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13508         Likewise.
13509         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13511 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13513         * po/libc.pot: Regenerated.
13514         * po/be.po: Updated.
13515         * po/ca.po: Likewise.
13516         * po/cs.po: Likewise.
13517         * po/da.po: Likewise.
13518         * po/de.po: Likewise.
13519         * po/el.po: Likewise.
13520         * po/en_GB.po: Likewise.
13521         * po/es.po: Likewise.
13522         * po/fi.po: Likewise.
13523         * po/fr.po: Likewise.
13524         * po/gl.po: Likewise.
13525         * po/hr.po: Likewise.
13526         * po/hu.po: Likewise.
13527         * po/ja.po: Likewise.
13528         * po/ko.po: Likewise.
13529         * po/nb.po: Likewise.
13530         * po/nl.po: Likewise.
13531         * po/pl.po: Likewise.
13532         * po/pt_BR.po: Likewise.
13533         * po/ru.po: Likewise.
13534         * po/rw.po: Likewise.
13535         * po/sk.po: Likewise.
13536         * po/sv.po: Likewise.
13537         * po/tr.po: Likewise.
13538         * po/zh_CN.po: Likewise.
13539         * po/zh_TW.po: Likewise.
13541         [BZ #3137]
13542         * iconv/iconv_prog.c (main): Fix spelling in error message.
13543         * iconv/iconvconfig.c (main): Likewise.
13544         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13545         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13546         * locale/programs/localedef.c (main): Likewise.
13547         * locale/programs/repertoire.c (repertoire_read): Likewise.
13548         * timezone/zdump.c (main): Likewise.
13549         * nscd/connections.c (handle_request): Fix spelling in log message.
13550         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13552 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13554         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13555         interfaces.
13557 2006-09-20  Andreas Jaeger  <aj@suse.de>
13559         * math/libm-test.inc (lrint_test_upward): Fix typo.
13561 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13563         [BZ #2592]
13564         * math/libm-test.inc (lrint_test_tonearest): New function.
13565         (lrint_test_towardzero): New function.
13566         (lrint_test_downward): New function.
13567         (lrint_test_upward): New function.
13568         (main): Run these new tests.
13569         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13570         of values near to 0.
13571         (two52): Use double not long double.
13572         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13573         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13574         (two23): Use float not double.
13575         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13576         (two23): Use float not double.
13577         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13578         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13579         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13580         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13582 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13584         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13585         Cast sp to unsigned long to avoid compiler warning.
13586         Use __makecontext_ret function instead of a trampoline on the stack.
13587         (__makecontext_ret): New function.
13588         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13590 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13592         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13593         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13594         bits.
13596 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13598         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13599         sure no reference to the unloaded map's search list remains in the
13600         dependency's scope.
13602 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13604         * elf/Makefile: Add rules to build and run unload7 test.
13605         * elf/unload7.c: New test.
13606         * elf/unload7mod1.c: New file.
13607         * elf/unload7mod2.c: New file.
13609 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13611         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13612         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13613         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13614         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13615         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13616         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13617         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13618         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13619         PTRACE_GETEVENTMSG): Likewise.
13620         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13621         values.
13623 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13625         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13626         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13627         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13628         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13630 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13632         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13633         write '\0' to the fd.
13634         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13635         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13636         Change regs to unsigned long pointer from unsigned int, fix fscr
13637         offset.
13639 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13641         * io/Makefile (CFLAGS-fstatat.c): Set.
13642         (CFLAGS-fstatat64.c): Likewise.
13643         (CFLAGS-mknodat.c): Likewise.
13645         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13646         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13647         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13648         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13650 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13651             Steven Munroe  <sjmunroe@us.ibm.com>
13653         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13654         names to the beginning.  Rename "cell" to "cellbe".
13655         (_dl_powerpc_platforms): New.
13656         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13657         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13658         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13659         (_DL_HWCAP_PLATFORM): Define to new mask.
13660         (_dl_platform_string, _dl_string_platform): New functions.
13661         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13662         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13664 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13666         [BZ #2526]
13667         * README.libm: Fix a thinko in sqrt algorithm description.
13669         [BZ #3143]
13670         * manual/string.texi (argz_delete): Fix prototype.
13671         Patch by <alpt@freaknet.org>.
13673 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13675         [BZ #3138]
13676         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13677         * io/tst-fcntl.c (do_prepare): Likewise.
13678         * posix/tst-exec.c (do_prepare): Likewise.
13679         * posix/tst-preadwrite.c (do_prepare): Likewise.
13680         * posix/tst-spawn.c (do_prepare): Likewise.
13681         * posix/tst-truncate.c (do_prepare): Likewise.
13682         * rt/tst-aio.c (do_prepare): Likewise.
13683         * rt/tst-aio64.c (do_prepare): Likewise.
13684         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13685         size_t.
13687 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13689         [BZ #2821]
13690         * time/mktime.c (guess_time_tm): Fix overflow detection.
13691         * time/Makefile (tests): Add bug-mktime1.
13692         * time/bug-mktime1.c: New file.
13694         [BZ #3189, #3188]
13695         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13696         (mremap): Likewise.
13698 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13700         [BZ #1006]
13701         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13702         Ensure relocation doesn't clobber any bits outside of the
13703         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13704         R_SPARC_HI22 and R_SPARC_H44.
13706         [BZ #2775]
13707         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13708         (long) (MINSIZE + nb - old_size) is positive.
13710         * malloc/arena.c (grow_heap): When growing bail even if new_size
13711         is negative.
13713         [BZ #3155]
13714         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13715         stack below r1.
13717 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13719         * posix/regex_internal.c (re_string_reconstruct): Handle
13720         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13721         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13722         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13723         re_string_context_at.
13724         * posix/Makefile: Add rules to build and run bug-regex26 test.
13725         * posix/bug-regex26.c: New test.
13727         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13728         rather than col_sym_free.  Move seqp declaration earlier.
13730         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13732 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13734         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13735         decl before first goto out.
13737 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13739         * Makerules (shlib.lds): If have-hash-style, put .hash section
13740         at the end of the RO segment.
13742 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13744         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13745         style hash table format is used.
13747 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13749         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13750         randomization rather than before.
13751         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13753 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13755         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13757         * malloc/malloc.c (_int_malloc): Use full list insert and not
13758         shortcut which assumes the list is empty for large requests
13759         too.
13761         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13763 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13765         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13766         and offout arguments to the prototype.
13767         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13768         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13769         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13770         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13771         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13772         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13773         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13774         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13776 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13778         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13780         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13781         dlopen parameters.
13783 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13785         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13786         only if herrno is NETDB_INTERNAL.  Handle errors other than
13787         ERANGE outside of the loops, handle TRY_AGAIN.
13789         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13790         if other's ctype category was missing.
13791         * locale/programs/ld-collate.c (collate_read): Return if
13792         copy_locale's collate category is missing.
13794 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13796         [BZ #2684]
13797         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13798         arenas if allocation failed.
13799         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13801 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13803         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13804         waste bins[0..1].
13805         (malloc_state): Reduce bins size by 2.
13806         (_int_malloc): Fix test for large enough buffer for early termination.
13807         When no unsorted block matches perfectly and an exiting block has
13808         to be split, use full list insert and not shortcut which assumes
13809         the list is empty.
13811         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13812         failure.
13814 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13816         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13817         do anything.
13819         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13820         symbol require exact match (these are PLTs).
13821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13822         (_dl_ppc64_addr_sym_match): Likewise.
13824         [BZ #2683]
13825         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13826         If symbol has a value use it.
13827         * elf/tst-dladdr1.c: New file.
13828         * elf/Makefile: Add rules to build and run tst-addr1.
13830 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13832         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13833         keeps failing and heap growth or new heap creation isn't
13834         successful either.
13835         * malloc/tst-malloc.c (main): Add new tests.
13837 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13839         [BZ #2734]
13840         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13841         as in the x86-64 code to use bswap.
13843 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13845         [BZ #2680]
13846         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13847         __USE_UNIX98.
13848         * posix/bits/unistd.h: Likewise.
13850 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13852         [BZ #2751]
13853         * string/strchr.c: Add cast to avoid warning.
13855 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13857         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13858         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13859         limit is needed to avoid the exploding of the address space
13860         requirement for secondary heaps.
13861         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13862         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13864 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13866         [BZ #3018]
13867         * Makerules (depfiles): Handle extra-test-objs the same as
13868         extra-objs.
13869         (common-mostlyclean): Likewise.
13870         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13871         instead.
13872         * elf/Makefile (extra-objs): Likewise.
13873         * stdlib/Makefile (extra-objs): Likewise.
13875 2006-08-14  Eric Blake  <ebb9@byu.net>
13877         [BZ #3044]
13878         * misc/error.h: Assume C89 or better.
13879         * misc/error.c: Likewise.
13881 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13883         [BZ #3040]
13884         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13885         __ASSUME_ATFCTS is defined.
13887 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13889         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13890         to sort in each call.
13892         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13893         is empty simply return and use next service.
13894         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13896         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13897         tells us when not finding a charmap file is an error.
13898         * locale/programs/charmap.h: Adjust charmap_read prototype.
13899         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13900         cannot find a charmap.
13901         * locale/programs/localedef.c (main): Adjust charmap_read call.
13903 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13905         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13906         sysdeps/posix/pause.c implementation instead.
13908 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13910         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13911         to EPERM.
13913 2006-08-13  Andreas Schwab  <schwab@suse.de>
13915         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13916         Don't clobber caller's LRSAVE.
13917         (_dl_prof_resolve): Likewise.
13919 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13921         [BZ #1996]
13922         * libio/memstream.c (open_memstream): Allocate initial buffer with
13923         calloc.
13924         * libio/wmemstream.c (open_wmemstream): Likewise.
13925         * libio/strops.c: Pretty printing.
13926         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13927         (enlarge_userbuf): New function.
13928         (_IO_str_seekoff): Call it if seek position is larger than current
13929         buffer.
13930         * libio/wstrops.c: Likewise.
13931         * libio/vasprintf.c: Add comment as to why we do not have to use
13932         calloc instead of malloc to allocate initial buffer.
13933         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13934         * libio/bug-memstream1.c: New file.
13935         * libio/bug-wmemstream1.c: New file.
13937 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13939         * libio/wstrops.c: Remove dead macro definitions and comments.
13940         * libio/strops.c: Likewise.
13942         [BZ #2764]
13943         * login/utmpname.c (__utmpname): Remove unnecessary test.
13945 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13947         [BZ #2832]
13948         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13949         0s from integers.
13951 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13953         [BZ #2987]
13954         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13955         for CPU clocks.
13956         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13957         setting of CPU clocks.
13959 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13961         [BZ #2841]
13962         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13963         since C99 requires the result to promote to 'int' when uint_least8_t
13964         and uint_least16_t promote to 'int'.
13966 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13968         [BZ #3013]
13969         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13970         lenght of one output field, correct bitmask creation.
13971         * locale/programs/ld-time.c: Add alignment.
13973         [BZ #2997]
13974         * misc/error.c: Add space between program name and message if file
13975         name is missing.
13977 2006-08-03  Eric Blake  <ebb9@byu.net>
13979         [BZ #2998]
13980         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13982 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13984         * malloc/memusagestat.c: Silence warnings.
13986         * malloc/malloc.c: Dynamically size mmap treshold if the program
13987         frees mmaped blocks.
13988         Patch by Valerie Henson and Arjan van de Ven.
13990 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13992         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13993         __USE_GNU.
13995         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13996         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13997         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13998         Only provide var definitions in strtol_l (or for *ull*
13999         in strtoll_l).
14001         * stdio-common/bug16.c (tests): New array.
14002         (do_tests): Allow the first hexadecimal digit
14003         to be 1, 2, 4 or 8.  Do 3 additional tests.
14005         * sysdeps/s390/fpu/libm-test-ulps: Update.
14007         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14008         fchownat syscall if available.
14009         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14010         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14011         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14013 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14015         * nis/nis_xdr.c: Avoid some function calls.
14017 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14018             Ulrich Drepper  <drepper@redhat.com>
14020         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14021         short cut if only one name component is stripped away.
14023 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14025         * nis/nis_call.c: Minor cleanups throughout.
14026         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14027         (first_shoot): Add search_parent_first parameter.  Only if it is set
14028         search parent server first.
14029         If directory for table found through cold start cache is not the same
14030         as referenced in the cache, don't use it.
14031         (__nisfind_server): Take additional parameter.  Pass it on to
14032         first_shoot.
14033         (__prepare_niscall): Adjust __nisfind_server call.
14034         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14035         * nis/nis_table.c: Adjust __nisfind_server call.
14036         * nis/nis_lookup.c: Likewise.
14037         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14039 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14041         [BZ #2182]
14042         * math/s_cacosh.c: Return values from positive branch.
14043         * math/s_cacoshf.c: Likewise.
14044         * math/s_cacoshl.c: Likewise.
14046         [BZ #2883]
14047         * sysvipc/sys/msg.h: Change return value to ssize_t.
14048         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14049         * sysvipc/msgrcv.c: Likewise.
14050         * include/sys/msg.h: Likewise.
14052         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14053         test introduced in patch for bz #661.
14054         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14055         element for NEWGROUPS.
14057         [BZ #2908]
14058         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14059         'f', use '1' as leading digit not '\1'.
14060         * stdio-common/Makefile (tests): Add bug16.
14061         * stdio-common/bug16.c: New file.
14063         [BZ #2914]
14064         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14065         and don't try to open it.  The patch introducing the macro
14066         contained a bug and used the same file name as the new file
14067         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14068         this out completely.
14070         [BZ #2926]
14071         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14072         Patch by Jerry James <Jerry.James@usu.edu>.
14074         * rt/Makefile (tests): Add tst-clock2.
14075         * rt/tst-clock2.c: New file.
14077         [BZ #2978]
14078         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14079         function and its parameters and pass it to new thread.
14080         (__gai_notify): Add support for alternative waiting for completion.
14081         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14082         waiting for completion.
14083         * resolv/getaddrinfo_a.c: Likewise.
14084         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14085         waiting for completion is used.
14086         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14087         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14088         * resolv/gai_error.c: Likewise.
14089         * resolv/gai_sigqueue.c: Likewise.
14091 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14093         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14094         errno to EBADF and return MACH_PORT_NULL.
14096 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14098         [BZ #2980]
14099         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14101 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14103         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14104         walk them instead of the symbol table.
14106 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14108         [BZ #2098]
14109         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14110         status of NSS calls, not the number of returned entries.
14112         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14113         request_key, keyctl.
14115 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14117         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14119 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14121         * elf/tst-auditmod1.c: Fix typo in #error.
14123 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14125         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14127         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14129 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14131         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14132         that the directory is empty even on non-POSIX filesystems.
14134 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14136         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14138         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14139         the backend NSS module.  If backend setgrent call failed, don't have
14140         internal_setgrent fail.  Just remember this until it is needed.
14141         * nis/nss_compat/compat-pwd.c: Likewise.
14142         * nis/nss_compat/compat-spwd.c: Likewise.
14144 2006-07-30  Roland McGrath  <roland@redhat.com>
14146         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14147         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14148         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14149         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14151         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14152         (nanosleep_not_cancel): New macro.
14153         (sigsuspend_not_cancel): new macro.
14154         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14155         (do_sigsuspend): Define as inline.
14156         (__sigsuspend): Always use do_sigsuspend.
14157         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14158         * include/signal.h: Declare __sigsuspend_nocancel.
14159         * sysdeps/posix/pause.c
14160         [! NO_CANCELLATION] (__pause_nocancel): New function.
14162         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14163         * include/time.h (__nanosleep_nocancel): Likewise.
14165 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14167         * locale/programs/localedef.c (add_to_readlist): Rename local
14168         variables to avoid confusion.
14170         * locale/programs/charmap.c (charmap_read): Emit error message if
14171         charmap couldn't be found or read.
14173 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14175         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14176         __ASSUME_FUTEX_LOCK_PI.
14177         * include/time.h: Declare __nanosleep_nocancel.
14178         * include/unistd.h: Declare __pause_nocancel.
14180         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14181         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14182         get the __stack_chk_fail_local definition when it's needed.
14184 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14186         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14187         * dlfcn/bug-atexit3.c: New file.
14188         * dlfcn/bug-atexit3-lib.cc: New file.
14190         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14191         used when the namespace is not the base namespace.
14193 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14195         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14196         (__new_exitfn): Bump it in every successful call.
14197         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14198         more exit handlers, call them right away.
14199         * stdlib/exit.h: Declare __new_exitfn_called.
14201 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14203         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14204         calling registered handler.
14206         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14208         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14209         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14211         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14212         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14213         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14215 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14217         * elf/dl-lookup.c (dl_new_hash): New functions.
14218         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14219         value here.  Compute new-style hash value.  Pass new hash value
14220         and reference to variable with the old value to do_lookup_x.
14221         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14222         old-style hash table.
14223         (_dl_debug_bindings): Pass new hash value and reference to variable
14224         with the old value to do_lookup_x.
14225         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14226         new-style hash value and change old-style hash value parameter to
14227         be a reference.  Reoganize functions to determine whether
14228         new-style hash table is available.  Only fall back on old-style
14229         table.  If old-style hash value is needed, compute it here.
14230         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14231         entry.
14232         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14233         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14234         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14235         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14236         * Makeconfig: If linker supports --hash-style option add it to all
14237         linker command lines to build DSOs.
14238         * config.make.in: Define have-hash-style.
14239         * configure.in: Test whether linker supports --hash-style option.
14241         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14242         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14244 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14246         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14247         auditing.
14249         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14250         RPATH of main map twice.
14252 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14254         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14255         look further, return original strings.
14256         (_nl_find_msg): Do not return found translation if the conversion
14257         failed.  Either signal the string is unusable or that something went
14258         wrong and the original should be used.
14260 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14262         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14264 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14266         [BZ #2766]
14267         * misc/insremque.c (insque): Handle prev == NULL.
14268         * misc/Makefile (tests): Add tst-insremque.
14269         * misc/tst-insremque.c: New test.
14271 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14273         [BZ #2792]
14274         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14275         conflict with DL_DST_REQUIRED.
14277 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14279         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14280         match what Solaris does.
14282 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14284         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14285         local_setegid instead of seteuid and setegid.
14286         * sysdeps/generic/local-setxid.h: New file.
14287         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14289         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14291         * string/Makefile (tests): Add bug-envz1.
14292         * string/bug-envz1.c: New file.
14294 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14296         * posix/regex_internal.c (re_string_skip_chars): If no character has
14297         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14298         to the byte which couldn't be converted.
14299         (re_string_reconstruct): Don't clear valid_raw_len before calling
14300         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14301         tip_context using re_string_context_at.
14302         * posix/Makefile: Add rules to build and run bug-regex25 test.
14303         * posix/bug-regex25.c: New test.
14305 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14307         [BZ #2703]
14308         * string/envz.c (envz_strip): Correct erroneously reversed src
14309         and dest parameters to memmove() invocation.
14311 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14313         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14314         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14315         to make sure the database has been already invalidated.
14316         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14317         after the cache has been invalidated.  Use pthread_mutex_lock rather
14318         than pthread_mutex_trylock if fd != -1.
14319         * nscd/connections.c (invalidate_cache): Add fd argument, write
14320         response to fd if not calling prune_cache, pass fd to prune_cache.
14321         (handle_request): Adjust invalidate_cache caller.
14322         (nscd_run): Pass -1 as fd to prune_cache.
14324 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14326         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14327         the correct place.
14329 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14331         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14332         * nscd/cache.c (prune_cache): Take prunelock before starting the
14333         work.  Just return in case it is already taken.
14334         * nscd/connections.c (dbs): Initialize .prunelock.
14336 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14338         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14339         copying.  No need to allocate new array for group members.  Just
14340         move the pointers and update the size.
14342         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14343         Avoid memory leak in case realloc fails.  Simplification for
14344         better code generation.
14346         Avoid deprecation warning because of libc_hidden_proto for
14347         inet6_option_alloc.
14348         * inet/inet6_option.c (option_alloc): Renamed from
14349         inet6_option_alloc.  Made static.
14350         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14351         (inet6_option_append): Call option_alloc.
14352         * include/netinet/in.h: Remove libc_hidden_proto for
14353         inet6_option_alloc.
14355         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14356         for cleanup when cb!=NULL [Coverity CID 233].
14358 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14360         [BZ #2693]
14361         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14362         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14363         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14364         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14365         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14366         and inet6_rth_getaddr.
14367         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14368         array.
14369         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14370         Mark inet6_option_* interfaces as deprecated.
14371         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14372         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14373         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14374         inet6_rth_segments, and inet6_rth_getaddr.
14375         * inet/inet6_opt.c: New file.
14376         * inet/inet6_rth.c: New file.
14378         * inet/netinet/icmp6.h: Pretty printing.
14380         [BZ #2683]
14381         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14383 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14385         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14386         doing it all here.  When server does not know the answer do not
14387         fail immediate, try parent first.
14389         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14390         overflow test.
14392 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14394         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14395         from __do_niscall.
14396         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14397         and exported.
14398         (__follow_path): New function.  Split out from nis_list.
14399         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14400         _xdr_nis_result.
14401         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14402         _xdr_nis_result.
14403         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14404         and __follow_path.
14405         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14406         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14407         from libnsl for version GLIBC_PRIVATE.
14408         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14409         Remove entry parameter from _nss_nisplus_parse_pwent and
14410         _nss_nisplus_parse_grent.
14411         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14412         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14413         again.  Rewrite getpwent handling to not use nis_first_entry and
14414         nis_next_entry.  Roll out own niscall handling.
14415         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14417         * sunrpc/xdr_rec.c: Fix typo in comment.
14419 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14421         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14422         handling.
14424         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14425         to allocate memory for my_pollfd.  Better initialization of
14426         cb_is_running.  Use TEMP_FAILURE_RETRY.
14428         * malloc/memusage.sh (memusageso): Add quotes.
14429         (memusagestat): Likewise.
14430         * debug/xtrace.sh (pcprofileso): Likewise.
14431         (pcprofiledump): Likewise.
14432         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14433         replacement.
14434         * malloc/Makefile ($(objpfx)memusage): Likewise.
14436         * nis/nis_callback.c (__nis_create_callback): Calls to
14437         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14438         asprintf call fails.
14440         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14441         no uninitialized memory is passed to sendto.
14443 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14445         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14446         of snprintf+strdup.  Handle OOM.
14447         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14448         cb->serv together.  Remove now obsolete free calls.
14449         (__nis_destroy_callback): Remove now obsolete free call.
14451 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14453         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14454         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14455         and ULA respectively). Set precedence for IPv4 address to 10 as
14456         defined in RFC3484 for preferring IPv6.
14457         * posix/gai.conf: Update to match the new default tables.
14459 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14461         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14462         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14463         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14464         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14466         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14467         Removed.
14468         (init_nss_interface): Remove initialization of these variables.
14470 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14472         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14473         nis_free_directory forward to avoid duplication.
14475 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14477         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14478         rec_dirsearch returning NULL.
14479         (first_shoot): Handle __nis_finddirectory returning NULL.
14480         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14482         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14483         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14485 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14487         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14488         pid changed.
14490 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14492         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14494         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14495         * nscd/nscd_getgr_r.c: Likewise.
14497         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14499         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14500         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14502         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14504         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14506         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14508         * include/rpc/auth.h: Mark xdr_des_block_internal and
14509         xdr_opaque_auth_internal as hidden.
14511         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14512         hidden.
14514         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14516         * misc/getusershell.c (okshells): Don't use static initializers,
14517         do it dynamically.
14519         * stdlib/fmtmsg.c (keywords): Change type of len element to
14520         uint32_t to not waste space on 64bit machines.
14522         * locale/setlocale.c: Change _nl_category_names into a string.
14523         Add new _nl_category_name_idxs.  Change all users.
14524         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14525         Declare _nl_category_name_idxs.
14526         * locale/findlocale.c: Adjust for _nl_category_names change.
14527         * locale/loadlocale.c: Likewise.
14528         * locale/newlocale.c: Likewise.
14529         * intl/dcigettext.c: Likewise.
14531         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14532         (add_alias2): ...here.  New function.
14533         (__gconv_read_conf): Simplify builtin alias handling.
14534         (builtin_aliases): Convert to string to avoid relocations.
14535         * iconv/gconv_builtin.h: Add comment about correct formatting.
14537 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14539         * resolv/res_debug.c (loc_ntoa): Make error const.
14541 2006-05-14  Andreas Schwab  <schwab@suse.de>
14543         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14545 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14547         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14548         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14549         sizeof (cpu_set_t).
14551 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14553         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14555         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14557         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14558         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14560         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14561         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14563         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14564         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14565         xdr_cback_data.
14567         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14568         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14569         xdr_ypupdate_args.
14571         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14572         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14574         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14575         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14577         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14578         * include/rpcsvc/nis_callback.h: New file.
14580         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14581         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14583         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14584         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14586         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14587         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14589         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14590         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14592         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14593         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14594         xdr_ypdelete_args.
14596         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14597         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14599         * nis/nis_error.c: Remove table of strings.  Use position
14600         independent mechanism.
14601         * nis/nis_error.h: New file.
14603 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14605         * locale/programs/ld-time.c (time_finish): If wide era name or
14606         format aren't provided, set both wname and wformat to L"".
14608 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14610         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14611         results if the call was succesful.
14613         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14615         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14616         as hidden.
14618 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14620         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14622 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14624         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14625         caller makes sure this is not the case.
14626         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14628 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14630         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14631         calls.
14633         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14634         [Coverity CID 229, 230]
14636         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14637         DGETTEXT calls.
14638         (hol_help): Likewise.  [Coverity CID 226, 227]
14640         * string/argz-replace.c (__argz_replace): Unconditionally call
14641         free on SRC.  [Coverity CID 225]
14643         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14644         the return value of __nis_default_owner and __nis_default_group,
14645         it has been especially allocated.  [Coverity CID 224]
14647         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14648         searchgroup and searchowner.  Significantly simplified.
14649         (__nis_default_owner): Remove duplication.  Do not locally copy the
14650         string before duplicating it.
14651         (__nis_default_group): Likewise.
14653         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14654         we must clear the variable before calling __nisfind_server.
14656         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14657         nis_getnames.  [Coverity CID 223]
14659         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14660         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14662         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14663         allocate memory for the input to add_bytes.  [Coverity CID 221]
14665         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14666         was allocated here.  [Coverity CID 219, 220]
14668         * posix/getconf.c (print_all): Free confstr data after printing.
14669         [Coverity CID 218]
14671         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14672         list allocation fails.  [Coverity CID 215]
14674         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14675         [Coverity CID 213]
14677         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14678         string is NULL.  [Coverity CID 212]
14679         * argp/Makefile: Add rules to build and run bug-argp1.
14680         * argp/bug-argp1.c: New file.
14682         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14683         end of string.
14684         * stdlib/canonicalize.c (__realpath): Likewise.
14686         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14687         pointer.  [Coverity CID 206]
14689         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14690         in statically linked code.
14691         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14692         statically built code, be prepared to have no link map.
14693         [Coverity CID 205]
14695         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14696         dgettext calls. [Coverity CID 204]
14698         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14699         the one user.
14700         (uparam_names): Reduce size.  Avoid relative relocations.
14701         Moved to read-only segment.
14702         (fill_in_uparams): Update for new layout.
14704         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14705         assumed to always be != NULL. [Coverity CID 202]
14707         * argp/argp-help.c (hol_entry_help): Remove some dead code
14708         [Coverity CID 200].
14710         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14711         away a few more unconditional yperr2nss calls.
14712         (_nss_nis_getservbyname_r): Likewise.
14714 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14716         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14717         architectures.
14719         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14720         that unused memory passed to sendto is nevertheless initialized.
14722         [BZ #2499]
14723         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14724         possibly unaligned memory accesses.
14726         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14727         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14728         and __putlong respectively.  Correct buffer overflow check for
14729         NS_NOTIFY_OP.
14731         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14733         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14734         (send_dg): Rewrite error handling to be more compact and avoid
14735         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14737         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14739         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14740         instead of ns_get16.
14741         (res_queriesmatch): Likewise.  Minor optimization.
14743         [BZ #2499]
14744         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14745         __libc_res_nsend might reallocate the buffer for the answer.  In
14746         this case we have to reload the HP pointer.
14748 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14750         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14751         some branch prediction hints.
14753         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14754         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14756         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14757         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14758         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14759         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14760         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14762 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14764         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14765         by a GOT relocation to make Scrt1.o position independent.
14766         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14768         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14769         six system call parameters.
14770         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14772 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14774         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14775         malloc&bzero.
14777         * sunrpc/svc_udp.c (BZERO): Remove definition.
14778         (CALLOC): Define.
14779         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14781         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14782         (des_SPtrans): Use uint32_t type.
14783         (des_skb): Likewise.
14785         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14787 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14789         [BZ #2509]
14790         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14791         on 32-bit arches.
14793 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14795         * locale/programs/ld-address.c (address_finish): Fix one more
14796         place where the iso639 array might be accessed beyond the limits.
14798 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14800         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14801         filling it for the first time.
14803         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14804         Adjust all callers.
14805         Free res object content before returning.
14807         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14809         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14810         client->cl_auth.
14812         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14813         cleanup for initial thread, just the free call on TVP.
14815         * nscd/gai.c (__getline): Define.
14818 See ChangeLog.16 for earlier changes.