Allow variable shift values in mmap2.
[glibc.git] / ChangeLog
blob7a7e46ca68631af47fcb0d8ba8ffad5d85288703
1 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
5 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
7         * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
8         is defined.
10 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12         * string/test-memcmp.c (check_result): New function.
13         (do_one_test): Use it.
14         (check1): New function.
15         (test_main): Use it.
17 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
19         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
20         rewrite the tests to add support for failing glob calls.
21         Some other minor cleanups.
22         * posix/bug-glob3.c: New file.
23         * posix/Makefile (tests): Add bug-glob3.
25 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
26             Andreas Schwab  <andreas@redhat.com>
28         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
29         If pattern is "" bail out early
31 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
33         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
34         but tab->size != 0, just unlock and goto success, without
35         allocating anything or entering anything into the hash table.
36         (_dl_debug_bindings): Temporarily set tab->entries to NULL
37         around do_lookup_x in undef_map->l_local_scope[0].  If
38         undef_map->l_symbolic_in_local_scope, lookup also in
39         symbolic_searchlist of following libraries in l_local_scope
40         that have DT_SYMBOLIC set.
41         * elf/dl-deps.c (_dl_map_object_deps): Compute
42         l_symbolic_in_local_scope.
43         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
44         bitfield.
46 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
48         [BZ #11410]
49         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
51         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
52         C++ prototype handling to a better place.
54 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
56         * elf/dl-load.c (open_verify): Extend expected to the full size of the
57         e_ident array.  When loading, check that the fields in e_ident we don't
58         know are zero to allow future extensions.
60 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
62         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
63         when exit from loop.
65 2010-03-16  Andreas Schwab  <schwab@redhat.com>
67         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
68         address in debug statement.
69         (send_dg): Pass correct buffer pointer to DprintQ.
71 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
73         * libc-abis: Add a few more entries.
75 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
77         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
78         Not used here.
79         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
80         interface.
81         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
82         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
83         is Linux.
84         Fix includes.
85         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
87         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
88         definition to follow generic code.
90 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
92         * posix/getconf.c: Update copyright year.
93         * nss/getent.c: Likewise.
94         * iconv/iconvconfig.c: Likewise.
95         * iconv/iconv_prog.c: Likewise.
96         * elf/ldconfig.c: Likewise.
97         * catgets/gencat.c: Likewise.
98         * csu/version.c: Likewise.
99         * elf/ldd.bash.in: Likewise.
100         * elf/sprof.c (print_version): Likewise.
101         * locale/programs/locale.c: Likewise.
102         * locale/programs/localedef.c: Likewise.
103         * nscd/nscd.c (print_version): Likewise.
104         * debug/xtrace.sh: Likewise.
105         * malloc/memusage.sh: Likewise.
106         * malloc/mtrace.pl: Likewise.
107         * debug/catchsegv.sh: Likewise.
109         * Makerules: Add rule for libc-abis.h.
110         * csu/version.c: Use LIBC_ABIS_STRING string if available.
111         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
112         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
113         Add extra call to VALID_ELF_ABIVERSION.
115 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
117         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
119 2010-03-12  Andreas Schwab  <schwab@redhat.com>
121         * elf/dl-dst.h: Include "trusted-dirs.h".
122         (DL_DST_REQUIRED): Take $LIB into account.
124 2010-03-11  Roland McGrath  <roland@redhat.com>
126         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
127         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
129 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
131         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
132         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
134 2010-03-09  David S. Miller  <davem@davemloft.net>
136         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
137         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
138         64-bit ones.
140         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
142         * sysdeps/sparc/sparc32/strlen.S: Optimize.
143         * sysdeps/sparc/sparc64/strlen.S: Likewise.
144         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
145         XCC): Delete definitions, not needed.
147 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
149         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
150         Little follow-up patch from last change.
152 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
154         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
155         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
157 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
159         * resolv/res_send.c: Fixed DEBUG statements.
160         Moved tmpbuf declaration to block beginning and
161         updated pointer names used in multiple DprintQ() calls
163 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
165         * config.make.in (config-asflags-i686): Define.
166         * configure.in: Substitute libc_cv_as_i686.
167         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
168         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
169         if assembler supports -mtune=i686.
170         (ASFLAGS-.oX): Likewise.
172 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
174         * elf/elf.h (R_X86_64_SIZE32): Define.
175         (R_X86_64_SIZE64): Define.
177 2010-03-02  Richard Guenther  <rguenther@suse.de>
179         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
180         is sign-extending.
182 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
184         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
185         the kernel headers.
187 2010-03-04  David S. Miller  <davem@davemloft.net>
189         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
191         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
192         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
194 2010-03-03  David S. Miller  <davem@davemloft.net>
196         * math/math_private.h (INSERT_WORDS64): Fix argument order.
198 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
200         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
202 2010-03-03  David S. Miller  <davem@davemloft.net>
204         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
205         pass '1' for 't' argument to sparc_fixup_plt.
206         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
207         Likewise.
208         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
209         (sparc_fixup_plt): Document 't' argument.  Enable branch
210         optimization and use v9 branches when possible.  Explain why we
211         cannot unconditionally patch the branch into the first PLT
212         instruction.
213         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
214         argument.  Use v9 branches when possible.  Explain why we can in
215         fact unconditionally use a branch in the first PLT instruction
216         here.
218 2010-02-28  Roland McGrath  <roland@redhat.com>
220         * elf/elf.h (NT_X86_XSTATE): New macro.
222 2010-02-25  David S. Miller  <davem@davemloft.net>
224         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
225         * sysdeps/sparc/sparc64/align-cpy.S: New.
226         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
227         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
228         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
229         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
230         Remove.
231         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
232         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
233         Remove.
234         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
235         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
236         Remove.
238         * sysdeps/sparc/sparc32/bcopy.c: Delete.
239         * sysdeps/sparc/sparc32/memmove.c: Delete.
240         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
241         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
242         * sysdeps/sparc/sparc64/bcopy.c: Delete.
243         * sysdeps/sparc/sparc64/memmove.c: Delete.
244         * sysdeps/sparc/sparc64/memcopy.h: New.
245         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
246         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
247         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
248         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
249         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
251         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
252         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
253         gen-as-const-headers.
254         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
255         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
256         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
257         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
258         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
259         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
260         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
261         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
262         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
263         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
264         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
265         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
266         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
267         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
268         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
269         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
270         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
271         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
272         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
273         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
274         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
275         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
277         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
279 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
281         [BZ #11332]
282         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
283         and cfi_restore_state only if USE_AS_STRNCMP is defined.
285 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
287         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
289 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
291         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
292         (bk_write_less32bytes_2): Renamed to ...
293         (bk_write_less48bytes): This.
294         Use unsigned conditional jumps.
295         Correct unwind info.
296         Use add/sub instead of lea if possible.
297         (shl_0_gobble_cache_loop_tail): Removed.
298         (large_page): Properly adjust ECX.
300         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
301         conditional jumps.
302         Correct unwind info.
304         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
305         punpcklbw.
306         Use unsigned conditional jumps.
307         (128bytesormore_nt): Renamed to ...
308         (128bytesormore_endof_L1): This.
309         Use add instead of lea if possible.
310         Correct unwind info.
311         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
312         punpcklbw.
313         Use unsigned conditional jumps.
314         Use add instead of lea if possible.
315         Correct unwind info.
317 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
319         [BZ #11319]
320         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
321         undoing the stream because _IO_FINISH doesn't report failures.
323         [BZ #5553]
324         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
325         (public_pVALLOc): Likewise.
326         Patch by Petr Baudis.
328 2010-02-22  Jim Meyering  <meyering@redhat.com>
330         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
332         * manual/charset.texi: Adjust grammar.
334         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
335         * manual/charset.texi (Selecting the Conversion): Likewise.
336         * manual/getopt.texi (Getopt Long Options): Likewise.
337         * manual/memory.texi (Resizing the Data Segment): Likewise.
338         * manual/message.texi (GUI program problems): Likewise.
339         * manual/resource.texi (CPU Affinity): Likewise.
340         * manual/stdio.texi (Streams and Threads): Likewise.
341         * manual/time.texi (High Accuracy Clock): Likewise.
343 2009-02-20  David S. Miller  <davem@davemloft.net>
345         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
346         Adjust rela->r_offset by l->l_addr when rewriting PLT.
348         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
349         test end of buffer.
351         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
352         (__makecontext): Adjust arg counter properly when copying arg
353         stack slots.
355 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
357         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
358         Adjust rela->r_offset by l->l_addr when rewriting PLT.
360 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
362         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
363         non-existent `tiocsctty_port'.
365 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
367         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
368         instead of FEATURE_OFFSET.
369         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
371         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
372         Fix one unwind info problem.
374         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
376         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
378 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
379             Ulrich Drepper  <drepper@redhat.com>
381         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
382         Clean up a bit.
384 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
386         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
387         (tiocsctty_port): ...this new function.
389         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
390         `ioctl_handler_t'.
392 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
394         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
395         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
396         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
397         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
399         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
400         undefined code.
402 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
404         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
405         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
406         memcmp-c, memcmp-ssse3, and memcmp-sse4.
407         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
408         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
409         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
410         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
411         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
412         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
413         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
414         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
415         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
416         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
418 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
420         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
421         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
422         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
423         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
424         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
425         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
426         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
427         is not supported.
428         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
429         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
430         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
431         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
432         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
433         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
434         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
435         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
436         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
437         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
438         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
439         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
440         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
441         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
442         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
443         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
444         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
446         Likewise.
447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
448         Likewise.
449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
450         Likewise.
451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
452         Likewise.
453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
455 2010-02-12  Alan Modra  <amodra@gmail.com>
457         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
458         Define and use for __powerpc64__ too.
459         [__powerpc__] (TLS_LD): Add r3 to clobbers.
460         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
461         [__powerpc64__] (TLS_GD): Make __result r3 reg.
462         [__powerpc64__] (TLS_IE): Relax output constraint.
464 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
466         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
467         instructions cu21 and cu24.  Add well-formedness checking
468         parameter and adjust the software implementation.
469         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
471 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
473         [BZ #11271]
474         * io/ftw.c (ftw_startup): Close descriptor for initial directory
475         after changing back to it.
477 2010-02-05  David S. Miller  <davem@davemloft.net>
479         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
480         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
481         ifunc relocs.
482         (elf_machine_lazy_rel): Likewise.
483         (sparc_fixup_plt): Pull out to...
484         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
485         * sysdeps/sparc/sparc32/dl-irel.h: New file.
486         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
487         ifunc relocs.
488         (elf_machine_lazy_rel): Likewise.
489         (sparc64_fixup_plt): Pull out to...
490         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
491         * sysdeps/sparc/sparc64/dl-irel.h: New file.
493 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
495         * elf/elf.h: Define m68k TLS relocations.
497 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
499         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
500         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
501         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
502         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
504         64-bit power7 fpu path.
505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
506         32-bit power7 fpu math.
508 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
510         * sysdeps/i386/rshift.S: More compact unwind information.
512         * sysdeps/i386/lshift.S: Fix unwind information.
514 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
516         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
517         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
518         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
519         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
520         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
521         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
522         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
523         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
524         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
525         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
526         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
527         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
529 2010-02-08  Andreas Schwab  <schwab@redhat.com>
531         * include/fenv.h: Add hidden proto for fegetenv.
532         * math/fegetenv.c: Add hidden alias.
533         * sysdeps/i386/fpu/fegetenv.c: Likewise.
534         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
535         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
536         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
537         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
538         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
539         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
541 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
543         [BZ #11230]
544         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
545         during recovery.
547 2010-01-26  Andreas Schwab  <schwab@redhat.com>
549         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
550         interface.
551         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
552         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
553         utmpx interface.
555         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
556         entry for 2.12.
558 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
560         [BZ #11235]
561         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
562         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
563         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
564         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
565         MS_ACTIVE, and MS_NOUSER.
566         (MS_RMT_MASK): Update according to current kernels.
568         [BZ #11242]
569         * misc/getusershell.c (initshells): Allocate one more byte in input
570         buffer so that fgets doesn't loop undefinitely.
572 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
574         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
575         __libc_use_alloca tells us not to.  Fix memory leak in an error
576         situation.  Based partially on patch by Jim Meyering.
578 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
580         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
581         get_phys_pages, get_avphys_pages): Add weak aliases.
583 2010-01-25  Andreas Schwab  <schwab@redhat.com>
585         * iconv/iconv_prog.c (write_output): Fix check for open failure.
587 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
589         [BZ #11200]
590         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
591         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
593 2010-01-22  Jim Meyering  <jim@meyering.net>
595         [BZ #11193]
596         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
597         buffer length computation.
599         [BZ #11192]
600         * posix/regexec.c (re_copy_regs): Don't leak when allocation
601         of the start buffer succeeds but allocation of the "end" one fails.
603         [BZ #11191]
604         * posix/regexec.c (re_search_2_stub): Check for overflow
605         when adding the sizes of the two strings.
607         [BZ #11190]
608         * posix/regexec.c (re_search_internal): Avoid overflow
609         in computing re_malloc buffer size.
611         [BZ #11189]
612         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
613         in computing re_malloc buffer size.
615         [BZ #11188]
616         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
617         in size calculation.
619         [BZ #11187]
620         * posix/regexec.c (re_search_2_stub): Use simpler method than
621         boolean for freeing internal storage.
623 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
625         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
626         failed mbrtowc call.
628 2010-01-22  Jim Meyering  <jim@meyering.net>
630         [BZ #11186]
631         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
632         fits in wchar_t.  Problem reported by Eric Blake.
634         [BZ #11185]
635         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
636         and stores into set-but-not-used local, "q".
638         [BZ #11184]
639         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
640         detection test.  Patch by Paul Eggert.
642         [BZ #11183]
643         * posix/regex_internal.c (re_string_realloc_buffers):
644         Detect and handle internal overflow.  Patch by Paul Eggert
646 2010-01-20  Andreas Schwab  <schwab@redhat.com>
648         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
649         (CHECK_SP): Fix check for alternate stack.
650         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
651         (CHECK_SP): Likewise.
653 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
655         * sysdeps/i386/i686/multiarch/memmove.S: Also check
656         bit_Fast_Rep_String when SHARED isn't defined.
658 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
660         [BZ #11194]
661         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
663 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
665         * sysdeps/mach/hurd/bits/libc-lock.h
666         (__rtld_lock_recursive_t): New type.
667         (__rtld_lock_initialize): New macro.
669 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
671         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
672         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
676 2010-01-18  Andreas Schwab  <schwab@redhat.com>
678         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
679         definitions of O_DSYNC and O_RSYNC.
681         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
682         casting d_tag.
684         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
685         dynamic entry types.
687 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
689         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
690         constant.
691         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
692         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
693         overflow.
694         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
696         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
697         math_opt_barrier and math_force_eval macros.
699 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
701         * posix/regcomp.c: Fix a few more cases of ignored return values.
702         * posix/regex_internal.c: Likewise.
703         * posix/regexec.c: Likewise.
705         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
706         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
707         if _XOPEN_SOURCE is not defined as well.
709 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
711         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
712         high gprs kernel facility.
713         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
714         Added high gprs check for DSOs.
715         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
716         new elf header flag.
718 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
720         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
721         dl_main.
722         * elf/dl-open.c (_dl_sysdep_start): Likewise..
723         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
724         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
725         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
726         started.
728 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
730         [BZ #11027]
731         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
732         to RFC 2474.
733         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
735         [BZ #11141]
736         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
737         addresses.
739         [BZ #11127]
740         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
741         re_node_set_insert failure; return REG_ESPACE.
742         Patch by Paul Eggert.
744         * bits/confname.h: Make pre-C99-safe.
746 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
748         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
749         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
750         files are found by GCC.
752 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
754         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
755         brk, and sbrk.
757         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
758         index, and rindex.
760         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
762         * Versions.def: Add GLIBC_2.12 for libpthread.
764         [BZ #11126]
765         * malloc/malloc.c (malloc_info): Initialize malloc if not already
766         done.  Handle empty bin lists.
768         * posix/unistd.h: Change getpagesize and getdtablesize declaration
769         visibility some more.
771         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
773         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
775         [BZ #11120]
776         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
777         needed outside libc.
779 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
781         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
783 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
785         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
787 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
789         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
791 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
793         * conform/data/complex.h-data: Test for POSIX2008.
795         * conform/data/ctype.h-data: Fix POSIX testing.
797         * conform/data/dirent.h-data: ino_t only needed for XSI.
799         * grp/grp.h: Declare getgrent and endgrent for XPG7.
801         * conform/data/inttypes.h-data: Use same types as the headers.
803         * resolv/netdb.h: Don't define old resolver macros for XPG7.
805         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
807         * conform/conformtest.pl: Implement tag for allow-header.
808         Fix newline handling in allow-header implementation.
810         * conform/data/time.h-data: Use allow-header instead of duplicating
811         information.
813         * conform/data/time.h-data: Allow sigevent tag.
815         * posix/sched.h: Define time_t and pid_t for XPG7.
817 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
819         * sysdeps/i386/i686/bcopy.S: New file.
821         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
823         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
824         and END_CHK.
825         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
826         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
827         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
829         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
831         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
832         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
833         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
834         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
835         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
836         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
837         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
838         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
839         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
840         * sysdeps/i386/i686/multiarch/bzero.S: New file.
841         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
842         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
843         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
844         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
845         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
846         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
847         * sysdeps/i386/i686/multiarch/memmove.S: New file.
848         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
849         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
850         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
851         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
852         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
853         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
854         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
855         * sysdeps/i386/i686/multiarch/memset.S: New file.
856         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
858         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
859         (END_CHK): Likewise.
861         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
862         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
863         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
865         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
866         for 0x0e and 0x80.
867         (__x86_64_data_cache_size): New.
868         (init_cacheinfo): Set __x86_64_data_cache_size.
870         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
871         on bit_Fast_Rep_String for Intel Core i7.
873         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
874         (index_Fast_Rep_String): Likewise.
875         (FEATURE_INDEX_1): Likewise.
876         (FEATURE_INDEX_MAX): Likewise.
877         (cpu_features): Add feature.
879 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
881         * conform/data/sys/select.h-data: Fix up for XPG7.
883 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
885         * posix/sys/wait.h: Don't define W* macros etc. if
886         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
888 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
890         * io/sys/stat.h: Declare fchmod for XPG7.
891         * conform/data/sys/stat.h-data: Fix up for XPG7.
893         * termios/termios.h: Define pid_t for XPG7.
895         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
896         * conform/data/tgmath.h-data: Likewise.
898         * conform/data/time.h-data: Fix POSIX tests.
900         * conform/data/wchar.h-data: Fix up XPG7 tests.
902         * include/features.h: Fix __USE_ISOC95 handling.
904         * conform/data/wordexp.h-data: Fix typo in last change.
906         * conform/data/unistd.h-data: Fix up older POSIX tests.
908         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
909         * posix/unistd.h: Likewise.
911         * posix/unistd.h: Include environments.h also for XPG6 and up.
912         Define intptr_t for XPG6 and up.
913         Fix up for XPG7.
914         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
916         * conform/data/sys/types.h-data: Fix up for XPG7.
918         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
919         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
920         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
921         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
922         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
923         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
924         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
925         * sysdeps/unix/sysv/bits/stat.h: Likewise.
926         * sysdeps/mach/hurd/bits/stat.h: Likewise.
928         * bits/confname.h: Fix typo in last change.
930         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
932 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
934         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
935         and SA_RESETHAND now available in Base.
936         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
937         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
938         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
939         * conform/data/signal.h-data: Update for XPG7.
941         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
943         * string/strings.h: Don't declare obsolete functions for XPG7.
944         Declare ffs only for XSI.
945         * conform/data/strings.h-data: Update for XPG7.
947 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
949         [BZ #11125]
950         * libio/stdio.h: Define va_list, off_t, and ssize_t.
952         * posix/glob.h: Define size_t.
954         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
956         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
958 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
960         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
961         be self-contained.
963         * conform/data/stdio.h-data: Expect off_t and ssize_t.
965 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
967         * libio/stdio.h: Define va_list also for XPG7.
969         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
970         * conform/data/ctype.h-data: Likewise.
971         * conform/data/dirent.h-data: Likewise.
972         * conform/data/errno.h-data: Likewise.
973         * conform/data/fcntl.h-data: Likewise.
974         * conform/data/fmtmsg.h-data: Likewise.
975         * conform/data/fnmatch.h-data: Likewise.
976         * conform/data/ftw.h-data: Likewise.
977         * conform/data/glob.h-data: Likewise.
978         * conform/data/grp.h-data: Likewise.
979         * conform/data/iconv.h-data: Likewise.
980         * conform/data/langinfo.h-data: Likewise.
981         * conform/data/libgen.h-data: Likewise.
982         * conform/data/limits.h-data: Likewise.
983         * conform/data/locale.h-data: Likewise.
984         * conform/data/math.h-data: Likewise.
985         * conform/data/monetary.h-data: Likewise.
986         * conform/data/mqueue.h-data: Likewise.
987         * conform/data/ndbm.h-data: Likewise.
988         * conform/data/netdb.h-data: Likewise.
989         * conform/data/pthread.h-data: Likewise.
990         * conform/data/pwd.h-data: Likewise.
991         * conform/data/regex.h-data: Likewise.
992         * conform/data/sched.h-data: Likewise.
993         * conform/data/search.h-data: Likewise.
994         * conform/data/semaphore.h-data: Likewise.
995         * conform/data/setjmp.h-data: Likewise.
996         * conform/data/signal.h-data: Likewise.
997         * conform/data/spawn.h-data: Likewise.
998         * conform/data/stdio.h-data: Likewise.
999         * conform/data/stdlib.h-data: Likewise.
1000         * conform/data/string.h-data: Likewise.
1001         * conform/data/strings.h-data: Likewise.
1002         * conform/data/sys/ipc.h-data: Likewise.
1003         * conform/data/sys/msg.h-data: Likewise.
1004         * conform/data/sys/resource.h-data: Likewise.
1005         * conform/data/sys/sem.h-data: Likewise.
1006         * conform/data/sys/shm.h-data: Likewise.
1007         * conform/data/sys/socket.h-data: Likewise.
1008         * conform/data/sys/stat.h-data: Likewise.
1009         * conform/data/sys/time.h-data: Likewise.
1010         * conform/data/sys/types.h-data: Likewise.
1011         * conform/data/sys/uio.h-data: Likewise.
1012         * conform/data/sys/wait.h-data: Likewise.
1013         * conform/data/syslog.h-data: Likewise.
1014         * conform/data/tar.h-data: Likewise.
1015         * conform/data/termios.h-data: Likewise.
1016         * conform/data/time.h-data: Likewise.
1017         * conform/data/ulimit.h-data: Likewise.
1018         * conform/data/unistd.h-data: Likewise.
1019         * conform/data/utmpx.h-data: Likewise.
1020         * conform/data/wchar.h-data: Likewise.
1021         * conform/data/wctype.h-data: Likewise.
1022         * conform/data/wordexp.h-data: Likewise.
1024         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1025         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1026         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1027         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1028         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1030         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1031         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1032         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1033         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1035         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1036         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1037         Declare mkstemp and getsubopt for XPG7.
1038         Declare posix_openpt for XPG6 XSI.
1040         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1041         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1043         * string/string.h: Declare strdup for XPG7.
1045 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1047         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1048         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1050         * dirent/dirent.h: Really fix feature selection.
1052         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1053         Fix all users.
1054         * locale/C-address.c: Fix all users.
1055         * locale/C-collate.c: Likewise.
1056         * locale/C-ctype.c: Likewise.
1057         * locale/C-identification.c: Likewise.
1058         * locale/C-measurement.c: Likewise.
1059         * locale/C-messages.c: Likewise.
1060         * locale/C-monetary.c: Likewise.
1061         * locale/C-name.c: Likewise.
1062         * locale/C-numeric.c: Likewise.
1063         * locale/C-paper.c: Likewise.
1064         * locale/C-telephone.c: Likewise.
1065         * locale/C-time.c: Likewise.
1066         * locale/findlocale.c: Likewise.
1067         * locale/global-locale.c: Likewise.
1068         * locale/loadarchive.c: Likewise.
1069         * locale/loadlocale.c: Likewise.
1070         * locale/nl_langinfo_l.c: Likewise.
1071         * locale/setlocale.c: Likewise.
1072         * locale/xlocale.c: Likewise.
1073         * locale/xlocale.h: Likewise.
1074         * stdio-common/vfscanf.c: Likewise.
1075         * stdlib/strfmon_l.c: Likewise.
1076         * stdlib/strtod_l.c: Likewise.
1077         * stdlib/strtol_l.c: Likewise.
1078         * string/strcoll_l.c: Likewise.
1079         * string/strxfrm_l.c: Likewise.
1080         * time/alt_digit.c: Likewise.
1081         * time/asctime.c: Likewise.
1082         * time/era.c: Likewise.
1083         * time/lc-time-cleanup.c: Likewise.
1084         * time/strftime_l.c: Likewise.
1085         * time/strptime_l.c: Likewise.
1086         * wcsmbs/wcsmbsload.c: Likewise.
1087         * wcsmbs/wcsmbsload.h: Likewise.
1089         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1090         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1091         for XPG7.
1092         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1093         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1094         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1095         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1096         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1097         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1099 2010-01-07  Roland McGrath  <roland@redhat.com>
1101         * elf/elf.h (PN_XNUM): New macro.
1103         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1104         literal 2.
1106 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1108         * dirent/dirent.h: Fix typo in feature selection macro use.
1110 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1112         [BZ #11115]
1113         * stdlib/tst-makecontext3.c: New file.
1114         * stdlib/Makefile (tests): Add new test.
1116         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1118 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1120         * configure.in: Enable multi-arch by default if the assembler
1121         supports gnu_indirect_function symbol type and the architecture
1122         supports it.
1124 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1126         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1127         is defined.
1129 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1131         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1132         MACH_PORT_NULL when id != cttyid.
1134 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1136         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1137         __mach_port_deallocate on rootdevid.
1139 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1141         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1142         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1143         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1144         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1146 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1148         [BZ #10992]
1149         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1150         Patch by Eric Blake <ebb9@byu.net>.
1152 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1154         [BZ #11093]
1155         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1156         POLLWRBAND also for POSIX 2008.
1157         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1158         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1160         * include/link.h (struct link_map): Move l_used into its own word.
1161         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1162         still zero.
1163         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1164         never really used.
1166 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1168         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1169         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1170         check processor feature.
1171         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1172         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1173         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1174         (index_SSE2): Likewise.
1176 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1178         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1179         if __ASSEMBLER__ is defined.
1180         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1181         (bit_SSE4_2): Likewise.
1182         (index_SSSE3): Likewise.
1183         (index_SSE4_2): Likewise.
1184         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1185         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1186         check processor feature.
1187         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1188         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1189         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1190         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1191         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1192         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1193         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1195 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1197         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1199 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1201         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1203 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1205         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1206         O_DSYNC to match 2.6.33+ kernels.
1207         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1208         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1209         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1210         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1211         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1212         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1214 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1216         [BZ #11000]
1217         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1218         *herrnop before returning.
1219         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1220         Likewise.
1221         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1222         TRYAGAIN errors separately.
1223         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1224         *name4_r after functions.
1226 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1228         [BZ #11046]
1229         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1230         version check.
1232 2009-11-05  Bruno Haible  <bruno@clisp.org>
1234         [BZ #11056]
1235         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1236         argv argument as non-NULL.
1237         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1239 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1241         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1242         recvmmsg.
1243         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1244         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1246 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1248         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1249         registers.
1250         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1251         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1252         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1254 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1256         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1257         SCHED_RESET_ON_FORK.
1259 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1261         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1262         only used on truly ancient kernel if configuration requires a more
1263         recent kernel.
1265 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1267         [BZ #3662]
1268         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1269         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1271         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1272         pass it on to __ptsname_internal.
1273         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1274         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1275         All the code from __ptsname_r but take additional parameter.  Use that
1276         instead of pointer to local stat64 variable.
1277         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1278         variable.
1279         * include/stdlib.h: Declare __ptsname_internal.
1281         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1282         before the exec.
1283         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1284         * login/programs/pt_chown.c (main): Don't print message on errors
1285         when doing real work.
1287         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1288         once.
1290         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1291         irel relocations split out from...
1292         (__libc_csu_init): ...here.
1293         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1295 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1297         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1298         for timestamps also if __USE_XOPEN2K8.
1299         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1300         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1301         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1302         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1304 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1306         * nscd/connections.c (restart): Try harder to re-exec.
1308         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1310         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1311         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1312         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1313         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1314         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1315         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1317         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1318         Define.
1319         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1321 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1323         [BZ #10162]
1324         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1325         than software pipeline.  Properly recover from shorter read.
1327 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1329         [BZ #10958]
1330         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1331         initialized before using it.
1332         (_IO_putwc_unlocked): Likewise.
1334         [BZ #10918]
1335         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1336         in cast to not throw away const-ness of parameters.
1337         (__CPU_EQUAL_S): Likewise.
1338         (__CPU_OP_S): Likewise.
1340         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1341         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1342         this gratuitous change and we have to keep compatibility.
1343         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1344         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1346         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1347         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1348         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1350 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1352         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1353         of parameters of sync_file_range.
1354         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1355         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1356         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1357         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1358         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1359         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1361 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1363         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1364         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1365         is defined.
1366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1367         file.
1369 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1371         * posix/bug-regex30.c: New file.
1372         * posix/Makefile: Add rules to build and run bug-regex30.
1373         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1374         character lead bytes when there is a range in a COMPLEX_BRACKET.
1375         Reported by Oleg Bylatov.
1377 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1379         [BZ #10969]
1380         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1381         * locale/tst-duplocale.c: New file.
1382         * locale/Makefile (tests): Add tst-duplocale.
1384         [BZ #10968]
1385         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1386         Patch by Bruno Haible <bruno@clisp.org>.
1387         * locale/tst-locname.c: New file.
1388         * locale/Makefile (tests): Add tst-locname.
1390         [BZ #10972]
1391         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1392         constants from recent kernels.
1393         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1394         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1395         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1396         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1397         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1398         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1400 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1402         [BZ #10162]
1403         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1404         software pipeline.
1406 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1408         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1409         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1410         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1412 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1414         * posix/bug-regex29.c: Include stdio.h.
1416 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1418         [BZ #10939]
1419         * Versions.def: Define GLIBC_2.12 for libc.
1420         * manual/errno.texi: Add ERFKILL entry.
1421         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1422         for 2.12.
1423         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1424         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1426         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1427         F_GETOWN_EX definitions according to corrected kernel definitions.
1428         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1429         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1430         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1431         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1432         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1433         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1435 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1437         * version.h: Bump for 2.12 development.
1439 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1441         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1442         out of buffer space.
1443         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1444         map_v4v6_hostent running out of space.
1446 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1448         * string/bits/string3.h (memset): If the second parameter is constant
1449         and zero there is likely no transposition.
1450         Patch by Caolan McNamara <caolanm@redhat.com.
1452 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1454         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1455         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1457 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1459         * malloc/memusagestat.c (main): Fix spelling in an error message.
1461 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1463         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1464         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1466 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1469         readahead.
1471 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1473         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1474         relocate opd entry when resolving prelink conflicts.
1476 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1478         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1479         when -D_FILE_OFFSET_BITS=64.
1481         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1482         of last two arguments when -D_FILE_OFFSET_BITS=64.
1483         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1484         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1485         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1486         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1487         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1488         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1490 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1492         [BZ #4457]
1493         * sysdeps/generic/libgcc_s.h: New file.
1494         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1496 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1498         * malloc/hooks.c (free_check): Restore locking and call _int_free
1499         appropriately.
1501 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1503         * version.h (VERSION): Bump for 2.11 release.
1504         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1506         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1508         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1510         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1511         to avoid warning.
1512         * stdlib/tst-strtoll.c (tests): Likewise.
1514         [BZ #9986]
1515         * time/strftime_l.c (__strftime_internal): Allow %OC.
1517         * misc/mkostemps.c: New file.
1518         * misc/mkostemps64.c: New file.
1520 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1522         * locale/programs/locale-spec.c: Include <error.h> and
1523         <libintl.h>.
1525         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1527 2009-10-28  Roland McGrath  <roland@redhat.com>
1529         * Makefile (dist-prepare): New target.
1530         (tag-for-dist): Target removed.
1531         (glibc-%.tar): Pattern rule removed.
1532         (%.tar): New pattern rule, does simple use of git archive.
1533         (dist-version): Remove variable definition.
1534         (dist): Just depend on that.  Add .tar.xz dependency.
1535         If dist-version variable not set on command line, depend on
1536         dist-prepare, re-invoke with dist-version set via git describe.
1538         * Makerules (%.xz): New pattern rule.
1540 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1542         * elf/ifuncdep2.c: Include ifunc-sel.h.
1543         (global): Delete.
1544         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1545         * elf/ifuncmain1.c (global): Delete.
1546         * elf/ifuncmain1vis.c: Likewise.
1547         * elf/ifuncmain2.c: Likewise.
1548         * elf/ifuncmain5.c: Likewise.
1549         * elf/ifuncmod3.c: Likewise.
1550         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1551         (foo_ifunc): Use ifunc_one.
1552         * elf/ifuncmain7.c: Likewise.
1553         * elf/ifuncmod1.c: Include ifunc-sel.h.
1554         (global): Define protected var.
1555         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1556         * elf/ifuncmod5.c: Likewise.
1557         * sysdeps/generic/elf/ifunc-sel.h: New file.
1558         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1560 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1562         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1563         (R_PPC_REL16*): Correct comments.
1564         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1565         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1566          R_PPC64_REL16_HA): Define.
1567         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1568         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1569         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1570         Delete unused "reloc" param.
1571         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1572         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1573         Delete "reloc" param.
1574         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1575         R_PPC_IRELATIVE.
1576         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1577         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1578         relocations.
1580 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1582         [BZ #10315]
1583         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1584         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1585         UDP_ENCAP_L2TPINUDP.
1587         [BZ #10349]
1588         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1589         parameter, specifying length of prefix.
1590         * stdio-common/tempname.c: Likewise.
1591         * include/stdio.h: Adjust prototypes.
1592         * libio/oldtmpfile.c: Adjust caller.
1593         * misc/mkdtemp.c: Likewise.
1594         * misc/mkostemp.c: Likewise.
1595         * misc/mkostemp64.c: Likewise.
1596         * misc/mkstemp.c:  Likewise.
1597         * misc/mkstemp64.c: Likewise.
1598         * misc/mktemp.c: Likewise.
1599         * stdio-common/tempnam.c: Likewise.
1600         * stdio-common/tmpfile.c: Likewise.
1601         * stdio-common/tmpnam.c: Likewise.
1602         * stdio-common/tmpnam_r.c: Likewise.
1603         * misc/mkstemps.c: New file.
1604         * misc/mkstemps64.c: New file.
1605         * stdlib/stdlib.h: Add prototypes.
1606         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1607         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1609 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1611         * locale/iso-639.def: Add sml entry.
1613         [BZ #10391]
1614         * resolv/res_send.c (send_dg): Initialize resplen.
1616         [BZ #10446]
1617         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1618         definition to the kernel's.
1619         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1621 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1623         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1624         offsets and record sizes in assert()s and response sending.
1625         * nscd/grpcache.c: Likewise.
1626         * nscd/hstcache.c: Likewise.
1627         * nscd/initgrcache.c: Likewise.
1628         * nscd/pwdcache.c: Likewise.
1630 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1632         [BZ #10540]
1633         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1634         /etc/hosts does not exist set errnop and herrnop appropriately.
1635         Patch by Steve Langasek <vorlon@debian.org>.
1637         [BZ #10553]
1638         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1639         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1641         [BZ #10564]
1642         * login/utmp_file.c (TIMEOUT): Increase to 10.
1644         [BZ #10609]
1645         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1646         for file names in case the syscall is not available.
1647         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1648         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1649         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1650         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1651         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1652         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1653         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1654         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1655         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1656         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1657         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1658         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1659         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1660         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1661         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1662         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1663         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1665         [BZ #10643]
1666         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1667         creation filed, remove the request from the 'requests' list and signal
1668         the caller that the request is finished.
1670         [BZ #10692]
1671         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1672         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1674         [BZ #10713]
1675         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1676         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1678         [BZ #10780]
1679         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1680         overflows the int return type.
1682         [BZ #10717]
1683         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1684         have to compute maxsize_total, we have to update the variables, and
1685         the also_total handling must happen after the repair.
1687         [BZ #10742]
1688         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1689         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1691 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1693         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1694         errno is always set when returning unsuccessfully.
1696 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1698         * malloc/memusage.c (update_data): Fix index wraparound handling
1699         so that buffer_cnt is actually reset.
1701 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1703         [BZ #10784]
1704         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1705         of the directory we look at into the static buffer if there is one
1706         at the start of the loop.
1708         [BZ #10789]
1709         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1710         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1712         [BZ #10840]
1713         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1714         __ASSUME_F_GETOWN_EX.
1715         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1716         if possible.
1717         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1719         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1720         and f_owner_ex.
1721         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1722         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1723         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1724         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1725         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1726         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1728         [BZ #10847]
1729         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1730         getutmpx symbol.
1732         [BZ #10823]
1733         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1734         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1736 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1738         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1740 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1742         [BZ #10817]
1743         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1744         Reported by Ray Chason.
1746 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1748         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1749         strend-sse4.
1750         * sysdeps/x86_64/multiarch/strchr.S: New file.
1751         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1752         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1754 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1756         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1758 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1760         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1761         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1762         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1763         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1764         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1765         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1766         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1767         __ieee751_expl to handle overflow.
1769 2009-10-14  David S. Miller  <davem@davemloft.net>
1771         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1772         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1774 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1776         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1777         !USE_MULTIARCH.
1779 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1781         [BZ #10730]
1782         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1783         Patch in part by Steve Ward <planet36@gmail.com>.
1785         [BZ #10731]
1786         * stdlib/rand_r.c: Fix typo.
1788         * po/cs.po: Update from translation team.
1790 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1792         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1793         returning if RTLD_NOLOAD.
1795 2009-10-06  Roland McGrath  <roland@redhat.com>
1797         * sysdeps/x86_64/multiarch/strstr-c.c
1798         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1800         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1801         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1803         * sysdeps/x86_64/multiarch/init-arch.h
1804         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1805         (HAS_CPU_FEATURE): New macro.
1806         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1807         * sysdeps/x86_64/multiarch/init-arch.c
1808         (__get_cpu_features): #undef it before definition.
1810 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1812         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1813         first_weekday to 1 and first_workday to 2.
1815 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1817         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1818         F_GETOWN_EX.
1819         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1820         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1821         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1822         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1823         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1824         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1826 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1828         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1829         * stdio-common/vfprintf.c: Likewise.
1831 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1833         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1834         (mkdirat): Call __directory_name_split_at instead of
1835         __directory_name_split.
1837 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1839         * locale/programs/locale-spec.c (locale_special): If nothing matches
1840         fail with an appropriate message.
1842 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1844         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1845         and XX.
1847 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1849         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1850         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1852 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1854         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1856 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1858         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1859         character size elements in step data.
1861 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1863         * po/hu.po: Update from translation team.
1864         * po/vi.po: Likewise.
1866 2009-09-19  Roland McGrath  <roland@redhat.com>
1868         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1870 2009-09-15  Roland McGrath  <roland@redhat.com>
1872         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1873         * nptl/sysdeps/pthread/configure: Regenerated.
1874         * nptl/sysdeps/x86_64/configure: Regenerated.
1875         * sysdeps/unix/sysv/linux/configure: Regenerated.
1876         * sysdeps/x86_64/elf/configure: Regenerated.
1878         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1880         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1881         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1882         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1883         * configure: Regenerated.
1885 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1887         * posix/getconf.c (main): Handle -- on command line.
1889 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1891         * configure.in: Support binutils 2.100 and 3.0.
1893 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1895         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1896         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1897         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1898         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1900 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1902         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1903         unnamed_section_defined field.
1904         (collate_read): Test and set unnamed_section_defined.
1906         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1907         _POSIX2_LINE_MAX.
1909 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1911         * configure.in: Support binutils 2.20.
1913 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1915         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1916         __strstr_ia32): Add attribute_hidden.
1918 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1920         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1921         parsing of group entry.
1923 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1925         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1926         external buffer.  Always discard readahead in internal buffer.
1927         * libio/Makefile (tests): Add bug-wsetpos.
1928         * libio/bug-wsetpos.c: New file.
1930 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1932         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1933         Add attribute_hidden.
1934         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1935         __strcasestr_sse2): Likewise.
1936         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1937         (__fma_fma): Make static.
1938         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1939         (__fmaf_fma): Make static.
1941 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1943         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1944         reformulate in-buffer optimisation check to match code in
1945         _IO_new_file_seekoff.
1947 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1949         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1950         to srwi in 32-bit memcpy for power6.
1952 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1954         * include/stdio.h: Declare hidden proto for fflush.
1955         * libio/iofflush.c: Add hidden weak alias for fflush.
1957 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1959         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1960         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1962 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1964         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1966 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1968         [BZ #10560]
1969         * malloc/malloc.c: Add local assert definition to avoid problems with
1970         memory allocation in the real one.
1972 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1974         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1975         Removed.
1976         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1977         turn off SSSE3 on Atom.
1979 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1981         * stdlib/tst-strtol.c (tests): More tests.
1982         * stdlib/tst-strtoll.c (tests): Likewise.
1984 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1986         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1988         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1990 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1992         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1993         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1995         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1997         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1999         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2001 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
2003         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2005 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2007         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2008         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2010         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2012         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2013         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2015         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2016         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2018         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2019         leftover YMM_SIZE definition.
2021 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2023         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2024         union.
2025         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2026         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2027         Redefine.
2028         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2030         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2031         and SET_FLOAT_WORD definitions.
2033 2009-08-24  Roland McGrath  <roland@redhat.com>
2035         * sysdeps/unix/syscall-template.S: New file.
2036         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2037         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2038         (compile-syscall): Pass mkdep and -g options as normal.
2039         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2040         (common-generated): Don't add them here.
2042 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2044         * math/s_fdim.c: In case of overflows set errno.
2045         * math/s_fdimf.c: Likewise.
2046         * math/s_fdiml.c: Likewise.
2048         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2049         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2050         are using the inline optimizations.
2052         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2053         (__signbitf): Likewise.
2055 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2057         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2058         terminated.
2059         * posix/Makefile (tests): Add bug-regex29.
2060         * posix/bug-regex29.c: New file.
2062         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2063         older POSIX versions are selected.
2065         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2066         as well.
2067         * stdio-common/printf_fphex.c: Likewise.
2068         * stdio-common/tstdiomisc.c: Add more tests.
2070         * locale/locale.h: Include xlocale.h and the thread-local locale
2071         declarations for XPG7, not XPG6.
2073 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2075         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2076         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2079         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2080         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2082 2009-08-20  Roland McGrath  <roland@redhat.com>
2084         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2085         Use l_addr instead of l_map_start (dli_fbase).
2086         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2087         address when there is no proximate symbol.
2088         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2089         Likewise.
2091 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2093         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2095 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2097         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2098         Also handle SIGINT.  In that case only do the cleanup and then
2099         re-raise the signal.
2100         (main): Install handler for SIGINT.
2102 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2104         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2105         clobber list.
2107 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2109         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2110         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2111         tst-auditmod7b.c.
2112         (tests): Add tst-audit6 tst-audit7.
2113         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2114         tst-auditmod7a tst-auditmod7b.
2115         ($(objpfx)tst-audit6): New.
2116         ($(objpfx)tst-audit6.out): Likewise.
2117         ($(objpfx)tst-audit7): Likewise.
2118         ($(objpfx)tst-audit7.out): Likewise.
2119         (tst-audit6-ENV): Likewise.
2120         (tst-audit7-ENV): Likewise.
2121         (CFLAGS-tst-auditmod6b.c): Likewise.
2122         (CFLAGS-tst-auditmod6c.c): Likewise.
2123         (CFLAGS-tst-auditmod7b.c): Likewise.
2124         * elf/tst-audit6.c: New file.
2125         * elf/tst-audit7.c: New file.
2126         * elf/tst-auditmod6a.c: New file.
2127         * elf/tst-auditmod6b.c: New file.
2128         * elf/tst-auditmod6c.c: New file.
2129         * elf/tst-auditmod7a.c: New file.
2130         * elf/tst-auditmod7b.c: New file.
2131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2132         saving and restoring SSE/AVX registers to ...
2133         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2135 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2137         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2138         only if SHARED is defined.
2139         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2141 2009-08-03  Jim Meyering  <meyering@redhat.com>
2143         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2145 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2147         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2148         section as the other functions for this architecture.
2149         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2151 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2153         * sysdeps/x86_64/strcmp.S: Add support to compile with
2154         USE_SSSE3.  In this case palignr is used.
2155         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2156         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2157         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2158         Add strcmp-ssse3 and strncmp-ssse3.
2159         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2160         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2162         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2163         warning through fake initialization.
2165 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2167         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2169 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2171         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2172         unique symbols.
2174 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2176         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2177         EBX from EAX = 1.  Handle EAX = 11.
2179 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2181         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2182         inside ''.
2184 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2186         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2187         hidden IFUNC functions.
2188         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2190         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2192         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2193         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2194         strcasestr-c.
2195         (CFLAGS-strcspn-c.c): Define.
2196         (CFLAGS-strpbrk-c.c): Define.
2197         (CFLAGS-strspn-c.c): Define.
2198         (CFLAGS-strstr.c): Define.
2199         (CFLAGS-strcasestr.c): Define.
2200         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2201         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2202         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2203         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2204         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2205         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2206         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2207         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2208         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2209         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2210         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2211         -16L instead of 0xfffffffffffffff0L.
2212         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2214 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2216         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2218 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2220         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2221         another rewrite.  Much smaller and faster.
2222         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2224         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2225         ss_flags from the correct location.
2227 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2229         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2230         * sysdeps/i386/i686/cacheinfo.c: New file.
2231         * sysdeps/i386/i686/multiarch/Makefile: New file.
2232         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2233         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2234         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2235         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2236         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2237         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2238         (__cpuid_count): New. Provide the default.
2239         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2240         (__x86_64_preferred_memory_instruction): Define only if
2241         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2242         (intel_check_word): Use __cpuid.
2243         (handle_intel): Likewise.
2244         (handle_amd): Likewise.
2245         (__cache_sysconf): Likewise.
2246         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2247         (__cache_sysconf): Likewise.
2248         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2249         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2250         (get_common_indeces): Use __cpuid.
2251         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2252         if ENABLE_SSSE3_ON_ATOM is not defined.
2253         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2254         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2255         popcnt instead of popcntq.
2257 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2259         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2261 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2263         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2264         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2265         which always causes a compile error.
2267         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2269         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2270         comes from...
2271         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2272         which always causes a compile error.
2274         * debug/Makefile (tests): Add tst-longjmp_chk2.
2275         * debug/tst-longjmp_chk2.c: New file.
2277         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2278         Remove incorrect use of BP_SYM.
2279         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2280         here now since it is more complex than just a simple check.
2282         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2283         we make no more progress.
2285 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2287         * math/s_fma.c: Don't define alias if __fma is a macro.
2288         * math/s_fmaf.c: Likewise.
2289         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2290         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2291         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2293         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2294         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2295         New macro HAS_FMA.
2296         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2297         function.
2298         * include/libc-symbols.h (libm_ifunc): Define.
2299         * sysdeps/x86_64/multiarch/Versions: New file.
2301         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2303 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2305         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2307 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2309         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2310         call that registers used in calling conventions need to be preserved.
2311         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2312         to preserve register content if necessary.
2313         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2314         (_dl_x86_64_restore_sse): New function.
2315         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2316         is allowed to modify xmm/ymm registers.
2318         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2319         application's perspective.
2320         * stdio-common/scanf17.c: Likewise.
2322 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2324         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2325         size to memsz.
2326         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2327         here.
2328         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2329         two steps to catch bugs.
2331 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2333         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2334         determines which files are used in runtime lookups and only checks
2335         those for SSE use.
2336         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2337         testing.
2338         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2339         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2340         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2341         take a while.
2343         * elf/dl-open.c: Move _dl_scope_free to...
2344         * elf/dl-scope.c: ...here.  New file.
2345         * elf/Makefile (dl-routines): Add scope.
2347         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2348         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2349         RES_USE_DNSSEC.
2350         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2351         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2352         all the places we handled RES_USE_EDNS0 only before.
2353         Patch by Adam Tkac <atkac@redhat.com>.
2355 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2357         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2358         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2359         Update size when reallocating.
2361 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2363         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2364         functions used in ld.so modify xmm/ymm registers.
2365         * sysdeps/x86_64/Makefile:  Hook new test up.
2366         * sysdeps/x86_64/rtld-memchr.c: New file.
2367         * sysdeps/x86_64/rtld-memcmp.c: New file.
2368         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2369         * sysdeps/x86_64/rtld-strchr.S: New file.
2370         * sysdeps/x86_64/rtld-strlen.S: New file.
2371         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2372         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2374 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2376         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2377         strncmp-c.
2378         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2379         (exit): Likewise.
2380         (Byte1): Likewise.
2381         (Byte2): Likewise.
2382         (Byte3): Likewise.
2383         (Byte4): Likewise.
2384         (Byte5): Likewise.
2385         (Byte6): Likewise.
2386         (next_8_bytes): Likewise.
2387         (Byte0): Remove commented out codes.
2388         (unaligned_table): Align jump table at 8 bytes.
2389         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2390         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2391         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2392         * sysdeps/x86_64/strncmp.S: New file.
2394 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2396         [BZ #10422]
2397         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2398         kernels, dropped when eventfd2 support was added.
2399         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2400         kernels, dropped when signalfd4 support was added.
2401         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2402         added, name them.
2404         [BZ #10452]
2405         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2406         replies up.
2408         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2410 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2412         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2413         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2415         [BZ #10448]
2416         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2417         callback we must touch the status to avoid using stale value.
2419         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2420         compiled in.
2422 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2424         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2425         /lib/modules/* headers anymore.  We have sane headers in the standard
2426         place now.
2428 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2430         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2431         "etf3enh" and "highgprs" added.
2432         (_dl_s390_platforms): "z10" added.
2433         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2434         Increased for the new entries.
2435         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2436         HWCAP_S390_HIGH_GPRS added.
2438         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2439         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2440         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2441         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2442         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2444 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2446         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2447         avoid additional cpuid instructions.  Most of the information is
2448         stored somewhere.
2450         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2451         cache descriptors.
2452         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2454         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2455         SSSE3 bit for Atoms.
2456         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2457         here anymore.
2459         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2460         structure before copying it to avoid warning.
2461         * posix/tst-rfc3484-2.c (do_test): Likewise.
2462         * posix/tst-rfc3484-3.c (do_test): Likewise.
2464         [BZ #10416]
2465         * include/unistd.h: Make header file suitable for C++ test cases.
2466         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2468         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2469         stack alignment in the exit code.
2471         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2472         potentially be zero.
2474         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2475         unique symbol definition.
2476         Patch by Jakub Jelinek.
2477         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2478         make sure the object with the definition cannot be unloaded.  Adjust
2479         a few types.
2480         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2481         the unique symbol hash table should not be const.
2483 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2485         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2486         unnecesary variables.  Comment fixes.
2488 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2490         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2491         Use NONASCII_CASE information provided by the locale to determine
2492         whether optimized string load function can be used.  Minor cleanups.
2494 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2496         * string/strcasestr.c (STRCASESTR): New macro.
2497         (__strcasestr): Renamed to ..
2498         (STRCASESTR): ...this.
2499         * string/strstr.c (STRSTR): New macro.
2500         (strstr): Renamed to ..
2501         (STRSTR): ...this.
2502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2503         strstr-c strcasestr-c
2504         (CFLAGS-strstr.c): New.
2505         (CFLAGS-strcasestr.c): Likewise.
2506         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2507         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2508         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2509         * sysdeps/x86_64/multiarch/strstr.c: New file.
2511 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2513         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2514         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2515         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2516         _NL_CTYPE_NONASCII_CASE.
2517         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2518         field.
2519         (ctype_finish): Check whether there are any 8-bit characters outside
2520         the range ASCII has or whether the mapping isn't the same as for
2521         ASCII (±0x20).  Set nonascii_case appropriately.
2522         (ctype_output): Add output handler for nonascii_case.
2524 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2526         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2527         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2529 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2531         [BZ #10360]
2532         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2533         0xffff in the EDNS0 record.
2535 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2537         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2538         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2539         is written before the list head update.
2540         Patch by Andreas Schwab <aschwab@redhat.com>.
2542 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2543             Jakub Jelinek  <jakub@redhat.com>
2545         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2546         corruption thread-safe.
2548 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2550         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2551         overrides atomic_compare_and_exchange_val_rel, define to
2552         atomic_compare_and_exchange_val_rel by default, otherwise default
2553         to catomic_compare_and_exchange_val_acq.
2554         (catomic_compare_and_exchange_bool_rel): If arch overrides
2555         atomic_compare_and_exchange_bool_rel, define to
2556         atomic_compare_and_exchange_bool_rel by default.
2557         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2558         Use catomic_compare_and_exchange_val_rel instead of
2559         catomic_compare_and_exchange_val_acq.
2561 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2563         * sysdeps/generic/ldsodefs.h: Add prototype for
2564         _dl_higher_prime_number.
2565         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2567         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2568         restoring of ymm registers a bit.
2570 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2572         * sysdeps/x86_64/memcmp.S: New file.
2574 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2576         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2577         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2578         pointers in writable memory.
2580 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2582         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2583         * config.make.in: Add config-cflags-avx entry.
2584         * configure.in: Substitute libc_cv_cc_avx.
2585         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2586         * elf/tst-audit4.c: New file.
2587         * elf/tst-audit5.c: New file.
2588         * elf/tst-auditmod4a.c: New file.
2589         * elf/tst-auditmod4b.c: New file.
2590         * elf/tst-auditmod5a.c: New file.
2591         * elf/tst-auditmod5b.c: New file.
2592         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2593         link-defines.sym.
2594         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2595         (La_x86_64_vector): Likewise.
2596         (La_x86_64_regs): Append lr_vector.
2597         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2598         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2599         saving and restoring SSE registers to ...
2600         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2601         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2602         <link-defines.h>.
2603         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2604         La_x86_64_regs.  Allocate extra space and jump to memory at
2605         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2606         (save_and_restore_vector_sse): New.
2607         (save_and_restore_vector_avx): Likewise.
2608         (check_avx): Likewise.
2609         (save_and_restore_vector): Likewise.
2610         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2611         HAVE_AVX_SUPPORT.
2612         * sysdeps/x86_64/link-defines.sym: New file.
2614 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2616         * elf/do-lookup.h: Removed after folding content into...
2617         * elf/dl-lookup.c: ...here.
2619         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2621 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2623         * configure.in: Check for gnu_unique_symbol symbol type.
2624         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2625         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2626         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2627         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2628         change.
2629         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2630         unique symbol table.
2631         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2632         for first namespace.
2633         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2634         unique symbol hash table.
2635         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2636         * elf/tst-unique1.c: New file.
2637         * elf/tst-unique1mod1.c: New file.
2638         * elf/tst-unique1mod2.c: New file.
2639         * elf/tst-unique2.c: New file.
2640         * elf/tst-unique2mod1.c: New file.
2641         * elf/tst-unique2mod2.c: New file.
2643 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2645         * elf/elf.h (STB_GNU_UNIQUE): Define.
2647         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2648         from...
2649         * include/inline-hashtab.h: ...here.
2650         (htab_expand): Adjust for renamed function.  Correct memory handling.
2652 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2654         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2656 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2658         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2659         (PPC_FEATURE_HAS_VSX): Likewise.
2661 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2663         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2664         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2666         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2667         aligned to 16 byte boundaries.
2668         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2669         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2670         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2672 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2674         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2675         * config.make.in (config-cflags-sse4): New variable.
2676         * configure.in: Substitute libc_cv_cc_sse4.
2677         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2678         HAVE_SSE4_SUPPORT.
2679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2680         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2681         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2682         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2683         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2684         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2685         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2686         * sysdeps/x86_64/multiarch/strspn.S: New file.
2688 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2690         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2691         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2692         (tests): Add tst-audit3 for x86_64.
2693         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2694         ($(objpfx)tst-audit3): Define.
2695         ($(objpfx)tst-audit3.out): Define.
2696         (tst-audit3-ENV): Define.
2697         * elf/tst-audit3.c: New file.
2698         * elf/tst-auditmod3a.c: New file.
2699         * elf/tst-auditmod3b.c: New file.
2700         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2701         and restore xmm6.
2703         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2704         (__stpncpy): Renamed to ...
2705         (STPNCPY): This.
2706         (stpncpy): Create alias only if STPNCPY is not defined.
2707         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2708         defined.
2709         (strncpy): Renamed to ...
2710         (STRNCPY): This.
2711         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2712          stpncpy-c strncpy-c for string.
2713         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2714         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2715         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2716         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2717         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2718         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2720 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2722         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2723         adding to fast bin list.
2725 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2727         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2728         inet_makeaddr.  This worked only with class-based networks.
2729         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2730         Likewise.
2732         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2733         recognize all types.
2734         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2735         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2736         be in host byte order.
2738 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2740         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2741         (MODEL_OFFSET): Define.
2742         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2743         family and model.
2744         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2745         out common code into new function get_common_indeces. Determine
2746         extended family and model for Intel processors.
2748 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2750         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2751         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2752         option.
2753         * resolv/res_send.c (reopen): New function.  Broken out of...
2754         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2755         fallback mechanism.  If single-request fails switch to
2756         single-request-reopen mode which opens a new socket for the second
2757         request.
2759 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2761         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2762         (CHECK_SP): Use it.
2764 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2766         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2767         for saved registers.
2768         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2769         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2770         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2772 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2774         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2776 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2778         * po/id.po: Update from translation team.
2780         * po/bg.po: Update from translation team.
2782 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2784         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2785         defined.
2786         (strncmp): Renamed to STRNCMP.
2787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2788         strncmp-c for string.
2789         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2790         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2791         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2792         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2794 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2796         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2797         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2798         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2799         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2800         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2801         ifuncmain7static.c.
2802         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2803         ifuncmain7static, and ifuncmain7picstatic.
2804         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2805         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2806         $(objpfx)ifuncmain7pie.out.
2807         (modules-names): Add ifuncmod5 ifuncmod6
2808         (ifuncmod5.so-no-z-defs): Define.
2809         (ifuncmod6.so-no-z-defs): Define.
2810         (CFLAGS-ifuncmain5pic.c): Define.
2811         (CFLAGS-ifuncmain5picstatic.c): Define.
2812         (CFLAGS-ifuncmain5staticpic.c): Define.
2813         (CFLAGS-ifuncdep5pic.c): Define.
2814         (CFLAGS-ifuncmain7pic.c): Define.
2815         (CFLAGS-ifuncmain7picstatic.c): Define.
2816         (CFLAGS-ifuncmain1staticpie.c): Define.
2817         (CFLAGS-ifuncmain5pie.c): Define.
2818         (CFLAGS-ifuncmain6pie.c): Define.
2819         (CFLAGS-ifuncmain7pie.c): Define.
2820         ($(objpfx)ifuncmain1staticpie.out): Define.
2821         ($(objpfx)ifuncmain1staticpie): Define.
2822         ($(objpfx)ifuncmain5pie.out): Define.
2823         ($(objpfx)ifuncmain5pie): Define.
2824         ($(objpfx)ifuncmain6pie.out): Define.
2825         ($(objpfx)ifuncmain6pie): Define.
2826         ($(objpfx)ifuncmain5): Define.
2827         ($(objpfx)ifuncmain5pic): Define.
2828         ($(objpfx)ifuncmain5static): Define.
2829         ($(objpfx)ifuncmain5staticpic): Define.
2830         ($(objpfx)ifuncmain5picstatic): Define.
2831         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2832         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2833         ifuncmain6pie.out.
2834         * elf/b/elf/ifuncmain1staticpie.c: New file.
2835         * elf/ifuncdep5.c: New file.
2836         * elf/ifuncdep5pic.c: New file.
2837         * elf/ifuncmain5.c: New file.
2838         * elf/ifuncmain5pic.c: New file.
2839         * elf/ifuncmain5picstatic.c: New file.
2840         * elf/ifuncmain5pie.c: New file.
2841         * elf/ifuncmain5static.c: New file.
2842         * elf/ifuncmain5staticpic.c: New file.
2843         * elf/ifuncmain6pie.c: New file.
2844         * elf/ifuncmain7.c: New file.
2845         * elf/ifuncmain7pic.c: New file.
2846         * elf/ifuncmain7picstatic.c: New file.
2847         * elf/ifuncmain7pie.c: New file.
2848         * elf/ifuncmain7static.c: New file.
2849         * elf/ifuncmod5.c: New file.
2850         * elf/ifuncmod6.c: New file.
2852 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2854         [BZ #10085]
2855         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2856         (nss_endgrent): New variable.
2857         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2858         fields. Change type of files to bool and adjust all users.
2859         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2860         (internal_endgrent): Call nss_endgrent if necessary.
2861         (add_group): New function.  Broken out of...
2862         (check_and_add_group): ...here.
2863         (getgrent_next_nss): Remove test that any callback is available.
2864         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2865         callback.  If there is no blacklist we can trust the results returned
2866         by the initgroups_dyn callback.  In case there is a callback and we
2867         find a group entry for the group ID but it doesn't contain the
2868         correct member, switch to the slow mode and use getgrent_r.
2869         (internal_getgrent_r): When we see a +: entry, determine whether
2870         there is any callback and which we can use the initgroups_dyn
2871         callback.
2873 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2875         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2876         (_int_free): Likewise.
2878         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2879         AF_IEEE802154.
2880         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2881         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2882         and ARPHRD_IEEE802154_PHY.
2884         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2885         relative to generic Linux version.
2887 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2889         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2890         ($(objpfx)ifuncmain1vispie): Likewise.
2892 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2894         * login/Makefile: Build pt_chown as PIE.
2896 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2898         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2899         a format string.
2900         * elf/sln.c (usage): Likewise.
2901         * malloc/memusage.sh (do_help): Likewise.
2902         * nss/getent.c (more_help): Likewise.
2903         * posix/getconf.c (main): Likewise.
2904         * sunrpc/rpcinfo.c (usage): Likewise.
2905         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2907 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2909         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2910         those needed.
2911         * login/Makefile: If necessary link pt_chown with -lcap.
2912         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2913         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2915 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2917         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2918         comparisons.
2919         * string/test-memchr.c (do_random_tests): Test very large lengths
2920         as well.
2922 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2924         * Makeconfig (+link-pie): Define.
2925         (+prectorS): Define.
2926         (+postctorS): Define.
2927         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2928         * nscd/Makefile ($(objpfx)nscd): Likewise.
2930 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2932         [BZ #10107]
2933         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2934         with cmplwi.
2935         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2937 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2939         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2940         into ...
2941         * sysdeps/unix/grantpt.c: ...here.
2943 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2945         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2946         chmod if it is necessary.
2948         [BZ #10166]
2949         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2950         when the slave device is in devpts or devfs.
2952         [BZ #10183]
2953         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2955         [BZ #10195]
2956         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2957         of nd_opt_home_agent_info_preference to uint16_t.
2958         Patch by Arnaud Ebalard <arno@natisbad.org>.
2960         [BZ #10207]
2961         * nss/getent.c: Add support for printing gshadow data.
2963         [BZ #10203]
2964         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2965         not just the currently used one and those which follow.
2966         Patch by Joe Landers <jlanders@vmware.com>.
2968         [BZ #10196]
2969         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2970         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2971         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2973         [BZ #10217]
2974         * stdlib/abort.c: Define variable __abort_msg.
2975         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2976         * include/stdlib.h: Declare __abort_msg.
2977         * assert/assert-perr.c: Don't free buffer for message immediately.
2978         Store atomically in __abort_msg and free old buffer if necessary.
2979         * assert/assert.c: Likewise.
2980         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2981         store pointer in __abort_msg, and possibly free old string.
2982         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2984         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2986         [BZ #10211]
2987         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2988         handle leap seconds if they are available.
2989         Patch by Akinori Hattori <hattya@gentoo.org>.
2991         * timezone/tzselect.ksh: Update from tzcode2009i.
2992         * timezone/zdump.c: Likewise.
2993         * timezone/zic.c: Likewise.
2995         * timezone/africa: Update from tzdata2009i.
2996         * timezone/antarctica: Likewise.
2997         * timezone/asia: Likewise.
2998         * timezone/australasia: Likewise.
2999         * timezone/backward: Likewise.
3000         * timezone/etcetera: Likewise.
3001         * timezone/europe: Likewise.
3002         * timezone/factory: Likewise.
3003         * timezone/iso3166.tab: Likewise.
3004         * timezone/leapseconds: Likewise.
3005         * timezone/northamerica: Likewise.
3006         * timezone/pacificnew: Likewise.
3007         * timezone/solar87: Likewise.
3008         * timezone/solar88: Likewise.
3009         * timezone/solar89: Likewise.
3010         * timezone/southamerica: Likewise.
3011         * timezone/systemv: Likewise.
3012         * timezone/yearistype: Likewise.
3013         * timezone/zone.tab: Likewise.
3015 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3017         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3018         STT_GNU_IFUNC symbol or in 8 into type_class.
3020         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3021         instead of Elf64_Addr.
3023 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3025         * po/sv.po: Update from translation team.
3027         [BZ #10229]
3028         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3029         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3030         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3031         the C version.
3033 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3035         * Versions.def: Add GLIBC_2.11 for libpthread.
3037 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3039         * resolv/res_send.c (send_dg): Remember we switched to
3040         single-request mode.
3042 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3044         * dlfcn/dlfcn.h: Remove comma at end of enum.
3045         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3047         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3048         parsing mode string.
3050 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3052         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3054         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3056         * sysdeps/x86_64/multiarch/strlen.S: New file.
3057         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3058         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3059         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3060         content.
3062         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3063         is defined.
3065 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3067         * sysdeps/x86_64/strlen.S: Minor optimizations.
3069 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3071         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3072         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3073         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3074         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3075         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3076         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3077         ifuncmain3.c, ifuncmod3.c,.
3078         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3079         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3080         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3081         ifuncmain4picstatic.
3082         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3083         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3084         ifuncmain3, ifuncmain4.
3085         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3086         $(objpfx)ifuncmain1vispie.out.
3087         (modules-names): Add ifuncmod1 ifuncmod3.
3088         (generated): Add ifuncmain1pie ifuncmain1pie.out
3089         ifuncmain1vispie ifuncmain1vispie.out.
3090         Define rules to build and run the tests.
3091         * elf/ifuncdep1.c: New file.
3092         * elf/ifuncdep1pic.c: New file.
3093         * elf/ifuncdep2.c: New file.
3094         * elf/ifuncdep2pic.c: New file.
3095         * elf/ifuncmain1.c: New file.
3096         * elf/ifuncmain1pic.c: New file.
3097         * elf/ifuncmain1picstatic.c: New file.
3098         * elf/ifuncmain1pie.c: New file.
3099         * elf/ifuncmain1static.c: New file.
3100         * elf/ifuncmain1staticpic.c: New file.
3101         * elf/ifuncmain1vis.c: New file..
3102         * elf/ifuncmain1vispic.c: New file..
3103         * elf/ifuncmain1vispie.c: New file.
3104         * elf/ifuncmain2.c: New file.
3105         * elf/ifuncmain2pic.c: New file.
3106         * elf/ifuncmain2picstatic.c: New file.
3107         * elf/ifuncmain2static.c: New file.
3108         * elf/ifuncmain3.c: New file.
3109         * elf/ifuncmain4.c: New file.
3110         * elf/ifuncmain4picstatic.c: New file.
3111         * elf/ifuncmain4static.c: New file.
3112         * elf/ifuncmod1.c: New file.
3113         * elf/ifuncmod3.c: New file.
3115 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3117         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3119 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3121         [BZ #10221]
3122         * posix/Makefile (routines): Add execvpe.
3123         * posix/Versions: Export execvpe for GLIBC_2.11.
3124         * posix/execvp.c: Now only a wrapper.  Move code to...
3125         * posix/execvpe.c: ...here.  New file.
3126         * posix/unistd.h: Declare execvpe.
3128 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3130         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3131         for STT_GNU_IFUNC handling for efficiency.
3132         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3134         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3135         _exit.
3136         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3138 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3140         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3141         for !SHARED.
3143 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3145         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3146         is not defined.
3147         (__rela_iplt_start): New declaration.
3148         (__rela_iplt_end): Likewise.
3149         (__rel_iplt_start): Likewise.
3150         (__rel_iplt_end): Likewise.
3151         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3152         * elf/elf.h (R_386_IRELATIVE): New macro.
3153         (R_X86_64_IRELATIVE): New macro.
3154         (R_386_NUM): Updated.
3155         (R_X86_64_NUM): Likewise.
3156         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3157         (libc_ifunc_hidden_def): New macro.
3158         * sysdeps/generic/dl-irel.h: New file.
3159         * sysdeps/i386/dl-irel.h: New file.
3160         * sysdeps/x86_64/dl-irel.h: New file.
3161         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3162         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3163         Handle R_386_IRELATIVE.
3164         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3165         (elf_machine_lazy_rela): Likewise.
3166         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3167         R_X86_64_IRELATIVE.
3168         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3170 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3172         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3173         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3174         are no differences.  If an architecture has bits in CPUID index 1
3175         meaning different things the values for the COMMON_CPUID_INDEX_1
3176         index must not be set.
3177         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3178         (HAS_POPCOUNT): ...this.  New macro.
3179         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3180         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3181         to set the value for Intel and AMD architectures.
3182         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3183         INTEL_CPUID_INDEX_1.
3184         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3185         change.
3187 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3189         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3190         and $build.
3192 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3194         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3195         (__expm1l): Set errno to ERANGE on overflow.
3196         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3197         (__tanl): Set errno to EDOM for Â±Inf.
3198         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3199         (__cosl): Set errno to EDOM for Â±Inf.
3200         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3201         (__sinl): Set errno to EDOM for Â±Inf.
3203         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3204         defined, use it.
3205         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3206         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3207         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3209 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3211         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3212         code accessing it.
3213         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3215 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3217         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3218         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3219         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3220         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3222         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3223         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3224         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3225         defined.
3226         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3227         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3229 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3231         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3232         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3233         is, either do nothing at all if __ASSUME_ACCEPT4, or
3234         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3235         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3236         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3237         define.
3238         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3239         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3240         internal_accept4 in socket directory.
3242 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3244         * sysdeps/ia64/configure.in: New file.
3246 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3248         [BZ #10162]
3249         * sysdeps/ia64/memchr.S: Use speculative load.
3251         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3252         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3253         use it.
3255         * sysdeps/i386/__longjmp.S: Add .text.
3256         * sysdeps/x86_64/__longjmp.S: Likewise.
3258 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3260         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3261         __ASSUME_ACCEPT4 for IA-64.
3263 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3265         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3267         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3268         (SOCKOP_accept4): Define.
3270 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3272         Sun approved the change of the license.
3273         * sunrpc/auth_des.c: Replace license text.
3274         * sunrpc/auth_none.c: Likewise.
3275         * sunrpc/auth_unix.c: Likewise.
3276         * sunrpc/authdes_prot.c: Likewise.
3277         * sunrpc/authuxprot.c: Likewise.
3278         * sunrpc/bindrsvprt.c: Likewise.
3279         * sunrpc/clnt_gen.c: Likewise.
3280         * sunrpc/clnt_perr.c: Likewise.
3281         * sunrpc/clnt_raw.c: Likewise.
3282         * sunrpc/clnt_simp.c: Likewise.
3283         * sunrpc/clnt_tcp.c: Likewise.
3284         * sunrpc/clnt_udp.c: Likewise.
3285         * sunrpc/clnt_unix.c: Likewise.
3286         * sunrpc/des_crypt.c: Likewise.
3287         * sunrpc/des_soft.c: Likewise.
3288         * sunrpc/get_myaddr.c: Likewise.
3289         * sunrpc/getrpcport.c: Likewise.
3290         * sunrpc/key_call.c: Likewise.
3291         * sunrpc/key_prot.c: Likewise.
3292         * sunrpc/openchild.c: Likewise.
3293         * sunrpc/pm_getmaps.c: Likewise.
3294         * sunrpc/pm_getport.c: Likewise.
3295         * sunrpc/pmap_clnt.c: Likewise.
3296         * sunrpc/pmap_prot.c: Likewise.
3297         * sunrpc/pmap_prot2.c: Likewise.
3298         * sunrpc/pmap_rmt.c: Likewise.
3299         * sunrpc/rpc/auth.h: Likewise.
3300         * sunrpc/rpc/auth_unix.h: Likewise.
3301         * sunrpc/rpc/clnt.h: Likewise.
3302         * sunrpc/rpc/des_crypt.h: Likewise.
3303         * sunrpc/rpc/key_prot.h: Likewise.
3304         * sunrpc/rpc/netdb.h: Likewise.
3305         * sunrpc/rpc/pmap_clnt.h: Likewise.
3306         * sunrpc/rpc/pmap_prot.h: Likewise.
3307         * sunrpc/rpc/pmap_rmt.h: Likewise.
3308         * sunrpc/rpc/rpc.h: Likewise.
3309         * sunrpc/rpc/rpc_des.h: Likewise.
3310         * sunrpc/rpc/rpc_msg.h: Likewise.
3311         * sunrpc/rpc/svc.h: Likewise.
3312         * sunrpc/rpc/svc_auth.h: Likewise.
3313         * sunrpc/rpc/types.h: Likewise.
3314         * sunrpc/rpc/xdr.h: Likewise.
3315         * sunrpc/rpc_clntout.c: Likewise.
3316         * sunrpc/rpc_cmsg.c: Likewise.
3317         * sunrpc/rpc_common.c: Likewise.
3318         * sunrpc/rpc_cout.c: Likewise.
3319         * sunrpc/rpc_dtable.c: Likewise.
3320         * sunrpc/rpc_hout.c: Likewise.
3321         * sunrpc/rpc_main.c: Likewise.
3322         * sunrpc/rpc_parse.c: Likewise.
3323         * sunrpc/rpc_parse.h: Likewise.
3324         * sunrpc/rpc_prot.c: Likewise.
3325         * sunrpc/rpc_sample.c: Likewise.
3326         * sunrpc/rpc_scan.c: Likewise.
3327         * sunrpc/rpc_scan.h: Likewise.
3328         * sunrpc/rpc_svcout.c: Likewise.
3329         * sunrpc/rpc_tblout.c: Likewise.
3330         * sunrpc/rpc_util.c: Likewise.
3331         * sunrpc/rpc_util.h: Likewise.
3332         * sunrpc/rpcinfo.c: Likewise.
3333         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3334         * sunrpc/rpcsvc/key_prot.x: Likewise.
3335         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3336         * sunrpc/rpcsvc/mount.x: Likewise.
3337         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3338         * sunrpc/rpcsvc/rex.x: Likewise.
3339         * sunrpc/rpcsvc/rstat.x: Likewise.
3340         * sunrpc/rpcsvc/rusers.x: Likewise.
3341         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3342         * sunrpc/rpcsvc/spray.x: Likewise.
3343         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3344         * sunrpc/rtime.c: Likewise.
3345         * sunrpc/svc.c: Likewise.
3346         * sunrpc/svc_auth.c: Likewise.
3347         * sunrpc/svc_authux.c: Likewise.
3348         * sunrpc/svc_raw.c: Likewise.
3349         * sunrpc/svc_run.c: Likewise.
3350         * sunrpc/svc_simple.c: Likewise.
3351         * sunrpc/svc_tcp.c: Likewise.
3352         * sunrpc/svc_udp.c: Likewise.
3353         * sunrpc/svc_unix.c: Likewise.
3354         * sunrpc/svcauth_des.c: Likewise.
3355         * sunrpc/xcrypt.c: Likewise.
3356         * sunrpc/xdr.c: Likewise.
3357         * sunrpc/xdr_array.c: Likewise.
3358         * sunrpc/xdr_float.c: Likewise.
3359         * sunrpc/xdr_mem.c: Likewise.
3360         * sunrpc/xdr_rec.c: Likewise.
3361         * sunrpc/xdr_ref.c: Likewise.
3362         * sunrpc/xdr_sizeof.c: Likewise.
3363         * sunrpc/xdr_stdio.c: Likewise.
3365         * po/da.po: Update from translation team.
3367 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3369         * sysdeps/sh/____longjmp_chk.S: New file.
3370         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3371         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3373 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3374             Ulrich Drepper  <drepper@redhat.com>
3376         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3377         (__nscd_cache_search): Assume each entry in the
3378         hash chain needs one hashentry and half of datahead.  Use
3379         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3381 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3383         * posix/sys/wait.h: Fix typos.  Pretty printing.
3384         * stdlib/stdlib.h: Likewise.  Correct comments.
3386         [BZ #10159]
3387         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3389         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3390         patch.
3392 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3394         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3395         Use it if we absolutely cannot reach any more correct list elements
3396         because that many do not fit into the currently mapped database.
3398 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3400         * nscd/nscd_helper.c: Include stddef.h.
3401         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3402         in a couple of places.  Return NULL if trail is not less than
3403         datasize, don't consider dataheads with length smaller than
3404         offsetof (struct datahead, data) + datalen.
3405         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3406         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3407         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3408         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3409         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3410         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3411         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3413         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3414         Rename ...
3415         (fallocate64): ... to this.
3416         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3417         Rename ...
3418         (fallocate64): ... to this.
3419         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3420         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3421         fallocate64@@GLIBC_2.10.
3422         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3423         fallocate64@@GLIBC_2.11.
3424         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3426         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3427         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3429         * nscd/selinux.c (nscd_avc_destroy): Removed.
3430         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3431         * nscd/nscd.c (termination_handler): Don't call
3432         nscd_avc_destroy.
3434 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3436         * include/atomic.h: Formatting.
3437         (catomic_compare_and_exchange_val_acq): Don't define if already
3438         defined by bits/atomic.h.
3440 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3442         * math/libm-test.inc (expm1_test): Add test for range error.
3444         * Versions.def: Add GLIBC_2.11 for libc.
3445         * debug/Makefile (routines): Add longjmp_chk.
3446         Add rules to build and run tst-longjmp_chk.
3447         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3448         * debug/longjmp_chk.c: New file.
3449         * debug/tst-longjmp_chk.c: New file.
3450         * include/bits/setjmp2.: New file.
3451         * include/stdio.h: Mark __fortify_fail as internal_function.
3452         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3453         * setjmp/bits/setjmp2.h: New file.
3454         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3455         of the aliases.
3456         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3457         defined.
3458         * sysdeps/i386/____longjmp_chk.S: New file.
3459         * sysdeps/x86_64/____longjmp_chk.S: New file.
3460         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3461         * sysdeps/x86_64/__longjmp.S: Likewise.
3463         * version.h: Bump for 2.11 development.
3465         * elf/check-execstack.c: New file.
3466         * elf/Makefile: Add rules to build and run check-execstack.
3468 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3470         * version.h (VERSION): Bump to 2.10.1.
3472         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3473         compatibility functions.
3474         * nss/getXXent_r.c: Likewise.
3475         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3476         * gshadow/getsgnam_r.c: Likewise.
3477         * gshadow/Version: Remove duplicate entries.
3479         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3480         for recent processor.
3481         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3482         Likewise.
3484 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3486         * version.h (VERSION): Bump for 2.10 release.
3487         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3489         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3490         same place we add ASFLAGS-config.
3492 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3494         [BZ #10128]
3495         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3496         or FORMERR and the other NOERROR, don't raise an error.
3498 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3500         [BZ #10118]
3501         * Makeconfig (+asflags): New variable based upon ASFLAG or
3502         asflags-cpu.
3503         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3504         * config.make.in (asflags-cpu): Add variable based upon
3505         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3506         the assembler.
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3508         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3509         recognizes power6 instruction set due to passing -mcpu=power6 from
3510         --with-cpu=power6 when compiling .S files.
3511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3512         Likewise.
3513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3514         Likewise.
3515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3516         Likewise.
3518 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3520         * string/stratcliff.c (do_test): Test for zero length
3521         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3522         at the end of the page.
3524 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3526         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3528         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3529         count is zero.
3531         * po/da.po: Update from translation team.
3533 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3535         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3536         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3538 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3540         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3541         and READ_IMPLIES_EXEC.
3543 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3545         * po/da.po: Update from translation team.
3547 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3549         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3550         comment change.
3552 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3554         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3555         to MAP_ANON in PROT_NONE mmap64 call.
3556         (open_archive): Likewise.
3557         (file_data_available_p): Use mmap64 instead of mremap.
3558         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3559         Attempt to reserve address space after mmap64 region.
3561 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3563         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3564         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3565         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3567         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3568         atanh should set ERANGE.
3570         [BZ #10087]
3571         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3572         result of lookup to make call to implement STT_GNU_IFUNC.
3573         (_dl_profile_fixup): Likewise.
3574         Patch by H.J. Lu <hjl.tools@gmail.com>.
3576         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3577         warning.
3579         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3580         from definition.
3582         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3583         label if it is not used.
3585         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3586         of gmon_hist_hdr and gmon_hdr structures and use them.
3587         * elf/sprof.c: Likewise.
3589         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3590         warning.
3592         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3594         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3595         to avoid cast.
3597         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3598         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3599         to avoid warnings.
3600         (iruserok_af): Use ss_family instead of casts.
3602         * gmon/gmon.c (write_hist): Define real-type variant of
3603         gmon_hist_hdr structure and use it.
3604         (write_gmon): Likewise for gmon_hdr.
3606         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3607         function if we are not going to define it.
3608         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3610         * inet/inet6_option.c (option_alloc): Add temporary variable to
3611         avoid warning.
3613         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3614         name of VTable element.
3615         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3616         * libio/iovsscanf.c: Likewise.
3617         * libio/vasprintf.c: Likewise.
3618         * libio/vsnprintf.c: Likewise.
3619         * stdio-common/isoc99_vsscanf.c: Likewise.
3620         * stdlib/strfmon_l.c: Likewise.
3621         * debug/vasprintf_chk.c: Likewise.
3622         * debug/vsnprintf_chk.c: Likewise.
3623         * debug/vsprintf_chk.c: Likewise.
3625         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3626         function pointers.
3628 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3630         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3632 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3634         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3636         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3637         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3638         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3639         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3640         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3641         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3642         * math/libm-test.inc: Add tests for errno after tan calls with
3643         Â±Inf.
3645         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3646         errno value vor pow(+-0,neg).
3647         * math/libm-test.inc (pow_test): Add tests for errno value for
3648         pole errors.
3650         * math/w_fmod.c: Also handle x=±Inf as error.
3651         * math/w_fmodf.c: Likewise.
3652         * math/w_fmodl.c: Likewise.
3653         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3654         x=±Inf or y=0.
3656         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3657         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3658         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3659         * sysdeps/i386/fpu/s_sin.S: Likewise.
3660         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3661         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3662         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3663         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3664         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3665         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3666         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3667         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3668         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3669         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3670         Â±Inf.
3672         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3673         ERANGE for underflows.
3674         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3676         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3677         the 2001 revision.
3679         * libio/tst-widetext.input: Remove surrogates.
3681         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3683         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3684         for lgamma should set errno to ERANGE, not EDOM.
3685         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3687 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3689         [BZ #10093]
3690         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3691         UTF-16 surrogates.
3693         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3694         space when temporarily mapping the whole content of the old file.
3696         [BZ #10100]
3697         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3698         not zero.
3700 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3702         * iconvdata/sjis.c (BODY): Don't advance inptr before
3703         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3704         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3705         two byte chars.
3707 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3709         * locale/locarchive.h (struct locarhandle): Rename len field to
3710         mmaped and add new reserved field.
3711         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3712         (create_archive): Reserve address space and then map file into it.
3713         (open_archive): Likewise.
3714         (file_data_available_p): New function.
3715         (compare_from_file): New function.
3716         (close_archive): Adjust to member name changes.
3717         (add_locale): Before comparing locale data, check it is mapped.
3718         Otherwise fall back to reading from the file.
3720 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3722         * stdio-common/psiginfo.c: Include <errno.h>.
3724 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3726         [BZ #9920]
3727         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3728         to get consistency between 32 and 64 bit architectures.
3730         [BZ #10052]
3731         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3732         directory for dummy syscall rules.
3733         Patch by Chris Steinbroner <hesh@pobox.com>.
3735 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3737         [BZ #10092]
3738         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3739         MNT_EXPIRE.
3741 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3743         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3744         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3746 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3748         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3749         data from vector to temporary buffer and call PWRITEV after it
3750         instead of vice versa.
3751         * sysdeps/posix/preadv.c: Fix up comment.
3752         * misc/preadv.c: Likewise.
3753         * misc/preadv64.c: Likewise.
3754         * misc/pwritev.c: Likewise.
3755         * misc/pwritev64.c: Likewise.
3756         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3758 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3760         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3762         * shadow/Makefile (tests): Add tst-shadow.
3763         * shadow/tst-shadow.c: New file.
3765         [BZ #9955]
3766         * gshadow/Makefile: New file.
3767         * gshadow/Versions: New file.
3768         * gshadow/fgetsgent.c: New file.
3769         * gshadow/fgetsgent_r.c: New file.
3770         * gshadow/getsgent.c: New file.
3771         * gshadow/getsgent_r.c: New file.
3772         * gshadow/getsgnam.c: New file.
3773         * gshadow/getsgnam_r.c: New file.
3774         * gshadow/gshadow.h: New file.
3775         * gshadow/putsgent.c: New file.
3776         * gshadow/sgetsgent.c: New file.
3777         * gshadow/sgetsgent_r.c: New file.
3778         * gshadow/tst-gshadow.c: New file.
3779         * include/gshadow.h: New file.
3780         * Makeconfig (all-subdirs): Add gshadow.
3781         * Makefile (installed-headers): Add gshadow/gshadow.h.
3782         * nss/Makefile (databases): Add sgrp.
3783         * nss/Versions: Add gshadow functions as private exports.
3784         * nss/nsswitch.conf: Add gshadow entry.
3785         * nss/sgrp-lookup.c: New file.
3786         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3787         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3788         * nss/nss_files/files-sgrp.c: New file.
3789         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3790         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3792 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3794         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3795         * stdio-common/reg-modifier.c: Likewise.
3797 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3799         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3800         is no FPU.
3802 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3804         [BZ #10086]
3805         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3806         headers up to 2.6.30.
3808         * po/ca.po: Update from translation team.
3810 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3812         [BZ #10069]
3813         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3814         an object that uses static TLS if the TLS modid is higher than the
3815         reserve we always allocate.  At least for multi-threaded code.
3817 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3819         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3820         Numerically stable check for valid width.
3822         * locale/programs/locarchive.c (open_archive): Map the entire file
3823         and not just the administrative data.
3824         (add_locale): When we find a hash sum match compare the content
3825         to be sure.
3827         * malloc/malloc.c (malloc_info): Output address space information.
3829 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3831         * malloc/malloc.c (malloc_info): Also output system memory information.
3833         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3834         architectures have preadv/pwritev in 2.6.30.
3836         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3837         * sysdeps/posix/readv.c: Likewise.
3838         Reported by Markus Armbruster <armbru@redhat.com>.
3840         * malloc/hooks.c (top_check): Force hook value into register.
3842 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3844         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3845         calls to _dl_relocate_object.
3847 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3849         [BZ #9957]
3850         * malloc/malloc.c (force_reg): Define.
3851         (sYSMALLOc): Load hook variable into variable
3852         before test and force into register.
3853         (sYSTRIm): Likewise.
3854         (public_mALLOc): Force hook value into register.
3855         (public_fREe): Likewise.
3856         (public_rEALLOc): Likewise.
3857         (public_mEMALIGn): Likewise.
3858         (public_vALLOc): Likewise.
3859         (public_pVALLOc): Likewise.
3860         (public_cALLOc): Likewise.
3861         (__posix_memalign): Likewise.
3862         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3863         before test and force into register.
3864         * malloc/hooks.c (top_check): Likewise.
3865         (public_sET_STATe): Pretty printing.
3867         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3868         in case we only receive one reply in single-request mode.
3870 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3872         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3873         are dlopened in statically linked program even for __LM_ID_CALLER.
3875 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3877         * resolv/res_send.c (send_dg): Don't switch into single-request
3878         mode if we already are in it.
3880 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3882         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3883         are always at least 4 bytes in the returned line.
3885 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3887         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3888         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3889         instead of 8K.  Stop searching in /proc/stat after hitting first
3890         line not starting with cpu.
3891         (next_line): Truncate too long
3892         lines at buffer size * 3/4 instead of pretending there were line
3893         breaks inside of large lines.
3895 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3897         * sysdeps/x86_64/mp_clz_tab.c: New file.
3899 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3900             Ulrich Drepper  <drepper@redhat.com>
3902         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3903         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3904         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3906 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3908         * sysdeps/sh/libc-tls.c: New file.
3910         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3912 2009-04-14  Roland McGrath  <roland@redhat.com>
3914         * elf/elf.h: Add various missing ARM constants, to match binutils.
3916 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3918         Optimizations from GMP.
3919         * sysdeps/x86_64/add_n.S: New file.
3920         * sysdeps/x86_64/addmul_1.S: New file.
3921         * sysdeps/x86_64/lshift.S: New file.
3922         * sysdeps/x86_64/mul_1.S: New file.
3923         * sysdeps/x86_64/rshift.S: New file.
3924         * sysdeps/x86_64/sub_n.S: New file.
3925         * sysdeps/x86_64/submul_1.S: New file.
3927 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3929         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3930         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3931         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3932         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3934 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3936         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3937         preadv/pwritev.
3939 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3941         * sysdeps/x86-64/strrchr.S: New file.
3943 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3945         * stdio-common/printf.h (struct printf_info): Add user element.
3946         New types printf_arginfo_size_function, printf_va_arg_function.
3947         Declare register_printf_specifier, register_printf_modifier,
3948         register_printf_type.
3949         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3950         (union printf_arg): Add pa_user element.
3951         Adjust __printf_arginfo_table type.
3952         Add __printf_va_arg_table, __printf_modifier_table,
3953         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3954         declarations.
3955         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3956         If registered arginfo call failed try normal specifier.
3957         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3958         function.
3959         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3960         * stdio-common/Versions: Export register_printf_modifier,
3961         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3962         * stdio-common/reg-modifier.c: New file.
3963         * stdio-common/reg-type.c: New file.
3964         * stdio-common/reg-printf.c (__register_printf_specifier): New
3965         function.  Mostly the old __register_printf_function function but
3966         uses locking and type of third parameter changed.
3967         (__register_printf_function): Implement using
3968         __register_printf_specifier.
3969         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3970         calls to arginfo functions.  Allocate enough memory for user-defined
3971         types.  Call new va_arg functions to get user-defined types.
3972         Try installed handlers even for existing format specifiers first.
3974 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3976         * sysdeps/x86_64/rawmemchr.S: New file.
3978         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3979         Simplified code and possible copy problem fixed.
3981         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3982         function if it is not defined.  Add some necessary casts.
3983         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3985         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3986         have preadv/pwritev in 2.6.30.
3988 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3990         * malloc/malloc.c (malloc_info): New function.
3991         * malloc/malloc.h: Declare it.
3992         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3994         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3995         to avoid PLT slot.
3997         * malloc/malloc.c (_int_realloc): Add parameter with old block
3998         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3999         Adjust all callers.
4000         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4002 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
4004         * sysdeps/x86_64/strchrnul.S: New file.
4006         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4007         depending libcrypt on -lfreebl3.
4009         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4010         preadv/pwritev in 2.6.30.
4012         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4013         instead of __strcasecmp.
4015         * string/stratcliff.c (do_test): Add memchr tests..
4016         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4017         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4018         first read quad word.
4020 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4022         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4023         * string/tst-svc.input: Add new test case.
4024         * string/tst-svc.expect: Adjust.
4025         * string/Makefile: Don't ignore tst-svc error.
4027         * sysdeps/x86_64/memchr.S: New file.
4029         * resolv/resolv.h (RES_SNGLKUP): Define.
4030         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4031         * resolv/res_send.c (send_dg): If we sent two requests at once and
4032         only get one reply before timeout switch to mode where we send the
4033         second request only after the first answer has been received.
4035 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4037         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4038         * sysdeps/x86_64/strchr.S: Likewise.
4040 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4042         * configure.in: We need to test for the compiler earlier.
4044         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4045         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4046         GLIBC_2.10.
4047         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4048         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4049         and pwritev.
4050         * misc/preadv.c: New file.
4051         * misc/preadv64.c: New file.
4052         * misc/pwritev.c: New file.
4053         * misc/pwritev64.c: New file.
4054         * sysdeps/posx/preadv.c: New file.
4055         * sysdeps/posx/preadv64.c: New file.
4056         * sysdeps/posx/pwritev.c: New file.
4057         * sysdeps/posx/pwritev64.c: New file.
4058         * sysdeps/unix/sysv/linux/preadv.c: New file.
4059         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4060         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4061         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4062         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4063         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4065         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4066         compatibility code.
4067         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4069         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4070         __ASSUME_COMPLETE_READV_WRITEV.
4071         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4072         with modern kernels.
4073         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4075         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4076         to free a possible malloced buffer in case of cancellation.
4077         * sysdeps/posix/writev.c: Likewise for write.
4079 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4081         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4083         * configure.in: Recognize --enable-nss-crypt.
4084         * config.make.in: Add nss-crypt entry.
4085         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4086         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4087         and include path for NSS directory to compiler for md5-crypt,
4088         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4089         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4090         function implementation, use NSS.  Introduce wrappers around the
4091         hash function calls.  Little code size optimization.
4092         * crypt/sha256-crypt.c: Likewise.
4093         * crypt/sha512-crypt.c: Likewise.
4094         * scripts/check-local-headers.sh: Ignore nss3 directory.
4096         * configure.in: Rename pic_default to libc_cv_pic_default.
4097         * config.make.in: Likewise.
4099 2009-04-01  Roland McGrath  <roland@redhat.com>
4101         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4102         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4103         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4104         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4105         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4106         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4107         (R_SPARC_NUM): Update.
4108         From Dave Miller <davem@davemloft.net>.
4110 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4112         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4114 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4116         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4117         those which are used.
4118         * elf/dl-addr.c: Likewise.
4119         * elf/dl-caller.c: Likewise.
4120         * elf/dl-fini.c: Likewise.
4121         * elf/dl-iteratephdr.c: Likewise.
4122         * elf/dl-libc.c: Likewise.
4123         * elf/dl-load.c: Likewise.
4124         * elf/dl-support.c: Likewise.
4125         * elf/dl-sym.c: Likewise.
4126         * elf/rtld.c: Likewise.
4127         * sysdeps/generic/ldsodefs.h: Likewise.
4129         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4130         * elf/dl-minimal.c: Likewise.
4131         * elf/dl-misc.c: Likewise.
4132         * elf/rtld.c: Likewise.
4133         * sysdeps/generic/ldsodefs.h: Likewise.
4135 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4137         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4138         Avoid reuse of complex expression.
4140         * po/fr.po: Update from translation team.
4142 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4144         * include/dirent.h: Yet more changes to match sort function type
4145         change.
4146         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4147         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4148         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4150 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4152         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4154 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4156         * nscd/connections.c (restart): Try to preserve the process name
4157         by reading the /proc/self/exe symlink and using the return name.
4158         Patch by Jeff Bastian <jbastian@redhat.com>.
4160 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4162         [BZ #9733]
4163         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4164         if we are not loading a new audit library.
4165         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4166         Only use profiling trampoline for auditing if we are not relocating
4167         an audit library.
4168         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4169         * elf/rtld.c: Likewise.
4170         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4172         * elf/rtld.c (dl_main): Extend help message for --audit option.
4174         [BZ #9759]
4175         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4176         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4177         * dirent/alphasort.c: Adjust implementation to type change.
4178         * dirent/alphasort64.c: Likewise.
4179         * dirent/scandir.c: Likewise.
4180         * dirent/versionsort.c: Likewise.
4181         * dirent/versionsort64.c: Likewise.
4182         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4183         declaration.
4184         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4185         declaration.
4187         [BZ #9880]
4188         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4189         correctly.  Set segleft member in output as required.
4190         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4191         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4193         [BZ #9881]
4194         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4195         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4196         * inet/Makefile (tests): Add tst-inet6_rth.
4197         * inet/tst-inet6_rth.c: New file.
4199         [BZ #5807]
4200         * string/strlen.c (strlen): Fix omission in the expression to test
4201         for NUL bytes.
4203 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4205         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4207         * elf/dl-runtime.c (reloc_offset): Define.
4208         (reloc_index): Define.
4209         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4210         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4211         computing index from reloc_offset.
4212         (_dl_call_pltexit): Likewise.
4213         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4214         the relocation index to _dl_fixup.
4215         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4216         _dl_call_pltexit.
4217         * sysdeps/x86_64/dl-runtime.c: New file.
4219         [BZ #9893]
4220         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4221         alignment of La_x86_64_regs.  Store xmm parameters.
4222         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4224         [BZ #9913]
4225         * string/strverscmp.c (__strverscmp): Fix case of different digits
4226         in fractional part of string.
4227         Patch by Jingyu Liu <jyliu@fortinet.com>.
4228         * string/Makefile (tests): Add tst-svc2.
4229         * string/tst-svc2.c: New file.
4231         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4233         * locale/iso-639.def: Add Min Nan.
4235 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4237         [BZ #9948]
4238         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4240 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4242         * elf/dl-sysdep.c (auxvars): Compress data structure.
4244         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4245         STT_GNU_IFUNC handling.
4246         (elf_machine_rela): Likewise.
4248 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4250         * config.h.in (USE_MULTIARCH): Define.
4251         * configure.in: Handle --enable-multi-arch.
4252         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4253         (_dl_fixup_profile): Likewise.
4254         * elf/do-lookup.c (dl_lookup_x): Likewise.
4255         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4256         * elf/elf.h (STT_GNU_IFUNC): Define.
4257         * include/libc-symbols.h (libc_ifunc): Define.
4258         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4259         framework in init-arch.h to get CPUID values.
4260         * sysdeps/x86_64/multiarch/Makefile: New file.
4261         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4262         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4263         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4265         * config.make.in (experimental-malloc): Define.
4266         * configure.in: Handle --enable-experimental-malloc.
4267         * malloc/Makefile: Handle experimental-malloc flag.
4268         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4269         * malloc/arena.c: Likewise.
4270         * malloc/hooks.c: Likewise.
4271         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4273 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4275         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4276         prediction.  A few size optimizations.
4278 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4280         * time/tzset.c: Optimize a bit for size.
4282 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4284         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4285         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4287         * elf/sprof.c: Avoid warning about multi-line comment.
4289 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4291         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4292         DST name.
4293         * time/tst-posixtz.c: Add tests for quoted timezone names.
4295 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4297         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4298         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4299         200809L instead of 200112L.
4300         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4301         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4303         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4304         instead of __quick_exit_funcs to __run_exit_handlers.
4305         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4306         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4307         (__cxa_at_quick_exit): Remove attribute_hidden.
4308         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4309         to __run_exit_handlers.
4310         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4311         attribute_hidden.
4313 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4315         * po/id.po: Update from translation team.
4317 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4320         .machine push; .machine "power6" and .machine pop around mtfsf
4321         insns outside of _ARCH_PWR6 define.
4322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4324         Likewise.
4325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4326         Likewise.
4327         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4328         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4329         relax_fenv_state): Likewise.
4331 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4333         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4334         cxa_at_quick_exit.
4335         (static-only-routines): Add at_quick_exit.
4336         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4337         GLIBC_2.10.
4338         * stdlib/quick_exit.c: New file.
4339         * stdlib/at_quick_exit.c: New file.
4340         * stdlib/cxa_at_quick_exit.c: New file.
4341         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4342         it appropriately.
4343         (__internal_atexit): New function.
4344         (__new_exitfn): Now takes parameter to point to the list to use.
4345         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4346         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4347         (exit): ...here.  Just call __run_exit_handlers appropriately.
4348         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4349         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4350         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4351         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4353         * po/id.po: Update from translation team.
4355 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4357         * po/ru.po: Update from translation team.
4359 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4361         * po/nl.po: Update from translation team.
4363 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4365         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4366         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4367         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4368         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4369         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4370         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4371         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4373         * po/pl.po: Update from translation team.
4375 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4377         [BZ #7083]
4378         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4379         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4380         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4381         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4382         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4383         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4384         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4385         for GLIBC_2.10.
4386         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4387         Add fallocate and fallocate64.
4389         * io/fcntl.h: Pretty printing.
4391 2009-03-02  Richard Guenther  <rguenther@suse.de>
4393         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4394         attribute also for non-C99 inline semantics variant.
4396 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4398         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4399         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4400         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4401         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4403         Likewise.
4404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4405         Likewise.
4407 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4409         * po/cs.po: Update from translation team.
4411 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4413         * po/bg.po: Update from translation team.
4414         * po/sv.po: Likewise.
4415         * po/fi.po: Likewise.
4416         * po/vi.po: Likewise.
4418 2009-02-27  Roland McGrath  <roland@redhat.com>
4420         * Makeconfig (%.v.i): Depend on Makeconfig.
4421         Exclude % lines from initial #-comment removal.
4423 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4425         * po/ko.po: Update from translation team.
4427 2009-02-26  Roland McGrath  <roland@redhat.com>
4429         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4430         avoids unused warning.
4432 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4433             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4435         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4436         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4437         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4438         and asm/user.h.  Include asm/ptrace.h.
4439         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4440         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4441         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4442         Undefine.
4443         (start_thread): Don't undefine.
4444         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4445         Define.
4447 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4449         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4450         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4451         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4452         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4453         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4454         200112L to 200809L.
4455         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4456         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4457         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4458         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4459         _SC_THREAD_ROBUST_PRIO_PROTECT.
4460         * posix/unistd.h: fexecve is in POSIX 2008.
4461         * time/time.h: strftime_l is in POSIX 2008.
4462         * io/sys/stat.h: futimens is in POSIX 2008.
4463         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4464         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4465         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4466         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4467         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4468         open_memstream, and vdprintf are in POSIX 2008.
4470 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4472         * include/features.h: Define macros for XPG7/POSIX 2008.
4473         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4474         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4475         POSIX 2008.
4476         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4477         * locale/xlocale.h: Define locale_t type.
4478         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4479         in POSIX 2008.  Don't define locale_t here.
4480         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4481         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4482         UTIME_OMIT only with __USE_ATFILE.
4483         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4484         * stdio-common/psiginfo.c: New file.
4485         * stdio-common/psiginfo-data.h: New file.
4486         * stdio-common/psiginfo-define.h: New file.
4487         * stdio-common/Makefile (routines): Add psiginfo.
4488         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4489         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4490         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4491         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4492         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4493         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4494         * io/sys/stat.h: Move mknodat definition into same conditional as
4495         mknod.
4496         * time/sys/time.h: futimesat is not among the functions accepted
4497         into the POSIX standard.
4499         * include/features.h: If no feature selection given and we select
4500         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4501         * posix/Versions: Export __posix_getopt.
4502         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4503         Use it to alternatively initialize __posixly_correct.
4504         (_getopt_internal_r): Take addition parameter.  Pass on to
4505         _getopt_initialize.
4506         (_getopt_internal): Take addition parameter.  Pass on to
4507         _getopt_internal_r.
4508         (getopt): Pass additional zero to _getopt_internal.
4509         (__posix_getopt): New function.
4510         * posix/getopt.h: Add redirection for getopt.
4511         * posix/getopt1.c (getopt_long): Pass additional zero to
4512         _getopt_internal.
4513         (getopt_long_only): Likewise.
4514         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4515         (_getopt_long_only_r): Likewise.
4516         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4517         _getopt_internal_r.
4519 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4521         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4522         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4523         * sysdeps/posix/sysconf.c (__sysconf): Handle
4524         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4525         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4527 2009-02-24  Roland McGrath  <roland@redhat.com>
4529         [BZ #9895]
4530         * README.template: Reworded not to use substituted version number.
4531         Renamed to ...
4532         * README: ... here (no longer generated).
4533         * Makefile (README): Target removed.
4535 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4537         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4538         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4539         instead.
4541         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4543         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4545 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4547         * po/bg.po: Update from translation team.
4549 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4551         * stdlib/monetary.h: Uglify function parameter names.
4552         * sunrpc/rpc/pmap_clnt.h: Likewise.
4553         * sunrpc/rpc/svc.h: Likewise.
4554         * sunrpc/rpc/xdr.h: Likewise.
4555         * sunrpc/rpc/clnt.h: Likewise.
4556         * resolv/netdb.h: Likewise.
4557         * resolv/arpa/nameser.h: Likewise.
4558         * resolv/resolv.h: Likewise.
4559         * argp/argp.h: Likewise.
4560         * locale/langinfo.h: Likewise.
4561         * io/sys/stat.h: Likewise.
4562         * posix/spawn.h: Likewise.
4563         * nis/rpcsvc/nislib.h: Likewise.
4564         * malloc/obstack.h: Likewise.
4565         * sysdeps/ia64/bits/link.h: Likewise.
4566         * sysdeps/i386/bits/link.h: Likewise.
4567         * sysdeps/s390/bits/link.h: Likewise.
4568         * sysdeps/powerpc/bits/link.h: Likewise.
4569         * sysdeps/x86_64/bits/link.h: Likewise.
4570         * sysdeps/sparc/bits/link.h: Likewise.
4571         * sysdeps/sh/bits/link.h: Likewise.
4572         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4573         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4574         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4575         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4577 2008-12-01  Fredrik Unger  <fred@tree.se>
4579         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4580         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4581         _FP_UNPACK_RAW_2, fix up first argument.
4583 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4585         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4586         (GET_NPROCS_PARSER): Change parameters and use next_line.
4587         (__get_nprocs): Rewrite to not use stdio routines.
4588         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4589         Change parameters and use next_line.
4591 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4593         [BZ #5381]
4594         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4595         Change mempool_alloc prototype.
4596         * nscd/mem.c (gc): Don't handle mem_in_flight.
4597         (mempool_alloc): Third parameter now only indicates whether this is the
4598         first call (to allocate data) or not.  If it is, get db rdlock.
4599         Release it on error.  Don't handle mem_in_flight.
4600         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4601         Adjust third parameter of mempool_alloc calls.
4602         Nothing to do here in case mempool_alloc fails.
4603         Avoid local variable shadowing parameter.  No need to get db rdlock
4604         before calling cache_add.
4605         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4606         no mem_in_flight array anymore.
4607         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4608         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4609         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4610         in case mempool_alloc fails. No need to get db rdlock before calling
4611         cache_add.
4612         * nscd/hstcache.c (cache_addhst): Likewise.
4613         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4614         * nscd/servicescache.c (cache_addserv): Likewise.
4615         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4617 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4619         * po/lt.po: Update from translation team.
4621 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4623         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4624         defined, allow additional data to be added using the optional
4625         MORE_ELF_HEADER_DATA macro.
4626         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4627         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4629 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4631         * include/atomic.h: Define catomic_and if not already defined.
4632         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4633         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4635 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4637         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4638         Change all callers.
4639         (_int_realloc): Likewise.  Third argument is now padded size
4640         All _int_* functions are now static.
4642         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4643         * malloc/arena.c: Likewise.
4644         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4645         functions.
4647         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4648         easily.
4650         * malloc/malloc.c: Add branch prediction for use of the hooks.
4652         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4654 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4656         [BZ #7095]
4657         * bits/confname.h: Add SUSv7 macros for getconf environments.
4658         * bits/environments.h: Likewise.
4659         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4660         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4661         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4662         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4663         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4664         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4665         * posix/getconf.c: Likewise.
4666         * posix/sysconf.c: Likewise.
4667         * sysdeps/posix/sysconf.c: Likewise.
4668         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4669         environments.
4671 2009-01-16  Petr Baudis  <pasky@suse.cz>
4673         [BZ #9753]
4674         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4675         even if we currently have zero nscount.
4677 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4679         [BZ #9781]
4680         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4681         the input line is too long.
4683         * po/Makefile (libc.pot): Add f_print as function taking c-format
4684         parameter.
4686         * debug/xtrace.sh: Unify translatable messages.
4687         * elf/ldd.bash.in: Likewise.
4688         * elf/sprof.c: Likewise.
4689         * locale/programs/locale.c: Likewise.
4690         * malloc/memusage.sh: Likewise.
4691         * nss/getent.c: Likewise.
4693 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4695         * debug/pcprofiledump.c (print_version,
4696         argp_program_version_hook): New function.
4697         * elf/ldconfig.c (more_help): New function.
4698         (argp): Use it.
4699         * elf/sln.c (usage): New function.
4700         (main): Support --help and --version.
4701         * malloc/memusagestat.c (print_version): New function.
4702         (argp_program_version_hook): New variable.
4703         * nscd/nscd.c (more_help): New function.
4704         (argp): Use it.
4705         * posix/getconf.c (main): Send --version output to stdout.
4706         Support --help.
4707         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4708         arguments.  All callers changed.
4709         (print_version): New function.
4710         (parseargs): Support --help and --version.
4711         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4712         changed.
4713         (print_version): New function.
4714         (main): Use getopt_long.  Support --help and --version.
4715         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4716         --version.
4718 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4720         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4721         (update_data): Fix handling of wrapping back
4722         to the beginning of the buffer.
4724         [BZ #9823]
4725         * stdio-common/psignal.c (psignal): Fix test for empty string.
4727 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4729         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4730         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4731         move _null_auth to .rodata.
4733         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4734         value of 24.
4736         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4738         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4739         today than when the original code was written.  Use larger
4740         buffers.  This also makes it unnecessary to have stat information,
4741         if this causes extra efforts.
4742         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4743         __alloc_dir.
4745 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4747         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4748         is set.
4749         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4750         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4751         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4752         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4753         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4754         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4756 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4758         * po/ru.po: Update from translation team.
4760 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4762         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4763         Add _tid slot to maintain consistency with kernel.
4765 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4767         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4768         incomplete characters at end of input buffer.
4769         * libio/Makefile (tests): Add tst-fgetwc.
4770         * libio/tst-fgetwc.c: New file.
4771         * libio/tst-fgetwc.input: New file.
4773 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4775         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4777 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4779         [BZ #9793]
4780         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4781         *OUTBUFSTART unless the whole output fit into the buffer.
4782         * iconv/Makefile (tests): Add tst-iconv4.
4783         * iconv/tst-iconv4.c: New file.
4785 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4787         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4788         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4790 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4792         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4793         newer linker scripts.
4795 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4797         [BZ #7040]
4798         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4799         inotify_rm_watch should have type int.
4801 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4803         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4804         Make aligned_restore_vmx a local symbol.
4805         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4806         Likewise.
4808 2009-01-30  Andreas Jaeger  <aj@suse.de>
4810         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4811         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4812         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4813         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4814         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4815         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4816         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4818 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4820         [BZ #9726]
4821         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4822         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4824 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4826         [BZ #9726]
4827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4828         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4830         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4832 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4834         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4835         memcpy instead of memcmp.
4836         (_dl_setup_pointer_guard): Likewise.
4838 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4840         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4841         manipulated brk, use malloc_printerr.
4842         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4843         requests.
4845 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4847         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4848         rindex): For C++ add inlines so that they can be recognized as
4849         builtins.
4850         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4852 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4853             Jakub Jelinek  <jakub@redhat.com>
4855         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4856         * wcsmbs/wchar.h: Likewise.
4858 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4860         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4861         (stackinfo_sub_sp): Define.
4863 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4865         [BZ #9750]
4866         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4867         * include/alloca.h (alloca_account): Define.
4868         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4869         (stackinfo_sub_sp): Define.
4871         * nscd/connections.c (nscd_init): If database file access fails
4872         check whether this is due to permission problems and bail in that
4873         case.
4875         [BZ #9741]
4876         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4877         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4879 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4881         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4882         Add "t" to clobber list.
4883         (INTERNAL_SYSCALL_NCS): Likewise.
4885 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4887         * nss/getent.c (print_networks): Don't print comma between aliases.
4889 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4891         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4893         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4894         the hash table.
4895         * misc/Makefile (tests): Add bug-hsearch1.
4896         * misc/bug-hsearch1.c: New file.
4898 2009-01-22  Roland McGrath  <roland@redhat.com>
4900         * Makeconfig (%.v.i): Strip trailing # comments,
4901         not only whole-line comments.
4903 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4905         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4906         one parameter.  If non-NULL use it to initialize return value.
4907         (_dl_setup_pointer_guard): New function.
4908         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4909         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4910         * elf/rtld.c (security_init): Pass _dl_random to
4911         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4912         pointer_chk_guard.
4913         * elf/dl-sysdep.c (_dl_random): New variable.
4914         (_dl_sysdep_start): Handle AT_RANDOM.
4915         (_dl_show_auxv): Likewise.
4916         * elf/dl-support.c (_dl_random): New variable.
4917         (_dl_aux_init): Handle AT_RANDOM.
4918         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4919         to _dl_setup_stack_chk_guard.
4921         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4923 2009-01-10  Roland McGrath  <roland@redhat.com>
4925         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4927 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4929         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4931         [BZ #9706]
4932         * nss/nss_files/files-parse.c (strtou32): New function.
4933         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4934         across 32-bit and 64-bit platforms.
4935         (INT_FIELD_MAYBE_NULL): Likewise.
4937 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4939         [BZ #9720]
4940         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4941         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4942         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4943         Likewise.
4945 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4947         [BZ #697]
4948         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4949         being NULL also if there are no backreferences.
4950         * posix/rxspencer/tests: Add testcases.
4952 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4954         [BZ #9697]
4955         * posix/bug-regex17.c: Add testcases.
4956         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4957         handling.
4959 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4961         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4962         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4963         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4964         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4965         for elf subdir.
4966         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4967         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4968         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4969         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4970         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4971         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4973 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4975         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4976         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4977         re_string_skip_chars, re_string_reconstruct): Likewise.
4978         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4980 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4982         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4983         adjust the buffer alignment.
4985 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4987         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4988         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4989         net/route.h.
4991         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4992         flavor to description only when flavor is not NULL.
4994         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4995         mutex after SIGIO/SIGURG lookup loop.
4997 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4999         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5001 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
5003         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5004         handling.
5006 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
5008         * sysdeps/unix/sysv/linux/kernel-features.h
5009         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5011         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5012         if no output is written.
5014         * version.h: Bump to 2.10 development.
5016         * posix/getconf.c: Update copyright year.
5017         * nss/getent.c: Likewise.
5018         * iconv/iconvconfig.c: Likewise.
5019         * iconv/iconv_prog.c: Likewise.
5020         * elf/ldconfig.c: Likewise.
5021         * catgets/gencat.c: Likewise.
5022         * csu/version.c: Likewise.
5023         * elf/ldd.bash.in: Likewise.
5024         * elf/sprof.c (print_version): Likewise.
5025         * locale/programs/locale.c: Likewise.
5026         * locale/programs/localedef.c: Likewise.
5027         * nscd/nscd.c (print_version): Likewise.
5028         * debug/xtrace.sh: Likewise.
5029         * malloc/memusage.sh: Likewise.
5030         * malloc/mtrace.pl: Likewise.
5031         * debug/catchsegv.sh: Likewise.
5033 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5035         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5036         script.
5038 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5040         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5041         gethostbyname4_r function call succeeded, just leave the loop.
5043         [BZ #9694]
5044         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5045         very end.
5046         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5047         * wctype/Makefile (tests): Add bug-wctypeh.
5048         * wctype/bug-wctypeh.c: New file.
5050         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5051         LOCALDOMAIN is defined.
5052         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5054         * sysdeps/x86_64/bits/select.h: New file.
5056         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5058 2008-12-21  Bruno Haible  <bruno@clisp.org>
5060         [BZ #9677]
5061         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5062         if no output is written.
5064 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5066         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5067         libc internal symbol __dup2 to avoid access through the PLT.
5069 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5071         [BZ #6545]
5072         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5073         available only for __USE_GNU.
5075         * inet/Makefile (tests): Add tst-getni2.
5076         * inet/tst-getni2.c: New file.
5078         [BZ #7080]
5079         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5080         NULL when NI_NAMEREQD is set.
5081         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5082         * inet/Makefile (tests): Add tst-getni1.
5083         * inet/tst-getni1.c: New file.
5085 2008-12-03  Petr Baudis  <pasky@suse.cz>
5087         [BZ #7067]
5088         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5089         instead of prune_lock.
5090         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5091         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5093 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5095         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5096         use.
5098         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5099         handling.
5101         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5102         after reading name server list.
5104         [BZ #7058]
5105         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5106         handling for host name aliases.
5108 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5110         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5111         instead of doing things manually.
5113 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5115         * posix/regex_internal.h (build_wcs_upper_buffer):
5116         Return type is reg_error_t.
5118 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5120         * posix/globtest.sh: Use mktemp to create temporary file and
5121         directory.
5123         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5124         sets correctly.
5125         (__CPU_CLR_S): Likewise.
5126         (__CPU_ISSET_S): Likewise.
5128 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5129             Ulrich Drepper  <drepper@redhat.com>
5131         * scripts/firstversion.awk: Use custom comparison function to compare
5132         version numbers.
5133         * scripts/versions.awk: Use sort invocation which can handle
5134         multi-digit sub-version numbers.
5136 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5138         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5139         * locale/iso-639.def: Add Chhattisgarhi entry.
5141 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5143         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5144         ESRCH return value.
5145         (_nss_dns_gethostbyname4_r): Likewise.
5146         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5147         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5148         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5149         the no_data variable.
5151         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5152         information at the correct index.
5154         * socket/sys/socket.h: Declare accept4.
5155         * socket/accept4.c: New file.
5156         * sysdeps/unix/sysv/linux/accept4.c: New file.
5157         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5158         * socket/Makefile (routines): Add accept4.
5159         * socket/Versions: Export accept4 with version GLIBC_2.10.
5160         * socket/paccept.c: Removed.
5161         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5162         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5163         * Versions.def: Define GLIBC_2.10 for libc.
5164         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5166         * nscd/connections.c: Use accept4.
5168         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5170 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5172         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5173         flag already set.
5175         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5176         not exist.
5177         * stdlib/Makefile (tests): Add tst-unsetenv1.
5178         * stdlib/tst-unsetenv1.c: New file.
5180 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5182         * login/utmp_file.c (file_writable): New variable.
5183         (setutent_file): Don't try to open file for writing.
5184         (pututline_file): Before writing, make descriptor writable if
5185         necessary.
5187 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5189         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5190         to IPv4 or IPv6 if an interface has been found.
5192 2008-11-26  Roland McGrath  <roland@redhat.com>
5194         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5195         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5197         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5198         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5199         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5201         * elf/elf.h (NT_386_IOPERM): New macro.
5202         (NT_PPC_VSX): New macro.
5204 2008-11-25  Roland McGrath  <roland@redhat.com>
5206         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5207         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5208         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5209         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5210         Subdirectories moved to ports repository.
5211         * configure.in (base_machine): Remove alpha case.
5213 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5215         * sysdeps/mach/strerror_l.c: New file.
5217 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5219         [BZ #6411]
5220         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5221         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5222         magic numbers.
5223         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5224         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5225         (relax_fenv_state): Same as above.
5226         (FPSCR_29): Reserve bit in ISA 2.05.
5227         (FPSCR_NI): Provide define for compat.
5228         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5229         magic numbers.
5230         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5231         magic numbers.
5232         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5233         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5234         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5235         access to hwcap to account for hwcap size increase to uint64_t.
5236         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5239         (*setcontext): Likewise.
5240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5241         New file.
5242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5243         New file.
5244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5245         (*setcontext): dynamically select mtfsf insn based on
5246         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5247         increase to uint64_t.
5248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5249         (*swapcontext): dynamically select mtfsf insn based on
5250         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5251         increase to uint64_t.
5252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5253         New file.
5254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5255         New file.
5256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5257         (*setcontext): dynamically select mtfsf insn based on
5258         PPC_FEATURE_HAS_DFP.
5259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5260         (*swapcontext): dynamically select mtfsf insn based on
5261         PPC_FEATURE_HAS_DFP.
5263 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5265         * version.h: Bump for 2.9 release.
5266         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5268         [BZ #7029]
5269         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5270         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5271         all the rounding.
5273 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5275         [BZ #7009]
5276         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5277         unknown request types for now.
5279 2008-11-11  Roland McGrath  <roland@redhat.com>
5281         * sysdeps/x86_64/configure: New file.
5283         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5284         * configure: Regenerated.
5286 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5288         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5289         correct instruction to remove the stack frame.
5291 2008-11-03  Michael Matz  <matz@suse.de>
5293         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5294         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5296 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5298         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5299         Remove.
5301         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5302         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5303         of the thread variable instead of void *.
5304         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5305         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5306         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5307         __libc_tsd_define arguments.
5308         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5309         __libc_tsd_address arguments.  Remove union hack.
5310         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5311         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5312         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5313         Adjust __libc_tsd_{set,get} arguments.
5314         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5315         __libc_tsd_define arguments.
5316         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5317         arguments.
5318         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5319         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5320         (LOCALE): Adjust __libc_tsd_define arguments.
5321         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5322         arguments.
5323         (LOCALE): Adjust __libc_tsd_define arguments.
5324         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5325         arguments.
5326         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5327         arguments.
5329 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5331         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5332         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5334 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5336         [BZ #6966]
5337         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5339 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5340             Ulrich Drepper  <drepper@redhat.com>
5342         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5343         definition for GCC 3.1 and later.
5345 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5347         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5348         refetch dtv, as it might have changed.
5349         * elf/Makefile: Add rules to build and run tst-tls18.
5350         * elf/tst-tls18.c: New test.
5351         * elf/tst-tlsmod18a.c: New file.
5353 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5355         [BZ #6875]
5356         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5358 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5360         [BZ #6867]
5361         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5363         [BZ #6919]
5364         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5365         Fix length of copy operation.
5367 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5369         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5370         and fix its calling convention.
5372 2008-10-07  Andreas Schwab  <schwab@suse.de>
5374         [BZ #6942]
5375         * resolv/res_send.c (send_vc): Fix last change.
5376         (send_dg): Align here as well.
5378 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5380         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5381         return value in case rlimit is RLIM_INFINITY.
5383         [BZ #6947]
5384         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5385         for UL_SETFSIZE.
5386         * resource/Makefile (tests): Add bug-ulimit1.
5387         * resource/bug-ulimit1.c: New file.
5389         [BZ #6974]
5390         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5391         without dot.  Properly terminate the string with a null byte.
5392         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5394         [BZ #6980]
5395         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5396         negative sizees.
5397         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5398         negative __size.
5400         [BZ #6995]
5401         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5403 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5405         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5406         abort if there is no initgroups_dyn function.
5408         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5409         result if any of the queries really provided an answer.
5411 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5413         * po/lt.po: Update from translation team.
5415 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5417         * po/id.po: Update from translation team.
5419 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5421         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5422         Fix tests for existence of second reply.
5424 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5426         * po/id.po: New file.
5427         Contributed by the Indonesian translation team.
5429 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5431         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5432         initialization.
5434 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5436         * elf/Makefile: Add rules to build and run tst-tls17.
5437         * elf/tst-tls17.c: New test.
5438         * elf/tst-tlsmod17a.c: New file.
5439         * elf/tst-tlsmod17b.c: Likewise.
5441 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5443         * stdlib/divmod_1.c: Use correct type for dummy variable.
5444         * stdlib/mod_1.c: Likewise.
5446 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5448         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5450 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5452         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5453         __nonnull order for C++.
5454         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5455         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5457 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5459         * stdlib/longlong.h: Update from GCC.
5461 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5462             David S. Miller  <davem@davemloft.net>
5464         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5465         make sure any registers used with 64-bit 'branch-on-register'
5466         instructions have their top 32-bits clear.
5467         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5468         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5470 2008-09-18  Andreas Schwab  <schwab@suse.de>
5472         [BZ #6942]
5473         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5474         Properly handle partial reads.
5476 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5478         * elf/elf.h (STO_MIPS_PLT): New.
5479         (R_MIPS_COPY): New.
5480         (R_MIPS_JUMP_SLOT): New.
5481         (R_MIPS_NUM): Redefine to 128.
5482         (DT_MIPS_PLTGOT): New.
5483         (DT_MIPS_RWPLT): New.
5484         (DT_MIPS_NUM): Redefine to 0x35.
5486 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5488         * timezone/africa: Update from tzdata2008f.
5489         * timezone/asia: Likewise.
5490         * timezone/australasia: Likewise.
5491         * timezone/europe: Likewise.
5492         * timezone/leapseconds: Likewise.
5493         * timezone/northamerica: Likewise.
5494         * timezone/southamerica: Likewise.
5495         * timezone/zone.tab: Likewise.
5497 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5499         * nscd/connections.c: Disable use of paccept for now.
5501 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5503         * socket/Versions: Remove paccept export for GLIBC_2.9.
5504         * socket/Makefile (routines): Remove paccept.
5505         * socket/sys/socket.h: Remove paccept declaration.
5507         * po/sv.po: Update from translation team.
5509 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5511         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5512         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5514 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5516         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5517         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5519 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5521         * sunrpc/rpc/svc.h: Declare svcfd_create.
5522         Patch by Michael Solberg <msolberg@redhat.com>.
5524 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5525             Ulrich Drepper  <drepper@redhat.com>
5527         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5528         _int_valloc fails.
5529         (public_pVALLOc): Likewise.
5531 2008-09-02  Andreas Jaeger  <aj@suse.de>
5533         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5534         commit.
5536 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5538         [BZ #6860]
5539         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5541 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5543         * Makefile (check-data): Check data directory in add-ons.
5544         * elf/Makefile (check-data): Likewise.
5546 2008-08-18  Roland McGrath  <roland@redhat.com>
5548         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5549         * configure: Regenerated.
5550         * config.make.in (cflags-cpu): New substituted variable.
5551         (with-cpu): Variable removed.
5552         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5554 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5556         [BZ #6845]
5557         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5558         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5559         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5560         redundant.  Functions which call floating point assembler operations
5561         should go into a sysdeps powerpc/fpu directory.
5563 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5565         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5566         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5568 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5570         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5572         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5573         change related to AT_EXECFN.  We cannot use that string.
5574         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5575         _dl_execfn member.
5576         * elf/dl-support.c: Remove _dl_execfn variable.
5577         (_dl_aux_init): Remove handling of AT_EXECFN.
5578         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5579         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5581 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5583         [BZ #6544]
5584         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5585         byte gets added to writes and seeks from the end use the length of
5586         the buffer and not the currently terminating NUL byte.
5588         [BZ #6634]
5589         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5590         Set to true if locking failed.
5591         (getutid_r_file): Adjust caller.
5592         (pututline_file): Likewise.  Return NULL in this case.
5593         Patch mostly by halesh.s@gmail.com.
5595 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5597         [BZ #6589]
5598         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5599         Define.
5600         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5602 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5604         [BZ #6839]
5605         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5606         macro since it is now available in elf/dynamic-link.h.
5608 2008-08-12  Roland McGrath  <roland@frob.com>
5610         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5611         in case used outside of libc.
5612         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5614 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5616         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5617         directly instead of going through dn_comp.
5619 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5621         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5622         Fix asm constraints.
5624 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5626         [BZ #6790]
5627         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5628         (IPV6_PMTUDISC_PROBE): Likewise.
5630 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5632         [BZ #6791]
5633         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5635 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5636             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5638         [BZ #6817]
5639         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5640         Added the members 'vsx' and 'arch_2_06'.
5641         (_dl_powerpc_platforms): Add the member 'power7'.
5642         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5643         to reflect the changes required by VSX and ISA 2.06.
5644         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5645         'power7'.
5646         Defined PPC_PLATFORM_POWER7.
5647         (_dl_string_platform): Add support for POWER7.
5648         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5649         capability and ISA 2.06.
5651 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5653         [BZ #6824]
5654         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5655         macro to detect use of 128 bit long double.
5656         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5658 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5660         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5662         [BZ #5794]
5663         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5664         parameters.
5665         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5666         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5668 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5670         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5671         guaranteed to be large enough to read inotify event.  Ignore
5672         EAGAIN error.  Better error message.  Add branch predicition.
5673         (main_loop_epoll): Likewise.
5675 2008-08-02  Roland McGrath  <roland@frob.com>
5677         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5678         Add memory clobbers.
5680 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5682         * manual/arith.texi: Avoid @strong{Note:}.
5683         * manual/creature.texi: Likewise.
5684         * manual/filesys.texi: Likewise.
5685         * manual/math.texi: Likewise.
5686         * manual/memory.texi: Likewise.
5687         * manual/resource.texi: Likewise.
5688         * manual/syslog.texi: Likewise.
5689         * manual/time.texi: Likewise.
5691         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5692         to prevent warning.
5694 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5696         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5697         new epoll_create1 interface.
5698         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5699         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5700         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5702         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5703         (NS_GET32): Likewise.
5705         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5706         syscalls, too.
5708         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5709         use the AT_EXECFN value if it is no absolute path.
5710         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5711         __ASSUME_AT_EXECFN.
5713         * Versions.def: Add GLIBC_2.9 to libresolv.
5714         * include/resolv.h: Remove hidden proto declarations for __ns_*
5715         functions.  Add them for __dn_count_labels and __p_secstodate.
5716         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5717         Define ns_msg_getflags macro here.
5718         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5719         and __p_secstodate.
5720         * resolv/Versions: Export functions from <arpa/nameser.h> from
5721         libresolv in version GLIBC_2.9.
5722         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5723         hidden definitions.
5724         * resolv/ns_netint.c: Likewise.
5725         * resolv/ns_parse.c: Likewise.
5726         * resolv/ns_print.c: Likewise.
5727         * resolv/ns_samedomain.c: Likewise.
5728         * resolv/ns_ttl.c: Likewise.
5729         * resolv/arpa/nameser_compat.h: Likewise.
5730         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5731         function calls.
5732         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5733         instead of ns_get16.
5734         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5735         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5736         (gaih_getanswer_slice): Likewise.
5737         * resolv/Makefile (libresolv-routines): Add ns_date.
5738         * resolv/ns_date.c: New file.
5740         * elf/Makefile (check-localplt.out): Also check libresolv and
5741         libcrypt.
5743 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5745         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5746         __ASSUME_O_CLOEXEC.
5748 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5750         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5751         buffer passed to NSS functions.
5753         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5755         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5756         Define.
5758         * misc/syslog.c (openlog_internal): Fix compile problem.
5760 2008-07-28  Roland McGrath  <roland@redhat.com>
5762         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5764 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5766         * io/ftw.c (add_object): Remove inline to avoid warning.
5768         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5770         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5771         Use it instead of locally defined resplen2 variable.
5772         (res_nsend): Adjust for __libc_res_nsend interface change.
5773         (send_vc): Initialize *resplen2 if necessary.  Read length of
5774         package into an appropriately aligned variable.  Store converted length
5775         in new variable and use it appropriately.
5776         Add branch prediction help.
5777         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5778         and pass it on to __libc_res_nsend.  Adjust all callers.
5779         (__libc_res_nsearch): Likewise.
5780         (__libc_res_nqeurydomain): Likewise.
5781         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5782         change.
5783         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5784         Define resplen2 variable and pass it to __libc_res_nsearch and then
5785         to gaih_getanswer.
5786         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5787         Add branch prediction.
5788         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5789         (gaih_getanswer): Don't decode second slice if first one failed due
5790         to a too small buffer.  Don't let not found status of second
5791         decoder shadow results of the first.
5792         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5793         and __libc_res_nquery interface changes
5794         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5795         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5796         __libc_res_nsearch, and __libc_res_nsend.
5797         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5798         change.
5799         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5800         __libc_res_nsearch interface changes.
5802 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5804         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5806         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5807         file descriptors with close-on-exec set.
5808         (exec_comm_child): Fix the case where the write end of the pipe is
5809         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5811         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5812         * io/pipe2.c: Likewise.
5813         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5814         instead of __ASSUME_PACCEPT.
5815         * include/unistd.h: Declare __have_pipe2.
5816         * libio/iopopen.c: Implement "e" flag.
5817         * libio/Makefile (tests): Add tst-popen1.
5818         * libio/tst-popen1.c: New file.
5820         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5821         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5823 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5825         [BZ #6771]
5826         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5827         success call of _IO_SEEKOFF or calls which failed because the
5828         descriptor is for a pipe.
5830         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5831         magic number.
5833         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5835         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5836         F_SETFD use if we know fopen set the flag.
5838         * login/utmp_file.c (setutent_file): Minor optimization in case
5839         O_CLOEXEC is available.
5841 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5843         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5844         * elf/Makefile: Use pie-ccflag variable.
5845         * nscd/Makefile: Likewise.
5846         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5848 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5850         [BZ #6724]
5851         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5852         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5853         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5854         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5855         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5856         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5857         utmp32, utmpx32 and login32.
5858         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5859         versions of struct utmp functions to libc and libutil.
5860         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5861         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5862         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5863         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5864         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5865         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5866         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5867         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5868         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5869         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5870         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5871         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5872         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5873         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5874         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5875         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5876         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5877         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5878         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5879         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5880         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5881         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5883 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5885         * scripts/gen-as-const.awk: Generate more widely usable code by
5886         using 64-bit arithmetic.
5888         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5889         the same treatment as narrow output code in last patch.
5891         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5893         [BZ #6763]
5894         * elf/dl-load.c (local_strdup): Remove inline.
5895         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5896         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5897         part of the object.
5899         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5901 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5903         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5904         the new syscalls, too.
5906         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5907         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5909         [BZ #6698]
5910         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5911         parameter for end of buffer.  If temporary copy is too large use
5912         malloc.
5913         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5914         interface change.
5915         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5916         string rewrite when allocating buffer.
5918         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5919         syscalls, too.
5921         * nscd/connections.c (nscd_init): Clean up fcntl call.
5923         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5924         SOCK_NONBLOCK if possible.
5926         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5927         SOCK_CLOEXEC if available.
5929         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5930         __libc_clntudp_bufcreate_internal.
5931         * include/sys/socket.h: Declare __have_sock_cloexec.
5932         * socket/Makefile (aux): Add have_sock_cloexec.
5933         * socket/have_sock_cloexec.c: New file.
5934         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5935         __libc_clntudp_bufcreate.
5936         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5937         which takes an additional parameter.  Create socket with non-blocking
5938         mode and close-on-exec flag set, if wanted.
5939         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5940         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5941         instead of clntudp_create.  The socket has already the close-on-exec
5942         flag set if SOCK_CLOEXEC is defined.
5944 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5946         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5947         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5948         appropriate.
5949         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5950         non-blocking mode by using socket, paccept, and inotify_init1.
5952         * Versions.def (glibc): Add GLIBC_2.9.
5953         * io/Makefile (routines): Add dup3 and pipe2.
5954         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5955         * io/dup3.c: New file.
5956         * io/pipe2.c: New file.
5957         * posix/unistd.h: Declare dup3 and pipe2.
5958         * socket/Makefile (routines): Add paccept.
5959         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5960         * socket/paccept.c: New file.
5961         * socket/sys/socket.h: Declare paccept.
5962         * sysdeps/unix/syscalls.list: Add entry for dup3.
5963         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5964         epoll_create2 and inotify_init1.
5965         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5966         * sysdeps/unix/sysv/linux/paccept.c: New file.
5967         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5968         possible.
5969         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5970         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5971         inotify_init1, and pipe2 entries.
5972         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5973         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5974         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5975         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5976         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5977         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5978         SOCK_NONBLOCK.
5979         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5980         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5981         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5982         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5983         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5984         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5986         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5987         EPOLL_NONBLOCK.  Declare epoll_create2.
5988         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5989         EFD_NONBLOCK.
5990         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5991         IN_NONBLOCK.  Declare inotify_init1.
5992         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5993         SFD_NONBLOCK.
5994         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5995         TFD_NONBLOCK.
5997         * elf/elf.h: Define AT_EXECFN.
5998         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5999         LD_ORIGIN_PATH.
6000         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6001         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
6002         if __ASSUME_AT_EXECFN is defined.
6003         (_dl_aux_init): Handle AT_EXECFN.
6004         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6005         for 2.6.27 and up.
6006         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6007         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6008         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6009         _dl_execfn if available and avoid compatibility code if
6010         __ASSUME_AT_EXECFN is defined.
6012         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6013         _dl_discover_osversion only for older kernels.
6015 2008-07-22  Roland McGrath  <roland@frob.com>
6017         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6019 2008-07-21  Roland McGrath  <roland@frob.com>
6021         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6022         returned too much data out of line.
6024 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6026         * locale/setlocale.c (setname): Remove inline to avoid compiler
6027         warning.
6029         [BZ #6712]
6030         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6032 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6034         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6035         doesn't manage to write anything, fail.
6037         * malloc/hooks.c (__malloc_check_init): Remove printf.
6039 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6041         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6043 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6045         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6046         from inotify.
6047         (main_loop_epoll): Likewise.
6049 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6051         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6053         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6054         if DEBUG is defined.
6056         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6057         query.  Adjust buffer size computation for padding.
6059 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6061         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6062         * stdio-common/tst-setvbuf1.c: New file.
6063         * stdio-common/tst-setvbuf1.expect: New file.
6065         [BZ #6719]
6066         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6067         when selecting fully-buffered stream.
6068         Patch by Wang Xin <wxinee@gmail.com>.
6070 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6072         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6073         (__open_2): New function.
6074         (__open64_2): New alias to __open_2.
6075         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6076         (__openat_2): New function.
6077         (__openat64_2): New alias to __openat_2.
6079 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6081         [BZ #6723]
6082         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6084 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6086         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6087         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6088         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6089         __hurd_dfail.
6090         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6091         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6092         * sysdeps/mach/hurd/send.c (__send): Likewise.
6093         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6094         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6096 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6098         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6099         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6100         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6101         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6102         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6103         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6105 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6107         [BZ #6657]
6108         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6109         of %EY.
6110         Patch by Petr Baudis.
6112 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6114         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6115         Patch by Peter Jones <pjones@redhat.com>.
6117 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6119         [BZ #6654]
6120         * stdlib/canonicalize.c (__realpath): readlink can write too much
6121         into the buffer on platforms without PATH_MAX.
6123 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6125         [BZ #6653]
6126         * posix/tst-regex.c (main): Rename to...
6127         (do_test): ... this. Remove cmdline option processing.
6128         (TIMEOUT): Define.
6129         (TEST_FUNCTION): Define.
6130         (CMDLINE_OPTIONS): Define.
6132 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6134         [BZ #5210]
6135         * configure.in: Add -Werror to -fstack-protector test to catch
6136         unsupported architectures.
6137         Patch by Gilles Esponasse <g.esp@free.fr>.
6139 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6141         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6142         getcontext returns ENOSYS.
6144 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6146         * nscd/connections.c (main_loop_poll): Fix test for read error.
6147         (main_loop_epoll): Likewise.
6149 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6151         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6152         better place so it is not called when nscd is used.
6154         * nscd/connections.c: Also recognize and handle changes to the
6155         resolver configuration file.
6157 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6159         * time/strftime.c: Pass reference to tzset_called around to handle
6160         recursive calls.
6162         [BZ #6612]
6163         * time/strftime.c (__strftime_internal): Call tzset() only
6164         when printing timezone-dependent values.
6165         Based on a patch by Petr Baudis <pasky@suse.cz>.
6167         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6168         unconditionally use second gaih_getanswer_slice result.
6170         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6171         (getaddrinfo): RES must always be non-NULL.
6173 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6175         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6176         cr[34] registers.
6177         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6178         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6179         Likewise.
6180         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6181         register.
6183 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6185         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6186         fields.
6187         * nscd/connections.c (inotify_fd): New variable.
6188         (nscd_init): Try to open an inotify descriptor.
6189         If successful, watch files for databases using inotify instead of
6190         having prune threads stat the files.
6191         (nscd_run_prune): Recognize clear_cache flag being set and call
6192         prune_cache appropriately.
6193         (main_loop_poll): Add inotify descriptor to wait set and handle the
6194         reported changes.
6195         (main_loop_epoll): Likewise.
6196         * nscd/cache.c (prune_cache): Don't stat files for databases if
6197         inotify is used.
6198         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6199         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6201         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6202         fixed-size portion of the record.
6203         * nscd/servicescache.c (cache_addserv): Likewise.
6204         * nscd/pwdcache.c (cache_addpw): Likewise.
6205         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6207 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6209         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6210         out we don't use uninitialized memory.
6212         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6213         the client.
6215 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6217         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6218         ignore T_DNAME messages.
6219         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6221 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6223         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6224         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6226 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6228         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6229         instead of portstr to nscd_getserv_r.  Patch by
6230         Roman Kagan <rkagan@mail.ru>.
6232 2008-05-26  Jim Meyering  <meyering@redhat.com>
6234         Remove more useless "if" tests before "free".
6235         * include/inline-hashtab.h (htab_delete): Likewise.
6236         * libio/freopen.c (freopen): Likewise.
6237         * libio/freopen64.c (freopen64): Likewise.
6238         * locale/programs/ld-collate.c (collate_read): Likewise.
6239         * misc/fstab.c (libc_freeres_fn): Likewise.
6240         * posix/glob.c (globfree): Likewise.
6242 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6244         * string/Makefile (strop-tests): Add memmem.
6245         * string/test-memmem.c: New file.
6246         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6247         (test_init): Size buf1 according to BUF1PAGES.
6249 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6251         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6252         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6253         (CFLAGS-scanf17.c): New.
6254         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6255         * stdio-common/scanf15.c (main): Likewise.
6256         * stdio-common/scanf16.c: New file.
6257         * stdio-common/scanf17.c: New file.
6259 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6261         * resolv/res_send.c (send_dg): If we already have one of two
6262         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6263         use the one answer insted of failing.
6265 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6267         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6268         being executed on PowerPC as the expected result exceeds IBM
6269         long double 128 __LDBL_MAX__.
6271 2008-05-21  Roland McGrath  <roland@redhat.com>
6273         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6275         * Makefile (check-data): Use $(abi-name) before other guesses.
6276         Look in $(add-ons) dirs before scripts/data/.
6277         * elf/Makefile (check-data): Likewise.
6279         * scripts/soversions.awk: Grok ABI line.
6280         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6281         Emit definition for abi-name variable.
6283 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6285         * string/endian.h: Define new fixed-size hto* and *toh macros only
6286         if [__USE_BSD].
6288         * iconvdata/Depend: Add localedata.
6290 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6292         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6294 2008-05-08  David S. Miller  <davem@davemloft.net>
6296         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6297         HIDDEN_JUMPTARGET.
6298         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6299         (__SYSCALL_CLOBBERS): Remove %g* registers.
6300         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6301         (__SYSCALL_CLOBBERS): Likewise.
6302         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6303         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6305 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6307         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6308         (CALL_ERRNO_LOCATION): Define.
6309         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6311         (CALL_ERRNO_LOCATION): Define.
6312         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6313         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6314         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6316 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6318         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6319         variable.
6321 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6323         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6324         (FIRST_FRAME_POINTER): Define.
6326 2008-05-09  David S. Miller  <davem@davemloft.net>
6328         * sysdeps/sparc/sparc64/backtrace.c: New file.
6330 2008-05-14  David S. Miller  <davem@davemloft.net>
6332         * sysdeps/sparc/machine-gmon.h: New file.
6333         * sysdeps/sparc/sparc-mcount.S: Likewise.
6334         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6335         sysdep_routines in gmon directory.
6337 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6339         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6341 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6343         * resolv/res_query.c (__libc_res_nquery): In case one of two
6344         answer was too short don't try to read that answer's header.
6346         * resolv/res_send.c (send_dg): In case of timeout and there are
6347         two queries and one has been answered, return value indicating
6348         success.
6350 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6352         * nscd/cache.c (cache_add): Take additional parameter specifying
6353         whether this is in response of a cache refill.  Check alignment
6354         of package data.  Revamp waking of pruning thread.
6355         (prune_cache): Small optimization.
6356         * nscd/nscd.h: Adjust cache_add prototypes.
6357         * nscd/aicache.c: Adjust cache_add calls.
6358         * nscd/grpcache.c: Likewise.
6359         * nscd/hstcache.c: Likewise.
6360         * nscd/initgrcache.c: Likewise.
6361         * nscd/pwdcache.c: Likewise.
6362         * nscd/servicescache.c: Likewise.
6363         * nscd/connections.c (restart): Really disable cache use before
6364         exec attempt.  If it fails, reenable cache.
6365         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6366         time to max to be able to notice concurrent cache additions.  Unlock
6367         prune_lock while performing gc.  Afterwards compute wakeup time with
6368         current wakeup_time value in mind.
6370 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6372         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6374         * nscd/mem.c (gc): Correctly determine highest used array element
6375         in mark.
6377         * nscd/mem.c (markrange): Add assert to check entries are all
6378         aligned.  Small cleanup in bitmap use.
6380         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6381         blockoff of type nscd_ssize_t.
6382         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6383         (mempoll_alloc): Record block offset and not address.
6385         * nscd/mem.c (gc): Fix test for stack overuse.
6387         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6388         more asserts.
6390         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6391         entry is available, believe it.
6393         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6394         no answers return NSS_STATUS_NOTFOUND.
6395         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6396         buffer does not have any content.
6398 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6400         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6402         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6403         lookup, don't assign canon unconditionally.
6405 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6407         * string/Makefile (distribute): Add str-two-way.h.
6409 2008-03-29  Eric Blake  <ebb9@byu.net>
6411         Rewrite string searches to O(n) rather than O(n^2).
6412         * string/str-two-way.h: New file.  For linear fixed-allocation
6413         string searching.
6414         * string/memmem.c: New implementation.
6415         * string/strstr.c: New implementation.
6416         * string/strcasestr.c: New implementation.
6418 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6420         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6421         opr.ctx_type.
6422         (calc_first): Initialize constraint field.
6423         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6424         Use search_duplicated_node to avoid loops.  Fix grammar.
6425         (duplicate_node): Merge constraint field for all node types.
6426         (calc_eclosure_iter): Look at constraint field for all node types.
6427         * posix/regex_internal.c (create_cd_newstate): Don't look at
6428         create_cd_newstate.
6430 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6432         [BZ #6428]
6433         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6435         [BZ #6442]
6436         * string/endian.h: Add macros for fixed-size endian conversion.
6437         * bits/byteswap.h: Allow inclusion from <endian.h>.
6438         * sysdeps/i386/bits/byteswap.h: Likewise.
6439         * sysdeps/ia64/bits/byteswap.h: Likewise.
6440         * sysdeps/s390/bits/byteswap.h: Likewise.
6441         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6442         * string/Makefile (tests): Add tst-endian.
6443         * string/tst-endian.c: New file.
6445         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6446         Patch by Reuben Thomas.
6448 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6450         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6452 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6454         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6456         [BZ #6461]
6457         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6458         Add missing braces.
6459         (BODY for __gconv_transform_internal_ascii): Likewise.
6461         [BZ #6472]
6462         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6463         to be treated like link-local addresses.
6464         (match_prefix): Don't treat IPv4 loopback address special when
6465         converting to v4 mapped addressed.
6467         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6468         if necessary.
6469         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6470         * posix/tst-rfc3484-2.c: Likewise.
6471         * posix/tst-rfc3484-3.c: Likewise.
6473         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6474         and SCTP.
6476         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6478         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6480         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6482 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6484         * po/lt.po: New file.  From Lituanian translation team.
6486 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6488         Introduce TLS descriptors for i386 and x86_64.
6489         * include/inline-hashtab.h: New file, copied from 2005's
6490         libiberty, with fix for memory leak imported afterwards by
6491         Glauber de Oliveira Costa.
6492         * elf/tlsdeschtab.h: New file.
6493         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6494         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6495         (CHECK_STATIC_TLS): Move to...
6496         * elf/dynamic-link.h: ... this file.
6497         (TRY_STATIC_TLS): New macro.
6498         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6499         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6500         R_386_TLS_DESC): Define.
6501         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6502         binutils.
6503         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6504         R_X86_64_TLSDESC): Define.
6505         (R_386_NUM, R_X86_64_NUM): Adjust.
6506         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6507         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6508         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6509         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6510         release tlsdesc_table.
6511         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6512         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6513         (elf_machine_rel): Handle R_386_TLS_DESC.
6514         (elf_machine_rela): Likewise.
6515         (elf_machine_lazy_rel): Likewise.
6516         (elf_machine_lazy_rela): Likewise.
6517         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6518         * sysdeps/i386/dl-tlsdesc.S: New file.
6519         * sysdeps/i386/dl-tlsdesc.h: New file.
6520         * sysdeps/i386/tlsdesc.c: New file.
6521         * sysdeps/i386/tlsdesc.sym: New file.
6522         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6523         tlsdesc_table.
6524         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6525         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6526         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6527         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6528         release tlsdesc_table.
6529         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6530         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6531         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6532         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6533         (elf_machine_rela): Likewise.
6534         (elf_machine_lazy_rel): Likewise.
6535         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6536         (__tls_get_addr): Do not declare for non-shared compiles.
6537         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6538         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6539         * sysdeps/x86_64/tlsdesc.c: New file.
6540         * sysdeps/x86_64/tlsdesc.sym: New file.
6541         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6542         tlsdesc_table for both 32- and 64-bit structs.
6544 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6546         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6547         its own function.  This reduces the frame setup costs and more.
6549 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6551         [BZ #3406]
6552         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6553         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6555 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6557         * io/openat.c (__openat_2): Also pass fd to __openat.
6558         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6559         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6561         * string/tester.c (test_memcmp): Add a few more tests.
6562         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6564 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6566         * nscd/cache.c (cache_add): Before returning with failure and this
6567         is the first use of the record, mark it as unusable.
6568         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6569         reporting a failure.
6570         * nscd/grpcache.c: Likewise
6571         * nscd/hstcache.c: Likewise.
6572         * nscd/initgrcache.c: Likewise.
6573         * nscd/pwdcache.c: Likewise.
6574         * nscd/servicescache.c: Likewise.
6576 2008-05-10  Roland McGrath  <roland@redhat.com>
6578         [BZ #6505]
6579         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6581 2008-05-08  David S. Miller  <davem@davemloft.net>
6583         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6585         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6586         (__ieee754_y0l): Likewise.
6587         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6588         (__ieee754_y1l): Likewise.
6589         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6590         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6591         frexpl and ldexpl.  math_private.h provides them and the latter
6592         is not even used.
6593         (__log1pl): Use __frexpl.
6595 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6597         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6598         prototypes.
6599         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6600         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6601         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6602         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6603         af==AF_UNSPEC.
6604         (_nss_nis_gethostbyname4_r): New function.
6605         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6606         Change to also handle af==AF_UNSPEC.
6607         (get_tablename): New function.  Use it to avoid duplication.
6608         (_nss_nisplus_gethostbyname4_r): New function.
6609         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6610         available.
6611         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6612         * nss/nss.h: Define struct gaih_addrtuple.
6613         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6614         af==AF_UNSPEC.
6615         (_nss_files_gethostbyname4_r): New function.
6616         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6617         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6618         calls.
6619         * resolv/res_query.c (__libc_res_nquery): Take two additional
6620         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6621         look up IPv4 and IPv6.
6622         Change all callers.
6623         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6624         for an additional query and answer buffer.  Pass to send_vc and
6625         send_dg.
6626         (send_vc): Send possibly two requests and receive two answers.
6627         (send_dg): Likewise.
6628         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6629         __libc_res_nquery.
6630         (_nss_dns_gethostbyname4_r): New function.
6631         (gaih_getanswer_slice): Likewise.
6632         (gaih_getanswer): Likewise.
6633         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6634         __libc_res_nquery call.
6635         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6636         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6637         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6638         available.
6640 2008-05-05  David S. Miller  <davem@davemloft.net>
6642         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6643         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6645 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6647         Fix termios bit macros.
6648         Move *DLY definitions where they belong, in termios.h.
6649         Add *[0-3] definitions.
6650         Fixes confusion between VT and FF.
6651         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6652         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6653         are already defined to avoid collision with termios.h.
6654         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6655         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6656         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6657         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6658         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6659         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6660         VTDLY, VT0, VT1): New macros.
6661         [__USE_GNU] (OLCUC): Change value of macro.
6662         [__USE_XOPEN] (OFILL): New macro.
6663         [__USE_BSD] (CRTSCTS): Change value.
6664         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6665         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6666         (B7200, B14400, B28800, B76800): New macros.
6668 2008-05-01  David S. Miller  <davem@davemloft.net>
6670         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6671         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6672         (gen-as-const-headers): Add it.
6673         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6674         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6675         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6676         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6678         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6679         six system call parameters.
6680         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6682 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6684         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6685         RUSAGE_LWP.
6686         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6687         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6689 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6691         * stdlib/tst-setcontext.c: Include unistd.h.
6693 2008-04-25  David S. Miller  <davem@davemloft.net>
6695         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6696         Pass "union semun" properly in to sys_ipc, it must be passed
6697         by value, not by reference.
6699 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6701         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6702         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6703         * nscd/connections.c (mem_in_flight): Likewise.
6705         * nscd/nscd.h (dbs): Make hidden.
6707         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6708         Avoid returning -1, return 0 instead.
6710 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6712         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6714 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6716         [BZ #5209]
6717         * sysdeps/unix/sysv/linux/times.c: New file.
6719         [BZ #5381]
6720         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6721         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6722         prototype.
6723         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6724         appropriate mem_in_flight element.
6725         (gc): Take allocations which have not yet been committed to the
6726         database into account.
6727         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6728         Reset mem_in_flight before returning.
6729         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6730         cue it up in mem_in_flight_list.
6731         * nscd/aicache.c: Adjust mempool_alloc call.
6732         * nscd/grpcache.c: Likewise.
6733         * nscd/hstcache.c: Likewise.
6734         * nscd/initgrcache.c: Likewise.
6735         * nscd/pwdcache.c: Likewise.
6736         * nscd/servicescache.c: Likewise.
6737         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6738         of -fpie.
6740         * nscd/connections.c (handle_request): Provide better error message
6741         in case SELinux forbids the service.
6743         * version.h (VERSION): Bump to 2.8.90.
6745 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6747         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6749 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6751         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6752         Also use for 32-bit.
6753         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6754         __nextafter instead of nextafter to avoid local PLT.
6755         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6756         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6758         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6760         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6761         __fe_nomask_env.
6762         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6763         <fenv_libc.h> instead of <fenv.h>.
6764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6767         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6769         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6770         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6771         function from fegetexcept and make old name weak alias.
6772         * include/fenv.h: Declare __fegetexcept.
6773         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6774         fegetexcept.
6775         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6776         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6777         to fetestexcept.
6778         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6779         instead of frexpl to avoid local PLT.
6780         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6781         ilogbl to avoid local PLT.
6782         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6783         instead of ldexpl to avoid local PLT.
6784         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6785         __roundl not roundl to avoid local PLT.
6786         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6787         local PLTs.  Use __sincosl instead of separate sinl and cosl
6788         calls.
6789         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6791         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6792         version for ppc64 to 2.4.21 since without it makecontext will fail.
6794         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6795         to the ABI in use.
6796         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6797         .__tls_get_addr.
6798         [__powerpc64__] (TLS_GD): Likewise.
6800 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6802         [BZ #4997]
6803         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6804         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6805         mantissa.
6806         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6807         Likewise.  Also account for when x is an odd number between 2^52
6808         and 2^53-1.
6809         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6810         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6811         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6812         detect aforementioned erroneous conditions.
6814 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6816         * configure.in: Check for -fno-section-anchors in addition to
6817         -fno-toplevel-reorder.
6819 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6821         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6823         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6824         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6825         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6826         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6827         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6828         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6830 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6832         [BZ #5443]
6833         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6834         * time/alt_digit.c: Likewise.
6835         * wcsmbs/wcsmbsload.c: Likewise.
6837 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6839         * version.h (VERSION): Bump to 2.8.
6841         * timzeone/asia: Update from tzdata2008b.
6842         * timezone/backward: Likewise.
6843         * timezone/europe: Likewise.
6844         * timezone/northamerica: Likewise.
6845         * timezone/southamerica: Likewise.
6846         * timezone/iso3166.tab: Likewise.
6847         * timezone/leapseconds: Likewise.
6848         * timezone/zone.tab: Likewise.
6849         * timezone/private.h: Update from tzcode2008a.
6850         * timezone/zdump.c: Likewise.
6851         * timezone/zic.c: Likewise.
6853 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6855         [BZ #5741]
6856         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6857         Define additonal Data Cache Block instruction macros.
6858         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6859         Replace dcbst with dcbf and sync with sync/isync.
6861 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6863         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6864         Always set ELF_RTYPE_CLASS_PLT.
6865         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6867 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6869         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6870         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6871         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6872         For ISA 2.01 and later replace mftb with mfspr 268.
6874 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6876         [BZ #5768]
6877         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6878         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6880 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6882         [BZ #5768]
6883         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6884         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6885         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6886         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6888 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6890         * stdlib/tst-makecontext.c (othervar): New variable.
6891         (cf): Test sign extending the argument to long.
6893 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6895         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6896         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6897         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6898         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6899         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6900         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6901         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6903 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6905         * elf/Makefile (tests): Substitute tests-vis-yes here.
6906         (tests-vis-yes): Delete.
6907         (modules-name, modules-vis-yes): Similarly.
6909 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6911         [BZ #4407]
6912         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6913         Preserve sign in signgamp when x is zero.
6915 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6917         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6918         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6919         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6920         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6921         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6922         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6924 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6926         [BZ #4314]
6927         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6928         buffers.
6930         [BZ #5209]
6931         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6932         a reserved error value.
6934         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6935         value to check for correct sign extension.
6937         [BZ #5436]
6938         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6939         Copy 64-bit parameter values even though this is not required in
6940         the standard.
6942         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6943         PC save.
6945 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6947         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6948         PC save.
6950 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6952         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6954 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6956         [BZ #5998]
6957         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6958         in line-buffered stream failed.
6959         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6961 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6963         [BZ #6024]
6964         * scripts/abi-versions.awk: If the version specified by
6965         --enable-oldest-abi is older than the first version for this
6966         architecture, use the default version.
6968         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6969         as well when ignoring the whole category.
6971 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6973         [BZ #6042]
6974         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6975         ETHERTYPE_* definitions.
6976         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6978 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6980         * stdlib/mbtowc.c (__no_r_state): Remove.
6981         (mbtowc): New static state variable.  Use it instead of
6982         __no_r_state.
6983         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6984         (__wctomb_state): New hidden variable.
6985         (wctomb): Use __wctomb_state instead of __no_r_state.
6986         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6987         (__wctomb_state): New extern decl.
6988         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6990 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6992         [BZ #5475]
6993         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6995 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6997         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6999 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
7001         * po/nl.po: Update from translation team.
7003 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
7005         [BZ #6007]
7006         * string/strfry.c: Handle empty strings again.
7008 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7010         [BZ #5443]
7011         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7012         before looking for translation.
7013         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7014         * locale/freelocale.c: Likewise.
7015         * locale/newlocale.c: Likewise.
7016         * locale/setlocale.c: Likewise.
7017         Based partially on a patch by ryo@np.css.fujitsu.com.
7019 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7021         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7022         acquiring wrlock.  Do conv_tab allocation while holding lock.
7023         * intl/Makefile: Add rules to build and run tst-gettext6.
7024         * intl/tst-gettext6.c: New test.
7025         * intl/tst-gettext6.sh: New file.
7027 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7029         * po/nl.po: Update from translation team.
7031         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7032         provided through st_blksize, try the default size before giving up.
7034 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7036         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7038         [BZ #5939]
7039         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7041         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7042         error message.  POSIX today does not require the messages to be in
7043         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7045         [BZ #5979]
7046         * sunrpc/auth_unix.c: Unify printed strings.
7047         * sunrpc/clnt_tcp.c: Likewise.
7048         * sunrpc/clnt_udp.c: Likewise.
7049         * sunrpc/clnt_unix.c: Likewise.
7050         * sunrpc/svc_tcp.c: Likewise.
7051         * sunrpc/svc_udp.c: Likewise.
7052         * sunrpc/svc_unix.c: Likewise.
7053         * sunrpc/xdr.c: Likewise.
7054         * sunrpc/xdr_array.c: Likewise.
7055         * sunrpc/xdr_rec.c: Likewise.
7056         * sunrpc/xdr_ref.c: Likewise.
7057         * locale/programs/ld-time.c (time_finish): Unify messages.
7058         * locale/programs/locfile.c (handle_copy): Fix typo.
7059         * nscd/nscd.c (options): Fix typo.
7061         [BZ #5995]
7062         * stdlib/strtod_l.c: Use correct sign for result in one more
7063         underflow case.
7064         Patch by Eric Blake <ebb9@byu.net>.
7066 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7068         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7069         and creat system calls.
7070         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7071         call.
7072         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7073         system calls.
7074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7075         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7076         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7078 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7080         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7081         <linux/limits.h> has defined it.
7082         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7083         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7084         headers.
7085         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7086         it instead of ARG_MAX.
7088 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7090         * posix/gai.conf: Fix comment for scope nullbits.
7091         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7092         default to 128 bits for v4 mapped addresses.
7094 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7096         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7097         ptrace call to get the ieee_instruction_pointer from the kernel.
7098         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7099         ptrace call to set the ieee_instructtion_pointer.
7100         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7101         Add comment that ieee_instruction_pointer is always 0.
7103 2008-03-09  Andreas Jaeger  <aj@suse.de>
7105         [BZ #5857]
7106         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7107         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7108         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7110         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7111         (rint_test): Likewise.
7113 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7115         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7116         call.
7117         (__nisfind_server): Similar for open readColdStartFile call.
7118         Patch partially by Jim Meyering.
7119         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7120         around internal_setent call.
7122         * po/vi.po: New Vietnamese translation.
7124         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7125         ADJ_OFFSET_SS_READ.
7127         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7128         remove CLONE_STOPPED.
7130 2008-02-10  Jim Meyering  <meyering@redhat.com>
7132         Remove useless "if" before "free":
7133         * elf/ldconfig.c (parse_conf_include): Likewise.
7134         * gmon/gmon.c (weak_alias): Likewise.
7135         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7136         * inet/rcmd.c (__validuser2_sa): Likewise.
7137         * intl/bindtextdom.c (set_binding_values): Likewise.
7138         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7139         * libio/genops.c (save_for_backup): Likewise.
7140         * libio/wgenops.c (save_for_wbackup): Likewise.
7141         * locale/programs/ld-collate.c (collate_read): Likewise.
7142         * locale/programs/linereader.c (get_string): Likewise.
7143         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7144         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7145         * resolv/res_debug.c (do_section): Likewise.
7146         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7147         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7148         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7149         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7150         * time/tzset.c (tzset_internal): Likewise.
7152 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7154         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7155         of ASSEMBLER.
7157 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7159         [BZ #5903]
7160         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7161         not stream for output file.  Open output file here.
7162         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7163         and output file name.
7164         (process_fd): Likewise.
7165         (process_file): Likewise.
7166         (main): Adjust callers of changed functions.
7167         * iconv/iconv_prog.h: Adjust prototype.
7169 2008-03-09  Andreas Jaeger  <aj@suse.de>
7171         [BZ #5753]
7172         * sysdeps/ia64/ieee754.h: Use protected namespace
7173         __BIG_ENDIAN/__LITTLE_ENDIAN.
7174         * sysdeps/ieee754/ieee754.h: Likewise.
7175         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7177 2008-03-08  Roland McGrath  <roland@frob.com>
7179         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7180         ignore a signal that came from a machine exception, treat it as a
7181         fatal core-dump signal instead.
7182         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7184         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7185         Clear DF bit in thread state's eflags.
7186         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7188 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7190         [BZ #5774]
7191         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7192         of NAN(...) sequence.
7193         * stdlib/Makefile (tests): Add tst-strtod6.
7194         * stdlib/tst-strtod6.c: New file.
7196         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7198         [BZ #5762]
7199         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7200         putting offending option character in quotes.  Clean up error
7201         messages.
7202         * po/be.po: Adjust msgstr in translation file.
7203         * po/bg.po: Likewise.
7204         * po/ca.po: Likewise.
7205         * po/cs.po: Likewise.
7206         * po/da.po: Likewise.
7207         * po/de.po: Likewise.
7208         * po/es.po: Likewise.
7209         * po/fr.po: Likewise.
7210         * po/hr.po: Likewise.
7211         * po/ko.po: Likewise.
7212         * po/nl.po: Likewise.
7213         * po/rw.po: Likewise.
7214         * po/sk.po: Likewise.
7215         * po/sv.po: Likewise.
7216         * po/tr.po: Likewise.
7217         * po/zh_CN.po: Likewise.
7218         * po/zh_TW.po: Likewise.
7220         [BZ #5760]
7221         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7222         Patch by Roland Bless <roland@bless.de>.
7224         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7225         .o file.
7226         * elf/Makefile (routines): Add dl-sysdep.
7227         (elide-routines.os): Likewise.
7229 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7231         [BZ #5786]
7232         * elf/dl-sysdep.c: Undefine ROUND after use.
7233         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7234         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7235         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7236         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7237         to ...
7238         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7239         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7240         if necessary.
7241         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7243         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7244         _dl_tls_get_addr_soft element.
7245         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7246         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7247         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7248         GLRO.
7249         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7250         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7251         of internal_function.
7253         * stdlib/Makefile (aux): Add tens_in_limb.
7254         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7255         * stdlib/tens_in_limb.c: ...here.  New file.
7257         [BZ #5778]
7258         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7259         __statfs_chown_restricted.
7260         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7261         for _PC_CHOWN_RESTRICTED.
7262         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7263         Implement __statfs_chown_restricted.
7264         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7265         _POSIX_CHOWN_RESTRICTED value to zero.
7266         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7267         defined to zero.
7269         * sysdeps/x86_64/rtld-memset.c: New file.
7271 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7273         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7275         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7276         Barcelona machine.  Make default fall through branch of
7277         __x86_64_preferred_memory_instruction check as the integer code path.
7279 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7281         * sysdeps/x86_64/cacheinfo.c
7282         (__x86_64_preferred_memory_instruction): New variable.
7283         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7285         * sysdeps/x86_64/memset.S: Rewrite.
7287 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7289         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7290         __obstack_printf_chk): New prototypes.
7291         (__vasprintf_chk, __vdprintf_chk,
7292         __obstack_vprintf_chk): Likewise.
7293         Add libc_hidden_proto.
7294         * libio/obprintf.c
7295         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7296         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7297         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7298         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7299         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7300         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7301         __obstack_vprintf_chk): New prototypes.
7302         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7303         obstack_vprintf): New inlines.
7304         * debug/dprintf_chk.c: New file.
7305         * debug/vdprintf_chk.c: New file.
7306         * debug/asprintf_chk.c: New file.
7307         * debug/vasprintf_chk.c: New file.
7308         * debug/obprintf_chk.c: New file.
7309         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7310         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7311         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7312         @@GLIBC_2.8.
7313         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7314         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7315         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7316         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7317         libc_hidden_proto.
7318         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7319         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7320         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7321         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7322         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7323         @@GLIBC_2.8.
7324         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7325         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7326         obstack_vprintf_chk.
7327         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7328         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7329         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7330         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7331         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7332         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7334 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7336         [BZ #5779]
7337         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7338         Patch by Roy Marples <roy@marples.name>.
7340         [BZ #5736]
7341         * malloc/malloc.c: Fix typo in comment.
7343         [BZ #5627]
7344         * locale/iso-639.def: Add Shuswap.
7346 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7348         [BZ #5790]
7349         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7350         overwrite *h_errnop/*errnop values from getanswer_r in case of
7351         failure.
7353 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7355         [BZ #5818]
7356         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7357         (verify_persistent_db): Remove one unnecessary test and add a new one
7358         for bad configuration.
7359         (nscd_init): Improve error reported when persistent database cannot
7360         be reused.
7361         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7362         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7363         .suggested_module and .max_db_size and case config file says the
7364         values are zero.
7365         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7367         [BZ #5854]
7368         * nis/ypclnt.c (yp_order): Fix handling of return value of
7369         do_ypcall_tr call.
7370         Patch by Jeff Moyer <jmoyer@redhat.com>.
7372         * po/fr.po: Update from translation team.
7374 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7375             Carlos O'Donell <carlos@systemhalted.org>
7377         [BZ #5012]
7378         * FAQ.in: Describe why glibc needs to be compiled with
7379         optimization.
7381 2008-02-19  Roland McGrath  <roland@redhat.com>
7383         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7385 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7387         [BZ #5737]
7388         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7389         __USE_MISC is defined.
7391 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7393         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7394         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7395         sys/timerfd.h.
7396         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7397         timerfd_gettime, timerfd_settime.
7398         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7399         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7401 2008-02-08  Roland McGrath  <roland@redhat.com>
7403         * elf/elf.h (NT_PPC_SPE): New macro.
7405 2008-02-06  Roland McGrath  <roland@redhat.com>
7407         * Makerules ($(common-objpfx)sysd-rules):
7408         Depend on $(sysdep-makeconfigs).
7410 2008-01-31  Roland McGrath  <roland@redhat.com>
7412         [BZ #5442]
7413         * configure.in: Use -print-file-name if it yields a directory,
7414         for each of include and include-fixed.
7415         * configure: Regenerated.
7417         * Makeconfig (sysd-rules-targets): New variable.
7418         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7419         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7421 2008-01-30  Roland McGrath  <roland@redhat.com>
7423         * manual/libc.texinfo: Update back-cover text.
7425         * elf/elf.h (NT_386_TLS): New macro.
7427 2008-01-29  Roland McGrath  <roland@redhat.com>
7429         * Makeconfig (sysd-rules-patterns): New variable.
7430         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7431         (check-inhibit-asm): New canned sequence, replaces ...
7432         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7433         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7434         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7435         (CFLAGS-rtld): Variable removed.
7437 2008-01-24  Roland McGrath  <roland@redhat.com>
7439         * configure.in: Let configure fragments set base_os.
7440         * configure: Regenerated.
7442 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7444         * po/ko.po: Update from translation team.
7446 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7448         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7450 2008-01-12  Andreas Jaeger  <aj@suse.de>
7452         [BZ #5040]
7453         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7454         Add EPOLLRDHUP.
7456 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7458         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7459         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7460         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7462 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7464         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7465         * elf/dl-close.c (_dl_close): Check for it.
7466         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7467         (_dl_allocate_static_tls): Likewise.
7468         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7469         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7470         to it.
7471         * elf/tst-tls16.c: New file.
7472         * elf/tst-tlsmod16a.c: New file.
7473         * elf/tst-tlsmod16b.c: New file.
7474         * elf/Makefile: Add rules to build and run tst-tls16.
7476 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7478         [BZ #5628]
7479         * bits/shm.h: Fix comment describing shmid_ds.
7480         * sysdeps/gnu/bits/shm.h: Likewise.
7481         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7482         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7483         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7484         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7485         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7486         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7487         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7488         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7489         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7491         [BZ #5607]
7492         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7493         prototypes.
7494         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7495         additional suffixes.
7496         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7497         Add optional functions mq_timedreceive and mq_timedsend.
7498         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7499         * conform/data/pthread.h-data: Fix prototype of
7500         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7501         * conform/data/semaphore.h-data: Allow time.h definitions.
7502         * conform/data/signal.h-data: Likewise.
7503         * conform/data/stdio.h-data: getw and putw are not required in v6.
7504         * conform/data/stdlib.h-data: Change setstate prototype.
7505         * conform/data/string.h-data: Fix strerror_r prototype.
7506         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7507         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7508         Fix readlink prototype.
7509         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7510         in6addr_loopback.
7511         * inet/netinet/in.h: Cleanup namespace.
7512         * posix/regex.h: Likewise.
7513         * resolv/netdb.h: Likewise.
7514         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7515         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7516         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7517         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7518         of names of in in6_addr.
7519         (default_precedence): Likewise.
7520         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7521         NULL definition.
7523 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7525         * conform/data/fmtmsg.h-data: Add missing allows.
7526         * conform/data/ftw.h-data: Likewise.
7527         * conform/data/inttypes.h-data: Likewise.
7528         * conform/data/math.h-data: Likewise.
7529         * conform/data/signal.h-data: Likewise.
7530         * conform/data/net/if.h-data: Likewise.
7531         * conform/data/netinet/in.h-data: Likewise.
7532         * conform/data/sys/socket.h-data: Likewise.
7534         [BZ #5614]
7535         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7536         (__strtok_r): Simplify.
7537         * string/tester.c (test_strtok_r): Add test case for futile search
7538         with single-character seach string.
7540 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7542         * po/ko.po: Update from translation team.
7544 2008-01-11  Andreas Jaeger  <aj@suse.de>
7546         [BZ #5600]
7547         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7548         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7549         kernel header.
7551 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7553         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7554         native interface lookup in all the relevant places.
7556 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7557             Ulrich Drepper  <drepper@redhat.com>
7559         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7560         field.  Use sockaddr_in6 for source_addr.
7561         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7562         (match_prefix): Likewise.
7563         (get_label): Likewise.
7564         (get_precedence): Likewise.
7565         (rfc3484_sort): Change to use indirect access to results array.
7566         Adjust to use of sockaddr_in6.  Replace service_order test with
7567         simple index comparison.
7568         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7569         service_order field.  Adjust qsort_t calls.  Access sorted result
7570         array indirectly through order array.
7571         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7572         * posix/tst-rfc3484-2.c: Likewise.
7573         * posix/tst-rfc3484-3.c: Likewise.
7575 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7577         [BZ #5541]
7578         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7579         pollfd structures.
7580         Patch by André Cruz.
7582         [BZ #5545]
7583         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7584         (clnt_spcreateerror): Likewise.
7586         [BZ #5553]
7587         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7588         (public_mEMALIGn): Likewise.
7589         Patch mostly by Daniel Jacobowitz.
7591 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7593         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7594         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7595         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7596         * stdlib/tst-makecontext2.c: New test.
7598 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7600         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7601         defined.
7602         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7603         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7604         transliteration hooks and REINIT_PARAMS afterwards.
7605         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7606         status.
7607         (REINIT_PARAMS): Define.
7608         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7609         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7610         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7611         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7612         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7613         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7614         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7615         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7616         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7617         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7618         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7619         * iconvdata/tst-iconv7.c: New test.
7621 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7623         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7625 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7627         [BZ #5112]
7628         * nscd/connections.c (restart): Fix condition.
7630 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7632         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7633         __ctype_toupper_loc): Add __THROW.
7635 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7637         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7638         recognition of interface family.
7640         * posix/getconf.c: Update copyright year.
7641         * nss/getent.c: Likewise.
7642         * iconv/iconvconfig.c: Likewise.
7643         * iconv/iconv_prog.c: Likewise.
7644         * elf/ldconfig.c: Likewise.
7645         * catgets/gencat.c: Likewise.
7646         * csu/version.c: Likewise.
7647         * elf/ldd.bash.in: Likewise.
7648         * elf/sprof.c (print_version): Likewise.
7649         * locale/programs/locale.c: Likewise.
7650         * locale/programs/localedef.c: Likewise.
7651         * nscd/nscd.c (print_version): Likewise.
7652         * debug/xtrace.sh: Likewise.
7653         * malloc/memusage.sh: Likewise.
7654         * malloc/mtrace.pl: Likewise.
7655         * debug/catchsegv.sh: Likewise.
7657 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7659         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7660         second lookup.
7662 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7664         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7665         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7667 2007-12-17  Roland McGrath  <roland@redhat.com>
7669         * inet/ether_line.c (ether_line): Remove unused variable.
7671 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7673         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7674         and winp.
7675         * login/openpty.c (openpty): Likewise.
7676         * login/pty.h (openpty, forkpty): Likewise.
7677         * manual/terminal.texi (openpty, forkpty): Likewise.
7679 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7681         * malloc/malloc.c (public_cALLOc): For arenas other than
7682         main_arena, count all bytes inside the mprotect_size range of the
7683         heap as uninitialized.
7685 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7687         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7688         executable stacks.
7690         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7691         mTRIm for all of them.
7692         (mTRIm): Additionally iterate over all free blocks and use madvise
7693         to free memory for all those blocks which contain at least one
7694         memory page.
7695         * malloc/tst-trim1.c: New file.
7696         * malloc/Makefile (tests): Add tst-trim1.
7698         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7700 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7702         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7703         First cast argument to long
7704         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7705         Return long.
7706         (__vdso_clock_gettime): Likewise.
7707         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7708         return long.
7710 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7712         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7713         * locale/nl_langinfo_l.c: Real implementation, copied from
7714         nl_langinfo.c.
7715         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7717 2007-12-01  Jim Meyering  <meyering@redhat.com>
7719         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7720         that would inhibit utf8-optimization of a regexp containing line-
7721         or buffer-anchors, e.g., `^', `$'.
7723 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7725         * time/bug-getdate1.c (do_test): Don't use century values which
7726         aren't valid on 32-bit systems.
7728 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7730         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7731         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7732         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7733         __strcat_g, __strncat_g): Add __asm__.
7735 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7737         [BZ #5477]
7738         * io/fchmodat.c: Fix typo in stub_warning use.
7739         Patch by Petr Salinger.
7741 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7743         * iconvdata/hp-thai8.c: New file.
7744         * iconvdata/Makefile: Add rules for hp-thai8.c.
7745         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7746         * iconvdata/gconv-modules: Likewise.
7748         [BZ #5464]
7749         * iconvdata/hp-greek8.c: New file.
7750         * iconvdata/Makefile: Add rules for hp-greek8.c.
7751         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7752         * iconvdata/gconv-modules: Likewise.
7754         [BZ #5463]
7755         * iconvdata/hp-turkish8.c: New file.
7756         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7757         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7758         * iconvdata/gconv-modules: Likewise.
7760         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7761         (shrink_heap): ... this new function.
7762         (heap_trim): Call shrink_heap instead of grow_heap.
7764         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7765         case don't call alloc_perturb.
7767 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7769         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7770         possible.
7771         * sysdeps/unix/sysv/linux/kernel-features.h
7772         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7773         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7775 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7777         [BZ #5424]
7778         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7779         * stdio-common/Makefile (tests): Add bug22.
7780         * stdio-common/bug22.c: New file.
7782         [BZ #5451]
7783         * time/getdate.c: Fix filling in default values.
7784         * time/bug-getdate1.c: New file.
7785         * time/Makefile: Add rules to build and run bug-getdate1.
7787         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7788         * iconvdata/ebcdic-es.c: Likewise.
7789         * iconvdata/ebcdic-es-a.c: Likewise.
7790         * iconvdata/ebcdic-uk.c: Likewise.
7791         * iconvdata/iso8859-16.c: Likewise.
7792         * iconvdata/viscii.c: Likewise.
7793         * iconvdata/iso8859-9e.c: Likewise.
7794         * iconvdata/Makefile: Adjust appropriately.
7796         [BZ #5428]
7797         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7798         __need_wint_t.
7800 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7802         [BZ #5427]
7803         * iconvdata/hp-roman9.c: New file.
7804         * iconvdata/Makefile: Add rules for hp-roman9.c.
7805         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7806         * iconvdata/gconv-modules: Likewise.
7808         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7809         * iconvdata/Makefile: Adjust appropriately.
7811         [BZ #5441]
7812         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7813         structure, it's allocated with alloca.
7814         * stdio-common/Makefile (tests): Add bug21.
7815         * stdio-common/bug21.c: New file.
7817 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7819         [BZ #5452]
7820         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7821         keyword for gcc's braced-groups.
7823 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7825         [BZ #5454]
7826         * inet/ether_line.c: Strip hostname of whitespaces.
7827         * inet/Makefile (tests): Add tst-ether_line.
7828         * inet/tst-ether_line.c: New file.
7830 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7832         [BZ #5439]
7833         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7835         [BZ #5435]
7836         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7838         * stdlib/tst-setcontext.c: Catch the case where the links gets
7839         messed up and we do not reach main again.
7841         * po/ca.po: Update from translation team.
7843 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7845         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7846         * posix/regex.h (REG_ENOSYS): Likewise.
7847         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7849 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7851         * nscd/nscd.h (MAX_STACK_USE): Define.
7852         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7853         (gc): Initialize stack_used based on allocation in prune_cache.
7854         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7855         Clear array before use.
7857         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7858         memory allocation failed.
7859         * nscd/hstcache.c (cache_addhst): Likewise.
7860         * nscd/grpcache.c (cache_addgr): Likewise.
7861         * nscd/servicescache.c (cache_addserv): Likewise.
7862         * nscd/pwdcache.c (cache_addpw): Likewise.
7863         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7865 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7868         and creat system calls.
7870         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7872 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7874         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7875         Add netiucv/iucv.h.
7876         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7877         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7878         protocol.
7879         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7880         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7881         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7883 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7885         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7886         strncat): Define as macros to avoid compile errors.
7888         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7889         creat entries.
7891 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7893         [BZ #5382]
7894         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7895         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7896         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7897         overflow it.
7898         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7900         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7901         Return zero in case the thread library is not NPTL.
7903         [BZ #5375]
7904         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7905         initializing interface list.
7907         [BZ #5378]
7908         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7909         use result of nss_getgrgid_r if nothing was found.  For other
7910         error return with a failure.
7911         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7913         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7914         macro name.
7916 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7918         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7919         (get_scope): For IPv4 scope, use scopes table.
7920         (fini): Free scopes table if necessary.
7921         (free_scopelist): New function.
7922         (scopecmp): New function.
7923         (gaiconf_init): Also handle scopev4 entries.
7924         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7925         * posix/tst-rfc3484-2.c (do_test): Likewise.
7926         * posix/gai.conf: Document scopev4 defaults.
7927         * posix/Makefile (tests): Add tst-rfc3484-3.
7928         * posix/tst-rfc3484-3.c: New file.
7930         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7931         Teredo tunnels.
7932         * posix/gai.conf: Update for current default tables.
7934 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7936         * po/tr.po: Update from translation team.
7938 2007-11-18  Roland McGrath  <roland@frob.com>
7940         * manual/arith.texi (Remainder Functions): Spelling fix.
7941         From Shaun Silk <genix@mysoul.com.au>.
7943         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7945 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7947         * po/zh_CN.po: Update from translation team.
7949         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7950         Add sys/signalfd.h and sys/eventfd.h.
7952 2007-11-15  Bruno Haible  <bruno@clisp.org>
7954         [BZ #5346]
7955         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7956         union.
7957         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7958         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7959         it needs only fixed stack space. Delay the initialization of
7960         msgid_len until it is needed.
7962 2007-11-15  Andreas Jaeger  <aj@suse.de>
7964         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7965         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7967 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7969         * po/ko.po: Update from translation team.
7971 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7973         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7974         significantly.  The device type is also part of the ifinfomsg data.
7976         * po/sv.po: Update from translation team.
7977         * po/nl.po: Likewise.
7979         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7980         to wake up in 24 hours.
7982         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7984 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7986         * po/cs.po: Update from translation team.
7987         * po/pl.po: Likewise.
7989         * include/ifaddrs.h: Remove in6ai_temporary.
7990         (struct in6addrinfo): Add index element.
7991         Declare __check_native.
7992         * inet/Makefile (aux): Add check_native.
7993         * sysdeps/unix/sysv/linux/check_native.c: New file.
7994         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7995         IFA_F_TEMPORARY.  Pass back ifa_index.
7996         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7997         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7998         call __check_native if necessary.
7999         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
8000         to sort addresses.  Pass information about the results.
8001         * posix/tst-rfc3484.c: Adjust for addition of index field and change
8002         of rfc3484_sort interface.
8003         * posix/tst-rfc3484-2.c: Likewise.
8005         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
8006         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8007         for _quicksort.
8008         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8009         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8010         on as third parameter to compare function and _quicksort.
8011         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8012         to the compare function.
8013         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8014         * Versions.def: Add GLIBC_2.8 for libc.
8016         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8017         * posix/tst-rfc3484-2.c: Likewise.
8019         * include/kernel-features.h: Moved to...
8020         * sysdeps/mach/hurd/kernel-features.h: ...here.
8022 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8024         * sysdeps/i386/i586/memcpy_chk.S: New file.
8025         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8026         * sysdeps/i386/i586/memset_chk.S: Likewise.
8028 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8030         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8031         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8032         list of interfaces.  Also store prefix length.
8033         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8034         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8035         prefix if source and destination address are in the same subnet.
8036         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8037         Always look for matching record in in6ai list.
8038         Correct source_addr_len value for IPv6->IPv4 converted records.
8040 2007-11-11  Roland McGrath  <roland@frob.com>
8042         * include/kernel-features.h: New file.
8044 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8046         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8047         complications for 64-bit platforms.
8049         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8050         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8051         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8052         open64_2.
8053         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8054         entries.
8055         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8056         * sysdeps/wordsize-64/alphasort.c: New file.
8057         * sysdeps/wordsize-64/alphasort64.c: New file.
8058         * sysdeps/wordsize-64/fseeko.c: New file.
8059         * sysdeps/wordsize-64/fseeko64.c: New file.
8060         * sysdeps/wordsize-64/ftello.c: New file.
8061         * sysdeps/wordsize-64/ftello64.c: New file.
8062         * sysdeps/wordsize-64/ftw.c: New file.
8063         * sysdeps/wordsize-64/ftw64.c: New file.
8064         * sysdeps/wordsize-64/iofgetpos.c: New file.
8065         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8066         * sysdeps/wordsize-64/iofopen.c: New file.
8067         * sysdeps/wordsize-64/iofopen64.c: New file.
8068         * sysdeps/wordsize-64/iofsetpos.c: New file.
8069         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8070         * sysdeps/wordsize-64/lockf.c: New file.
8071         * sysdeps/wordsize-64/lockf64.c: New file.
8072         * sysdeps/wordsize-64/mkostemp.c: New file.
8073         * sysdeps/wordsize-64/mkostemp64.c: New file.
8074         * sysdeps/wordsize-64/mkstemp.c: New file.
8075         * sysdeps/wordsize-64/mkstemp64.c: New file.
8076         * sysdeps/wordsize-64/scandir.c: New file.
8077         * sysdeps/wordsize-64/scandir64.c: New file.
8078         * sysdeps/wordsize-64/tmpfile.c: New file.
8079         * sysdeps/wordsize-64/tmpfile64.c: New file.
8080         * sysdeps/wordsize-64/versionsort.c: New file.
8081         * sysdeps/wordsize-64/versionsort64.c: New file.
8082         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8083         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8084         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8085         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8086         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8087         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8088         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8089         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8090         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8091         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8092         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8093         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8095         * crypt/sha256-crypt.c: Fix a comment.
8096         * crypt/sha512-crypt.c: Likewise.
8098 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8100         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8102 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8104         [BZ #5277]
8105         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8106         because output buffer is too small break, don't loop.
8107         * iconvdata/Makefile (tests): Add bug-iconv6.
8108         * iconvdata/bug-iconv6.c: New file.
8110 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8112         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8113         with size_t type.
8114         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8115         size_t.  Add casts where needed.
8117         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8118         old headers, don't call avc_has_perm if we don't have the
8119         permission information.
8121 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8123         * elf/rtld.c (dl_main): Use the page size to find the map start.
8125 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8127         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8128         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8130         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8131         when the lookup call failed.
8133         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8134         Add prune_cond and wakeup_time.
8135         (CACHE_PRUNE_INTERNAL): Define.
8136         Update declarations of prune_cache and setup_thread.
8137         * nscd/connections.c (dbs): Update initializers.
8138         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8139         (nscd_init): Default number of threads is now 4.
8140         (invalidate_cache): Take lock before calling prune_cache.
8141         (handle_request): If SELinux forbids the request, say so.
8142         (readylist_cond): Use static initializer.
8143         (nscd_run_prune): New function.  Used only by pruning threads.
8144         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8145         here.
8146         (fd_ready): Update nscd_run reference.
8147         (start_threads): No need to initialize readylist_cond.
8148         Start pruning threads separately.
8149         * nscd/nscd_setup_thread.c: Change return value type to int and always
8150         return 0.
8151         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8152         to int and return nonzero value if we can use the TID address hack.
8153         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8154         the database is later than the new entry's timeout, update the
8155         wakeup time and wake the cleanup thread.
8156         (prune_cache): Return seconds the next entry in the database is still
8157         valid.  Remove locking for pruning here.
8158         * nscd/nscd.conf: Document default number of threads.
8160 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8162         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8163         stack is properly aligned for the target function.
8164         Correct unwind info.
8166         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8167         when using auditing libraries.
8169 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8171         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8172         _nss_dns_getnetbyaddr2_r.
8173         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8174         extra parameter to getanswer_r.
8175         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8176         _nss_dns_getnetbyaddr2_r.
8178         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8179         gethstbynm3_r.
8180         * nscd/gethstbynm2_r.c: Remove.
8181         * nscd/gethstbynm3_r.c: New file.
8182         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8183         __gethostbyaddr_r.
8184         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8185         __gethostbyaddr_r compatibility wrapper.
8186         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8187         determining timeout of entry.
8188         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8189         __gethostbyaddr2_r.
8190         (addhstbyX): Pass reference to variable for TTL to lookup and
8191         cache_addhst.
8192         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8193         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8194         and __nss_next2.  Remove __nss_services_lookup.
8195         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8196         Add compat wrapper.
8197         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8198         __nss_next2.
8199         * nss/getXXent_r.c: Likewise.
8200         * nss/getnssent_r.c: Likewise.
8201         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8202         does not exist in module, try the optional second name.
8203         (__nss_next2): New function.
8204         (__nss_next): Now wrapper around __nss_next2.
8205         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8206         Declare __nss_next2.
8207         Adjust definition of db_lookup_function type.
8208         * nss/service-lookup.c: Define NO_COMPAT.
8209         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8210         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8211         * inet/ether_ntoh.c: Likewise.
8212         * sunrpc/netname.c: Likewise.
8213         * sunrpc/publickey.c: Likewise.
8214         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8215         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8216         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8217         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8218         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8220         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8222         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8224 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8226         [BZ #5204]
8227         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8228         * crypt/sha512c-test.c: Likewise.
8230         [BZ #5225]
8231         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8232         to keep track of end of %[ format string element.
8233         * stdio-common/Makefile (tests): Add bug20.
8234         * stdio-common/bug20.c: New file.
8236         [BZ #5222]
8237         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8238         path elements in counting mode.
8240 2007-10-27  Andreas Jaeger  <aj@suse.de>
8242         [BZ #5040]
8243         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8245         [BZ #3112]
8246         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8247         (__cleanup): Free shared library when exiting.
8248         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8249         (__cleanup): Free shared library when exiting.
8251 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8253         [BZ #2549]
8254         * math/libm-test.inc (check_float_internal): Support
8255         denormalized return.
8257 2007-10-23  Andreas Jaeger  <aj@suse.de>
8259         [BZ #5208]
8260         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8261         __LONG_LONG_PAIR to handle little endian byte order.
8262         Suggested by abhishekrai@google.com
8264 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8266         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8268 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8270         * nscd/cache.c (prune_cache): Move test for modified file outside
8271         of locking.
8273 2007-10-21  Andreas Jaeger  <aj@suse.de>
8275         * manual/texinfo.tex: Update to latest version.
8277         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8279         * manual/arith.texi (Status bit operations): Fix formatting.
8281         * manual/errno.texi (Error Messages): Fix formatting.
8283         * manual/sysinfo.texi (System Parameters): Fix formatting.
8285         * manual/libc.texinfo: Update VERSION and UPDATED.
8287 2007-10-19  Roland McGrath  <roland@redhat.com>
8289         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8291 2007-10-06  David S. Miller  <davem@davemloft.net>
8293         * configure.in: Add sparcv9v2 and sparc64v2.
8294         * scripts/config.sub: Likewise.
8295         * configure: Regenerate.
8296         * elf/elf.h (HWCAP_SPARC_N2): New.
8297         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8298         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8299         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8300         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8301         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8302         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8303         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8305 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8307         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8308         even if the poll result indicates there is data to read.
8309         Patch by Jeff Moyer <jmoyer@redhat.com>.
8311 2007-10-18  Roland McGrath  <roland@redhat.com>
8313         * elf/elf.h (NT_PPC_VMX): New macro.
8315 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8317         * version.h (VERSION): Set to 2.7.90.
8319 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8321         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8322         weak_alias.
8324 2007-10-17  Roland McGrath  <roland@frob.com>
8326         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8327         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8329 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8331         * version.h (VERSION): Bump to 2.7.
8332         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8334         [BZ #5186]
8335         * time/tzset.c (__tz_convert): Don't force testing for a change of
8336         TZ if not called from localtime.  But then also see whether the
8337         file changed, in case __use_tzfile is set.
8339         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8340         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8341         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8342         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8343         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8344         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8345         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8346         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8348 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8350         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8351         and admin selects to be able to replace the gai.conf file, lock
8352         data structures around the qsort call.
8354 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8356         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8357         new memset.
8358         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8359         too high for the improvements.  Implement bzero unconditionally for
8360         use in libc.
8362 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8363             Jakub Jelinek  <jakub@redhat.com>
8365         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8366         even when time_t is 32-bit.
8367         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8368         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8369         always set after the search.
8371 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8373         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8374         unreachable code on 32-bit machines.
8376 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8378         [BZ #5184]
8379         * time/strftime_l.c: Include stdbool.h.
8380         (my_strftime): New wrapper, old function renamed to...
8381         (__strftime_internal): ... new function.  Add tzset_called
8382         argument, pass it down to recursive calls, don't call tzset ()
8383         if already true, set to true after call to tzset ().
8385 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8387         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8388         into account when copying TZ string.
8390 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8392         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8393         num_transition rather than num_transitions - 1.
8395 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8397         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8398         PIC indirect jump.
8400         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8401         a local label rather than HIDDEN_JUMPTARGET.
8403 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8405         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8406         (init_cacheinfo): Initialize it.
8407         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8408         Always define bzero.
8409         Remove non-glibc code.
8410         * sysdeps/x86_64/bzero.S: Make an empty file.
8412 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8414         * sysdeps/x86_64/cacheinfo.c
8415         (__x86_64_preferred_memory_instruction): New.
8416         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8418         * sysdeps/x86_64/memset.S: Rewrite.
8420 2007-10-15  Roland McGrath  <roland@redhat.com>
8422         * po/libc.pot: Regenerated.
8424 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8426         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8427         pointers.
8429         [BZ #3425]
8430         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8431         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8432         address record to T_A/T_AAAA requests.
8434 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8436         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8438         * posix/glob.c: Add some branch prediction throughout.
8440         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8441         read from nscd.
8443         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8444         service_order.
8445         (rfc3484_sort): Make sure that even if qsort doesn't support
8446         stable sorting out sorting here is stable by comparing service_order.
8447         (getaddrinfo): Initialize service_order.
8448         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8449         service_order field to sorting structure.
8450         * posix/tst-rfc3484-2.c (do_test): Likewise.
8452         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8453         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8454         __tzset_parse_tz and updating of daylight, timezone, tzname into
8455         update_vars.
8456         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8457         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8458         happens in __tz_compute.
8459         * time/tzfile.c (__tzfile_read): Also read TZ string.
8460         (find_transition): Fold into __tzfile_compute.
8461         (__tzfile_compute): For times beyond the last transition try to
8462         use the TZ string.
8463         * timezone/tst-timezone.c: Information in daylight and tzname does
8464         change for Asia/Tokyo timezone with more concrete information.
8465         Remove the test.
8467         * include/stdio.h: Add libc_hidden_proto for ftello.
8468         * libio/ftello.c: Add libc_hidden_def.
8470         [BZ #1140]
8471         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8472         on the specified time and not the last entries in the file.  Move
8473         code to determine tzname[] to...
8474         (find_transition): ...here.  Add ugly guess for times before the
8475         first transition.
8477 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8479         [BZ #3195]
8480         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8481         no entry.
8482         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8483         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8484         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8485         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8487         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8488         read mechanism when there are no group members and avoid no-op
8489         read syscall in this case.
8491         [BZ #3242]
8492         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8493         (__readall): If reading failed due to EAGAIN error wait a bit
8494         and possibly try again.
8495         (__readvall): Likewise.
8497 2007-10-13  Bruno Haible  <bruno@clisp.org>
8499         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8500         when we cannot recode the message.
8502 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8504         [BZ #4359]
8505         * libio/__freading.c (__freading): Don't return true for
8506         write-only streams.  For read/write streams, check whether we
8507         performed a read operation already.
8508         * libio/Makefile (tests): Add tst-ext2.
8509         * libio/tst-ext2.c: New file.
8511 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8513         * locale/programs/repertoire.c (repertoire_read): Always free
8514         memory for repertoire file name [Coverity CID 270].
8516         * elf/cache.c (save_aux_cache): Free memory allocated for
8517         temporary file name [Coverity CID 267].
8519 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8521         * misc/Makefile (headers): Add bits/error.h.
8523 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8525         * posix/fnmatch_loop.c: Take rule index returned as part of
8526         findidx return value into account when accessing weights.
8527         * posix/regcomp.c: Likewise.
8528         * posix/regexec.c: Likewise.
8530         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8531         (skip_to): Fix problems with parameter of elifdef/elifndef.
8533 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8535         * iconv/gconv_simple.c: Add some branch prediction.
8537 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8539         * locale/programs/ld-collate.c (collate_read): If ignore_content
8540         and nowtok is tok_define, eat any tok_eol tokens.
8542 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8544         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8545         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8547         * inet/netinet/in.h: Don't include bits/socket.h.
8548         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8549         macro.
8550         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8552 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8554         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8555         and tok_elifndef.
8556         * locale/programs/locfile-kw.gperf: Likewise.
8557         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8559 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8561         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8562         (__find_specwc): Change into __extern_always_inline function.
8563         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8564         (__parse_one_specmb): Remove ps argument.
8565         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8566         Adjust __find_specmb and __parse_one_specmb callers.
8567         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8568         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8569         Removed.
8570         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8571         caller.
8573 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8575         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8576         with some Pentium Ds.
8578 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8580         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8581         __read not read.
8582         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8583         __write not write.
8585 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8587         [BZ #181]
8588         * locale/C-time.c: Set week_1stday data to 19971201.
8589         * locale/programs/ld-time.c (time_finish): Default for
8590         first_workday is Monday.
8592         [BZ #2633]
8593         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8595         [BZ #5103]
8596         * posix/glob.c (glob): Recognize patterns starting \/.
8597         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8598         (main): Add test for pattern starting \/.
8600         * misc/error.h: Use __const instead of const.
8601         * misc/bits/error.h: Likewise.
8603 2007-10-07  Andreas Jaeger  <aj@suse.de>
8605         * include/bits/error.h: New file.
8607         * misc/bits/error.h (error_at_line): Fix prototype.
8609 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8611         [BZ #3924]
8612         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8613         more little bugs in creating the stack frame when pltexit has to
8614         be called.
8616         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8617         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8619         [BZ #4407]
8620         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8621         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8622         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8623         * math/libm-test.inc: Add test for this case.
8625         [BZ #5010]
8626         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8627         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8628         map service succeeded.
8629         (svc_is_mapped): New function.
8630         (svc_unregister): Use it before trying to unmap service.
8632 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8634         * timezone/zic.c: Update from tzcode2007h.
8636         [BZ #5063]
8637         * timezone/africa: Update from tzdata2007h.
8638         * timezone/antarctica: Likewise.
8639         * timezone/asia: Likewise.
8640         * timezone/australasia: Likewise.
8641         * timezone/europe: Likewise.
8642         * timezone/leapseconds: Likewise.
8643         * timezone/northamerica: Likewise.
8644         * timezone/southamerica: Likewise.
8645         * timzeone/zone.tab: Likewise.
8647         [BZ #5104]
8648         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8650         [BZ #5113]
8651         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8652         avoid warning with -Wconversion.
8653         (__strndup): Likewise.
8654         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8656         [BZ #5112]
8657         * nscd/connections.c (restart): Don't resync if database is
8658         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8660         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8661         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8663         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8664         evetnfd_read, eventfd_write.
8665         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8666         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8667         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8668         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8669         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8670         eventfd_write for GLIBC_2.7.
8672         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8673         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8674         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8675         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8677 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8679         * stdlib/msort.c: Include stdint.h.
8680         (struct msort_param): New type.
8681         (msort_with_tmp): Use struct msort_param pointer for unchanging
8682         parameters.  Add optimized handling for several common sizes
8683         and indirect sorting mode.
8684         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8685         sorting.
8686         Suggested by Belazougui Djamel .
8688         * stdlib/Makefile (tests): Add tst-qsort2.
8689         * stdlib/tst-qsort2.c: New test.
8691 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8693         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8694         for dup2 in case another thread races with the current one.  Retry
8695         in this case.
8697         * misc/error.h: Remove support for use outside of libc.  We have to
8698         include <features.h> now.  Include <bits/error.h> if possible.
8699         * misc/bits/error.h: New file.
8701 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8703         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8704         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8705         __extern_always_inline functions unconditionally, drop macros.
8707         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8708         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8709         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8711         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8712         add __artificial__ attribute.
8714 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8716         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8717         backward to forward direction.
8719         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8721         [BZ #645]
8722         * locale/programs/ld-collate.c (collate_finish): Compare against last
8723         used section which is known to have rules defined.
8724         (collate_read): After order_start, correctly record order of sections
8725         and queue sections up.
8727 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8729         [BZ #5071]
8730         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8731         the same number of pages.
8732         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8734         * locale/programs/ld-collate.c (collate_read): After initial copy
8735         statement, continue in state 0.
8737         * include/stdio_ext.h (__fsetlocking): Define as macro.
8739 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8741         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8742         of section order.
8744         * po/pt_BR.po: Fix typo.
8746 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8748         * iconvdata/Makefile (modules): Add ISO8859-9E.
8749         (distribute): Add iso8859-9e.c.
8750         (gen-8bit-gap-modules): Add iso8859-9e.
8751         * iconvdata/iso8859-9e.c: New file.
8752         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8753         * iconvdata/TESTS: Likewise.
8754         * iconvdata/tst-tables.sh: Likewise.
8756         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8758         * locale/iso-639.def: Add several new entries.
8760 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8762         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8763         void * pointers instead of struct link_map **.
8764         (_dl_scope_free): Change argument type to void *.
8765         * include/link.h (struct link_map): Change type of l_reldeps
8766         to struct link_map_reldeps, move l_reldepsact into that
8767         struct too.
8768         * elf/dl-deps.c: Include atomic.h.
8769         (_dl_map_object_deps): Only change l->l_initfini when it is
8770         fully populated, use _dl_scope_free for freeing it.  Optimize
8771         removal of libs from reldeps by using l_reserved flag, when
8772         some removal is needed, allocate a new list instead of
8773         reallocating and free the old with _dl_scope_free.  Adjust
8774         for l_reldeps and l_reldepsact changes.
8775         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8776         searching in l_initfini and l_reldeps without holding dl_load_lock.
8777         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8778         l_reldepsact changes.
8779         * elf/dl-close.c (_dl_close_worker): Likewise.
8780         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8782 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8784         * iconvdata/Makefile (modules): Add KOI8-RU.
8785         (distribute): Add koi8-ru.c.
8786         (gen-8bit-gap-modules): Add koi8-ru.
8787         * iconvdata/koi8-ru.c: New file.
8788         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8789         * iconvdata/TESTS: Likewise.
8790         * iconvdata/tst-tables.sh: Likewise.
8792         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8794 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8796         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8797         with __warning__/__error__ attributes.
8798         (__warnattr): Define.
8799         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8800         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8801         __warnattr.
8802         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8803         of __*_chk if compile time detectable overflow is found.
8804         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8805         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8806         with __warnattr.
8807         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8808         instead of __*_chk if compile time detectable overflow is found.
8809         (__gets_alias): Rename to...
8810         (__gets_warn): ... this.  Add __warnattr.
8811         (gets): Call __gets_warn instead of __gets_alias.
8812         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8813         aliases with __warnattr.
8814         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8815         time detectable overflow is found.
8816         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8817         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8818         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8819         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8820         __getdomainname_chk_warn): New aliases with __warnattr.
8821         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8822         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8823         __*_chk_warn instead of __*_chk if compile time detectable overflow
8824         is found.
8825         (__getgroups_chk): Rename argument to __listlen from listlen.
8826         (__getwd_alias): Rename to...
8827         (__getwd_warn): ... this.  Add __warnattr.
8828         (getwd): Call __getwd_warn instead of __getwd_alias.
8829         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8830         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8831         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8832         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8833         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8834         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8835         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8836         compile time detectable overflow is found.
8837         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8838         to use __*_chk or not.
8839         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8840         in comparisons which function should be called and in __*_chk*
8841         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8842         detectable overflow is found.
8843         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8844         __*_chk argument.
8845         * debug/tst-chk1.c (do_test): Add a few more tests.
8847 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8849         [BZ #5058]
8850         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8851         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8852         (_nl_unload_domain): Finalize conversions_lock.
8853         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8854         handling table of known conversions.
8856 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8858         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8859         close_not_cancel_no_status instead of close.
8861 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8863         [BZ #5028]
8864         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8865         nrules != 0 for multibyte chars.
8867 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8869         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8870         Provide better error message in case the type is unknown.
8872         [BZ #4963]
8873         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8874         * string/stratcliff.c: Make usable to test wide char functions.
8875         * wcsmbs/wcsatcliff.c: New file.
8876         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8878         [BZ #4972]
8879         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8880         (distribute): Add mac-centraleurope.c.
8881         (gen-8bit-gap-modules): Add mac-centraleurope.
8882         * iconvdata/mac-centraleurope.c: New file.
8883         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8884         * iconvdata/TESTS: Likewise.
8885         * iconvdata/tst-tables.sh: Likewise.
8887         [BZ #5043]
8888         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8890 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8892         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8893         from __x86_64_core_cache_size_half.
8894         (init_cacheinfo): Compute shared cache size for AMD processors with
8895         shared L3 correctly.
8896         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8897         name change.
8898         Patch in large parts by Evandro Menezes.
8900 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8902         * elf/dl-lookup.c (add_dependency): Handle failing memory
8903         allocation for dependency list.  Remove unnecessary check.
8905         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8906         open/close when determining source addresses.
8908         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8909         sha512-crypt, and sha512.
8910         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8911         (distribute): Add sha256.h and sha512.h.
8912         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8913         and call the appropriate code.
8914         * crypt/sha256-crypt.c: New file.
8915         * crypt/sha256.c: New file.
8916         * crypt/sha256.h: New file.
8917         * crypt/sha256c-test.c: New file.
8918         * crypt/sha256test.c: New file.
8919         * crypt/sha512-crypt.c: New file.
8920         * crypt/sha512.c: New file.
8921         * crypt/sha512.h: New file.
8922         * crypt/sha512c-test.c: New file.
8923         * crypt/sha512test.c: New file.
8925 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8927         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8928         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8929         __syslog_chk.
8931 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8933         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8934         %as in fscanf format strings.
8936         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8937         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8938         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8939         Likewise.
8940         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8941         Likewise.
8943         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8944         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8945         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8946         * elf/dl-sym.c (do_sym): Likewise.
8947         * include/link.h (struct link_map): Add l_serial field.
8948         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8949         * elf/dl-lookup.c (add_dependency): Add flags argument.
8950         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8951         flags, use THREAD_GSCOPE_RESET_FLAG before and
8952         THREAD_GSCOPE_SET_FLAG after
8953         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8954         Don't dereference map until it has been found on some list.
8955         If map->l_serial changed, return -1.
8957 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8959         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8960         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8961         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8962         libc_hidden_proto.
8963         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8964         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8965         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8966         add libc_hidden_proto.
8967         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8968         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8969         conformance requested.
8970         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8971         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8972         conformance requested.
8973         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8974         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8975         conformance requested.
8976         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8977         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8978         ISO C99 or POSIX conformance requested.
8979         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8980         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8981         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8982         and __isoc99_vsscanf@@GLIBC_2.7.
8983         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8984         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8985         (tests): Add scanf14.
8986         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8987         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8988         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8989         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8990         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8991         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8992         from using internal headers.
8993         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8994         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8995         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8996         and __isoc99_vswscanf@@GLIBC_2.7.
8997         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8998         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8999         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9000         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9001         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9002         * stdio-common/isoc99_scanf.c: New file.
9003         * stdio-common/isoc99_vsscanf.c: New file.
9004         * stdio-common/isoc99_vscanf.c: New file.
9005         * stdio-common/isoc99_vfscanf.c: New file.
9006         * stdio-common/isoc99_fscanf.c: New file.
9007         * stdio-common/isoc99_sscanf.c: New file.
9008         * wcsmbs/isoc99_fwscanf.c: New file.
9009         * wcsmbs/isoc99_vswscanf.c: New file.
9010         * wcsmbs/isoc99_swscanf.c: New file.
9011         * wcsmbs/isoc99_wscanf.c: New file.
9012         * wcsmbs/isoc99_vwscanf.c: New file.
9013         * wcsmbs/isoc99_vfwscanf.c: New file.
9014         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9015         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9016         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9017         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9018         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9019         * stdio-common/scanf14.c: New test.
9020         * stdio-common/scanf15.c: New test.
9021         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9022         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9023         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9024         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9025         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9026         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9027         __nldbl___isoc99_scanf@@GLIBC_2.7,
9028         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9029         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9030         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9031         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9032         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9033         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9034         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9035         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9036         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9037         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9038         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9039         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9040         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9041         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9042         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9043         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9044         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9045         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9046         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9047         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9048         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9049         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9050         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9051         functions.
9052         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9053         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9054         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9055         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9056         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9057         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9058         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9059         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9060         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9061         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9062         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9063         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9065         * stdio-common/Makefile (tests): Add scanf13.
9066         (scanf13-ENV): New.
9067         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9068         m modifier followed by l.
9069         (STRING_ARG): Add width argument.
9070         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9071         <case L_('C')>: Handle %mlc and %mC.
9072         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9073         arguments.
9074         * stdio-common/scanf13.c: New test.
9076         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9077         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9079 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9081         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9082         type and __THROW marker of splice, vmsplice, and tee.
9083         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9084         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9085         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9086         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9087         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9089         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9090         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9091         as cancellation points.
9093 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9095         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9096         parse more than three parts of the version number.
9098 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9100         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9101         modifier.  Patch by Jakub Jelinek.
9103 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9105         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9106         call_fallocate in misc subdir.
9107         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9108         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9109         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9110         instead of __fallocate64.
9111         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9113 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9115         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9116         * rt/Makefile (headers): Add bits/mqueue2.h.
9117         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9118         optimizing with GCC and __va_arg_pack_len is defined.
9119         * rt/bits/mqueue2.h: New file.
9120         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9121         (mq_open): New strong_alias.
9122         (__mq_open_2): New function.
9123         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9124         (mq_open): New strong_alias.
9125         (__mq_open_2): New function.
9126         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9127         * Versions.def (librt): Add GLIBC_2.7 version.
9128         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9129         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9131         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9132         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9133         is defined rather than when not C++.
9134         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9135         __openat64_alias): New redirects.
9136         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9137         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9138         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9139         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9140         functions instead of function-like macros.
9142 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9144         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9145         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9146         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9148 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9150         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9151         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9153 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9155         * inet/tst-network.c: Increment ERRORS for failing tests.
9157 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9159         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9160         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9161         implement as __extern_always_inline function.
9162         (vsyslog): Define as __extern_always_inline function unconditionally.
9163         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9164         When __va_arg_pack is defined, implement as __extern_always_inline
9165         functions.
9166         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9167         __extern_always_inline functions unconditionally.
9168         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9169         bits/stdio2.h will be included.
9170         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9171         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9172         implement as __extern_always_inline functions.
9173         (vswprintf, vwprintf, vfwprintf): Define as
9174         __extern_always_inline functions unconditionally.
9175         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9177 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9179         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9180         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9181         attribute.
9182         * include/features.h (__USE_EXTERN_INLINES): Define only when
9183         __extern_inline is defined.
9184         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9185         is defined instead of when not __cplusplus.
9186         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9187         is defined instead of when not __cplusplus.
9188         * socket/sys/socket.h: Include bits/socket2.h when
9189         __extern_always_inline is defined instead of when not __cplusplus.
9190         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9191         is defined instead of when not __cplusplus.
9192         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9193         is defined instead of when not __cplusplus.
9194         * string/string.h: Include bits/string3.h when __extern_always_inline
9195         is defined instead of when not __cplusplus.
9196         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9197         is defined instead of when not __cplusplus.
9198         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9199         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9200         is not defined.
9201         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9202         defined __extern_always_inline instead of !defined __cplusplus.
9203         * libio/bits/stdio-ldbl.h: Likewise.
9204         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9205         * misc/bits/syslog.h (syslog): Don't define for C++.
9206         (vsyslog): Use __extern_always_inline function for C++ instead of
9207         a macro.
9208         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9209         whenever that macro is defined.
9210         (vprintf): Don't provide the inline for C++.
9211         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9212         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9213         define the macros for C++.
9214         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9215         __extern_always_inline functions for C++.
9216         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9217         stat64, lstat64, fstat64, fstatat64): Don't define if not
9218         __USE_EXTERN_INLINES.
9219         * wcsmbs/bits/wchar2.h: Fix #error message.
9220         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9221         (vswprintf, vwprintf, vfwprintf): Define using
9222         __extern_always_inline functions for C++.
9223         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9224         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9225         strncpy, strcat, strncat): Define as __extern_always_inline
9226         functions instead of macros for C++.
9227         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9228         defined __extern_inline.
9229         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9230         to __extern_inline whenever that macro is defined.
9231         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9232         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9233         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9234         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9235         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9236         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9237         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9238         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9239         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9240         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9241         prototypes.  Only provide __extern_inline routines if
9242         __USE_EXTERN_INLINES.
9243         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9244         tests.
9245         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9246         For now avoid some *printf tests in C++.  Skip all testing
9247         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9248         is not.
9249         * debug/tst-chk4.cc: New file.
9250         * debug/tst-chk5.cc: New file.
9251         * debug/tst-chk6.cc: New file.
9252         * debug/tst-lfschk4.cc: New file.
9253         * debug/tst-lfschk5.cc: New file.
9254         * debug/tst-lfschk6.cc: New file.
9255         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9256         prototypes in C++.
9257         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9258         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9259         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9261 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9263         * po/cs.po: Update from translation team.
9265 2007-09-11  Roland McGrath  <roland@redhat.com>
9267         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9268         compiling.
9270 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9272         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9274 2007-09-05  Roland McGrath  <roland@redhat.com>
9276         * manual/signal.texi (Signaling Another Process): Typo fix.
9277         From Karl Berry <karl@freefriends.org>.
9279 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9281         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9282         zero if not defined.
9283         (make_request): Recognize optimistic addresses and treat them like
9284         deprecated addresses.
9285         Reported by Neil Horman <nhorman@redhat.com>.
9287 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9289         * nscd/connections.c (send_ro_fd): Also transfer file size.
9290         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9291         file size don't call fstat.
9293         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9294         ahead and map the file.  This should always be correct and we can
9295         catch problems later.
9297 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9299         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9300         prototypes.
9301         (__fread_alias, __fread_unlocked_alias): New aliases.
9302         (fread): New extern inline.
9303         (fread_unlocked): Likewise.  Undef macro before definition of
9304         the inline function.
9305         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9306         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9307         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9308         and __fread_unlocked_chk@@GLIBC_2.7.
9309         * debug/fread_chk.c: New file.
9310         * debug/fread_u_chk.c: New file.
9311         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9313 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9315         * sysdeps/unix/sysv/linux/syscalls.list
9316         (personality): Change caller to EXTRA.
9318 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9320         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9321         to keep gcc quiet.
9322         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9324         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9325         NDEBUG is defined.
9327         * Makerules: Use -p option with mkdir.
9329         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9330         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9331         (_xdr_directory_obj): Likewise.
9332         (xdr_entry_obj): Likewise.
9333         (xdr_group_obj): Likewise.
9334         (xdr_link_obj): Likewise.
9335         (xdr_table_obj): Likewise.
9336         (_xdr_nis_result): Likewise.
9337         (_xdr_ns_request): Likewise.
9338         (_xdr_ib_request): Likewise.
9339         (_xdr_nis_taglist): Likewise.
9340         (xdr_cback_data): Likewise.
9341         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9342         (xdr_ypresp_maplist): Likewise.
9344         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9346         * posix/regex_internal.h: Prevent some declarations and definitions
9347         to be seen when used in tests.
9349         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9350         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9352         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9354         * config.make.in (datarootdir): Add to shut up configure.
9356         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9357         associativity for fully-associative caches.
9359         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9360         requests.  Fill on more associativity values for L2.
9361         Patch mostly by Evandro Menezes.
9363 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9365         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9366         (_libc_vdso_platform_setup): Avoid using exported variable by using
9367         alias.
9369         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9371         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9372         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9373         defined.
9375 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9377         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9378         align stack for call if pltexit is to be used.
9380         [BZ #3924]
9381         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9382         align for function call in case pltexit has to be called later.
9384         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9385         implicit atomic operation when storing function pointer.
9386         (_dl_runtime_profile): Likewise.
9388 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9390         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9391         NIS_NOTFOUND.
9393 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9395         [BZ #4566]
9396         * string/strtok.c: Fix typo in comment.
9398         [BZ #4582]
9399         * debug/segfault.c: Fix typos in comments.
9401         [BZ #4588]
9402         * stdio-common/tempnam.c: Fix comment, it is not checked that
9403         TMPDIR points to a writable directory.
9405         [BZ #4726]
9406         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9407         memory allocated for the name server address.
9409         [BZ #4946]
9410         * nscd/connections.c (handle_request): Using sendfile always
9411         requires that mmap is used for the database.
9412         Patch by Petr Baudis <pasky@suse.cz>.
9414         [BZ #4905]
9415         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9416         suddenly has two or more addresses, ignore it and remove the old
9417         entry.
9419         [BZ #4814]
9420         * resolv/res_hconf.c: Prepare for compiling outside libc.
9421         * nscd/res_hconf.c: New file.
9422         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9423         the new file.
9424         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9425         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9427         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9429         [BZ #4925]
9430         * debug/pcprofiledump.c: Turn on internationalization by calling
9431         setlocale.  Patch mostly by Benno Schulenberg.
9433         [BZ #4936]
9434         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9435         the state.
9436         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9437         * iconvdata/bug-iconv5.c: New file.
9439 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9441         [BZ #4896]
9442         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9443         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9444         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9445         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9446         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9447         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9448         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9449         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9451 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9453         [BZ #4937]
9454         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9455         lookup loop.  Suggested by John Reiser.
9457 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9459         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9461 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9463         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9464         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9465         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9466         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9467         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9468         to...
9469         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9471 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9473         * po/nl.po: Update from translation team.
9475 2007-08-16  Andreas Jaeger  <aj@suse.de>
9477         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9478         Reported by Peter Festner <peter.festner@ewetel.net>.
9480 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9482         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9484 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9486         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9487         to check for undefined symbols.
9489         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9490         If the syscall fails, set errno to the actual returned error number
9491         rather than EINVAL.
9492         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9493         arguments are incorrect, set errno to EINVAL, if the syscall
9494         fails, set errno to the actual returned error number.
9496         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9497         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9499         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9500         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9501         file.
9502         (ASI_PNF, ASI_BLK_P): Don't define.
9503         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9504         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9505         file.
9506         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9507         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9508         file.
9510 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9512         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9513         FE_UNDERFLOW on Niagara CPUs.
9515         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9516         exceptions.
9518 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9520         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9521         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9522         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9523         flush should be used or not inside of the function.
9524         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9526         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9527         __thread_start): Use HIDDEN_JUMPTARGET.
9528         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9529         __thread_start): Likewise.
9530         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9532         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9533         Add libc_hidden_proto.
9534         (STRTOF): Add libc_hidden_proto.
9535         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9536         (strtold_l, wcstold_l): Use them as second argument for
9537         long_double_symbol.
9539 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9541         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9543 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9545         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9547 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9549         * po/bg.po: New file.  From the translation team.
9551 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9553         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9554         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9555         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9556         when each feature was introduced.
9558         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9559         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9560         (CHECK_HASH): New macro.
9561         (PREPARE_VERSION): Use it.
9563         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9564         prototype if not __ASSUME_PSELECT.
9565         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9566         prototype if not __ASSUME_PPOLL.
9568         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9570         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9571         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9572         is defined.
9574 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9576         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9577         (_libc_vdso_platform_setup): If vDSO is not available point
9578         __vdso_gettimeofday to the vsyscall.
9579         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9580         __vdso_gettimeofday instead of vsyscall.
9582 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9584         * nscd/servicescache.c: Include kernel-features.h.
9585         * nscd/gai.c: Likewise.
9586         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9587         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9588         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9589         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9590         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9591         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9592         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9593         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9594         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9596 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9598         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9599         and _dl_get_origin defines anymore.
9601         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9602         Build fix for systems which might lack POSIX timer support.
9604         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9605         (_libc_vdso_platform_setup): Mangle function pointers before storing
9606         them.
9607         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9608         Demangle vdso pointer before use.
9609         (INTERNAL_VSYSCALL): Likewise.
9611         * elf/cache.c (primes): Mark as const.
9612         Noted by Roland McGrath.
9614 2007-08-01  Andreas Jaeger  <aj@suse.de>
9615             Jakub Jelinek  <jakub@redhat.com>
9617         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9618         (options): Add option.
9619         (parse_opt): Handle option.
9620         (manual_link): Adjust process_file caller.  Call implicit_soname.
9621         (search_dir): Formatting.  Use and populate auxiliary cache.
9622         (main): Load and save auxiliary cache.
9623         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9624         stat64 from fstat64 to caller.
9625         (implicit_soname): New function.
9626         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9627         leave *soname as NULL.
9628         * elf/cache.c: Include libgen.h.
9629         (print_entry, print_cache, compare, save_cache, add_to_cache):
9630         Formatting and cleanups.
9631         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9632         aux_cache_file): New structures.
9633         (AUX_CACHEMAGIC): Define.
9634         (primes): New array.
9635         (aux_hash_size, aux_hash): New variables.
9636         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9637         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9638         load_aux_cache, save_aux_cache): New functions.
9639         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9640         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9641         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9642         (process_file): Adjust prototype.
9644 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9646         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9647         with __need_size_t.
9649 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9651         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9652         r_found_version structure as second parameter.
9653         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9654         (_dl_vdso_vsym): Change type of second parameter accordingly.
9655         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9656         (_libc_vdso_platform_setup): Adjust.
9657         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9658         (_libc_vdso_platform_setup): Likewise.
9660         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9661         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9662         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9663         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9664         * csu/libc-start.c: Pretty printing.
9665         Use VDSO_SETUP if defined.
9666         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9667         and let generic code call into _libc_vdso_platform_setup.
9668         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9669         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9671         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9672         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9673         for GLIBC_PRIVATE.
9674         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9675         (sysdep_rountines): Add dl-vdso.
9677         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9678         of routines.
9680         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9681         attribute_hidden to __vdso_gettimeofday prototype.
9683 2007-08-12  Roland McGrath  <roland@redhat.com>
9685         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9686         From: Karl Berry <karl@freefriends.org>.
9688 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9690         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9691         an atime update for the files we read.
9693 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9695         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9697         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9698         instead of mkstemp.
9700         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9701         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9702         * misc/mkostemp.c: New file.
9703         * misc/mkostemp64.c: New file.
9704         * stdlib/stdlib.h: Declare the new functions.
9705         * sysdeps/posix/tempname.c: Add new parameter which is added to
9706         the flags for open.  Remove __GT_BIGFILE handling.
9707         * stdio-common/tempname.c: Likewise.
9708         * include/stdio.h: Adjust __gen_tempname prototype.
9709         Renumber __GT_* constants.
9710         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9711         * misc/mkdtemp.c: Likewise.
9712         * misc/mkstemp.c: Likewise.
9713         * misc/mkstemp64.c: Likewise.
9714         * misc/mktemp.c: Likewise.
9715         * stdio-common/tempnam.c: Likewise.
9716         * stdio-common/tmpfile.c: Likewise.
9717         * stdio-common/tmpfile64.c: Likewise.
9718         * stdio-common/tmpnam.c: Likewise.
9719         * stdio-common/tmpnam_r.c: Likewise.
9721 2007-08-10  Roland McGrath  <roland@frob.com>
9723         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9724         New macros.
9725         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9726         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9728 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9730         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9731         possible.
9732         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9733         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9734         * nss/nss_files/files-have_o_cloexec.c: New file.
9736         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9737         available.
9739 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9741         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9742         ___new_wcstold_l): New weak aliases.
9743         (strtold_l, wcstold_l): Use them as second argument for
9744         long_double_symbol.
9746 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9748         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9749         register in test for error.
9751         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9752         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9754         * po/sv.po: Update from translation team.
9756 2007-08-06  Roland McGrath  <roland@redhat.com>
9758         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9759         Remove __strto*_l inlines.
9760         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9761         * stdlib/strtod.c: Add libc_hidden_def.
9762         * stdlib/strtod_l.c: Likewise.
9763         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9764         for __new_strtold and __new_wcstold.
9765         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9766         __STRTOF, STRTOF.
9767         * stdlib/strtol.c: Add libc_hidden_def.
9768         * stdlib/strtol_l.c: Likewise.
9769         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9770         strtoq.
9772         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9774         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9775         * scripts/data/localplt-generic.data: ... here.
9776         * elf/Makefile (check-data): Get generic file if no other.
9777         ($(objpfx)check-localplt.out): Make target unconditional.
9779         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9780         Use ElfW(Nhdr).
9782 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9784         * po/zh_CN.po: Updated translation from translation team.
9786 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9789         Don't use CGOTSETUP and CGOTRESTORE macros.
9791 2007-08-04  Roland McGrath  <roland@redhat.com>
9793         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9795 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9797         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9798         __extension__ around the whole statement expression.
9800 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9802         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9803         elements during initialization.
9805         * po/pl.po: Updated translation from translation team.
9806         * po/tr.po: Likewise.
9807         * po/nl.po: Likewise.
9809 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9811         * rt/aio.h: Add __nonnull attributes.
9813 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9815         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9816         * stdlib/Makefile (tests): Add tst-strtod5.
9817         (tst-strtod5-ENV): New.
9818         * stdlib/tst-strtod5.c: New file.
9820         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9821         failed.
9822         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9823         on failure.
9825         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9826         allocated.
9828 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9830         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9831         numbers.
9833 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9835         * io/Makefile (aux): Add have_o_cloexec.
9836         * include/fcntl.h: Declare __have_o_cloexec.
9837         * io/have_o_cloexec.c: New file.
9838         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9839         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9840         fcntl call if not necessary.
9841         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9842         of local variable.
9844         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9845         Avoid memset, add explicit initialization.
9846         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9847         to the end and change into zero-sized array.
9848         Move lock member to fill a hole on 64-bit platforms.
9850         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9851         inline functions.
9852         * include/stdlib.h: Add __strto*_internal prototypes here.
9853         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9854         inline functions.
9855         * include/wchar.h: Add __wcsto*_internal prototypes.
9856         * sysdeps/generic/inttypes.h: No need to protect the declaration
9857         of the __strto*_internal and __wcsto*_internal members here.
9859         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9861 2007-08-02  Roland McGrath  <roland@redhat.com>
9863         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9864         $(inst_bindir)/getconf if possible.
9866         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9867         (generated): Add it.
9868         ($(inst_libexecdir)/getconf): Use it.
9870 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9872         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9873         /proc is faster and sufficient.  /sys is still needed for
9874         __get_nprocs_conf.
9876 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9878         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9879         syscall as __fallocate64.
9880         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9881         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9883 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9885         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9886         value.
9888         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9889         if off_t is different rank from size_t.
9891         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9892         uw_frame_state_for): Avoid type punning warnings.
9893         * sysdeps/generic/unwind-dw2-fde-glibc.c
9894         (_Unwind_IteratePhdrCallback): Likewise.
9895         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9896         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9897         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9898         pointers.
9900 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9902         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9903         total processors using sysfs.
9904         (__get_nprocs): Use sysfs to determine which processors are online.
9906 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9908         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9909         syscall arguments count.
9911         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9913 2007-07-30  Roland McGrath  <roland@redhat.com>
9915         * manual/libc.texinfo: Update copyrights, formatting magic, and
9916         @dircategory.  From Karl Berry <karl@freefriends.org>.
9918 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9920         [BZ #4860]
9921         * io/Makefile (headers): Add bits/fcntl2.h.
9923         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9924         using gcc builtin.
9925         (__CPU_EQUAL_S): Likewise.
9927         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9928         (tests): Add tst-cpuset.
9929         * posix/sched_cpualloc.c: New file.
9930         * posix/sched_cpufree.c: New file.
9931         * posix/tst-cpuset.c: New file.
9932         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9933         GLIBC_2.7.
9934         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9935         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9936         macros.  Define CPU_*_S macros.
9938 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9940         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9941         entry.
9943         [BZ #4858]
9944         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9945         #.0g and value rounded to 1.0.
9946         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9948 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9950         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9951         for int_frac_digits and frac_digits.
9953         * login/logout.c (logout): Avoid aliasing violation.
9954         * login/logwtmp.c (logwtmp): Likewise.
9956         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9958         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9959         to avoid warning.
9960         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9961         warning.
9962         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9963         warning.
9964         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9965         to avoid warnings.
9967         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9968         void **.
9969         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9971         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9972         char * to avoid warning.
9973         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9975         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9977         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9978         allocate_arrays): Cast second argument to charmap_find_symbol
9979         to char * to avoid warnings.
9981         * locale/programs/repertoire.c (repertoire_new_char): Change
9982         from_nr, to_nr and cnt to unsigned long, adjust printf format
9983         string.
9985         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9986         Cast second argument to new_element to char * to avoid warnings.
9988         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9990         * intl/gettextP.h (struct loaded_domain): Change plural to const
9991         struct expression *.
9992         * intl/plural-eval.c (plural_eval): Change first argument to
9993         const struct expression *.
9994         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9995         argument to const struct expression **.
9996         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9997         prototypes.
9998         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9999         in call to __gettext_free_exp.
10001         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10002         unitialized wstring/wpattern var warnings.
10004         * posix/runtests.c (struct a_test): Make data field const char *.
10006         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10007         vars if not LDBL_MANT_DIG >= 106.
10009         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10011         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10012         __find_specmb to avoid warning.
10014         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10016         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10017         to avoid warnings.
10019         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10020         initializer.
10022         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10023         tv var when it will be actually used.
10025         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10026         to avoid warnings.
10028         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10029         char array resp. pointer.
10030         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10031         char array.
10032         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10033         to const unsigned char **.
10034         (ucs4_to_cns11643): Change second argument to unsigned char *.
10035         * iconvdata/euc-tw.c (BODY): Change endp type to
10036         const unsigned char *.
10037         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10038         to unsigned char *.
10039         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10040         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10041         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10042         types to unsigned char pointers/arrays instead of char.
10043         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10044         to unsigned char *.
10045         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10046         * iconvdata/jis0212.h: Include assert.h.
10047         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10048         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10049         of trying to handle that.
10050         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10051         shut up a warning.
10052         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10053         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10054         two dimensional const unsigned char arrays.
10055         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10056         Initialize endp to inptr to shut up a warning.
10058 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10060         [BZ #4772]
10061         * time/strptime_l.c (__strptime_internal): Silently ignore
10062         strftime modifiers and field width in recursive calls.
10064         * include/time.h (enum ptime_locale_status): Remove.
10065         (__strptime_internal): Remove decided and era_cnt arguments,
10066         add statep argument.
10067         * time/strptime_l.c (__strptime_internal): Remove decided
10068         and era_cnt arguments, add statep argument.  Don't recompute
10069         any fields in recursive calls, only update caller's tm
10070         and state, if recursive call fails, don't change tm nor
10071         any state.
10072         (get_alt_number): Adjust.
10073         (recursive): Adjust caller.
10074         (strptime): Likewise.
10075         * time/strptime.c (strptime): Likewise.
10077 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10079         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10080         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10081         if from and to charsets are the same.
10082         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10083         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10084         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10086 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10088         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10089         Don't define wint_t when __need_mbstate_t unless it
10090         is necessary.
10091         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10092         in the typedef if possible.
10093         * wctype/wctype.h (wint_t): Define by including
10094         wchar.h with __need_wint_t instead of including stddef.h
10095         with __need_wint_t and as fallback definining it ourselves.
10096         * iconv/gconv.h (__need_wint_t): Define before including
10097         wchar.h.
10098         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10099         or _GLIBCPP_USE_WCHAR_T.
10100         (__need_wchar_t): Don't define
10101         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10102         (__need_wint_t): Don't define before including stddef.h,
10103         define before including wchar.h only if _LIBC or
10104         _GLIBCPP_USE_WCHAR_T.
10105         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10106         * sysdeps/mach/hurd/_G_config.h: Likewise.
10107         * sysdeps/generic/_G_config.h: Likewise.
10108         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10109         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10110         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10111         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10113 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10115         * sysdeps/posix/posix_fallocate64.c: Undefine
10116         __posix_fallocate64_l64 before alias handling.
10117         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10118         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10119         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10120         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10122         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10124 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10126         * locale/programs/ld-collate.c (atwc): New variable.
10127         (add_to_tablewc): New toplevel function, moved from collate_output.
10128         (collate_output): Remove add_to_tablewc nested function.
10130         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10131         (name_insert): New function.
10132         (write_output): Remove hash_table and hash_size vars and name_insert
10133         nested function.
10135 2007-07-24  Roland McGrath  <roland@redhat.com>
10137         * Makerules (install-others-programs-nosubdir): New target.
10138         (install-no-libc.a-nosubdir): Depend on it.
10140         * iconv/Makefile (install-others-programs): Set this instead of
10141         install-others.
10142         * login/Makefile (install-others-programs): Likewise.
10143         * posix/Makefile (install-others-programs): Likewise.
10145         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10146         dependencies.
10148 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10150         * io/Makefile (tests): Add tst-posix_fallocate.
10151         * io/tst-posix_fallocate.c: New file.
10153         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10154         __ASSUME_FALLOCATE.
10156 2007-07-22  Roland McGrath  <roland@frob.com>
10158         * hurd/getdport.c: Add missing copyright year update.
10160         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10161         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10163 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10165         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10167         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10168         O_CLOEXEC is needed.
10169         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10170         Avoid additional fcntl to set O_CLOEXEC if not needed.
10171         * nis/nss_compat/compat-initgroups.c: Likewise.
10172         * nis/nss_compat/compat-pwd.c: Likewise.
10173         * nis/nss_compat/compat-spwd.c: Likewise.
10175 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10177         [BZ #3665]
10178         * manual/errno.texi: Change ECANCELED value to 119.
10180         [BZ #4610]
10181         * mach/lock-intern.h: Include <sys/cdefs.h>.
10183         [BZ #4178]
10184         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10185         reading A.
10187         [BZ #4126]
10188         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10189         to __sigsuspend.
10191         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10193 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10195         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10196         `__ASSEMBLER__'.
10197         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10199 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10201         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10202         descriptor received from nscd.
10204         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10208         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10209         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10210         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10211         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10213 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10215         [BZ #4816]
10216         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10218         [BZ #4813]
10219         * login/forkpty.c (forkpty): Close master and slave fds on
10220         fork failure.  Patch by
10221         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10223 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10225         * include/features.h (__USE_ISOC95): New define.
10226         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10227         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10228         for -std=iso9899:199409.
10229         * CONFORMANCE: Remove comments about unsupported AMD1.
10231 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10233         * sysdeps/ia64/sched_cpucount.c: New file.
10234         * sysdeps/powerpc/sched_cpucount.c: New file.
10236         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10237         __BEGIN_DECLS/__END_DECLS around the prototype.
10238         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10239         pointer to const cpu_set_t.
10241         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10242         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10243         __need_size_t and include stddef.h.
10244         * sysvipc/sys/msg.h: Likewise.
10245         * posix/sched.h: Likewise.
10246         * hurd/hurd/signal.h (__need_size_t): Define.
10248         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10249         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10250         no longer defines wint_t or wchar_t.
10252         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10253         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10254         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10255         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10256         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10257         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10258         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10259         * debug/printf_chk.c (__printf_chk): Likewise.
10260         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10261         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10263         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10264         Define.
10266         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10267         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10269 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10271         [BZ #4792]
10272         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10273         * malloc/malloc.h (realloc): Likewise.
10275         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10276         if one of proc_file_chain streams has that fileno.
10277         * stdio-common/Makefile (tests): Add tst-popen2.
10278         * stdio-common/tst-popen2.c: New test.
10280 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10282         * elf/ldconfig.c: Allow GPLv2 or any later version.
10283         * elf/readlib.c: Likewise.
10284         * elf/chroot_canon.c: Likewise.
10285         * elf/cache.c: Likewise.
10286         * nscd/mem.c: Likewise.
10287         * nscd/getpwuid_r.c: Likewise.
10288         * nscd/grpcache.c: Likewise.
10289         * nscd/aicache.c: Likewise.
10290         * nscd/getsrvbynm_r.c: Likewise.
10291         * nscd/nscd.c: Likewise.
10292         * nscd/servicescache.c: Likewise.
10293         * nscd/getsrvbypt_r.c: Likewise.
10294         * nscd/initgrcache.c: Likewise.
10295         * nscd/gethstbyad_r.c: Likewise.
10296         * nscd/gethstbynm2_r.c: Likewise.
10297         * nscd/getgrnam_r.c: Likewise.
10298         * nscd/nscd_setup_thread.c: Likewise.
10299         * nscd/getpwnam_r.c: Likewise.
10300         * nscd/gai.c: Likewise.
10301         * nscd/connections.c: Likewise.
10302         * nscd/dbg_log.c: Likewise.
10303         * nscd/cache.c: Likewise.
10304         * nscd/hstcache.c: Likewise.
10305         * nscd/nscd_conf.c: Likewise.
10306         * nscd/getgrgid_r.c: Likewise.
10307         * nscd/pwdcache.c: Likewise.
10308         * catgets/gencat.c: Likewise.
10309         * locale/programs/linereader.h: Likewise.
10310         * locale/programs/locarchive.c: Likewise.
10311         * locale/programs/ld-paper.c: Likewise.
10312         * locale/programs/locfile-kw.h: Likewise.
10313         * locale/programs/ld-address.c: Likewise.
10314         * locale/programs/xmalloc.c: Likewise.
10315         * locale/programs/ld-time.c: Likewise.
10316         * locale/programs/localedef.c: Likewise.
10317         * locale/programs/simple-hash.c: Likewise.
10318         * locale/programs/xstrdup.c: Likewise.
10319         * locale/programs/ld-numeric.c: Likewise.
10320         * locale/programs/locfile-kw.gperf: Likewise.
10321         * locale/programs/ld-collate.c: Likewise.
10322         * locale/programs/charmap-kw.gperf: Likewise.
10323         * locale/programs/charmap.h: Likewise.
10324         * locale/programs/charmap-kw.h: Likewise.
10325         * locale/programs/config.h: Likewise.
10326         * locale/programs/locfile.c: Likewise.
10327         * locale/programs/ld-ctype.c: Likewise.
10328         * locale/programs/charmap.c: Likewise.
10329         * locale/programs/ld-messages.c: Likewise.
10330         * locale/programs/repertoire.h: Likewise.
10331         * locale/programs/locale.c: Likewise.
10332         * locale/programs/ld-name.c: Likewise.
10333         * locale/programs/linereader.c: Likewise.
10334         * locale/programs/locfile.h: Likewise.
10335         * locale/programs/3level.h: Likewise.
10336         * locale/programs/ld-monetary.c: Likewise.
10337         * locale/programs/ld-measurement.c: Likewise.
10338         * locale/programs/charmap-dir.c: Likewise.
10339         * locale/programs/ld-identification.c: Likewise.
10340         * locale/programs/localedef.h: Likewise.
10341         * locale/programs/charmap-dir.h: Likewise.
10342         * locale/programs/repertoire.c: Likewise.
10343         * locale/programs/simple-hash.h: Likewise.
10344         * locale/programs/ld-telephone.c: Likewise.
10345         * locale/programs/locale-spec.c: Likewise.
10346         * locale/programs/locfile-token.h: Likewise.
10347         * posix/getconf.c: Likewise.
10348         * iconv/dummy-repertoire.c: Likewise.
10349         * iconv/iconv_charmap.c: Likewise.
10350         * iconv/iconvconfig.c: Likewise.
10351         * iconv/iconv_prog.c: Likewise.
10352         * malloc/memusagestat.c: Likewise.
10353         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10355 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10357         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10358         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10359         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10360         check for the first argument.
10362 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10364         [BZ #4775]
10365         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10366         (__tgmath_real_type): Fix if expr is const int or other const
10367         qualified integral type.
10368         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10369         expressions and handle const qualified arguments.
10370         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10371         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10372         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10373         statement expressions.
10374         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10375         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10376         (__TGMATH_UNARY_IMAG): Define.
10377         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10378         * math/Makefile (tests): Add test-tgmath2.
10379         (CFLAGS-test-tgmath2.c): Add.
10380         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10381         count_cfloat, count_cldouble): New variables.
10382         (NCCALLS): Define.
10383         (main): Check number of complex calls as well.
10384         (F(compile_test)): Add complex tests and tests with const qualified
10385         arguments.
10386         (y, z, ccount): Define.
10387         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10388         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10389         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10390         F(cproj)): New functions.
10391         * math/test-tgmath2.c: New test.
10393 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10395         [BZ #4776]
10396         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10397         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10398         instead output ".".
10399         * dlfcn/Makefile (distribute): Add glreflib3.c.
10400         (module-names): Add glreflib3.
10401         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10402         glreflib1.so.
10403         (LDFLAGS_glreflib3.so): New.
10404         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10405         glreflib1.so.
10406         * dlfcn/glreflib3.c: New file.
10408         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10409         returned -1, return NULL.
10410         * intl/explodename.c (_nl_explode_name): Return -1 if
10411         _nl_normalize_codeset failed.
10413 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10415         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10416         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10417         and avoid branch misspredicts for > 31 bytes memset case.
10418         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10419         Remove toc ref to __cache_line_size.
10421         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10422         to get ISA-V2.0 branch hints.
10423         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10424         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10425         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10426         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10427         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10428         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10429         Remove toc ref to __cache_line_size.
10431         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10432         Include math_ldbl_opt.h.
10434 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10436         [BZ #4773]
10437         * time/strptime_l.c (__strptime_internal): Implement greedy
10438         matching of weekday and month names.
10440 2007-07-09  Roland McGrath  <roland@redhat.com>
10442         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10443         (ELF_NOTE_ABI): Use it.
10444         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10446 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10448         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10449         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10451 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10453         [BZ #4745]
10454         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10455         in loop to look for conversion specifier to avoid testing of
10456         wrong errno value.
10457         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10458         * stdio-common/bug18.c: New file.
10459         * stdio-common/bug18a.c: New file.
10460         * stdio-common/bug19.c: New file.
10461         * stdio-common/bug19a.c: New file.
10463 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10465         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10466         running awk script.
10468 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10470         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10471         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10472         Return NULL if mmap failed instead of asserting it does not.
10473         (calloc): Check for integer overflow.
10475         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10476         than LONG_MAX / 10.
10478 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10480         [BZ #4702]
10481         * nis/nss-default.c: Include errno.h.
10482         (init): Preserve errno.
10484 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10486         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10488 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10490         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10492 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10494         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10496 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10498         * sysdeps/s390/dl-procinfo.c: New file.
10499         * sysdeps/s390/dl-procinfo.h: New file.
10500         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10502 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10504         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10505         in PT_NOTE segments with multiple notes.
10506         * elf/readelflib.c (process_elf_file): Likewise.
10508 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10510         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10511         ISO C compliant.
10513 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10515         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10517 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10519         * include/link.h: Don't include rtld-lowlevel.h.
10520         (struct link_map): Remove l_scope_lock.
10521         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10522         (_dl_scope_free_list): New field (variable) in _rtld_global.
10523         (DL_LOOKUP_SCOPE_LOCK): Remove.
10524         (_dl_scope_free): New prototype.
10525         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10526         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10527         (_dl_profile_fixup): Likewise.
10528         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10529         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10530         THREAD_GSCOPE_RESET_FLAG around it.
10531         * elf/dl-close.c (_dl_close_worker): Don't use
10532         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10533         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10534         scopes were queued or if l_scope_mem has been abandoned.
10535         * elf/dl-open.c (_dl_scope_free): New function.
10536         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10537         * elf/dl-support.c (_dl_scope_free_list): New variable.
10538         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10539         Remove DL_LOOKUP_SCOPE_LOCK handling.
10540         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10541         handling.
10542         * elf/dl-object.c (_dl_new_object): Don't use
10543         __rtld_mrlock_initialize.
10545 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10547         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10548         to fill in holes
10549         (rtld_global_ro): Likewise.
10551 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10553         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10554         Move PT_LOAD checking to...
10555         (_dl_addr_inside_object): ... here, new function.
10556         * elf/dl-sym.c (do_sym): If not l_contiguous,
10557         call _dl_addr_inside_object.
10558         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10559         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10560         * elf/dl-open.c (dl_open_worker): Likewise.
10561         (_dl_addr_inside_object): New function if IS_IN_rtld.
10562         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10563         holes are present or are PROT_NONE protected.
10564         * include/link.h (struct link_map): Add l_contiguous field.
10565         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10567 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10568             Tomas Janousek  <tjanouse@redhat.com>
10569             Ulrich Drepper  <drepper@redhat.com>
10571         [BZ #4647]
10572         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10573         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10574         socket.
10575         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10576         unused member a bitmap.
10577         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10578         servers are configured.
10580 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10582         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10584 2007-06-17  Andreas Schwab  <schwab@suse.de>
10586         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10588 2007-06-16  Andreas Jaeger  <aj@suse.de>
10590         [BZ #4125]
10591         * sysdeps/unix/sysv/linux/sys/ptrace.h
10592         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10593         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10594         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10595         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10596         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10597         Define.
10598         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10599         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10600         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10601         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10603 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10605         [BZ #4599]
10606         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10607         determining whether there are IPv4/IPv6 addresses, ignore loopback
10608         addresses.
10610 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10612         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10613         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10614         as the return type.  Change type of "r" variable to CMPtype.
10615         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10616         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10617         * soft-fp/gedf2.c (__gedf2): Likewise.
10618         * soft-fp/gesf2.c (__gesf2): Likewise.
10619         * soft-fp/getf2.c (__getf2): Likewise.
10620         * soft-fp/ledf2.c (__ledf2): Likewise.
10621         * soft-fp/lesf2.c (__lesf2): Likewise.
10622         * soft-fp/letf2.c (__letf2): Likewise.
10623         * soft-fp/unorddf2 (__unorddf2): Likewise.
10624         * soft-fp/unordsf2 (__unordsf2): Likewise.
10625         * soft-fp/unordtf2 (__unordtf2): Likewise.
10627 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10629         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10630         make sure gcc doesn't mess around with this.
10632 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10634         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10636 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10638         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10639         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10640         at most once per _dl_close_worker.
10642 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10644         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10645         __sched_cpucount as const.
10646         * posix/sched_cpucount.c: Adjust.
10648         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10649         instruction for counting bits.
10650         * sysdeps/x86_64/sched_cpucount.c: New file.
10652 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10654         * configure.in: Avoid variable named BASH.
10655         * config.make.in: Likewise.
10656         Patch in part by Mike Frysinger.
10658 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10660         [BZ #4586]
10661         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10662         pseudo-zeros as zero.
10663         * sysdeps/x86_64/ldbl2mpn.c: New file.
10664         * sysdeps/ia64/ldbl2mpn.c: New file.
10666 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10668         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10669         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10670         Remove unreachable code at the end.
10672 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10674         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10675         ldbl-128ibm in comment.
10676         (fpclassifyl): Correct classification of denormals.
10677         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10678         return value for MIN denormal. Rewrite using long double math too
10679         correctly handle denormals and canonicalize the results.
10681 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10683         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10684         (__mpn_construct_long_double): Fix conversion where result ought
10685         to be smaller than __LDBL_MIN__, or the low double should be
10686         denormal.  Fix decision where to negate low double - honor round
10687         to even rules.
10688         * stdio-common/tst-sprintf2.c: Include string.h.
10689         (COMPARE_LDBL): Define.
10690         (TEST): Also test whether a string hexadecimal float representation
10691         can be parsed back to the number.
10692         (main): Add a couple of further tests.
10694 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10696         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10697         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10698         is non-zero, but smaller than 2 * __DBL_MIN__.
10699         * stdio-common/tst-sprintf2.c: New test.
10700         * stdio-common/Makefile (tests): Add tst-sprintf2.
10702         * math/test-misc.c (main): Don't run last batch of tests with
10703         IBM long double format.
10705 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10707         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10708         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10709         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10710         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10711         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10712         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10713         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10714         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10715         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10716         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10719         New file.
10720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10721         New file.
10722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10723         New file.
10724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10725         New file.
10726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10727         New file.
10728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10730         New file.
10731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10732         New file.
10733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10734         New file.
10735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10736         New file.
10737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10738         New file.
10740 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10742         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10743         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10744         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10745         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10746         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10747         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10748         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10749         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10751 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10753         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10754         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10755         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10756         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10757         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10758         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10759         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10760         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10762 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10764         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10765         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10766         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10767         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10769 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10771         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10772         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10774 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10776         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10777         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10778         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10779         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10781 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10783         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10784         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10786 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10788         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10789         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10791         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10792         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10793         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10794         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10796 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10798         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10799         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10800         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10801         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10803 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10805         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10806         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10807         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10808         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10809         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10810         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10812 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10814         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10815         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10816         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10817         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10819 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10821         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10822         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10823         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10824         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10825         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10826         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10827         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10828         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10829         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10830         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10831         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10832         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10833         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10834         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10835         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10836         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10838 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10840         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10841         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10843 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10845         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10846         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10848 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10850         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10851         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10852         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10853         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10854         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10855         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10856         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10857         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10858         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10859         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10861 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10863         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10865 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10867         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10868         branch miss-predicts. Ensure that cache line crossing does not impact
10869         dispatch grouping.
10871 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10873         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10874         "../../powerpc32/power4/memcopy.h".
10875         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10876         "../../powerpc32/power4/wordcopy.c".
10878 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10880         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10881         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10882         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10883         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10884         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10885         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10887 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10889         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10891 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10893         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10894         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10895         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10896         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10897         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10898         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10899         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10900         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10902 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10904         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10906 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10908         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10909         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10910         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10911         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10912         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10913         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10914         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10916 2007-05-29  Roland McGrath  <roland@redhat.com>
10918         * po/Makefile (po-sed-cmd): New variable.
10919         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10921 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10923         * crypt/md5-crypt.c: Fix comment.
10925         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10926         of crashing.  When this is the case or if the reply is malformed,
10927         don't try to close the new file descriptor since it does not
10928         exist.
10929         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10931 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10933         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10934         if __NR_utimensat is not defined.
10936 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10938         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10940 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10942         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10943         (open): Fix comment typos.  Don't call __open_2 if flags
10944         is a compile time constant without O_CREAT.
10945         (__open64_2): Add nonnull attribute.
10946         (open64): Fix comment typos.  Don't call __open64_2 if flags
10947         is a compile time constant without O_CREAT.
10948         (__openat_2): Add nonnull attribute, fix nonnull attribute
10949         on redirect.
10950         (openat): Fix comment typos.  Don't call __openat_2 if flags
10951         is a compile time constant without O_CREAT.
10952         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10953         on redirect.
10954         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10955         is a compile time constant without O_CREAT.
10957 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10959         * Makerules (sysd-rules): Define PTW for ptw-* files.
10960         * Versions: Define GLIBC_2.7 for libc.
10961         * include/stdio.h: Declare __fortify_fail.
10962         * debug/fortify_fail.c: New file.
10963         * debug/Makefile (routines): Add fortify_fail.
10964         * debug/chk_fail.c: Use __fortify_fail.
10965         * debug/stack_chk_fail.c: Likewise.
10966         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10967         __openat64_2 for GLIBC_2.7.
10968         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10969         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10970         and fails if necessary.
10971         * io/open64.c: Likewise.
10972         * io/openat.c: Likewise.
10973         * io/openat64.c: Likewise.
10974         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10975         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10976         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10977         * io/bits/fcntl2.h: New file.
10978         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10979         __openat64_2.
10980         * include/bits/fcntl2.h: New file.
10981         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10982         Add open_2.
10983         * sysdeps/unix/sysv/linux/open_2.c: New file.
10985 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10987         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10988         as second parameter to handle_intel.
10990         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10991         the entry.
10993         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10994         handling to ...
10995         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10996         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10997         cacheinfo.
10998         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10999         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11000         Patch by Evandro Menezes <evandro.menezes@amd.com>.
11002         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11004 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
11006         [BZ #4525]
11007         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11008         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11009         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11011         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11013         [BZ #4514]
11014         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11015         reinitialize workend at the start of each do_positional format spec
11016         loop, free workstart before do_positional loops.
11017         (printf_unknown): Fix size of work_buffer.
11018         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11020         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11021         (public_sET_STATe): If ms->version < 3, put all chunks into
11022         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11023         chunks.
11025         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11026         * malloc/hooks.c: Likewise.
11027         * malloc/arena.c: Likewise.
11028         * malloc/malloc.c (do_check_malloc_state): Don't assert
11029         n_mmaps is not greater than n_mmaps_max.  This removes the need
11030         for the previous change.
11032         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11033         2007-05-07 commit.
11035 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11037         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11038         Define for kernel >= 2.6.22.
11040 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11042         * elf/dl-close.c (_dl_close_worker): When removing object from
11043         global scope, wait for all lookups to finish afterwards.
11044         * elf/dl-open.c (add_to_global): When global scope array must
11045         grow, allocate a new one and free old array only after all
11046         lookups finish.
11047         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11048         (_dl_lookup_symbol_x): Likewise.
11049         * elf/dl-support.c: Define _dl_wait_lookup_done.
11050         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11051         _dl_wait_lookup_done.
11053         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11054         not overlapping with arena.
11056         * malloc/mcheck.c (reallochook): If size==0, free the block.
11058         * rt/tst-shm.c: Use fstat64 instead of fstat.
11060         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11061         __NR_sync_file_range is not defined.
11063 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11065         Dummy files to prevent stub versions from being used.
11066         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11067         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11068         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11069         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11071         * version.h (VERSION): Set to 2.6.90.
11073 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11075         * version.h (VERSION): Define to 2.6.
11076         * include/features.h (__GLIBC_MINOR__): Define to 6.
11078         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11080         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11081         sizes.
11083 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11085         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11086         number of mmaps.  n_mmaps_max is the target.
11087         * malloc/hooks.c: Likewise.
11088         * malloc/arena.c: Likewise.
11090 2007-05-12  Andreas Jaeger  <aj@suse.de>
11092         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11093         getpid.
11095 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11097         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11098         adding new variables.
11100         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11101         optimize.  Completely extend global scope array before making the
11102         new entries visible.
11104 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11106         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11107         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11108         tst-getcpu.
11110         * include/link.h: Move l_version and l_nversion members around to
11111         fill gaps.
11113         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11115         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11116         (__sched_setaffinity_new): If syscall was successful and
11117         RESET_VGETCPU_CACHE is defined, use it before returning.
11118         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11120         * io/sys/stat.h: Make sure struct timespec is defined for
11121         __USE_ATFILE.
11123         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11124         UTIME_OMIT.
11125         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11126         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11127         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11128         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11129         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11130         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11131         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11132         * io/sys/stat.h: Declare utimensat, futimens.
11133         * io/utimensat.c: New file.
11134         * io/futimens.c: New file.
11135         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11136         * sysdeps/unix/sysv/linux/futimens.c: New file.
11137         * io/Makefile (routines): Add utimensat, futimens.
11138         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11139         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11140         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11141         available.
11143         * include/sys/cdefs.h: Redefine __nonnull so that test for
11144         incorrect parameters in the libc code itself are not omitted.
11146 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11148         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11149         exception in addition to inexact when asked to raise only FE_INEXACT.
11151         [BZ #3427]
11152         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11153         in *envp.
11155 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11157         [BZ #4403]
11158         * string/strfry.c (strfry): Make result more random.
11160 2007-05-07  Richard Henderson  <rth@redhat.com>
11162         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11163         if __NO_LONG_DOUBLE_MATH.
11164         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11165         available in the compiler, add .arch directive to the assembly.
11167 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11169         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11170         compat_symbol to GLIBC_2_1.
11171         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11172         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11173         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11174         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11175         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11176         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11177         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11178         libc, not libm.
11179         (__isnanl): New compat_symbol.
11181 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11182             Jakub Jelinek  <jakub@redhat.com>
11184         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11185         (new_heap): Initialize mprotect_size.
11186         (grow_heap): When growing, only mprotect from mprotect_size till
11187         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11188         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11190 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11191             Peter Bergner  <bergner@us.ibm.com>
11193         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11194         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11195         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11196         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11197         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11198         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11199         Call __fe_mask_env() if all FP exceptions disabled.
11200         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11201         from old FPSCR to new fenv to propagate DFP rounding modes.
11202         Call __fe_mask_env() if FP exceptions previously enabled.
11203         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11204         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11205         transitioning from all exceptions disabled to any exception enabled
11206         or visa versa.
11207         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11208         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11209         when transitioning from all exceptions disabled to any exception
11210         enabled or visa versa.
11211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11218 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11220         [BZ #4465]
11221         * posix/unistd.h: Remove __THROW from fdatasync.
11223 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11225         [BZ #4465]
11226         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11228 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11230         * stdio-common/vfprintf.c (process_string_arg): Optimize
11231         ridiculous precision in wide char code printing multi-byte string.
11232         Reported by Jim Meyering <jim@meyering.net>.
11234         [BZ #4131]
11235         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11236         boundaries to work around systems with overlapping binary loading.
11237         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11239 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11241         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11242         __mbsnrtowcs after last change.
11244         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11245         (get_ident): Likewise.
11247 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11249         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11250         with setting the sticky bit.
11251         * math/test-misc.c (main): Add more truncation tests.
11253 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11255         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11256         double in the function declaration.
11257         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11258         double in the function declaration.
11259         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11260         float in the function declaration.
11261         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11262         float in the function declaration.
11264         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11265         denormal operands.  Do not generate FP_EX_DENORM exception.
11266         (FP_UNPACK_RAW_EP): Ditto.
11267         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11268         undefined _FP_UNPACK_RAW_E.
11269         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11270         undefined _FP_UNPACK_RAW_EP.
11271         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11272         undefined _FP_PACK_RAW_E.
11273         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11274         undefined _FP_PACK_RAW_EP.
11276         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11277         _FP_FRAC_COPY_2.
11278         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11279         _FP_FRAC_COPY_4.
11281 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11282             Jakub Jelinek  <jakub@redhat.com>
11284         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11285         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11286         this case.
11287         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11289 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11291         * math/test-misc.c (main): Add tests for rounding long double
11292         values close to smallest double denormalized value to double.
11294 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11296         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11297         condition for truncating to 0.  Set sticky bit for such
11298         truncation.
11300 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11302         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11303         fixed length array for ignore.
11305 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11307         [BZ #4438]
11308         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11309         stack for large precisions.
11310         * stdio-common/test-vfprintf.c (main): Add test for large
11311         precision.
11313 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11315         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11316         for exponent 0.
11317         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11319         [BZ #4439]
11320         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11321         account in the size check.
11322         * resolv/tst-inet_ntop.c: New test.
11323         * resolv/Makefile (tests): Add tst-inet_ntop.
11325 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11326             Jakub Jelinek  <jakub@redhat.com>
11328         [BZ #4349]
11329         * malloc/malloc.c: Keep separate list for first blocks on the bin
11330         lists with a given size.  This helps skipping over list elements
11331         we know won't fit in two places.
11332         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11334 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11336         [BZ #4102]
11337         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11338         label to Teredo tunnel addresses 2001://32.
11340 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11342         * locale/programs/ld-collate.c (collate_read): Allow order_start
11343         after copy.
11345         * locale/programs/ld-collate.c (collate_read): Fix printing of
11346         error message.
11348         [BZ #3213]
11349         * locale/C-translit.h.in: Add entry for U2044.
11351         [BZ #4342]
11352         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11353         hexa-decimal floats without exponent.
11354         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11356 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11358         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11359         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11360         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11361         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11362         GLIBC_2.6.
11363         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11364         Add sched_getcpu.
11366 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11369         of 0 after the out_fail label.
11371 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11373         [BZ #4406]
11374         * iconv/gconv_charset.h (strip): Allow ':'.
11375         * iconv/iconv_open.c (iconv_open): Adjust comment.
11377 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11379         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11380         version.
11382 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11384         [BZ #4381]
11385         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11386         alignment of buffer and tmp_buffer.
11387         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11388         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11389         alignment of buffer.
11390         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11391         bigger than INT_MAX.
11392         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11393         h_errnop arguments.  Fail if buflen is too small.
11394         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11396 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11398         [BZ #4405]
11399         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11400         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11402 2007-04-22  Roland McGrath  <roland@redhat.com>
11404         * elf/elf.h (NT_PRXFPREG): New macro.
11406 2007-04-19  Andreas Jaeger  <aj@suse.de>
11408         [BZ #3905]
11409         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11410         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11411         Added.
11413 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11415         * include/sys/mman.h: Mark madvise hidden.
11416         * misc/madvise.c: Add libc_hidden_def.
11418 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11420         * nis/nis_domain_of.c (__nis_domain_of): New function.
11421         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11422         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11423         * nis/nis_call.c (rec_dirsearch): Likewise.
11424         (first_shoot): Likewise.  Remove search_parent_first argument.
11425         (struct nis_server_cache): Rename search_parent_first field
11426         to search_parent.
11427         (nis_server_cache_search, nis_server_cache_add): Rename
11428         search_parent_first argument to search_parent.
11429         (__nisfind_server): Likewise.  If search_parent, call
11430         __nis_domain_of.
11432 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11434         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11436 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11438         [BZ #4368]
11439         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11441 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11443         [BZ #4364]
11444         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11446 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11448         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11449         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11450         current number of locales in SUPPORTED.
11451         (create_archive): Initialize serial.
11452         (enlarge_archive): Preserve aliases rather than duplicating
11453         their locrecs.
11455 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11457         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11458         after _IO_un_link, not before it.
11460         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11461         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11462         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11464 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11466         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11467         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11468         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11469         Remove __THROW.
11470         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11471         _IO_file_xsgetn_maybe_mmap): Likewise.
11472         * libio/oldfileops.c (old_do_write): Likewise.
11473         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11474         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11475         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11476         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11477         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11478         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11479         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11480         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11481         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11482         _IO_file_underflow, _IO_file_underflow_mmap,
11483         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11484         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11485         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11486         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11487         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11488         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11489         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11490         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11491         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11492         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11493         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11494         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11495         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11496         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11497         _IO_adjust_column_internal, _IO_default_uflow_internal,
11498         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11499         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11500         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11501         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11502         _IO_file_close_it_internal, _IO_file_underflow_internal,
11503         _IO_file_overflow_internal, _IO_file_attach_internal,
11504         _IO_file_fopen_internal, _IO_file_sync_internal,
11505         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11506         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11507         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11508         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11509         _IO_seekpos_unlocked): Likewise.
11510         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11511         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11513 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11515         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11516         argument in xmalloc size computation.
11518 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11520         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11521         math_opt_barrier and math_force_eval macros.
11523 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11525         [BZ #3306]
11526         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11527         * sysdeps/i386/fpu/math_private.h: New file.
11528         * sysdeps/x86_64/fpu/math_private.h: New file.
11529         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11530         math_force_eval macros.  Use "+m" constraint on asm rather than
11531         "=m" and "m".
11532         * math/s_nextafter.c (__nextafter): Likewise.
11533         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11534         Likewise.
11535         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11536         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11537         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11538         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11539         math_opt_barrier and math_force_eval macros.
11540         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11542         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11543         (__nexttoward): Use math_opt_barrier and
11544         math_force_eval macros.  Use "+m" constraint on asm rather than
11545         "=m" and "m".  Only use asm to force double result if
11546         FLT_EVAL_METHOD is 2.
11547         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11548         (__nexttowardf): Use math_opt_barrier and
11549         math_force_eval macros.  Use "+m" constraint on asm rather than
11550         "=m" and "m".  Only use asm to force double result if
11551         FLT_EVAL_METHOD is not 0.
11552         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11553         (__nexttowardf): Use math_opt_barrier and
11554         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11555         x to float using asm.
11556         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11557         (__nldbl_nexttowardf): Use math_opt_barrier and
11558         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11559         x to float using asm.
11560         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11561         (__nexttowardf): Use math_opt_barrier and math_force_eval
11562         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11563         * math/bug-nextafter.c (zero, inf): New variables.
11564         (main): Add new tests.
11565         * math/bug-nexttoward.c (zero, inf): New variables.
11566         (main): Add new tests.
11568 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11570         [BZ #3427]
11571         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11572         exceptions both in SW and MXCSR.
11573         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11574         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11575         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11576         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11577         in MXCSR if SSE is available.
11578         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11579         and ldsodefs.h.
11580         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11581         Fix comment typo.
11582         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11583         Return 0 rather than 1.
11584         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11585         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11586         * math/test-fenv.c (feholdexcept_tests): New function.
11587         (main): Call it.
11589 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11591         [BZ #3427]
11592         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11593         in SW.
11595 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11597         [BZ #4344]
11598         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11599         Reported by David Anderson <davea42@earthlink.net>.
11601 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11603         * posix/sys/wait.h: Remove unnecessary forward declaration.
11605 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11607         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11608         with obj->do_servers after first_shoot.
11610 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11612         * posix/Makefile (routines): Add sched_cpucount.
11613         (tests): Add tst-cpucount.
11614         * posix/sched_cpucount.c: New file.
11615         * posix/tst-cpucount.c: New file.
11616         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11617         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11618         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11619         * posix/sched.h: Define CPU_COUNT.
11621 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11623         * posix/fnmatch.c (STRUCT): Define.
11624         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11625         * posix/fnmatch_loop.c (struct STRUCT): New type.
11626         (FCT): Add ends argument.  If ends != NULL and normal * is
11627         seen in the pattern, store current pattern and string pointers
11628         and return.  Adjust recursive calls.
11629         (EXT): Adjust FCT callers.
11630         (STRUCT): Undef at the end of the file.
11631         * posix/Makefile (tests): Add tst-fnmatch2.
11632         * posix/tst-fnmatch2.c: New test.
11634 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11636         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11637         and 1 on failure.
11639         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11640         Change last argument to unsigned int.
11642 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11644         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11646 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11648         * config.h.in (HAVE_LIBCAP): Add.
11649         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11650         sys/capabilities.h.
11651         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11652         free_caps.  Cast away const from 4th cap_set_flag argument.
11654 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11656         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11657         GLIBC_2.6.
11658         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11659         Add sync_file_range.
11660         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11662 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11664         * sysdeps/powerpc/bits/atomic.h
11665         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11666         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11667         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11668         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11669         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11670         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11671         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11672         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11673         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11674         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11675         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11676         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11677         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11678         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11679         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11680         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11681         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11682         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11683         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11684         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11686 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11688         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11689         (__cache_line_size): Define the variable here.  Add
11690         attribute_hidden, remove weak_extern.
11691         (__libc_start_main): Set __cache_line_size
11692         unconditionally.
11693         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11694         (__cache_line_size): Define the variable here.  Add
11695         attribute_hidden, remove weak_extern.
11696         (DL_PLATFORM_AUXV): Set __cache_line_size
11697         unconditionally.
11698         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11699         weak_extern, add attribute_hidden.
11700         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11701         defined in ld.so.
11702         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11703         definition.
11704         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11706 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11708         [BZ #4276]
11709         * timezone/africa: Update from tzdata2007d.
11710         * timezone/asia: Likewise.
11711         * timezone/australasia: Likewise.
11712         * timezone/backward: Likewise.
11713         * timezone/europe: Likewise.
11714         * timezone/iso3166.tab: Likewise.
11715         * timezone/leapseconds: Likewise.
11716         * timezone/northamerica: Likewise.
11717         * timezone/southamerica: Likewise.
11718         * timezone/zone.tab: Likewise.
11720         * timezone/private.h: Update from tzcode2007d.
11721         * timezone/zdump.c: Likewise.
11722         * timezone/zic.c: Likewise.
11724 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11726         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11727         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11728         variables.
11729         (nis_server_cache_search, nis_server_cache_add): New functions.
11730         (__nisfind_server): Use them.  Add dbp and flags argument, if
11731         call __nisbind_create.
11732         (__nisbind_create): Add server_used and current_ep arguments,
11733         only call __nis_findfastest if server_used is ~0.
11734         (__do_niscall2, __prepare_niscall): Adjust callers.
11735         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11736         ckey_cache_euid, ckey_cache_lock): New variables.
11737         (get_ckey): New function.
11738         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11739         __pmap_getnisport.  Save __pmap_getnisport result in
11740         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11741         key.
11742         * nis/nis_lookup.c (nis_lookup): Likewise.
11743         * nis/nis_table.c (nis_list): Likewise.
11744         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11745         prototypes.
11747         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11748         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11749         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11750         _nss_nisplus_getservbyport_r): Likewise.
11751         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11752         _nss_nisplus_getnetbyaddr_r): Likewise.
11753         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11754         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11755         _nss_nisplus_getntohost_r): Likewise.
11756         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11757         _nss_nisplus_getrpcbynumber_r): Likewise.
11759 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11761         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11762         * configure: Rebuilt.
11764         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11765         bit-fields.
11766         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11768 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11770         [BZ #2831]
11771         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11772         bit-fields.
11774 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11776         * nscd/gai.c: Include alloca.h.
11777         (__libc_use_alloca): Define.
11779 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11781         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11782         smaller scopes.
11783         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11784         (DL_DST_REQUIRED): Adjust user.
11786         * include/dlfcn.h (struct link_map): New forward decl.
11788         * inet/getnameinfo.c: Include stddef.h.
11789         (getnameinfo): Use offsetof.
11791         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11793         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11795         * string/strerror_l.c: Include stdlib.h.
11797         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11798         * config.make.in (gnu89-inline-CFLAGS): New variable.
11799         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11800         -std=gnu99.
11801         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11802         * argp/argp.h: Use it.
11803         * bits/mathinline.h: Likewise.
11804         * bits/sigset.h: Likewise.
11805         * bits/string.h: Likewise.
11806         * ctype/ctype.h: Likewise.
11807         * hurd/hurd.h: Likewise.
11808         * hurd/hurd/fd.h: Likewise.
11809         * hurd/hurd/port.h: Likewise.
11810         * hurd/hurd/signal.h: Likewise.
11811         * hurd/hurd/threadvar.h: Likewise.
11812         * hurd/hurd/userlink.h: Likewise.
11813         * io/sys/stat.h: Likewise.
11814         * libio/bits/stdio.h: Likewise.
11815         * libio/bits/stdio2.h: Likewise.
11816         * mach/lock-intern.h: Likewise.
11817         * mach/mach/mig_support.h: Likewise.
11818         * math/bits/cmathcalls.h: Likewise.
11819         * posix/bits/unistd.h: Likewise.
11820         * socket/bits/socket2.h: Likewise.
11821         * stdlib/bits/stdlib.h: Likewise.
11822         * stdlib/stdlib.h: Likewise.
11823         * string/argz.h: Likewise.
11824         * string/bits/string2.h: Likewise.
11825         * string/bits/string3.h: Likewise.
11826         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11827         * sysdeps/generic/inttypes.h: Likewise.
11828         * sysdeps/generic/machine-lock.h: Likewise.
11829         * sysdeps/generic/machine-sp.h: Likewise.
11830         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11831         * sysdeps/i386/i486/bits/string.h: Likewise.
11832         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11833         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11834         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11835         * sysdeps/mach/i386/machine-lock.h: Likewise.
11836         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11837         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11838         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11839         * sysdeps/s390/bits/string.h: Likewise.
11840         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11841         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11842         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11843         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11844         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11845         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11846         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11847         * wcsmbs/bits/wchar2.h: Likewise.
11848         * wcsmbs/wchar.h: Likewise.
11849         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11850         __extern_inline definition.
11852 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11854         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11855         NULL.
11857         [BZ #3919]
11858         * math/libm-test.inc (log_test): Test -Inf and NaN.
11859         (log10_test, log1p_test, log2_test): Test -Inf.
11860         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11861         FE_INVALID when argument is qNaN.
11862         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11863         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11864         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11865         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11866         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11867         testb $4, %ah and jump if non-zero.
11868         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11869         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11871         [BZ #4101]
11872         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11873         ancestors with the same depths.
11874         Patch by Niels Moeller <nisse@lysator.liu.se>.
11875         (filter_doc): Don't crash if argp is NULL.
11876         * argp/Makefile (tests): Add tst-argp2.
11877         * argp/tst-argp2.c: New test.
11879         [BZ #4130]
11880         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11881         open_not_cancel_2.
11882         (updwtmp_file): Likewise.
11884         [BZ #4181]
11885         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11886         (inet6_opt_append): Don't check extlen is big enough if extbuf
11887         is NULL.
11888         (inet6_opt_finish): Likewise.
11889         * inet/Makefile (tests): Add test-inet6_opt.
11890         * inet/test-inet6_opt.c: New test.
11892         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11893         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11894         NLMSG_ERR.  Instead use a page sized buffer.
11895         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11896         buffer.
11898 2007-03-14  Richard Henderson  <rth@redhat.com>
11900         * sysdeps/alpha/fpu/s_llround.c: New file.
11901         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11902         * sysdeps/alpha/fpu/s_lround.c: New file.
11903         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11904         * sysdeps/alpha/fpu/s_round.c: New file.
11905         * sysdeps/alpha/fpu/s_roundf.c: New file.
11906         * sysdeps/alpha/fpu/s_trunc.c: New file.
11907         * sysdeps/alpha/fpu/s_truncf.c: New file.
11909         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11910         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11911         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11912         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11913         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11914         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11916         * sysdeps/alpha/fpu/s_fmax.S: New file.
11917         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11918         * sysdeps/alpha/fpu/s_fmin.S: New file.
11919         * sysdeps/alpha/fpu/s_fminf.S: New file.
11920         * sysdeps/alpha/fpu/s_isnan.c: New file.
11921         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11922         * sysdeps/alpha/fpu/s_llrint.c: New file.
11923         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11924         * sysdeps/alpha/fpu/s_lrint.c: New file.
11925         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11926         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11927         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11929         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11930         (__fdimf, fdimf, __fdim, fdim): Remove.
11931         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11932         (__isnanf, __isnan, __isnanl): New.
11934 2007-03-13  Richard Henderson  <rth@redhat.com>
11936         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11938 2007-03-13  Richard Henderson  <rth@redhat.com>
11940         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11941         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11942         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11943         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11944         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11945         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11947 2007-03-13  Richard Henderson  <rth@redhat.com>
11949         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11950         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11951         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11952         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11953         Move to dl-auxv.h; initialize instead of extern weak.
11954         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11955         weak symbol.
11956         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11957         Extern instead of initialized.
11959 2007-03-13  Richard Henderson  <rth@redhat.com>
11961         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11962         __sigsuspend_nocancel.
11964 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11966         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11967         172.16/12 address range.
11969 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11971         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11972         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11973         message.
11975 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11977         [BZ #4069]
11978         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11979         earlier.
11980         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11982         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11983         for x qNaN and y either +-inf or non-integer value.
11984         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11985         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11986         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11988 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11990         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11991         from sysdep_headers.
11993 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11995         * time/tzfile.c (find_transition): Instead of a linear search try to
11996         guess the transition index, use a linear search if the result is at
11997         most 10 transitions away from the guess or binary search otherwise.
11999 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
12001         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12002         memory reallocation.
12004 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
12006         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12007         and fix some typos.
12008         Optimize use of TOLOWER.
12010         [BZ #3325]
12011         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12012         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12013         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12015         [BZ #3458]
12016         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12017         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12019         [BZ #4076]
12020         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12021         (open_dir_stream): Likewise.
12022         * io/Makefile (tests): Add bug-ftw5.
12023         * io/bug-ftw5.c: New file.
12025         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12026         * nscd/servicescache.c (cache_addserv): Likewise.
12028         * nscd/grpcache.c (cache_addgr): In case a record changed on
12029         refresh, adjust key_copy.
12031         [BZ #4074]
12032         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12033         refresh, adjust key_copy.
12035         [BZ #4070]
12036         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12037         special cases.
12038         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12040 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12042         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12043         optimization.
12045         * stdio-common/vfscanf.c: Small cleanups throughout.
12047 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12049         [BZ #3325]
12050         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12051         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12052         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12053         Patch by Jared Casper <jaredcasper@gmail.com>.
12055         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12056         * sysdeps/unix/opendir.c: Likewise.
12057         * sysdeps/unix/readdir.c: Likewise.
12059         [BZ #2211]
12060         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12061         point numbers.
12062         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12064         * stdio-common/vfscanf.c: Fix problems in width accounting.
12065         * stdio-common/tst-sscanf.c (double_tests): New tests.
12066         (main): Hook them up.
12068         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12069         More simplifications of floating-point reader.
12071         * stdio-common/Makefile (tests): Add tst-swscanf.
12072         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12073         testing.
12074         * stdio-common/tst-swscanf.c: New file.
12076 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12078         [BZ #2633]
12079         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12080         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12081         Remove using for __jmp_buf_tag.
12082         * locale/locale.h (struct lconv): Also define in std namespace.
12083         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12085         [BZ #3842]
12086         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12087         using __libc_enable_secure.
12089         [BZ #3818]
12090         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12092         [BZ #3745]
12093         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12094         of names for ellipsises.
12096         [BZ #3348]
12097         * malloc/memusage.sh: Cleanups.
12098         * debug/xtrace.sh: Quoting and trap changes.
12100 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12102         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12104         * locale/iso-3166.def: Update entry for Serbia.
12105         * locale/iso-4217.def: Define RSD, remove CSD.
12107         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12108         and 64-bit operations.
12110         [BZ #4040]
12111         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12112         16-bit operations.
12114         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12115         of writev.
12117 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12119         [BZ #3991]
12120         * assert/assert.h (assert): Simplify.
12121         (assert_perror): Likewise.
12122         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12124         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12125         reqdata.
12127         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12128         change: don't pass NULL in place of an integer.
12130 2007-02-02  Bruno Haible  <bruno@clisp.org>
12132         [BZ #3954]
12133         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12134         Add mapping for U+327E.
12135         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12136         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12137         mapping of 0xD9 0xE8.
12138         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12139         mapping of U+327E.
12140         Reported by Jungshik Shin <jungshik@google.com>.
12142         [BZ #3955]
12143         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12144         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12145         Reported by Jungshik Shin <jungshik@google.com>.
12147 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12149         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12150         byte variants.
12152         [BZ #4040]
12153         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12154         byte variants.  Patch mostly be tom@tommay.net.
12156 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12158         [BZ #3996]
12159         * posix/glob.c (attribute_hidden): Define if not defined.
12160         (glob): Unescape dirname, filename or username when needed and not
12161         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12162         is NULL.  Handle unescaped [ in pattern without closing ].
12163         Don't pass GLOB_CHECK down to recursive glob for directories.
12164         (__glob_pattern_type): New function.
12165         (__glob_pattern_p): Implement using __glob_pattern_type.
12166         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12167         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12168         Remove unreachable code.
12169         * posix/globtest.sh: Add a couple of new tests.
12171 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12173         * po/ru.po: Update from translation team.
12175 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12177         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12178         to the list of i486+ CPUs.
12179         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12181 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12183         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12184         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12185         references.
12187 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12189         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12191         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12192         * resolv/res_mkquery.c: Define __res_nopt.
12193         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12194         try adding EDNS0 record.
12195         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12196         EDNS0 record was send make sure we don't try it again.
12197         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12198         * include/resolv.h: Declare __res_nopt.
12200 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12202         [BZ #3944]
12203         * time/strptime_l.c (__strptime_internal): Set have_mon for
12204         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12205         have been computed from tm_yday and tm_year.  Don't crash
12206         in day_of_the_week or day_of_the_year if not have_mon
12207         and tm_mon contains bogus value.
12208         * time/Makefile (tests): Add tst-strptime3.
12209         * time/tst-strptime3.c: New test.
12211 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12213         [BZ #3957]
12214         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12215         bit for RE_HAT_LISTS_NOT_NEWLINE.
12216         (build_charclass_op): Remove bogus comment.
12217         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12218         * posix/bug-regex27.c: New test.
12219         * posix/bug-regex28.c: New test.
12221 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12223         * po/sv.po: Update from translation team.
12225 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12227         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12229 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12231         * include/locale.h (__uselocale): Add libc_hidden_proto.
12232         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12234         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12235         gettimeofday.
12237 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12239         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12240         returning.
12241         (PTR_DEMANGLE): Real definition now that it's not the same as
12242         PRT_MANGLE anymore.
12243         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12245         * string/strerror_l.c: New file.
12246         * string/Makefile (routines): Add strerror_l.
12247         * string/string.h: Declare strerror_l.
12248         * string/Versions: Export strerror_l for GLIBC_2.6.
12250 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12252         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12253         as parameter.  Construct request record.  Try sending request
12254         before the first poll use, it usually succeeds.  Adjust all
12255         callers.
12256         * nscd/nscd-client.h: Define MAXKEYLEN.
12257         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12259 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12261         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12262         from return value.
12263         * nscd/nscd_helper.c: Include string.h.
12264         (__nscd_cache_search): Remove const qualifier from return value.
12265         On strict alignment architectures check hash entry and data head
12266         alignment.
12267         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12268         mmapped data during GC cycle contains garbage.  If
12269         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12270         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12271         dropped to 0.
12272         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12273         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12274         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12275         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12276         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12278 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12280         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12282 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12284         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12285         names not numbers in cfi_*.
12287 2007-01-26  Andreas Jaeger  <aj@suse.de>
12289         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12290         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12291         Correct values of PER_HPUX and PER_OSF4.
12293 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12295         * elf/dl-minimal.c: Undefine _itoa first.
12296         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12297         * malloc/mtrace.c: Revert last change.
12298         * posix/wordexp.c: Likewise.
12300 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12302         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12303         and __geode__ to the list of i486+ CPUs.
12304         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12306 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12308         * stdio-common/_itoa.c: Include <limits.h>.
12309         * stdio-common/_itowa.c: Likewise.
12311 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12313         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12314         platforms.
12315         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12316         64-bit platforms.
12317         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12318         possible.
12319         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12320         if possible.
12322         [BZ #3902]
12323         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12324         * stdio-common/Makefile (tests): Add bug17.
12325         * stdio-common/bug17.c: New file.
12327 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12329         * iconvdata/brf.c: New file.
12330         * iconvdata/testdata/BRF: New file.
12331         * iconvdata/testdata/BRF..UTF8: New file.
12332         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12333         * iconvdata/Makefile: Add rules to build BRF.
12334         * iconvdata/TESTS: Add BRF entry.
12335         * iconvdata/gconv-modules: Likewise.
12336         * iconvdata/tst-tables.sh: Likewise.
12338 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12340         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12341         type `long long int', not `long int'.
12342         (wcstoq): Likewise.
12344 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12346         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12347         of values on 64-bit platforms which are too large.
12349 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12350             Joe Kerian  <jkerian@us.us.ibm.com>
12352         [BZ #2749]
12353         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12354         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12355         (__copysignl): Use signbit() for comparison.
12356         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12357         SET_LDOUBLE_WORDS64.
12359         [BZ #2423, #2749]
12360         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12361         (__ceill): Remove calls to fegetround(), fesetround().
12362         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12363         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12364         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12366 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12368         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12370         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12372 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12374         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12375         demangle pointer.
12376         * csu/libc-start.c: Likewise.
12378 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12380         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12381         really work anyway.
12383 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12385         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12386         users.
12387         (handle_request): Remove unnecessary tests.
12389         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12391 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12393         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12394         workbits in semi-raw fraction.
12396         * math/test-misc.c: Add new tests.
12398 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12400         * math/basic-test.c: Include test-skeleton.c.
12401         (TEST_TRUNC): Define.
12402         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12403         (main): Rename to ...
12404         (do_test): ...this.  Run new tests.
12405         (TEST_FUNCTION): Define.
12407 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12408             Joe Kerian  <jkerian@us.us.ibm.com>
12410         [BZ #2749]
12411         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12412         handling for high words.
12413         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12414         and overflow for infinity.
12416 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12418         * nscd/connections.c (handle_request): Add a __builtin_expect.
12420         * nscd/connections.c (serv2db): Change type into structure which
12421         also says whether this is a request for data.  Renamed to
12422         servinfo.  All users changed.
12423         (handle_request): Much simpler test whether we should search the cache.
12425         * nscd/connections.c (handle_request): Fix thinko in selinux test
12426         invocation.
12428         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12429         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12430         it before getting dl_load_lock and then relock.
12431         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12432         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12433         case we unlocked the scope.
12434         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12435         _dl_lookup_symbol_x in case we locked the scope.
12436         (_dl_profile_fixup): Likewise.
12437         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12438         set DL_LOOKUP_SCOPE_LOCK.
12440 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12442         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12443         CFLAGS-getsrvbynpt_r.c.
12444         * nscd/getsrvbynm_r.c: New file.
12445         * nscd/getsrvbypt_r.c: New file.
12446         * nscd/nscd_getserv_r.c: New file.
12447         * nscd/servicescache.c: New file.
12448         * nscd/Makefile (routines): Add nscd_getserv_r.
12449         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12450         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12451         CFLAGS-getsrvbypt_r.c.
12452         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12453         table.  Add entries for services database.
12454         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12455         services database.
12456         (dbs): Add .reset_res and servdb initialization.
12457         (serv2db): Add entries for services database.
12458         (verify_persistent_db): Accept dbnr == servdb.
12459         (invalidate_cache): Rewrite database name recognition to use a table.
12460         Call res_init() if .reset_res is set for database.
12461         (handle_request): Add code to handle services database.
12462         * nscd/gai.c: Don't define __getservbyname_r.
12463         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12464         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12465         (serv_response_header): Define.
12466         (struct datahead): Add serv_response_header member.
12467         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12468         using table.
12469         * nscd/nscd.conf: Add entries for services database.
12470         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12471         Declare serv_iov_disabled.
12472         Declare addservbyname, readdservbyname, addservbyport, and
12473         readdservbyport.
12474         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12475         (find_db): Fix error message.
12476         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12477         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12478         * nscd/selinux.c (perms): Add entries for services database.
12479         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12480         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12482         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12483         * nscd/hstcache.c: Likewise.
12484         * nscd/pwdcache.c: Likewise.
12486         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12487         computation of keylen.
12489         * include/string.h: Only redefine strndupa if this is really for
12490         libc code.
12492 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12494         * nscd/nscd_gethst_r.c: Minor cleanups.
12496         * nscd/connections.c (handle_request): Check selinux permissions
12497         for all non-admin commands.
12499         * sysdeps/i386/i486/bits/atomic.h: Define
12500         atomic_compare_and_exchange_val_acq,
12501         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12502         using __sync_* built-ins for gcc >= 4.1.
12503         * sysdeps/x86_64/bits/atomic.h: Likewise.
12505         [BZ #3840]
12506         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12507         and .oS.d files.
12509 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12511         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12512         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12513         (do_test): Check errno and exit(0) if ENOSYS.
12515 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12517         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12518         thousands separators.
12519         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12520         * stdlib/tst-strtod4.c: New test.
12522         [BZ #3855]
12523         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12524         hexadecimal digit should accept just the initial 0.
12525         * stdlib/tst-strtod2.c (tests): New variable.
12526         (do_test): Run several tests rather than just one.
12528 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12530         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12531         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12533 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12535         * io/fts.c: Make sure fts_cur is always valid after return from
12536         fts_read.
12537         Patch by Miloslav Trmac <mitr@redhat.com>.
12539 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12541         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12542         (R_MIPS_NUM): Bump by 1.
12544 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12546         * posix/execvp.c: Include alloca.h.
12547         (allocate_scripts_argv): Renamed to...
12548         (scripts_argv): ... this.  Don't allocate buffer here nor count
12549         arguments.
12550         (execvp): Use alloca if possible.
12551         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12552         * posix/tst-vfork3.c: New test.
12554 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12556         * string/Makefile (tst-strxfrm2-ENV): Define.
12557         * stdlib/Makefile (tst-strtod3-ENV): Define.
12559 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12561         * posix/getconf.c: Update copyright year.
12562         * nss/getent.c: Likewise.
12563         * iconv/iconvconfig.c: Likewise.
12564         * iconv/iconv_prog.c: Likewise.
12565         * elf/ldconfig.c: Likewise.
12566         * catgets/gencat.c: Likewise.
12567         * csu/version.c: Likewise.
12568         * elf/ldd.bash.in: Likewise.
12569         * elf/sprof.c (print_version): Likewise.
12570         * locale/programs/locale.c: Likewise.
12571         * locale/programs/localedef.c: Likewise.
12572         * nscd/nscd.c (print_version): Likewise.
12573         * debug/xtrace.sh: Likewise.
12574         * malloc/memusage.sh: Likewise.
12575         * malloc/mtrace.pl: Likewise.
12576         * debug/catchsegv.sh: Likewise.
12578 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12580         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12581         attempts.
12583 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12585         * posix/wordexp.c: Remove some unnecessary tests.
12587 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12589         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12590         blacklist the group till after we look it up.
12592 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12594         * include/atomic.h (atomic_forced_read): New macro.
12596 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12598         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12600 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12602         * nss/getXXbyYY_r.c: Include atomic.h.
12603         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12604         add atomic_write_barrier () in between.
12606         * stdlib/Makefile (tests): Add tst-makecontext.
12607         * stdlib/tst-makecontext.c: New test.
12609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12610         (__makecontext): Don't realign uc_mcontext.uc_regs.
12612 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12614         * elf/dl-support.c: Include dl-procinfo.h.
12615         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12616         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12617         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12618         Define.
12619         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12620         hardcoded constants.
12621         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12622         PPC_PLATFORM_* macros for array designators.
12624 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12626         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12627         names to the beginning.
12628         (_dl_powerpc_platforms): Add "power6x".
12629         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12630         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12631         (_DL_PLATFORMS_COUNT): Increase.
12632         (_dl_string_platform): Handle power6x case.
12633         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12634         PPC_FEATURE_POWER6_EXT): Define.
12635         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12637 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12639         [BZ #3747]
12640         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12641         [-2^31 .. 2^31) range.
12642         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12643         targets.
12644         * stdlib/tst-rand48-2.c: New test.
12645         * stdlib/Makefile (tests): Add tst-rand48-2.
12647 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12649         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12651 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12653         * misc/tst-pselect.c (do_test): Make sure the helper process is
12654         terminating when the test is aborted.
12656 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12658         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12659         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12660         Handle relatime mount option.
12662         [BZ #2337]
12663         * libio/Makefile (tests): Add tst-setvbuf1.
12664         * libio/tst-setvbuf1.c: New file.
12666 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12668         [BZ #2337]
12669         * libio/genops.c (__uflow): Fix a typo.
12670         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12671         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12672         the narrow buffer size.
12674 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12676         [BZ #2337]
12677         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12678         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12679         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12680         in _flags.
12681         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12682         _IO_wstr_finish): Likewise.
12683         * libio/wmemstream.c (open_wmemstream): Likewise.
12684         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12685         even for wide streams.
12687 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12690         kernel-features.h.
12692 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12694         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12695         separators also if no non-zero digits found.
12696         * stdlib/Makefile (tests): Add tst-strtod3.
12698 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12700         [BZ #3632]
12701         * include/features.h: Fix comment about default value for
12702         _POSIX_C_SOURCE.
12704         [BZ #3664]
12705         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12706         empty parsed strings.
12707         * stdlib/Makefile (tests): Add tst-strtod2.
12708         * stdlib/tst-strtod2.c: New file.
12710         [BZ #3673]
12711         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12712         computation.
12713         * stdlib/Makefile (tests): Add tst-atof2.
12714         * stdlib/tst-atof2.c: New file.
12716         [BZ #3674]
12717         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12718         correctly if removing trailing zero of hex-float.
12719         * stdlib/Makefile (tests): Add tst-atof1.
12720         * stdlib/tst-atof1.c: New file.
12722 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12724         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12725         Start searching for next comma at p rather than rest.
12726         * misc/Makefile (tests): Add tst-mntent2.
12727         * misc/tst-mntent2.c: New test.
12729         * misc/getusershell.c (initshells): Check for integer overflows.
12730         Make strings buffer one bigger as fgets always succeeds when second
12731         argument is 1.  Don't use calloc for shells array.  Disallow
12732         / as shell.
12734 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12736         * malloc/memusage.c: Handle realloc with new size of zero and
12737         non-NULL pointer correctly.
12738         (me): Really write first record twice.
12739         (struct entry): Make format bi-arch safe.
12740         (dest): Write out more realloc statistics.
12741         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12743 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12745         * nis/nis_subr.c (nis_getnames): Revert last change.
12747 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12749         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12750         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12751         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12752         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12753         ENOTTY.
12754         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12755         * io/tst-ttyname_r.c: New test.
12757 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12759         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12761 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12763         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12764         jump table entries.
12766 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12768         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12769         `clone' function to ensure proper unwinding stop of gdb.
12770         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12772 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12774         * nscd/nscd.init: Remove obsolete and commented-out -S option
12775         handling.
12777 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12779         [BZ #3514]
12780         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12782         [BZ #3515]
12783         * manual/string.texi (strtok): Remove duplicate paragraph.
12785 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12787         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12788         libgcc not supporting `rflags' unwinding (register # >= 17).
12790 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12792         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12793         succeeded.
12795 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12796             Jakub Jelinek  <jakub@redhat.com>
12797             Jan Kratochvil  <jan.kratochvil@redhat.com>
12799         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12800         unwind information.
12801         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12802         'restore_rt' even in the 'signal' directory.
12803         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12805 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12807         [BZ #3559]
12808         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12809         malloc crashed.  Don't allocate memory unnecessarily in each
12810         loop.
12812 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12814         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12816 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12818         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12820 2006-11-18  Bruno Haible  <bruno@clisp.org>
12822         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12823         __sysconf only after having tried to call getgroups32.
12825 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12827         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12828         addresses for IPv4 queries if they can be mapped.
12830 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12832         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12833         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12834         (signmask): Add .size directive.
12835         (othermask): Add .type directive.
12837 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12839         * po/nl.po: Update from translation team.
12841         * timezone/zdump.c: Redo fix for BZ #3137.
12843 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12845         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12846         to first_unused after parsing :include: file.
12848 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12850         * timezone/africa: Update from tzdata2006o.
12851         * timezone/antarctica: Likewise.
12852         * timezone/asia: Likewise.
12853         * timezone/australasia: Likewise.
12854         * timezone/backward: Likewise.
12855         * timezone/europe: Likewise.
12856         * timezone/iso3166.tab: Likewise.
12857         * timezone/northamerica: Likewise.
12858         * timezone/southamerica: Likewise.
12859         * timezone/zone.tab: Likewise.
12861         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12862         on machines with 64-bit time_t.
12864         * timezone/checktab.awk: Update from tzcode2006o.
12865         * timezone/ialloc.c: Likewise.
12866         * timezone/private.h: Likewise.
12867         * timezone/scheck.c: Likewise.
12868         * timezone/tzfile.h: Likewise.
12869         * timezone/tzselect.ksh: Likewise.
12870         * timezone/zdump.c: Likewise.
12871         * timezone/zic.c: Likewise.
12873         [BZ #3483]
12874         * elf/ldconfig.c (main): Call setlocale and textdomain.
12875         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12877         [BZ #3480]
12878         * manual/argp.texi: Fix typos.
12879         * manual/charset.texi: Likewise.
12880         * manual/errno.texi: Likewise.
12881         * manual/filesys.texi: Likewise.
12882         * manual/lang.texi: Likewise.
12883         * manual/maint.texi: Likewise.
12884         * manual/memory.texi: Likewise.
12885         * manual/message.texi: Likewise.
12886         * manual/resource.texi: Likewise.
12887         * manual/search.texi: Likewise.
12888         * manual/signal.texi: Likewise.
12889         * manual/startup.texi: Likewise.
12890         * manual/stdio.texi: Likewise.
12891         * manual/sysinfo.texi: Likewise.
12892         * manual/syslog.texi: Likewise.
12893         * manual/time.texi: Likewise.
12894         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12896         [BZ #3465]
12897         * sunrpc/clnt_raw.c: Minimal message improvements.
12898         * sunrpc/pm_getmaps.c: Likewise.
12899         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12900         * nis/nis_print_group_entry.c: Likewise.
12901         * locale/programs/repertoire.c: Likewise.
12902         * locale/programs/charmap.c: Likewise.
12903         * malloc/memusage.sh: Likewise.
12904         * elf/dl-deps.c: Likewise.
12905         * locale/programs/ld-collate.c: Likewise.
12906         * libio/vswprintf.c: Likewise.
12907         * malloc/memusagestat.c: Likewise.
12908         * sunrpc/auth_unix.c: Likewise.
12909         * sunrpc/rpc_main.c: Likewise.
12910         * nscd/cache.c: Likewise.
12911         * locale/programs/repertoire.c: Unify output messages.
12912         * locale/programs/charmap.c: Likewise.
12913         * locale/programs/ld-ctype.c: Likewise.
12914         * locale/programs/ld-monetary.c: Likewise.
12915         * locale/programs/ld-numeric.c: Likewise.
12916         * locale/programs/ld-time.c: Likewise.
12917         * elf/ldconfig.c: Likewise.
12918         * nscd/selinux.c: Likewise.
12919         * elf/cache.c: Likewise.
12920         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12922         [BZ #3451]
12923         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12924         change atomic.
12925         (ceil): Likewise.
12927 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12929         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12930         if N is one bigger than return value.
12931         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12932         and l1 last arguments, if buf is defined, verify the return value
12933         equals to strlen (buf) and verify no byte beyond passed length
12934         is modified.
12936 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12938         * po/sv.po: Update from translation team.
12940 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12942         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12943         noinline attribute.
12945 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12947         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12948         noinline attribute.
12950         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12951         Use __new_sys_siglist instead of _sys_siglist_internal as
12952         second macro argument.
12953         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12954         strong_alias.
12956 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12958         [BZ #3493]
12959         * posix/unistd.h (sysconf): Remove const attribute.
12961         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12962         temporary or deprecated addresses.
12963         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12965         * string/Makefile (tests): Add tst-strxfrm2.
12966         * string/tst-strxfrm2.c: New file.
12968 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12970         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12971         rather than r->r_brk.
12973 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12975         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12976         optimization even if needed > n.
12978         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12979         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12980         return false, otherwise return true.
12981         (cache_rpath): Return decompose_rpath return value.
12983 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12985         * include/libc-symbols.h (declare_symbol): Rename to...
12986         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12987         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12988         .size directive.
12989         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12990         changes.
12991         * sysdeps/gnu/siglist.c: Likewise.
12993 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12995         * sysdeps/powerpc/fpu/bits/mathinline.h
12996         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12997         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12999 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
13001         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13002         Update handling of cache descriptor 0x49 for new models.
13003         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13004         Likewise.
13006 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
13008         * malloc/memusage.c (dest): Reset not_me back to false after
13009         printing statistics.
13011 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13013         * configure.in: Work around ld --help change and avoid -z relro
13014         test completely if the architecture doesn't care about security.
13016 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13018         * po/sv.po: Update from translation team.
13020 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13022         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13023         generate compatibility version.
13025 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13027         * configure.in: Relax -z relro requirement a bit.
13029         * po/sv.po: Update from translation team.
13031 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13033         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13034         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13035         * elf/dl-close.c (_dl_close_worker): Likewise.
13036         * elf/dl-open.c (_dl_open_worker): Likewise.
13037         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13039 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13041         * configure.in: Require assembler support for visibility, compiler
13042         support for visibility and aliases, linker support for various -z
13043         options.
13044         * Makeconfig: Remove conditional code which now is unnecessary.
13045         * config.h.in: Likewise.
13046         * config.make.in: Likewise.
13047         * dlfcn/Makefile: Likewise.
13048         * elf/Makefile: Likewise.
13049         * elf/dl-load.c: Likewise.
13050         * elf/rtld.c: Likewise.
13051         * include/libc-symbols.h: Likewise.
13052         * include/stdio.h: Likewise.
13053         * io/Makefile: Likewise.
13054         * io/fstat.c: Likewise.
13055         * io/fstat64.c: Likewise.
13056         * io/fstatat.c: Likewise.
13057         * io/fstatat64.c: Likewise.
13058         * io/lstat.c: Likewise.
13059         * io/lstat64.c: Likewise.
13060         * io/mknod.c: Likewise.
13061         * io/mknodat.c: Likewise.
13062         * io/stat.c: Likewise.
13063         * io/stat64.c: Likewise.
13064         * libio/stdio.c: Likewise.
13065         * nscd/Makefile: Likewise.
13066         * stdlib/Makefile: Likewise.
13067         * stdlib/atexit.c: Likewise.
13068         * sysdeps/generic/ldsodefs.h: Likewise.
13069         * sysdeps/i386/dl-machine.h: Likewise.
13070         * sysdeps/i386/sysdep.h: Likewise.
13071         * sysdeps/i386/i686/memcmp.S: Likewise.
13072         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13073         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13074         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13076         * Makerules: USE_TLS support is now default.
13077         * tls.make.c: Likewise.
13078         * csu/Versions: Likewise.
13079         * csu/libc-start.c: Likewise.
13080         * csu/libc-tls.c: Likewise.
13081         * csu/version.c: Likewise.
13082         * dlfcn/dlinfo.c: Likewise.
13083         * elf/dl-addr.c: Likewise.
13084         * elf/dl-cache.c: Likewise.
13085         * elf/dl-close.c: Likewise.
13086         * elf/dl-iteratephdr.c: Likewise.
13087         * elf/dl-load.c: Likewise.
13088         * elf/dl-lookup.c: Likewise.
13089         * elf/dl-object.c: Likewise.
13090         * elf/dl-open.c: Likewise.
13091         * elf/dl-reloc.c: Likewise.
13092         * elf/dl-support.c: Likewise.
13093         * elf/dl-sym.c: Likewise.
13094         * elf/dl-sysdep.c: Likewise.
13095         * elf/dl-tls.c: Likewise.
13096         * elf/ldconfig.c: Likewise.
13097         * elf/rtld.c: Likewise.
13098         * elf/tst-tls-dlinfo.c: Likewise.
13099         * elf/tst-tls1.c: Likewise.
13100         * elf/tst-tls10.h: Likewise.
13101         * elf/tst-tls14.c: Likewise.
13102         * elf/tst-tls2.c: Likewise.
13103         * elf/tst-tls3.c: Likewise.
13104         * elf/tst-tls4.c: Likewise.
13105         * elf/tst-tls5.c: Likewise.
13106         * elf/tst-tls6.c: Likewise.
13107         * elf/tst-tls7.c: Likewise.
13108         * elf/tst-tls8.c: Likewise.
13109         * elf/tst-tls9.c: Likewise.
13110         * elf/tst-tlsmod1.c: Likewise.
13111         * elf/tst-tlsmod13.c: Likewise.
13112         * elf/tst-tlsmod13a.c: Likewise.
13113         * elf/tst-tlsmod14a.c: Likewise.
13114         * elf/tst-tlsmod2.c: Likewise.
13115         * elf/tst-tlsmod3.c: Likewise.
13116         * elf/tst-tlsmod4.c: Likewise.
13117         * elf/tst-tlsmod5.c: Likewise.
13118         * elf/tst-tlsmod6.c: Likewise.
13119         * include/errno.h: Likewise.
13120         * include/link.h: Likewise.
13121         * include/tls.h: Likewise.
13122         * locale/global-locale.c: Likewise.
13123         * locale/localeinfo.h: Likewise.
13124         * malloc/arena.c: Likewise.
13125         * malloc/hooks.c: Likewise.
13126         * malloc/malloc.c: Likewise.
13127         * resolv/Versions: Likewise.
13128         * sysdeps/alpha/dl-machine.h: Likewise.
13129         * sysdeps/alpha/libc-tls.c: Likewise.
13130         * sysdeps/generic/ldsodefs.h: Likewise.
13131         * sysdeps/generic/tls.h: Likewise.
13132         * sysdeps/i386/dl-machine.h: Likewise.
13133         * sysdeps/ia64/dl-machine.h: Likewise.
13134         * sysdeps/ia64/libc-tls.c: Likewise.
13135         * sysdeps/mach/hurd/fork.c: Likewise.
13136         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13137         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13138         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13139         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13140         * sysdeps/s390/libc-tls.c: Likewise.
13141         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13142         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13143         * sysdeps/sh/dl-machine.h: Likewise.
13144         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13145         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13146         * sysdeps/x86_64/dl-machine.h: Likewise.
13148         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13149         split out locking and parameter checking.
13150         (_dl_close): Call _dl_close_worker after locking and checking.
13151         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13152         _dl_close.
13153         * elf/Makefile: Add rules to build and run tst-thrlock.
13154         * elf/tst-thrlock.c:  New file.
13156         [BZ #3426]
13157         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13158         reality.
13160         [BZ #3429]
13161         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13162         we are sure we do not need it anymore for _dl_close.  Also move
13163         the asserts inside the lock region.
13164         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13166 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13168         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13169         argument.
13170         (_dl_lookup_symbol_x): Adjust caller.
13172         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13173         _ns_global_scope.
13174         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13176         * elf/dl-libc.c: Revert l_scope name changes.
13177         * elf/dl-load.c: Likewise.
13178         * elf/dl-object.c: Likewise.
13179         * elf/rtld.c: Likewise.
13180         * elf/dl-close.c (_dl_close): Likewise.
13181         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13182         always use __rtld_mrlock_{change,done}.  Always free old scope list
13183         here if not l_scope_mem.
13184         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13185         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13186         the lookup and __rtld_mrlock_unlock it after the lookup.
13187         * elf/dl-sym.c: Likewise.
13188         * include/link.h (struct r_scoperec): Remove.
13189         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13190         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13192 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13194         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13196 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13198         * configure.in: Disable building profile libraries by default.
13200 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13202         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13203         as signed longs, check for x_base + pos overflow.
13204         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13205         * sunrpc/tst-xdrmem2.c: New test.
13207 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13209         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13210         _dl_lookup_symbol_x code.
13212 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13214         * elf/dl-runtime.c: Include sysdep-cancel.h.
13215         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13216         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13217         instead of catomic_* macros.
13218         * elf/dl-sym.c: Include sysdep-cancel.h.
13219         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13220         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13221         * elf/dl-close.c: Include sysdep-cancel.h.
13222         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13223         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13224         * elf/dl-open.c: Include sysdep-cancel.h.
13225         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13226         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13228 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13230         [BZ #3313]
13231         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13232         fastbin rather than end of fastbin array.
13234 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13236         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13237         body macro.
13238         * sysdeps/x86_64/bits/atomic.h
13239         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13240         (catomic_decrement): Use correct body macro.
13242 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13244         * include/atomic.h: Add a unique prefix to all local variables
13245         in macros.
13246         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13248 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13250         [BZ #3369]
13251         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13252         and 7.
13254 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13256         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13258 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13260         [BZ #3313]
13261         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13262         determine highest fast bin to consolidate, always look into all of
13263         them.
13264         (do_check_malloc_state): Only require for empty bins for large
13265         sizes in main arena.
13267         * libio/stdio.h: Add more __wur attributes.
13269         * elf/dl-minimal.c (realloc): Optimize last patch.
13271 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13273         [BZ #3352]
13274         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13275         and use memcpy() if it does.
13277 2006-11-12  Andreas Jaeger  <aj@suse.de>
13279         [BZ #2510]
13280         * manual/search.texi (Hash Search Function): Clarify.
13281         (Array Search Function): Clarify.
13283 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13285         [BZ #2830]
13286         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13287         shifting.
13288         * math/atest-exp2.c (read_mpn_hex): Likewise.
13289         * math/atest-sincos.c (main): Likewise.
13291 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13293         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13294         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13295         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13296         version GLIBC_2.6.
13297         * Versions.def: Add GLIBC_2.6 for libc.
13299         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13301         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13303 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13305         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13307         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13309         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13310         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13312 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13314         * include/atomic.c: Define catomic_* operations.
13315         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13316         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13317         * malloc/memusage.c: Likewise.
13318         * gmon/mcount.c: Likewise.
13319         * elf/dl-close.c: Likewise.
13320         * elf/dl-open.c: Likewise.
13321         * elf/dl-profile.c: Likewise.
13322         * elf/dl-sym.c: Likewise.
13323         * elf/dl-runtime.c: Likewise.
13324         * elf/dl-fptr.c: Likewise.
13325         * resolv/res_libc.c: Likewise.
13327 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13329         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13330         components which lack them.
13332         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13333         at least one entry consisting of the parameter concatenated with
13334         the domain.
13336 2006-10-10  Roland McGrath  <roland@frob.com>
13338         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13339         * sysdeps/mach/hurd/futimes.c: Likewise.
13340         * sysdeps/mach/hurd/lutimes.c: Likewise.
13342 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13343             Jakub Jelinek  <jakub@redhat.com>
13345         Implement reference counting of scope records.
13346         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13347         from the list in objects which remain.  Always allocate new scope
13348         record.
13349         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13350         don't resize, allocate a new one.
13351         * elf/dl-runtime.c: Update reference counters before using a scope
13352         array.
13353         * elf/dl-sym.c: Likewise.
13354         * elf/dl-libc.c: Adjust for l_scope name change.
13355         * elf/dl-load.c: Likewise.
13356         * elf/dl-object.c: Likewise.
13357         * elf/rtld.c: Likewise.
13358         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13359         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13360         Add l_scoperec_lock.
13361         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13362         * sysdeps/generic/rtld-lowlevel.h: New file.
13364         * include/atomic.h: Rename atomic_and to atomic_and_val and
13365         atomic_or to atomic_or_val.  Define new macros atomic_and and
13366         atomic_or which do not return values.
13367         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13368         Various cleanups.
13369         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13371         * po/sv.po: Update from translation team.
13373 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13375         * Versions.def: Add GLIBC_2.6 to libpthread.
13377         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13378         (versioned_symbol): Likewise.
13379         (compat_symbol): Likewise.
13381         * po/tr.po: Update from translation team.
13383 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13385         * nis/Banner: Removed.  It's been integral part forever and the
13386         author info is incomplete anyway.
13387         * libio/Banner: Likewise.
13389         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13390         code, make sure the nis_freeresult call doesn't crash and that the
13391         result is reported correctly.
13393 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13395         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13396         when callback is NULL.
13398         * nis/Versions (libnss_nisplus): Add
13399         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13400         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13401         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13402         _nss_create_tablename): Rename to...
13403         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13404         ... these.  No longer static.
13405         (internal_setgrent): Adjust users.
13406         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13407         Don't use locking around _nss_grp_create_tablename call.
13408         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13410 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13412         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13414 2006-10-06  Andreas Jaeger  <aj@suse.de>
13416         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13418 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13420         * po/pl.po: Update from translation team.
13422         * nscd/nscd.c (main): Fix typo in message.
13423         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13425 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13427         [BZ #3291]
13428         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13429         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13430         (__sigprocmask): Define.
13432 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13434         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13435         used.
13437 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13439         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13440         in oldtotal and newtotal calculation.
13441         * nscd/nscd-client.h (struct mapped_database): Add datasize
13442         field.
13443         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13444         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13445         increased.
13446         (__nscd_cache_search): Add checks to make sure we never reference
13447         data beyond the current mapping.
13449 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13451         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13452         variables const to avoid compiler warnings.
13454         * io/fts.c (fts_close): Remove redundant checks.
13455         (fts_build): Likewise.
13456         (fts_palloc): Likewise.
13458         * manual/message.texi (Advanced gettext functions,
13459         Using gettextized software): Fix typos.
13461 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13463         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13464         explain why there are no leaks.
13466 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13468         * libio/wmemstream.c: Include <wchar.h>.
13469         * libio/bug-wmemstream1.c: Likewise.
13470         * libio/tst-wmemstream1.c: Likewise.
13471         * libio/tst-wmemstream2.c: Likewise.
13473         * version.h (RELEASE): Bump to 2.5.
13474         * README: Regenerated.
13476         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13478         [BZ #3273]
13479         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13480         found no group members.
13481         Patch by Petr Baudis.
13483 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13485         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13486         assert bootstrap_map.l_tls_modid is zero.
13487         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13488         if USE___THREAD.
13490 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13492         * libio/stdio.h: Move open_wmemstream prototype to ...
13493         * wcsmbs/wchar.h: ... here.
13495 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13497         [BZ #3252]
13498         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13499         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13500         __{,l}chown to handle the rest.
13501         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13502         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13503         __{,l}chown to handle the rest.
13504         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13505         i386/fchownat.c.
13506         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13507         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13509         [BZ #3253]
13510         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13511         time, rather allocate increasingly bigger arrays of pointers, if
13512         possible with alloca, if too large with malloc.
13514 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13516         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13518         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13520 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13522         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13523         home addresses.
13524         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13525         IFA_F_HOMEADDRESS flag for interfaces.
13526         * include/ifaddrs.h (struct in6addrinfo): Define
13527         in6ai_homeaddress.
13529 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13531         [BZ #3225]
13532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13533         PTR_DEMANGLE3): Define.
13534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13535         PTR_DEMANGLE3): Likewise.
13536         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13537         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13538         Likewise.
13539         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13541 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13543         * po/libc.pot: Regenerated.
13544         * po/be.po: Updated.
13545         * po/ca.po: Likewise.
13546         * po/cs.po: Likewise.
13547         * po/da.po: Likewise.
13548         * po/de.po: Likewise.
13549         * po/el.po: Likewise.
13550         * po/en_GB.po: Likewise.
13551         * po/es.po: Likewise.
13552         * po/fi.po: Likewise.
13553         * po/fr.po: Likewise.
13554         * po/gl.po: Likewise.
13555         * po/hr.po: Likewise.
13556         * po/hu.po: Likewise.
13557         * po/ja.po: Likewise.
13558         * po/ko.po: Likewise.
13559         * po/nb.po: Likewise.
13560         * po/nl.po: Likewise.
13561         * po/pl.po: Likewise.
13562         * po/pt_BR.po: Likewise.
13563         * po/ru.po: Likewise.
13564         * po/rw.po: Likewise.
13565         * po/sk.po: Likewise.
13566         * po/sv.po: Likewise.
13567         * po/tr.po: Likewise.
13568         * po/zh_CN.po: Likewise.
13569         * po/zh_TW.po: Likewise.
13571         [BZ #3137]
13572         * iconv/iconv_prog.c (main): Fix spelling in error message.
13573         * iconv/iconvconfig.c (main): Likewise.
13574         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13575         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13576         * locale/programs/localedef.c (main): Likewise.
13577         * locale/programs/repertoire.c (repertoire_read): Likewise.
13578         * timezone/zdump.c (main): Likewise.
13579         * nscd/connections.c (handle_request): Fix spelling in log message.
13580         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13582 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13584         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13585         interfaces.
13587 2006-09-20  Andreas Jaeger  <aj@suse.de>
13589         * math/libm-test.inc (lrint_test_upward): Fix typo.
13591 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13593         [BZ #2592]
13594         * math/libm-test.inc (lrint_test_tonearest): New function.
13595         (lrint_test_towardzero): New function.
13596         (lrint_test_downward): New function.
13597         (lrint_test_upward): New function.
13598         (main): Run these new tests.
13599         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13600         of values near to 0.
13601         (two52): Use double not long double.
13602         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13603         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13604         (two23): Use float not double.
13605         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13606         (two23): Use float not double.
13607         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13608         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13609         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13610         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13612 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13614         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13615         Cast sp to unsigned long to avoid compiler warning.
13616         Use __makecontext_ret function instead of a trampoline on the stack.
13617         (__makecontext_ret): New function.
13618         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13620 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13622         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13623         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13624         bits.
13626 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13628         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13629         sure no reference to the unloaded map's search list remains in the
13630         dependency's scope.
13632 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13634         * elf/Makefile: Add rules to build and run unload7 test.
13635         * elf/unload7.c: New test.
13636         * elf/unload7mod1.c: New file.
13637         * elf/unload7mod2.c: New file.
13639 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13641         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13642         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13643         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13644         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13645         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13646         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13647         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13648         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13649         PTRACE_GETEVENTMSG): Likewise.
13650         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13651         values.
13653 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13655         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13656         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13657         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13658         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13660 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13662         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13663         write '\0' to the fd.
13664         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13665         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13666         Change regs to unsigned long pointer from unsigned int, fix fscr
13667         offset.
13669 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13671         * io/Makefile (CFLAGS-fstatat.c): Set.
13672         (CFLAGS-fstatat64.c): Likewise.
13673         (CFLAGS-mknodat.c): Likewise.
13675         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13676         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13678         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13680 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13681             Steven Munroe  <sjmunroe@us.ibm.com>
13683         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13684         names to the beginning.  Rename "cell" to "cellbe".
13685         (_dl_powerpc_platforms): New.
13686         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13687         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13688         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13689         (_DL_HWCAP_PLATFORM): Define to new mask.
13690         (_dl_platform_string, _dl_string_platform): New functions.
13691         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13692         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13694 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13696         [BZ #2526]
13697         * README.libm: Fix a thinko in sqrt algorithm description.
13699         [BZ #3143]
13700         * manual/string.texi (argz_delete): Fix prototype.
13701         Patch by <alpt@freaknet.org>.
13703 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13705         [BZ #3138]
13706         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13707         * io/tst-fcntl.c (do_prepare): Likewise.
13708         * posix/tst-exec.c (do_prepare): Likewise.
13709         * posix/tst-preadwrite.c (do_prepare): Likewise.
13710         * posix/tst-spawn.c (do_prepare): Likewise.
13711         * posix/tst-truncate.c (do_prepare): Likewise.
13712         * rt/tst-aio.c (do_prepare): Likewise.
13713         * rt/tst-aio64.c (do_prepare): Likewise.
13714         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13715         size_t.
13717 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13719         [BZ #2821]
13720         * time/mktime.c (guess_time_tm): Fix overflow detection.
13721         * time/Makefile (tests): Add bug-mktime1.
13722         * time/bug-mktime1.c: New file.
13724         [BZ #3189, #3188]
13725         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13726         (mremap): Likewise.
13728 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13730         [BZ #1006]
13731         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13732         Ensure relocation doesn't clobber any bits outside of the
13733         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13734         R_SPARC_HI22 and R_SPARC_H44.
13736         [BZ #2775]
13737         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13738         (long) (MINSIZE + nb - old_size) is positive.
13740         * malloc/arena.c (grow_heap): When growing bail even if new_size
13741         is negative.
13743         [BZ #3155]
13744         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13745         stack below r1.
13747 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13749         * posix/regex_internal.c (re_string_reconstruct): Handle
13750         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13751         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13752         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13753         re_string_context_at.
13754         * posix/Makefile: Add rules to build and run bug-regex26 test.
13755         * posix/bug-regex26.c: New test.
13757         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13758         rather than col_sym_free.  Move seqp declaration earlier.
13760         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13762 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13764         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13765         decl before first goto out.
13767 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13769         * Makerules (shlib.lds): If have-hash-style, put .hash section
13770         at the end of the RO segment.
13772 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13774         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13775         style hash table format is used.
13777 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13779         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13780         randomization rather than before.
13781         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13783 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13785         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13787         * malloc/malloc.c (_int_malloc): Use full list insert and not
13788         shortcut which assumes the list is empty for large requests
13789         too.
13791         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13793 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13795         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13796         and offout arguments to the prototype.
13797         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13798         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13799         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13800         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13801         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13802         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13803         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13804         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13806 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13808         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13810         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13811         dlopen parameters.
13813 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13815         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13816         only if herrno is NETDB_INTERNAL.  Handle errors other than
13817         ERANGE outside of the loops, handle TRY_AGAIN.
13819         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13820         if other's ctype category was missing.
13821         * locale/programs/ld-collate.c (collate_read): Return if
13822         copy_locale's collate category is missing.
13824 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13826         [BZ #2684]
13827         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13828         arenas if allocation failed.
13829         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13831 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13833         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13834         waste bins[0..1].
13835         (malloc_state): Reduce bins size by 2.
13836         (_int_malloc): Fix test for large enough buffer for early termination.
13837         When no unsorted block matches perfectly and an exiting block has
13838         to be split, use full list insert and not shortcut which assumes
13839         the list is empty.
13841         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13842         failure.
13844 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13846         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13847         do anything.
13849         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13850         symbol require exact match (these are PLTs).
13851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13852         (_dl_ppc64_addr_sym_match): Likewise.
13854         [BZ #2683]
13855         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13856         If symbol has a value use it.
13857         * elf/tst-dladdr1.c: New file.
13858         * elf/Makefile: Add rules to build and run tst-addr1.
13860 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13862         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13863         keeps failing and heap growth or new heap creation isn't
13864         successful either.
13865         * malloc/tst-malloc.c (main): Add new tests.
13867 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13869         [BZ #2734]
13870         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13871         as in the x86-64 code to use bswap.
13873 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13875         [BZ #2680]
13876         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13877         __USE_UNIX98.
13878         * posix/bits/unistd.h: Likewise.
13880 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13882         [BZ #2751]
13883         * string/strchr.c: Add cast to avoid warning.
13885 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13887         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13888         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13889         limit is needed to avoid the exploding of the address space
13890         requirement for secondary heaps.
13891         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13892         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13894 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13896         [BZ #3018]
13897         * Makerules (depfiles): Handle extra-test-objs the same as
13898         extra-objs.
13899         (common-mostlyclean): Likewise.
13900         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13901         instead.
13902         * elf/Makefile (extra-objs): Likewise.
13903         * stdlib/Makefile (extra-objs): Likewise.
13905 2006-08-14  Eric Blake  <ebb9@byu.net>
13907         [BZ #3044]
13908         * misc/error.h: Assume C89 or better.
13909         * misc/error.c: Likewise.
13911 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13913         [BZ #3040]
13914         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13915         __ASSUME_ATFCTS is defined.
13917 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13919         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13920         to sort in each call.
13922         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13923         is empty simply return and use next service.
13924         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13926         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13927         tells us when not finding a charmap file is an error.
13928         * locale/programs/charmap.h: Adjust charmap_read prototype.
13929         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13930         cannot find a charmap.
13931         * locale/programs/localedef.c (main): Adjust charmap_read call.
13933 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13935         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13936         sysdeps/posix/pause.c implementation instead.
13938 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13940         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13941         to EPERM.
13943 2006-08-13  Andreas Schwab  <schwab@suse.de>
13945         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13946         Don't clobber caller's LRSAVE.
13947         (_dl_prof_resolve): Likewise.
13949 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13951         [BZ #1996]
13952         * libio/memstream.c (open_memstream): Allocate initial buffer with
13953         calloc.
13954         * libio/wmemstream.c (open_wmemstream): Likewise.
13955         * libio/strops.c: Pretty printing.
13956         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13957         (enlarge_userbuf): New function.
13958         (_IO_str_seekoff): Call it if seek position is larger than current
13959         buffer.
13960         * libio/wstrops.c: Likewise.
13961         * libio/vasprintf.c: Add comment as to why we do not have to use
13962         calloc instead of malloc to allocate initial buffer.
13963         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13964         * libio/bug-memstream1.c: New file.
13965         * libio/bug-wmemstream1.c: New file.
13967 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13969         * libio/wstrops.c: Remove dead macro definitions and comments.
13970         * libio/strops.c: Likewise.
13972         [BZ #2764]
13973         * login/utmpname.c (__utmpname): Remove unnecessary test.
13975 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13977         [BZ #2832]
13978         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13979         0s from integers.
13981 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13983         [BZ #2987]
13984         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13985         for CPU clocks.
13986         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13987         setting of CPU clocks.
13989 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13991         [BZ #2841]
13992         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13993         since C99 requires the result to promote to 'int' when uint_least8_t
13994         and uint_least16_t promote to 'int'.
13996 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13998         [BZ #3013]
13999         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14000         lenght of one output field, correct bitmask creation.
14001         * locale/programs/ld-time.c: Add alignment.
14003         [BZ #2997]
14004         * misc/error.c: Add space between program name and message if file
14005         name is missing.
14007 2006-08-03  Eric Blake  <ebb9@byu.net>
14009         [BZ #2998]
14010         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14012 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14014         * malloc/memusagestat.c: Silence warnings.
14016         * malloc/malloc.c: Dynamically size mmap treshold if the program
14017         frees mmaped blocks.
14018         Patch by Valerie Henson and Arjan van de Ven.
14020 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14022         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14023         __USE_GNU.
14025         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14026         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14027         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14028         Only provide var definitions in strtol_l (or for *ull*
14029         in strtoll_l).
14031         * stdio-common/bug16.c (tests): New array.
14032         (do_tests): Allow the first hexadecimal digit
14033         to be 1, 2, 4 or 8.  Do 3 additional tests.
14035         * sysdeps/s390/fpu/libm-test-ulps: Update.
14037         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14038         fchownat syscall if available.
14039         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14040         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14041         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14043 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14045         * nis/nis_xdr.c: Avoid some function calls.
14047 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14048             Ulrich Drepper  <drepper@redhat.com>
14050         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14051         short cut if only one name component is stripped away.
14053 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14055         * nis/nis_call.c: Minor cleanups throughout.
14056         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14057         (first_shoot): Add search_parent_first parameter.  Only if it is set
14058         search parent server first.
14059         If directory for table found through cold start cache is not the same
14060         as referenced in the cache, don't use it.
14061         (__nisfind_server): Take additional parameter.  Pass it on to
14062         first_shoot.
14063         (__prepare_niscall): Adjust __nisfind_server call.
14064         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14065         * nis/nis_table.c: Adjust __nisfind_server call.
14066         * nis/nis_lookup.c: Likewise.
14067         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14069 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14071         [BZ #2182]
14072         * math/s_cacosh.c: Return values from positive branch.
14073         * math/s_cacoshf.c: Likewise.
14074         * math/s_cacoshl.c: Likewise.
14076         [BZ #2883]
14077         * sysvipc/sys/msg.h: Change return value to ssize_t.
14078         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14079         * sysvipc/msgrcv.c: Likewise.
14080         * include/sys/msg.h: Likewise.
14082         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14083         test introduced in patch for bz #661.
14084         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14085         element for NEWGROUPS.
14087         [BZ #2908]
14088         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14089         'f', use '1' as leading digit not '\1'.
14090         * stdio-common/Makefile (tests): Add bug16.
14091         * stdio-common/bug16.c: New file.
14093         [BZ #2914]
14094         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14095         and don't try to open it.  The patch introducing the macro
14096         contained a bug and used the same file name as the new file
14097         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14098         this out completely.
14100         [BZ #2926]
14101         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14102         Patch by Jerry James <Jerry.James@usu.edu>.
14104         * rt/Makefile (tests): Add tst-clock2.
14105         * rt/tst-clock2.c: New file.
14107         [BZ #2978]
14108         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14109         function and its parameters and pass it to new thread.
14110         (__gai_notify): Add support for alternative waiting for completion.
14111         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14112         waiting for completion.
14113         * resolv/getaddrinfo_a.c: Likewise.
14114         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14115         waiting for completion is used.
14116         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14117         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14118         * resolv/gai_error.c: Likewise.
14119         * resolv/gai_sigqueue.c: Likewise.
14121 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14123         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14124         errno to EBADF and return MACH_PORT_NULL.
14126 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14128         [BZ #2980]
14129         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14131 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14133         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14134         walk them instead of the symbol table.
14136 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14138         [BZ #2098]
14139         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14140         status of NSS calls, not the number of returned entries.
14142         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14143         request_key, keyctl.
14145 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14147         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14149 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14151         * elf/tst-auditmod1.c: Fix typo in #error.
14153 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14155         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14157         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14159 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14161         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14162         that the directory is empty even on non-POSIX filesystems.
14164 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14166         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14168         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14169         the backend NSS module.  If backend setgrent call failed, don't have
14170         internal_setgrent fail.  Just remember this until it is needed.
14171         * nis/nss_compat/compat-pwd.c: Likewise.
14172         * nis/nss_compat/compat-spwd.c: Likewise.
14174 2006-07-30  Roland McGrath  <roland@redhat.com>
14176         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14177         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14178         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14179         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14181         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14182         (nanosleep_not_cancel): New macro.
14183         (sigsuspend_not_cancel): new macro.
14184         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14185         (do_sigsuspend): Define as inline.
14186         (__sigsuspend): Always use do_sigsuspend.
14187         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14188         * include/signal.h: Declare __sigsuspend_nocancel.
14189         * sysdeps/posix/pause.c
14190         [! NO_CANCELLATION] (__pause_nocancel): New function.
14192         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14193         * include/time.h (__nanosleep_nocancel): Likewise.
14195 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14197         * locale/programs/localedef.c (add_to_readlist): Rename local
14198         variables to avoid confusion.
14200         * locale/programs/charmap.c (charmap_read): Emit error message if
14201         charmap couldn't be found or read.
14203 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14205         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14206         __ASSUME_FUTEX_LOCK_PI.
14207         * include/time.h: Declare __nanosleep_nocancel.
14208         * include/unistd.h: Declare __pause_nocancel.
14210         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14211         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14212         get the __stack_chk_fail_local definition when it's needed.
14214 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14216         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14217         * dlfcn/bug-atexit3.c: New file.
14218         * dlfcn/bug-atexit3-lib.cc: New file.
14220         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14221         used when the namespace is not the base namespace.
14223 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14225         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14226         (__new_exitfn): Bump it in every successful call.
14227         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14228         more exit handlers, call them right away.
14229         * stdlib/exit.h: Declare __new_exitfn_called.
14231 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14233         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14234         calling registered handler.
14236         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14237         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14238         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14239         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14240         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14241         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14242         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14243         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14245 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14247         * elf/dl-lookup.c (dl_new_hash): New functions.
14248         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14249         value here.  Compute new-style hash value.  Pass new hash value
14250         and reference to variable with the old value to do_lookup_x.
14251         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14252         old-style hash table.
14253         (_dl_debug_bindings): Pass new hash value and reference to variable
14254         with the old value to do_lookup_x.
14255         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14256         new-style hash value and change old-style hash value parameter to
14257         be a reference.  Reoganize functions to determine whether
14258         new-style hash table is available.  Only fall back on old-style
14259         table.  If old-style hash value is needed, compute it here.
14260         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14261         entry.
14262         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14263         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14264         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14265         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14266         * Makeconfig: If linker supports --hash-style option add it to all
14267         linker command lines to build DSOs.
14268         * config.make.in: Define have-hash-style.
14269         * configure.in: Test whether linker supports --hash-style option.
14271         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14272         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14274 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14276         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14277         auditing.
14279         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14280         RPATH of main map twice.
14282 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14284         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14285         look further, return original strings.
14286         (_nl_find_msg): Do not return found translation if the conversion
14287         failed.  Either signal the string is unusable or that something went
14288         wrong and the original should be used.
14290 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14292         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14294 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14296         [BZ #2766]
14297         * misc/insremque.c (insque): Handle prev == NULL.
14298         * misc/Makefile (tests): Add tst-insremque.
14299         * misc/tst-insremque.c: New test.
14301 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14303         [BZ #2792]
14304         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14305         conflict with DL_DST_REQUIRED.
14307 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14309         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14310         match what Solaris does.
14312 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14314         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14315         local_setegid instead of seteuid and setegid.
14316         * sysdeps/generic/local-setxid.h: New file.
14317         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14319         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14321         * string/Makefile (tests): Add bug-envz1.
14322         * string/bug-envz1.c: New file.
14324 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14326         * posix/regex_internal.c (re_string_skip_chars): If no character has
14327         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14328         to the byte which couldn't be converted.
14329         (re_string_reconstruct): Don't clear valid_raw_len before calling
14330         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14331         tip_context using re_string_context_at.
14332         * posix/Makefile: Add rules to build and run bug-regex25 test.
14333         * posix/bug-regex25.c: New test.
14335 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14337         [BZ #2703]
14338         * string/envz.c (envz_strip): Correct erroneously reversed src
14339         and dest parameters to memmove() invocation.
14341 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14343         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14344         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14345         to make sure the database has been already invalidated.
14346         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14347         after the cache has been invalidated.  Use pthread_mutex_lock rather
14348         than pthread_mutex_trylock if fd != -1.
14349         * nscd/connections.c (invalidate_cache): Add fd argument, write
14350         response to fd if not calling prune_cache, pass fd to prune_cache.
14351         (handle_request): Adjust invalidate_cache caller.
14352         (nscd_run): Pass -1 as fd to prune_cache.
14354 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14356         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14357         the correct place.
14359 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14361         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14362         * nscd/cache.c (prune_cache): Take prunelock before starting the
14363         work.  Just return in case it is already taken.
14364         * nscd/connections.c (dbs): Initialize .prunelock.
14366 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14368         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14369         copying.  No need to allocate new array for group members.  Just
14370         move the pointers and update the size.
14372         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14373         Avoid memory leak in case realloc fails.  Simplification for
14374         better code generation.
14376         Avoid deprecation warning because of libc_hidden_proto for
14377         inet6_option_alloc.
14378         * inet/inet6_option.c (option_alloc): Renamed from
14379         inet6_option_alloc.  Made static.
14380         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14381         (inet6_option_append): Call option_alloc.
14382         * include/netinet/in.h: Remove libc_hidden_proto for
14383         inet6_option_alloc.
14385         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14386         for cleanup when cb!=NULL [Coverity CID 233].
14388 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14390         [BZ #2693]
14391         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14392         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14393         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14394         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14395         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14396         and inet6_rth_getaddr.
14397         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14398         array.
14399         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14400         Mark inet6_option_* interfaces as deprecated.
14401         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14402         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14403         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14404         inet6_rth_segments, and inet6_rth_getaddr.
14405         * inet/inet6_opt.c: New file.
14406         * inet/inet6_rth.c: New file.
14408         * inet/netinet/icmp6.h: Pretty printing.
14410         [BZ #2683]
14411         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14413 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14415         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14416         doing it all here.  When server does not know the answer do not
14417         fail immediate, try parent first.
14419         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14420         overflow test.
14422 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14424         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14425         from __do_niscall.
14426         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14427         and exported.
14428         (__follow_path): New function.  Split out from nis_list.
14429         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14430         _xdr_nis_result.
14431         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14432         _xdr_nis_result.
14433         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14434         and __follow_path.
14435         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14436         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14437         from libnsl for version GLIBC_PRIVATE.
14438         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14439         Remove entry parameter from _nss_nisplus_parse_pwent and
14440         _nss_nisplus_parse_grent.
14441         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14442         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14443         again.  Rewrite getpwent handling to not use nis_first_entry and
14444         nis_next_entry.  Roll out own niscall handling.
14445         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14447         * sunrpc/xdr_rec.c: Fix typo in comment.
14449 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14451         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14452         handling.
14454         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14455         to allocate memory for my_pollfd.  Better initialization of
14456         cb_is_running.  Use TEMP_FAILURE_RETRY.
14458         * malloc/memusage.sh (memusageso): Add quotes.
14459         (memusagestat): Likewise.
14460         * debug/xtrace.sh (pcprofileso): Likewise.
14461         (pcprofiledump): Likewise.
14462         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14463         replacement.
14464         * malloc/Makefile ($(objpfx)memusage): Likewise.
14466         * nis/nis_callback.c (__nis_create_callback): Calls to
14467         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14468         asprintf call fails.
14470         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14471         no uninitialized memory is passed to sendto.
14473 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14475         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14476         of snprintf+strdup.  Handle OOM.
14477         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14478         cb->serv together.  Remove now obsolete free calls.
14479         (__nis_destroy_callback): Remove now obsolete free call.
14481 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14483         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14484         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14485         and ULA respectively). Set precedence for IPv4 address to 10 as
14486         defined in RFC3484 for preferring IPv6.
14487         * posix/gai.conf: Update to match the new default tables.
14489 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14491         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14492         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14493         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14494         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14496         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14497         Removed.
14498         (init_nss_interface): Remove initialization of these variables.
14500 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14502         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14503         nis_free_directory forward to avoid duplication.
14505 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14507         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14508         rec_dirsearch returning NULL.
14509         (first_shoot): Handle __nis_finddirectory returning NULL.
14510         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14512         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14513         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14515 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14517         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14518         pid changed.
14520 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14522         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14524         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14525         * nscd/nscd_getgr_r.c: Likewise.
14527         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14529         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14530         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14532         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14534         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14536         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14538         * include/rpc/auth.h: Mark xdr_des_block_internal and
14539         xdr_opaque_auth_internal as hidden.
14541         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14542         hidden.
14544         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14546         * misc/getusershell.c (okshells): Don't use static initializers,
14547         do it dynamically.
14549         * stdlib/fmtmsg.c (keywords): Change type of len element to
14550         uint32_t to not waste space on 64bit machines.
14552         * locale/setlocale.c: Change _nl_category_names into a string.
14553         Add new _nl_category_name_idxs.  Change all users.
14554         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14555         Declare _nl_category_name_idxs.
14556         * locale/findlocale.c: Adjust for _nl_category_names change.
14557         * locale/loadlocale.c: Likewise.
14558         * locale/newlocale.c: Likewise.
14559         * intl/dcigettext.c: Likewise.
14561         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14562         (add_alias2): ...here.  New function.
14563         (__gconv_read_conf): Simplify builtin alias handling.
14564         (builtin_aliases): Convert to string to avoid relocations.
14565         * iconv/gconv_builtin.h: Add comment about correct formatting.
14567 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14569         * resolv/res_debug.c (loc_ntoa): Make error const.
14571 2006-05-14  Andreas Schwab  <schwab@suse.de>
14573         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14575 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14577         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14578         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14579         sizeof (cpu_set_t).
14581 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14583         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14585         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14587         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14588         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14590         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14591         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14593         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14594         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14595         xdr_cback_data.
14597         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14598         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14599         xdr_ypupdate_args.
14601         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14602         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14604         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14605         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14607         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14608         * include/rpcsvc/nis_callback.h: New file.
14610         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14611         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14613         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14614         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14616         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14617         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14619         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14620         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14622         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14623         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14624         xdr_ypdelete_args.
14626         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14627         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14629         * nis/nis_error.c: Remove table of strings.  Use position
14630         independent mechanism.
14631         * nis/nis_error.h: New file.
14633 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14635         * locale/programs/ld-time.c (time_finish): If wide era name or
14636         format aren't provided, set both wname and wformat to L"".
14638 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14640         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14641         results if the call was succesful.
14643         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14645         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14646         as hidden.
14648 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14650         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14652 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14654         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14655         caller makes sure this is not the case.
14656         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14658 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14660         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14661         calls.
14663         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14664         [Coverity CID 229, 230]
14666         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14667         DGETTEXT calls.
14668         (hol_help): Likewise.  [Coverity CID 226, 227]
14670         * string/argz-replace.c (__argz_replace): Unconditionally call
14671         free on SRC.  [Coverity CID 225]
14673         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14674         the return value of __nis_default_owner and __nis_default_group,
14675         it has been especially allocated.  [Coverity CID 224]
14677         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14678         searchgroup and searchowner.  Significantly simplified.
14679         (__nis_default_owner): Remove duplication.  Do not locally copy the
14680         string before duplicating it.
14681         (__nis_default_group): Likewise.
14683         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14684         we must clear the variable before calling __nisfind_server.
14686         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14687         nis_getnames.  [Coverity CID 223]
14689         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14690         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14692         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14693         allocate memory for the input to add_bytes.  [Coverity CID 221]
14695         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14696         was allocated here.  [Coverity CID 219, 220]
14698         * posix/getconf.c (print_all): Free confstr data after printing.
14699         [Coverity CID 218]
14701         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14702         list allocation fails.  [Coverity CID 215]
14704         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14705         [Coverity CID 213]
14707         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14708         string is NULL.  [Coverity CID 212]
14709         * argp/Makefile: Add rules to build and run bug-argp1.
14710         * argp/bug-argp1.c: New file.
14712         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14713         end of string.
14714         * stdlib/canonicalize.c (__realpath): Likewise.
14716         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14717         pointer.  [Coverity CID 206]
14719         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14720         in statically linked code.
14721         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14722         statically built code, be prepared to have no link map.
14723         [Coverity CID 205]
14725         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14726         dgettext calls. [Coverity CID 204]
14728         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14729         the one user.
14730         (uparam_names): Reduce size.  Avoid relative relocations.
14731         Moved to read-only segment.
14732         (fill_in_uparams): Update for new layout.
14734         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14735         assumed to always be != NULL. [Coverity CID 202]
14737         * argp/argp-help.c (hol_entry_help): Remove some dead code
14738         [Coverity CID 200].
14740         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14741         away a few more unconditional yperr2nss calls.
14742         (_nss_nis_getservbyname_r): Likewise.
14744 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14746         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14747         architectures.
14749         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14750         that unused memory passed to sendto is nevertheless initialized.
14752         [BZ #2499]
14753         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14754         possibly unaligned memory accesses.
14756         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14757         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14758         and __putlong respectively.  Correct buffer overflow check for
14759         NS_NOTIFY_OP.
14761         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14763         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14764         (send_dg): Rewrite error handling to be more compact and avoid
14765         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14767         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14769         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14770         instead of ns_get16.
14771         (res_queriesmatch): Likewise.  Minor optimization.
14773         [BZ #2499]
14774         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14775         __libc_res_nsend might reallocate the buffer for the answer.  In
14776         this case we have to reload the HP pointer.
14778 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14780         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14781         some branch prediction hints.
14783         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14784         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14785         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14786         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14787         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14788         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14789         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14790         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14792 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14794         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14795         by a GOT relocation to make Scrt1.o position independent.
14796         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14798         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14799         six system call parameters.
14800         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14802 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14804         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14805         malloc&bzero.
14807         * sunrpc/svc_udp.c (BZERO): Remove definition.
14808         (CALLOC): Define.
14809         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14811         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14812         (des_SPtrans): Use uint32_t type.
14813         (des_skb): Likewise.
14815         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14817 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14819         [BZ #2509]
14820         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14821         on 32-bit arches.
14823 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14825         * locale/programs/ld-address.c (address_finish): Fix one more
14826         place where the iso639 array might be accessed beyond the limits.
14828 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14830         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14831         filling it for the first time.
14833         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14834         Adjust all callers.
14835         Free res object content before returning.
14837         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14839         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14840         client->cl_auth.
14842         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14843         cleanup for initial thread, just the free call on TVP.
14845         * nscd/gai.c (__getline): Define.
14848 See ChangeLog.16 for earlier changes.