32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2
[glibc.git] / ChangeLog
blob6ef8d4c9dc996d3cef8a65fc09412fce9a8be3f3
1 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
5         memcmp-c, memcmp-ssse3, and memcmp-sse4.
6         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
7         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
8         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
9         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
10         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
11         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
12         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
13         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
14         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
15         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
17 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
19         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
20         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
21         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
22         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
24         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
25         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
26         is not supported.
27         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
28         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
29         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
33         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
34         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
35         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
36         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
37         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
39         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
40         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
41         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
42         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
43         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
44         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
45         Likewise.
46         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
47         Likewise.
48         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
49         Likewise.
50         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51         Likewise.
52         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
54 2010-02-12  Alan Modra  <amodra@gmail.com>
56         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
57         Define and use for __powerpc64__ too.
58         [__powerpc__] (TLS_LD): Add r3 to clobbers.
59         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
60         [__powerpc64__] (TLS_GD): Make __result r3 reg.
61         [__powerpc64__] (TLS_IE): Relax output constraint.
63 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
66         instructions cu21 and cu24.  Add well-formedness checking
67         parameter and adjust the software implementation.
68         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
70 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
72         [BZ #11271]
73         * io/ftw.c (ftw_startup): Close descriptor for initial directory
74         after changing back to it.
76 2010-02-05  David S. Miller  <davem@davemloft.net>
78         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
79         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
80         ifunc relocs.
81         (elf_machine_lazy_rel): Likewise.
82         (sparc_fixup_plt): Pull out to...
83         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
84         * sysdeps/sparc/sparc32/dl-irel.h: New file.
85         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
86         ifunc relocs.
87         (elf_machine_lazy_rel): Likewise.
88         (sparc64_fixup_plt): Pull out to...
89         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
90         * sysdeps/sparc/sparc64/dl-irel.h: New file.
92 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
94         * elf/elf.h: Define m68k TLS relocations.
96 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
98         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
99         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
100         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
101         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
103         64-bit power7 fpu path.
104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
105         32-bit power7 fpu math.
107 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
109         * sysdeps/i386/rshift.S: More compact unwind information.
111         * sysdeps/i386/lshift.S: Fix unwind information.
113 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
115         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
116         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
117         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
118         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
119         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
120         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
121         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
122         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
123         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
124         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
125         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
126         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
128 2010-02-08  Andreas Schwab  <schwab@redhat.com>
130         * include/fenv.h: Add hidden proto for fegetenv.
131         * math/fegetenv.c: Add hidden alias.
132         * sysdeps/i386/fpu/fegetenv.c: Likewise.
133         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
134         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
135         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
136         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
137         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
138         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
140 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
142         [BZ #11230]
143         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
144         during recovery.
146 2010-01-26  Andreas Schwab  <schwab@redhat.com>
148         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
149         interface.
150         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
151         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
152         utmpx interface.
154         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
155         entry for 2.12.
157 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
159         [BZ #11235]
160         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
161         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
162         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
163         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
164         MS_ACTIVE, and MS_NOUSER.
165         (MS_RMT_MASK): Update according to current kernels.
167         [BZ #11242]
168         * misc/getusershell.c (initshells): Allocate one more byte in input
169         buffer so that fgets doesn't loop undefinitely.
171 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
173         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
174         __libc_use_alloca tells us not to.  Fix memory leak in an error
175         situation.  Based partially on patch by Jim Meyering.
177 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
179         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
180         get_phys_pages, get_avphys_pages): Add weak aliases.
182 2010-01-25  Andreas Schwab  <schwab@redhat.com>
184         * iconv/iconv_prog.c (write_output): Fix check for open failure.
186 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
188         [BZ #11200]
189         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
190         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
192 2010-01-22  Jim Meyering  <jim@meyering.net>
194         [BZ #11193]
195         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
196         buffer length computation.
198         [BZ #11192]
199         * posix/regexec.c (re_copy_regs): Don't leak when allocation
200         of the start buffer succeeds but allocation of the "end" one fails.
202         [BZ #11191]
203         * posix/regexec.c (re_search_2_stub): Check for overflow
204         when adding the sizes of the two strings.
206         [BZ #11190]
207         * posix/regexec.c (re_search_internal): Avoid overflow
208         in computing re_malloc buffer size.
210         [BZ #11189]
211         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
212         in computing re_malloc buffer size.
214         [BZ #11188]
215         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
216         in size calculation.
218         [BZ #11187]
219         * posix/regexec.c (re_search_2_stub): Use simpler method than
220         boolean for freeing internal storage.
222 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
224         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
225         failed mbrtowc call.
227 2010-01-22  Jim Meyering  <jim@meyering.net>
229         [BZ #11186]
230         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
231         fits in wchar_t.  Problem reported by Eric Blake.
233         [BZ #11185]
234         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
235         and stores into set-but-not-used local, "q".
237         [BZ #11184]
238         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
239         detection test.  Patch by Paul Eggert.
241         [BZ #11183]
242         * posix/regex_internal.c (re_string_realloc_buffers):
243         Detect and handle internal overflow.  Patch by Paul Eggert
245 2010-01-20  Andreas Schwab  <schwab@redhat.com>
247         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
248         (CHECK_SP): Fix check for alternate stack.
249         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
250         (CHECK_SP): Likewise.
252 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
254         * sysdeps/i386/i686/multiarch/memmove.S: Also check
255         bit_Fast_Rep_String when SHARED isn't defined.
257 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
259         [BZ #11194]
260         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
262 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
264         * sysdeps/mach/hurd/bits/libc-lock.h
265         (__rtld_lock_recursive_t): New type.
266         (__rtld_lock_initialize): New macro.
268 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
270         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
271         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
275 2010-01-18  Andreas Schwab  <schwab@redhat.com>
277         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
278         definitions of O_DSYNC and O_RSYNC.
280         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
281         casting d_tag.
283         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
284         dynamic entry types.
286 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
288         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
289         constant.
290         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
291         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
292         overflow.
293         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
295         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
296         math_opt_barrier and math_force_eval macros.
298 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
300         * posix/regcomp.c: Fix a few more cases of ignored return values.
301         * posix/regex_internal.c: Likewise.
302         * posix/regexec.c: Likewise.
304         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
305         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
306         if _XOPEN_SOURCE is not defined as well.
308 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
310         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
311         high gprs kernel facility.
312         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
313         Added high gprs check for DSOs.
314         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
315         new elf header flag.
317 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
319         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
320         dl_main.
321         * elf/dl-open.c (_dl_sysdep_start): Likewise..
322         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
323         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
324         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
325         started.
327 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
329         [BZ #11027]
330         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
331         to RFC 2474.
332         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
334         [BZ #11141]
335         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
336         addresses.
338         [BZ #11127]
339         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
340         re_node_set_insert failure; return REG_ESPACE.
341         Patch by Paul Eggert.
343         * bits/confname.h: Make pre-C99-safe.
345 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
347         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
348         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
349         files are found by GCC.
351 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
353         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
354         brk, and sbrk.
356         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
357         index, and rindex.
359         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
361         * Versions.def: Add GLIBC_2.12 for libpthread.
363         [BZ #11126]
364         * malloc/malloc.c (malloc_info): Initialize malloc if not already
365         done.  Handle empty bin lists.
367         * posix/unistd.h: Change getpagesize and getdtablesize declaration
368         visibility some more.
370         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
372         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
374         [BZ #11120]
375         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
376         needed outside libc.
378 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
380         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
382 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
384         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
386 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
388         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
390 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
392         * conform/data/complex.h-data: Test for POSIX2008.
394         * conform/data/ctype.h-data: Fix POSIX testing.
396         * conform/data/dirent.h-data: ino_t only needed for XSI.
398         * grp/grp.h: Declare getgrent and endgrent for XPG7.
400         * conform/data/inttypes.h-data: Use same types as the headers.
402         * resolv/netdb.h: Don't define old resolver macros for XPG7.
404         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
406         * conform/conformtest.pl: Implement tag for allow-header.
407         Fix newline handling in allow-header implementation.
409         * conform/data/time.h-data: Use allow-header instead of duplicating
410         information.
412         * conform/data/time.h-data: Allow sigevent tag.
414         * posix/sched.h: Define time_t and pid_t for XPG7.
416 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
418         * sysdeps/i386/i686/bcopy.S: New file.
420         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
422         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
423         and END_CHK.
424         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
425         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
426         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
428         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
430         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
431         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
432         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
433         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
434         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
435         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
436         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
437         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
438         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
439         * sysdeps/i386/i686/multiarch/bzero.S: New file.
440         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
441         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
442         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
443         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
444         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
445         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
446         * sysdeps/i386/i686/multiarch/memmove.S: New file.
447         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
448         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
449         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
450         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
451         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
452         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
453         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
454         * sysdeps/i386/i686/multiarch/memset.S: New file.
455         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
457         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
458         (END_CHK): Likewise.
460         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
461         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
462         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
464         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
465         for 0x0e and 0x80.
466         (__x86_64_data_cache_size): New.
467         (init_cacheinfo): Set __x86_64_data_cache_size.
469         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
470         on bit_Fast_Rep_String for Intel Core i7.
472         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
473         (index_Fast_Rep_String): Likewise.
474         (FEATURE_INDEX_1): Likewise.
475         (FEATURE_INDEX_MAX): Likewise.
476         (cpu_features): Add feature.
478 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
480         * conform/data/sys/select.h-data: Fix up for XPG7.
482 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
484         * posix/sys/wait.h: Don't define W* macros etc. if
485         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
487 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
489         * io/sys/stat.h: Declare fchmod for XPG7.
490         * conform/data/sys/stat.h-data: Fix up for XPG7.
492         * termios/termios.h: Define pid_t for XPG7.
494         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
495         * conform/data/tgmath.h-data: Likewise.
497         * conform/data/time.h-data: Fix POSIX tests.
499         * conform/data/wchar.h-data: Fix up XPG7 tests.
501         * include/features.h: Fix __USE_ISOC95 handling.
503         * conform/data/wordexp.h-data: Fix typo in last change.
505         * conform/data/unistd.h-data: Fix up older POSIX tests.
507         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
508         * posix/unistd.h: Likewise.
510         * posix/unistd.h: Include environments.h also for XPG6 and up.
511         Define intptr_t for XPG6 and up.
512         Fix up for XPG7.
513         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
515         * conform/data/sys/types.h-data: Fix up for XPG7.
517         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
518         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
519         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
520         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
521         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
522         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
523         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
524         * sysdeps/unix/sysv/bits/stat.h: Likewise.
525         * sysdeps/mach/hurd/bits/stat.h: Likewise.
527         * bits/confname.h: Fix typo in last change.
529         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
531 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
533         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
534         and SA_RESETHAND now available in Base.
535         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
536         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
537         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
538         * conform/data/signal.h-data: Update for XPG7.
540         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
542         * string/strings.h: Don't declare obsolete functions for XPG7.
543         Declare ffs only for XSI.
544         * conform/data/strings.h-data: Update for XPG7.
546 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
548         [BZ #11125]
549         * libio/stdio.h: Define va_list, off_t, and ssize_t.
551         * posix/glob.h: Define size_t.
553         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
555         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
557 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
559         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
560         be self-contained.
562         * conform/data/stdio.h-data: Expect off_t and ssize_t.
564 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
566         * libio/stdio.h: Define va_list also for XPG7.
568         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
569         * conform/data/ctype.h-data: Likewise.
570         * conform/data/dirent.h-data: Likewise.
571         * conform/data/errno.h-data: Likewise.
572         * conform/data/fcntl.h-data: Likewise.
573         * conform/data/fmtmsg.h-data: Likewise.
574         * conform/data/fnmatch.h-data: Likewise.
575         * conform/data/ftw.h-data: Likewise.
576         * conform/data/glob.h-data: Likewise.
577         * conform/data/grp.h-data: Likewise.
578         * conform/data/iconv.h-data: Likewise.
579         * conform/data/langinfo.h-data: Likewise.
580         * conform/data/libgen.h-data: Likewise.
581         * conform/data/limits.h-data: Likewise.
582         * conform/data/locale.h-data: Likewise.
583         * conform/data/math.h-data: Likewise.
584         * conform/data/monetary.h-data: Likewise.
585         * conform/data/mqueue.h-data: Likewise.
586         * conform/data/ndbm.h-data: Likewise.
587         * conform/data/netdb.h-data: Likewise.
588         * conform/data/pthread.h-data: Likewise.
589         * conform/data/pwd.h-data: Likewise.
590         * conform/data/regex.h-data: Likewise.
591         * conform/data/sched.h-data: Likewise.
592         * conform/data/search.h-data: Likewise.
593         * conform/data/semaphore.h-data: Likewise.
594         * conform/data/setjmp.h-data: Likewise.
595         * conform/data/signal.h-data: Likewise.
596         * conform/data/spawn.h-data: Likewise.
597         * conform/data/stdio.h-data: Likewise.
598         * conform/data/stdlib.h-data: Likewise.
599         * conform/data/string.h-data: Likewise.
600         * conform/data/strings.h-data: Likewise.
601         * conform/data/sys/ipc.h-data: Likewise.
602         * conform/data/sys/msg.h-data: Likewise.
603         * conform/data/sys/resource.h-data: Likewise.
604         * conform/data/sys/sem.h-data: Likewise.
605         * conform/data/sys/shm.h-data: Likewise.
606         * conform/data/sys/socket.h-data: Likewise.
607         * conform/data/sys/stat.h-data: Likewise.
608         * conform/data/sys/time.h-data: Likewise.
609         * conform/data/sys/types.h-data: Likewise.
610         * conform/data/sys/uio.h-data: Likewise.
611         * conform/data/sys/wait.h-data: Likewise.
612         * conform/data/syslog.h-data: Likewise.
613         * conform/data/tar.h-data: Likewise.
614         * conform/data/termios.h-data: Likewise.
615         * conform/data/time.h-data: Likewise.
616         * conform/data/ulimit.h-data: Likewise.
617         * conform/data/unistd.h-data: Likewise.
618         * conform/data/utmpx.h-data: Likewise.
619         * conform/data/wchar.h-data: Likewise.
620         * conform/data/wctype.h-data: Likewise.
621         * conform/data/wordexp.h-data: Likewise.
623         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
624         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
625         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
626         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
627         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
628         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
629         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
630         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
631         * sysdeps/unix/sysv/bits/stat.h: Likewise.
632         * sysdeps/mach/hurd/bits/stat.h: Likewise.
634         * stdlib/stdlib.h: Define wait-related bits for XPG7.
635         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
636         Declare mkstemp and getsubopt for XPG7.
637         Declare posix_openpt for XPG6 XSI.
639         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
640         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
642         * string/string.h: Declare strdup for XPG7.
644 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
646         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
647         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
649         * dirent/dirent.h: Really fix feature selection.
651         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
652         Fix all users.
653         * locale/C-address.c: Fix all users.
654         * locale/C-collate.c: Likewise.
655         * locale/C-ctype.c: Likewise.
656         * locale/C-identification.c: Likewise.
657         * locale/C-measurement.c: Likewise.
658         * locale/C-messages.c: Likewise.
659         * locale/C-monetary.c: Likewise.
660         * locale/C-name.c: Likewise.
661         * locale/C-numeric.c: Likewise.
662         * locale/C-paper.c: Likewise.
663         * locale/C-telephone.c: Likewise.
664         * locale/C-time.c: Likewise.
665         * locale/findlocale.c: Likewise.
666         * locale/global-locale.c: Likewise.
667         * locale/loadarchive.c: Likewise.
668         * locale/loadlocale.c: Likewise.
669         * locale/nl_langinfo_l.c: Likewise.
670         * locale/setlocale.c: Likewise.
671         * locale/xlocale.c: Likewise.
672         * locale/xlocale.h: Likewise.
673         * stdio-common/vfscanf.c: Likewise.
674         * stdlib/strfmon_l.c: Likewise.
675         * stdlib/strtod_l.c: Likewise.
676         * stdlib/strtol_l.c: Likewise.
677         * string/strcoll_l.c: Likewise.
678         * string/strxfrm_l.c: Likewise.
679         * time/alt_digit.c: Likewise.
680         * time/asctime.c: Likewise.
681         * time/era.c: Likewise.
682         * time/lc-time-cleanup.c: Likewise.
683         * time/strftime_l.c: Likewise.
684         * time/strptime_l.c: Likewise.
685         * wcsmbs/wcsmbsload.c: Likewise.
686         * wcsmbs/wcsmbsload.h: Likewise.
688         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
689         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
690         for XPG7.
691         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
692         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
694         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
695         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
696         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
698 2010-01-07  Roland McGrath  <roland@redhat.com>
700         * elf/elf.h (PN_XNUM): New macro.
702         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
703         literal 2.
705 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
707         * dirent/dirent.h: Fix typo in feature selection macro use.
709 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
711         [BZ #11115]
712         * stdlib/tst-makecontext3.c: New file.
713         * stdlib/Makefile (tests): Add new test.
715         * stdlib/tst-setcontext.c (check_called): Fix a typo.
717 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
719         * configure.in: Enable multi-arch by default if the assembler
720         supports gnu_indirect_function symbol type and the architecture
721         supports it.
723 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
725         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
726         is defined.
728 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
730         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
731         MACH_PORT_NULL when id != cttyid.
733 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
735         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
736         __mach_port_deallocate on rootdevid.
738 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
740         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
741         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
742         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
743         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
745 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
747         [BZ #10992]
748         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
749         Patch by Eric Blake <ebb9@byu.net>.
751 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
753         [BZ #11093]
754         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
755         POLLWRBAND also for POSIX 2008.
756         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
757         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
759         * include/link.h (struct link_map): Move l_used into its own word.
760         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
761         still zero.
762         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
763         never really used.
765 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
767         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
768         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
769         check processor feature.
770         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
771         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
772         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
773         (index_SSE2): Likewise.
775 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
777         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
778         if __ASSEMBLER__ is defined.
779         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
780         (bit_SSE4_2): Likewise.
781         (index_SSSE3): Likewise.
782         (index_SSE4_2): Likewise.
783         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
784         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
785         check processor feature.
786         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
787         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
788         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
789         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
790         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
791         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
792         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
794 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
796         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
798 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
800         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
802 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
804         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
805         O_DSYNC to match 2.6.33+ kernels.
806         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
807         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
808         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
809         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
810         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
813 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
815         [BZ #11000]
816         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
817         *herrnop before returning.
818         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
819         Likewise.
820         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
821         TRYAGAIN errors separately.
822         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
823         *name4_r after functions.
825 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
827         [BZ #11046]
828         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
829         version check.
831 2009-11-05  Bruno Haible  <bruno@clisp.org>
833         [BZ #11056]
834         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
835         argv argument as non-NULL.
836         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
838 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
840         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
841         recvmmsg.
842         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
843         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
845 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
847         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
848         registers.
849         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
850         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
851         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
853 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
855         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
856         SCHED_RESET_ON_FORK.
858 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
860         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
861         only used on truly ancient kernel if configuration requires a more
862         recent kernel.
864 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
866         [BZ #3662]
867         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
868         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
870         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
871         pass it on to __ptsname_internal.
872         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
873         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
874         All the code from __ptsname_r but take additional parameter.  Use that
875         instead of pointer to local stat64 variable.
876         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
877         variable.
878         * include/stdlib.h: Declare __ptsname_internal.
880         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
881         before the exec.
882         * sysdeps/unix/sysv/linux/grantpt.c: New file.
883         * login/programs/pt_chown.c (main): Don't print message on errors
884         when doing real work.
886         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
887         once.
889         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
890         irel relocations split out from...
891         (__libc_csu_init): ...here.
892         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
894 2009-11-23  Andreas Schwab  <schwab@redhat.com>
896         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
897         for timestamps also if __USE_XOPEN2K8.
898         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
899         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
900         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
901         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
903 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
905         * nscd/connections.c (restart): Try harder to re-exec.
907         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
909         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
910         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
911         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
912         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
913         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
914         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
916         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
917         Define.
918         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
920 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
922         [BZ #10162]
923         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
924         than software pipeline.  Properly recover from shorter read.
926 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
928         [BZ #10958]
929         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
930         initialized before using it.
931         (_IO_putwc_unlocked): Likewise.
933         [BZ #10918]
934         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
935         in cast to not throw away const-ness of parameters.
936         (__CPU_EQUAL_S): Likewise.
937         (__CPU_OP_S): Likewise.
939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
940         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
941         this gratuitous change and we have to keep compatibility.
942         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
943         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
945         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
946         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
947         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
949 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
951         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
952         of parameters of sync_file_range.
953         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
955         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
956         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
957         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
958         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
960 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
962         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
963         Implement using sync_file_range2 syscall if __NR_sync_file_range2
964         is defined.
965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
966         file.
968 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
970         * posix/bug-regex30.c: New file.
971         * posix/Makefile: Add rules to build and run bug-regex30.
972         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
973         character lead bytes when there is a range in a COMPLEX_BRACKET.
974         Reported by Oleg Bylatov.
976 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
978         [BZ #10969]
979         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
980         * locale/tst-duplocale.c: New file.
981         * locale/Makefile (tests): Add tst-duplocale.
983         [BZ #10968]
984         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
985         Patch by Bruno Haible <bruno@clisp.org>.
986         * locale/tst-locname.c: New file.
987         * locale/Makefile (tests): Add tst-locname.
989         [BZ #10972]
990         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
991         constants from recent kernels.
992         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
993         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
994         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
995         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
996         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
997         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
999 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1001         [BZ #10162]
1002         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1003         software pipeline.
1005 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1007         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1008         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1009         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1011 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1013         * posix/bug-regex29.c: Include stdio.h.
1015 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1017         [BZ #10939]
1018         * Versions.def: Define GLIBC_2.12 for libc.
1019         * manual/errno.texi: Add ERFKILL entry.
1020         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1021         for 2.12.
1022         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1023         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1025         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1026         F_GETOWN_EX definitions according to corrected kernel definitions.
1027         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1028         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1030         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1031         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1032         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1034 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1036         * version.h: Bump for 2.12 development.
1038 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1040         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1041         out of buffer space.
1042         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1043         map_v4v6_hostent running out of space.
1045 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1047         * string/bits/string3.h (memset): If the second parameter is constant
1048         and zero there is likely no transposition.
1049         Patch by Caolan McNamara <caolanm@redhat.com.
1051 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1053         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1054         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1056 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1058         * malloc/memusagestat.c (main): Fix spelling in an error message.
1060 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1062         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1063         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1065 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1068         readahead.
1070 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1072         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1073         relocate opd entry when resolving prelink conflicts.
1075 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1077         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1078         when -D_FILE_OFFSET_BITS=64.
1080         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1081         of last two arguments when -D_FILE_OFFSET_BITS=64.
1082         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1083         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1084         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1085         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1086         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1087         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1089 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1091         [BZ #4457]
1092         * sysdeps/generic/libgcc_s.h: New file.
1093         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1095 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1097         * malloc/hooks.c (free_check): Restore locking and call _int_free
1098         appropriately.
1100 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1102         * version.h (VERSION): Bump for 2.11 release.
1103         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1105         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1107         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1109         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1110         to avoid warning.
1111         * stdlib/tst-strtoll.c (tests): Likewise.
1113         [BZ #9986]
1114         * time/strftime_l.c (__strftime_internal): Allow %OC.
1116         * misc/mkostemps.c: New file.
1117         * misc/mkostemps64.c: New file.
1119 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1121         * locale/programs/locale-spec.c: Include <error.h> and
1122         <libintl.h>.
1124         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1126 2009-10-28  Roland McGrath  <roland@redhat.com>
1128         * Makefile (dist-prepare): New target.
1129         (tag-for-dist): Target removed.
1130         (glibc-%.tar): Pattern rule removed.
1131         (%.tar): New pattern rule, does simple use of git archive.
1132         (dist-version): Remove variable definition.
1133         (dist): Just depend on that.  Add .tar.xz dependency.
1134         If dist-version variable not set on command line, depend on
1135         dist-prepare, re-invoke with dist-version set via git describe.
1137         * Makerules (%.xz): New pattern rule.
1139 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1141         * elf/ifuncdep2.c: Include ifunc-sel.h.
1142         (global): Delete.
1143         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1144         * elf/ifuncmain1.c (global): Delete.
1145         * elf/ifuncmain1vis.c: Likewise.
1146         * elf/ifuncmain2.c: Likewise.
1147         * elf/ifuncmain5.c: Likewise.
1148         * elf/ifuncmod3.c: Likewise.
1149         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1150         (foo_ifunc): Use ifunc_one.
1151         * elf/ifuncmain7.c: Likewise.
1152         * elf/ifuncmod1.c: Include ifunc-sel.h.
1153         (global): Define protected var.
1154         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1155         * elf/ifuncmod5.c: Likewise.
1156         * sysdeps/generic/elf/ifunc-sel.h: New file.
1157         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1159 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1161         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1162         (R_PPC_REL16*): Correct comments.
1163         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1164         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1165          R_PPC64_REL16_HA): Define.
1166         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1167         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1168         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1169         Delete unused "reloc" param.
1170         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1171         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1172         Delete "reloc" param.
1173         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1174         R_PPC_IRELATIVE.
1175         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1176         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1177         relocations.
1179 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1181         [BZ #10315]
1182         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1183         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1184         UDP_ENCAP_L2TPINUDP.
1186         [BZ #10349]
1187         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1188         parameter, specifying length of prefix.
1189         * stdio-common/tempname.c: Likewise.
1190         * include/stdio.h: Adjust prototypes.
1191         * libio/oldtmpfile.c: Adjust caller.
1192         * misc/mkdtemp.c: Likewise.
1193         * misc/mkostemp.c: Likewise.
1194         * misc/mkostemp64.c: Likewise.
1195         * misc/mkstemp.c:  Likewise.
1196         * misc/mkstemp64.c: Likewise.
1197         * misc/mktemp.c: Likewise.
1198         * stdio-common/tempnam.c: Likewise.
1199         * stdio-common/tmpfile.c: Likewise.
1200         * stdio-common/tmpnam.c: Likewise.
1201         * stdio-common/tmpnam_r.c: Likewise.
1202         * misc/mkstemps.c: New file.
1203         * misc/mkstemps64.c: New file.
1204         * stdlib/stdlib.h: Add prototypes.
1205         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1206         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1208 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1210         * locale/iso-639.def: Add sml entry.
1212         [BZ #10391]
1213         * resolv/res_send.c (send_dg): Initialize resplen.
1215         [BZ #10446]
1216         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1217         definition to the kernel's.
1218         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1220 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1222         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1223         offsets and record sizes in assert()s and response sending.
1224         * nscd/grpcache.c: Likewise.
1225         * nscd/hstcache.c: Likewise.
1226         * nscd/initgrcache.c: Likewise.
1227         * nscd/pwdcache.c: Likewise.
1229 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1231         [BZ #10540]
1232         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1233         /etc/hosts does not exist set errnop and herrnop appropriately.
1234         Patch by Steve Langasek <vorlon@debian.org>.
1236         [BZ #10553]
1237         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1238         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1240         [BZ #10564]
1241         * login/utmp_file.c (TIMEOUT): Increase to 10.
1243         [BZ #10609]
1244         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1245         for file names in case the syscall is not available.
1246         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1247         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1248         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1249         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1250         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1251         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1252         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1253         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1254         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1255         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1256         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1257         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1258         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1259         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1260         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1261         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1262         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1264         [BZ #10643]
1265         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1266         creation filed, remove the request from the 'requests' list and signal
1267         the caller that the request is finished.
1269         [BZ #10692]
1270         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1271         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1273         [BZ #10713]
1274         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1275         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1277         [BZ #10780]
1278         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1279         overflows the int return type.
1281         [BZ #10717]
1282         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1283         have to compute maxsize_total, we have to update the variables, and
1284         the also_total handling must happen after the repair.
1286         [BZ #10742]
1287         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1288         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1290 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1292         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1293         errno is always set when returning unsuccessfully.
1295 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1297         * malloc/memusage.c (update_data): Fix index wraparound handling
1298         so that buffer_cnt is actually reset.
1300 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1302         [BZ #10784]
1303         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1304         of the directory we look at into the static buffer if there is one
1305         at the start of the loop.
1307         [BZ #10789]
1308         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1309         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1311         [BZ #10840]
1312         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1313         __ASSUME_F_GETOWN_EX.
1314         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1315         if possible.
1316         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1318         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1319         and f_owner_ex.
1320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1321         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1322         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1323         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1324         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1325         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1327         [BZ #10847]
1328         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1329         getutmpx symbol.
1331         [BZ #10823]
1332         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1333         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1335 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1337         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1339 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1341         [BZ #10817]
1342         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1343         Reported by Ray Chason.
1345 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1347         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1348         strend-sse4.
1349         * sysdeps/x86_64/multiarch/strchr.S: New file.
1350         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1351         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1353 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1355         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1357 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1359         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1360         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1361         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1362         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1363         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1364         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1365         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1366         __ieee751_expl to handle overflow.
1368 2009-10-14  David S. Miller  <davem@davemloft.net>
1370         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1371         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1373 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1375         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1376         !USE_MULTIARCH.
1378 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1380         [BZ #10730]
1381         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1382         Patch in part by Steve Ward <planet36@gmail.com>.
1384         [BZ #10731]
1385         * stdlib/rand_r.c: Fix typo.
1387         * po/cs.po: Update from translation team.
1389 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1391         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1392         returning if RTLD_NOLOAD.
1394 2009-10-06  Roland McGrath  <roland@redhat.com>
1396         * sysdeps/x86_64/multiarch/strstr-c.c
1397         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1399         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1400         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1402         * sysdeps/x86_64/multiarch/init-arch.h
1403         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1404         (HAS_CPU_FEATURE): New macro.
1405         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1406         * sysdeps/x86_64/multiarch/init-arch.c
1407         (__get_cpu_features): #undef it before definition.
1409 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1411         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1412         first_weekday to 1 and first_workday to 2.
1414 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1416         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1417         F_GETOWN_EX.
1418         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1419         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1421         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1422         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1423         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1425 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1427         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1428         * stdio-common/vfprintf.c: Likewise.
1430 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1432         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1433         (mkdirat): Call __directory_name_split_at instead of
1434         __directory_name_split.
1436 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1438         * locale/programs/locale-spec.c (locale_special): If nothing matches
1439         fail with an appropriate message.
1441 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1443         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1444         and XX.
1446 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1448         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1449         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1451 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1453         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1455 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1457         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1458         character size elements in step data.
1460 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1462         * po/hu.po: Update from translation team.
1463         * po/vi.po: Likewise.
1465 2009-09-19  Roland McGrath  <roland@redhat.com>
1467         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1469 2009-09-15  Roland McGrath  <roland@redhat.com>
1471         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1472         * nptl/sysdeps/pthread/configure: Regenerated.
1473         * nptl/sysdeps/x86_64/configure: Regenerated.
1474         * sysdeps/unix/sysv/linux/configure: Regenerated.
1475         * sysdeps/x86_64/elf/configure: Regenerated.
1477         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1479         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1480         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1481         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1482         * configure: Regenerated.
1484 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1486         * posix/getconf.c (main): Handle -- on command line.
1488 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1490         * configure.in: Support binutils 2.100 and 3.0.
1492 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1495         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1496         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1497         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1499 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1501         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1502         unnamed_section_defined field.
1503         (collate_read): Test and set unnamed_section_defined.
1505         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1506         _POSIX2_LINE_MAX.
1508 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1510         * configure.in: Support binutils 2.20.
1512 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1514         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1515         __strstr_ia32): Add attribute_hidden.
1517 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1519         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1520         parsing of group entry.
1522 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1524         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1525         external buffer.  Always discard readahead in internal buffer.
1526         * libio/Makefile (tests): Add bug-wsetpos.
1527         * libio/bug-wsetpos.c: New file.
1529 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1531         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1532         Add attribute_hidden.
1533         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1534         __strcasestr_sse2): Likewise.
1535         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1536         (__fma_fma): Make static.
1537         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1538         (__fmaf_fma): Make static.
1540 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1542         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1543         reformulate in-buffer optimisation check to match code in
1544         _IO_new_file_seekoff.
1546 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1548         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1549         to srwi in 32-bit memcpy for power6.
1551 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1553         * include/stdio.h: Declare hidden proto for fflush.
1554         * libio/iofflush.c: Add hidden weak alias for fflush.
1556 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1558         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1559         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1561 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1563         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1565 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1567         [BZ #10560]
1568         * malloc/malloc.c: Add local assert definition to avoid problems with
1569         memory allocation in the real one.
1571 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1573         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1574         Removed.
1575         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1576         turn off SSSE3 on Atom.
1578 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1580         * stdlib/tst-strtol.c (tests): More tests.
1581         * stdlib/tst-strtoll.c (tests): Likewise.
1583 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1585         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1587         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1589 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1591         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1592         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1594         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1596         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1598         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1600 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1602         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1604 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1606         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1607         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1609         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1611         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1612         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1614         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1615         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1617         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1618         leftover YMM_SIZE definition.
1620 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1622         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1623         union.
1624         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1625         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1626         Redefine.
1627         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1629         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1630         and SET_FLOAT_WORD definitions.
1632 2009-08-24  Roland McGrath  <roland@redhat.com>
1634         * sysdeps/unix/syscall-template.S: New file.
1635         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1636         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1637         (compile-syscall): Pass mkdep and -g options as normal.
1638         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1639         (common-generated): Don't add them here.
1641 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1643         * math/s_fdim.c: In case of overflows set errno.
1644         * math/s_fdimf.c: Likewise.
1645         * math/s_fdiml.c: Likewise.
1647         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1648         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1649         are using the inline optimizations.
1651         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1652         (__signbitf): Likewise.
1654 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1656         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1657         terminated.
1658         * posix/Makefile (tests): Add bug-regex29.
1659         * posix/bug-regex29.c: New file.
1661         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1662         older POSIX versions are selected.
1664         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1665         as well.
1666         * stdio-common/printf_fphex.c: Likewise.
1667         * stdio-common/tstdiomisc.c: Add more tests.
1669         * locale/locale.h: Include xlocale.h and the thread-local locale
1670         declarations for XPG7, not XPG6.
1672 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1674         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1675         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1678         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1679         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1681 2009-08-20  Roland McGrath  <roland@redhat.com>
1683         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1684         Use l_addr instead of l_map_start (dli_fbase).
1685         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1686         address when there is no proximate symbol.
1687         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1688         Likewise.
1690 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1692         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1694 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1696         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1697         Also handle SIGINT.  In that case only do the cleanup and then
1698         re-raise the signal.
1699         (main): Install handler for SIGINT.
1701 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1703         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1704         clobber list.
1706 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1708         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1709         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1710         tst-auditmod7b.c.
1711         (tests): Add tst-audit6 tst-audit7.
1712         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1713         tst-auditmod7a tst-auditmod7b.
1714         ($(objpfx)tst-audit6): New.
1715         ($(objpfx)tst-audit6.out): Likewise.
1716         ($(objpfx)tst-audit7): Likewise.
1717         ($(objpfx)tst-audit7.out): Likewise.
1718         (tst-audit6-ENV): Likewise.
1719         (tst-audit7-ENV): Likewise.
1720         (CFLAGS-tst-auditmod6b.c): Likewise.
1721         (CFLAGS-tst-auditmod6c.c): Likewise.
1722         (CFLAGS-tst-auditmod7b.c): Likewise.
1723         * elf/tst-audit6.c: New file.
1724         * elf/tst-audit7.c: New file.
1725         * elf/tst-auditmod6a.c: New file.
1726         * elf/tst-auditmod6b.c: New file.
1727         * elf/tst-auditmod6c.c: New file.
1728         * elf/tst-auditmod7a.c: New file.
1729         * elf/tst-auditmod7b.c: New file.
1730         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1731         saving and restoring SSE/AVX registers to ...
1732         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1734 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1736         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1737         only if SHARED is defined.
1738         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1740 2009-08-03  Jim Meyering  <meyering@redhat.com>
1742         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1744 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1746         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1747         section as the other functions for this architecture.
1748         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1750 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1752         * sysdeps/x86_64/strcmp.S: Add support to compile with
1753         USE_SSSE3.  In this case palignr is used.
1754         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1755         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1756         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1757         Add strcmp-ssse3 and strncmp-ssse3.
1758         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1759         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1761         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1762         warning through fake initialization.
1764 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1766         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1768 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1770         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1771         unique symbols.
1773 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1775         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1776         EBX from EAX = 1.  Handle EAX = 11.
1778 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1780         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1781         inside ''.
1783 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1785         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1786         hidden IFUNC functions.
1787         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1789         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1791         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1792         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1793         strcasestr-c.
1794         (CFLAGS-strcspn-c.c): Define.
1795         (CFLAGS-strpbrk-c.c): Define.
1796         (CFLAGS-strspn-c.c): Define.
1797         (CFLAGS-strstr.c): Define.
1798         (CFLAGS-strcasestr.c): Define.
1799         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1800         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1801         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1802         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1803         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1804         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1805         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1806         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1807         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1808         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1809         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1810         -16L instead of 0xfffffffffffffff0L.
1811         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1813 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1815         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1817 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1819         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1820         another rewrite.  Much smaller and faster.
1821         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1823         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1824         ss_flags from the correct location.
1826 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1828         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1829         * sysdeps/i386/i686/cacheinfo.c: New file.
1830         * sysdeps/i386/i686/multiarch/Makefile: New file.
1831         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1832         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1833         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1834         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1835         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1836         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1837         (__cpuid_count): New. Provide the default.
1838         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1839         (__x86_64_preferred_memory_instruction): Define only if
1840         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1841         (intel_check_word): Use __cpuid.
1842         (handle_intel): Likewise.
1843         (handle_amd): Likewise.
1844         (__cache_sysconf): Likewise.
1845         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1846         (__cache_sysconf): Likewise.
1847         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1848         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1849         (get_common_indeces): Use __cpuid.
1850         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1851         if ENABLE_SSSE3_ON_ATOM is not defined.
1852         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1853         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1854         popcnt instead of popcntq.
1856 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1858         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1860 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1862         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1863         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1864         which always causes a compile error.
1866         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1868         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1869         comes from...
1870         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1871         which always causes a compile error.
1873         * debug/Makefile (tests): Add tst-longjmp_chk2.
1874         * debug/tst-longjmp_chk2.c: New file.
1876         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1877         Remove incorrect use of BP_SYM.
1878         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1879         here now since it is more complex than just a simple check.
1881         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1882         we make no more progress.
1884 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1886         * math/s_fma.c: Don't define alias if __fma is a macro.
1887         * math/s_fmaf.c: Likewise.
1888         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1889         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1890         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1892         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1893         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1894         New macro HAS_FMA.
1895         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1896         function.
1897         * include/libc-symbols.h (libm_ifunc): Define.
1898         * sysdeps/x86_64/multiarch/Versions: New file.
1900         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1902 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1904         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1906 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1908         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1909         call that registers used in calling conventions need to be preserved.
1910         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1911         to preserve register content if necessary.
1912         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1913         (_dl_x86_64_restore_sse): New function.
1914         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1915         is allowed to modify xmm/ymm registers.
1917         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1918         application's perspective.
1919         * stdio-common/scanf17.c: Likewise.
1921 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1923         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1924         size to memsz.
1925         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1926         here.
1927         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1928         two steps to catch bugs.
1930 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1932         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1933         determines which files are used in runtime lookups and only checks
1934         those for SSE use.
1935         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1936         testing.
1937         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1938         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1939         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1940         take a while.
1942         * elf/dl-open.c: Move _dl_scope_free to...
1943         * elf/dl-scope.c: ...here.  New file.
1944         * elf/Makefile (dl-routines): Add scope.
1946         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1947         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1948         RES_USE_DNSSEC.
1949         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1950         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1951         all the places we handled RES_USE_EDNS0 only before.
1952         Patch by Adam Tkac <atkac@redhat.com>.
1954 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1956         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1957         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1958         Update size when reallocating.
1960 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1962         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1963         functions used in ld.so modify xmm/ymm registers.
1964         * sysdeps/x86_64/Makefile:  Hook new test up.
1965         * sysdeps/x86_64/rtld-memchr.c: New file.
1966         * sysdeps/x86_64/rtld-memcmp.c: New file.
1967         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1968         * sysdeps/x86_64/rtld-strchr.S: New file.
1969         * sysdeps/x86_64/rtld-strlen.S: New file.
1970         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1971         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1973 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1975         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1976         strncmp-c.
1977         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1978         (exit): Likewise.
1979         (Byte1): Likewise.
1980         (Byte2): Likewise.
1981         (Byte3): Likewise.
1982         (Byte4): Likewise.
1983         (Byte5): Likewise.
1984         (Byte6): Likewise.
1985         (next_8_bytes): Likewise.
1986         (Byte0): Remove commented out codes.
1987         (unaligned_table): Align jump table at 8 bytes.
1988         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1989         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1990         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1991         * sysdeps/x86_64/strncmp.S: New file.
1993 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1995         [BZ #10422]
1996         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1997         kernels, dropped when eventfd2 support was added.
1998         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1999         kernels, dropped when signalfd4 support was added.
2000         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2001         added, name them.
2003         [BZ #10452]
2004         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2005         replies up.
2007         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2009 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2011         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2012         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2014         [BZ #10448]
2015         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2016         callback we must touch the status to avoid using stale value.
2018         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2019         compiled in.
2021 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2023         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2024         /lib/modules/* headers anymore.  We have sane headers in the standard
2025         place now.
2027 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2029         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2030         "etf3enh" and "highgprs" added.
2031         (_dl_s390_platforms): "z10" added.
2032         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2033         Increased for the new entries.
2034         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2035         HWCAP_S390_HIGH_GPRS added.
2037         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2038         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2039         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2040         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2041         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2043 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2045         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2046         avoid additional cpuid instructions.  Most of the information is
2047         stored somewhere.
2049         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2050         cache descriptors.
2051         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2053         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2054         SSSE3 bit for Atoms.
2055         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2056         here anymore.
2058         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2059         structure before copying it to avoid warning.
2060         * posix/tst-rfc3484-2.c (do_test): Likewise.
2061         * posix/tst-rfc3484-3.c (do_test): Likewise.
2063         [BZ #10416]
2064         * include/unistd.h: Make header file suitable for C++ test cases.
2065         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2067         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2068         stack alignment in the exit code.
2070         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2071         potentially be zero.
2073         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2074         unique symbol definition.
2075         Patch by Jakub Jelinek.
2076         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2077         make sure the object with the definition cannot be unloaded.  Adjust
2078         a few types.
2079         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2080         the unique symbol hash table should not be const.
2082 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2084         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2085         unnecesary variables.  Comment fixes.
2087 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2089         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2090         Use NONASCII_CASE information provided by the locale to determine
2091         whether optimized string load function can be used.  Minor cleanups.
2093 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2095         * string/strcasestr.c (STRCASESTR): New macro.
2096         (__strcasestr): Renamed to ..
2097         (STRCASESTR): ...this.
2098         * string/strstr.c (STRSTR): New macro.
2099         (strstr): Renamed to ..
2100         (STRSTR): ...this.
2101         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2102         strstr-c strcasestr-c
2103         (CFLAGS-strstr.c): New.
2104         (CFLAGS-strcasestr.c): Likewise.
2105         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2106         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2107         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2108         * sysdeps/x86_64/multiarch/strstr.c: New file.
2110 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2112         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2113         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2114         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2115         _NL_CTYPE_NONASCII_CASE.
2116         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2117         field.
2118         (ctype_finish): Check whether there are any 8-bit characters outside
2119         the range ASCII has or whether the mapping isn't the same as for
2120         ASCII (±0x20).  Set nonascii_case appropriately.
2121         (ctype_output): Add output handler for nonascii_case.
2123 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2125         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2126         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2128 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2130         [BZ #10360]
2131         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2132         0xffff in the EDNS0 record.
2134 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2136         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2137         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2138         is written before the list head update.
2139         Patch by Andreas Schwab <aschwab@redhat.com>.
2141 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2142             Jakub Jelinek  <jakub@redhat.com>
2144         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2145         corruption thread-safe.
2147 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2149         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2150         overrides atomic_compare_and_exchange_val_rel, define to
2151         atomic_compare_and_exchange_val_rel by default, otherwise default
2152         to catomic_compare_and_exchange_val_acq.
2153         (catomic_compare_and_exchange_bool_rel): If arch overrides
2154         atomic_compare_and_exchange_bool_rel, define to
2155         atomic_compare_and_exchange_bool_rel by default.
2156         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2157         Use catomic_compare_and_exchange_val_rel instead of
2158         catomic_compare_and_exchange_val_acq.
2160 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2162         * sysdeps/generic/ldsodefs.h: Add prototype for
2163         _dl_higher_prime_number.
2164         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2166         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2167         restoring of ymm registers a bit.
2169 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2171         * sysdeps/x86_64/memcmp.S: New file.
2173 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2175         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2176         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2177         pointers in writable memory.
2179 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2181         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2182         * config.make.in: Add config-cflags-avx entry.
2183         * configure.in: Substitute libc_cv_cc_avx.
2184         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2185         * elf/tst-audit4.c: New file.
2186         * elf/tst-audit5.c: New file.
2187         * elf/tst-auditmod4a.c: New file.
2188         * elf/tst-auditmod4b.c: New file.
2189         * elf/tst-auditmod5a.c: New file.
2190         * elf/tst-auditmod5b.c: New file.
2191         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2192         link-defines.sym.
2193         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2194         (La_x86_64_vector): Likewise.
2195         (La_x86_64_regs): Append lr_vector.
2196         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2197         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2198         saving and restoring SSE registers to ...
2199         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2200         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2201         <link-defines.h>.
2202         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2203         La_x86_64_regs.  Allocate extra space and jump to memory at
2204         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2205         (save_and_restore_vector_sse): New.
2206         (save_and_restore_vector_avx): Likewise.
2207         (check_avx): Likewise.
2208         (save_and_restore_vector): Likewise.
2209         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2210         HAVE_AVX_SUPPORT.
2211         * sysdeps/x86_64/link-defines.sym: New file.
2213 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2215         * elf/do-lookup.h: Removed after folding content into...
2216         * elf/dl-lookup.c: ...here.
2218         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2220 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2222         * configure.in: Check for gnu_unique_symbol symbol type.
2223         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2224         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2225         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2226         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2227         change.
2228         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2229         unique symbol table.
2230         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2231         for first namespace.
2232         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2233         unique symbol hash table.
2234         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2235         * elf/tst-unique1.c: New file.
2236         * elf/tst-unique1mod1.c: New file.
2237         * elf/tst-unique1mod2.c: New file.
2238         * elf/tst-unique2.c: New file.
2239         * elf/tst-unique2mod1.c: New file.
2240         * elf/tst-unique2mod2.c: New file.
2242 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2244         * elf/elf.h (STB_GNU_UNIQUE): Define.
2246         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2247         from...
2248         * include/inline-hashtab.h: ...here.
2249         (htab_expand): Adjust for renamed function.  Correct memory handling.
2251 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2253         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2255 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2257         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2258         (PPC_FEATURE_HAS_VSX): Likewise.
2260 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2262         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2263         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2265         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2266         aligned to 16 byte boundaries.
2267         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2268         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2269         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2271 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2273         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2274         * config.make.in (config-cflags-sse4): New variable.
2275         * configure.in: Substitute libc_cv_cc_sse4.
2276         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2277         HAVE_SSE4_SUPPORT.
2278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2279         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2280         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2281         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2282         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2283         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2284         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2285         * sysdeps/x86_64/multiarch/strspn.S: New file.
2287 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2289         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2290         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2291         (tests): Add tst-audit3 for x86_64.
2292         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2293         ($(objpfx)tst-audit3): Define.
2294         ($(objpfx)tst-audit3.out): Define.
2295         (tst-audit3-ENV): Define.
2296         * elf/tst-audit3.c: New file.
2297         * elf/tst-auditmod3a.c: New file.
2298         * elf/tst-auditmod3b.c: New file.
2299         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2300         and restore xmm6.
2302         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2303         (__stpncpy): Renamed to ...
2304         (STPNCPY): This.
2305         (stpncpy): Create alias only if STPNCPY is not defined.
2306         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2307         defined.
2308         (strncpy): Renamed to ...
2309         (STRNCPY): This.
2310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2311          stpncpy-c strncpy-c for string.
2312         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2313         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2314         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2315         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2316         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2317         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2319 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2321         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2322         adding to fast bin list.
2324 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2326         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2327         inet_makeaddr.  This worked only with class-based networks.
2328         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2329         Likewise.
2331         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2332         recognize all types.
2333         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2334         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2335         be in host byte order.
2337 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2339         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2340         (MODEL_OFFSET): Define.
2341         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2342         family and model.
2343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2344         out common code into new function get_common_indeces. Determine
2345         extended family and model for Intel processors.
2347 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2349         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2350         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2351         option.
2352         * resolv/res_send.c (reopen): New function.  Broken out of...
2353         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2354         fallback mechanism.  If single-request fails switch to
2355         single-request-reopen mode which opens a new socket for the second
2356         request.
2358 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2360         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2361         (CHECK_SP): Use it.
2363 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2365         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2366         for saved registers.
2367         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2368         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2369         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2371 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2373         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2375 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2377         * po/id.po: Update from translation team.
2379         * po/bg.po: Update from translation team.
2381 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2383         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2384         defined.
2385         (strncmp): Renamed to STRNCMP.
2386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2387         strncmp-c for string.
2388         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2389         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2390         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2391         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2393 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2395         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2396         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2397         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2398         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2399         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2400         ifuncmain7static.c.
2401         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2402         ifuncmain7static, and ifuncmain7picstatic.
2403         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2404         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2405         $(objpfx)ifuncmain7pie.out.
2406         (modules-names): Add ifuncmod5 ifuncmod6
2407         (ifuncmod5.so-no-z-defs): Define.
2408         (ifuncmod6.so-no-z-defs): Define.
2409         (CFLAGS-ifuncmain5pic.c): Define.
2410         (CFLAGS-ifuncmain5picstatic.c): Define.
2411         (CFLAGS-ifuncmain5staticpic.c): Define.
2412         (CFLAGS-ifuncdep5pic.c): Define.
2413         (CFLAGS-ifuncmain7pic.c): Define.
2414         (CFLAGS-ifuncmain7picstatic.c): Define.
2415         (CFLAGS-ifuncmain1staticpie.c): Define.
2416         (CFLAGS-ifuncmain5pie.c): Define.
2417         (CFLAGS-ifuncmain6pie.c): Define.
2418         (CFLAGS-ifuncmain7pie.c): Define.
2419         ($(objpfx)ifuncmain1staticpie.out): Define.
2420         ($(objpfx)ifuncmain1staticpie): Define.
2421         ($(objpfx)ifuncmain5pie.out): Define.
2422         ($(objpfx)ifuncmain5pie): Define.
2423         ($(objpfx)ifuncmain6pie.out): Define.
2424         ($(objpfx)ifuncmain6pie): Define.
2425         ($(objpfx)ifuncmain5): Define.
2426         ($(objpfx)ifuncmain5pic): Define.
2427         ($(objpfx)ifuncmain5static): Define.
2428         ($(objpfx)ifuncmain5staticpic): Define.
2429         ($(objpfx)ifuncmain5picstatic): Define.
2430         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2431         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2432         ifuncmain6pie.out.
2433         * elf/b/elf/ifuncmain1staticpie.c: New file.
2434         * elf/ifuncdep5.c: New file.
2435         * elf/ifuncdep5pic.c: New file.
2436         * elf/ifuncmain5.c: New file.
2437         * elf/ifuncmain5pic.c: New file.
2438         * elf/ifuncmain5picstatic.c: New file.
2439         * elf/ifuncmain5pie.c: New file.
2440         * elf/ifuncmain5static.c: New file.
2441         * elf/ifuncmain5staticpic.c: New file.
2442         * elf/ifuncmain6pie.c: New file.
2443         * elf/ifuncmain7.c: New file.
2444         * elf/ifuncmain7pic.c: New file.
2445         * elf/ifuncmain7picstatic.c: New file.
2446         * elf/ifuncmain7pie.c: New file.
2447         * elf/ifuncmain7static.c: New file.
2448         * elf/ifuncmod5.c: New file.
2449         * elf/ifuncmod6.c: New file.
2451 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2453         [BZ #10085]
2454         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2455         (nss_endgrent): New variable.
2456         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2457         fields. Change type of files to bool and adjust all users.
2458         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2459         (internal_endgrent): Call nss_endgrent if necessary.
2460         (add_group): New function.  Broken out of...
2461         (check_and_add_group): ...here.
2462         (getgrent_next_nss): Remove test that any callback is available.
2463         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2464         callback.  If there is no blacklist we can trust the results returned
2465         by the initgroups_dyn callback.  In case there is a callback and we
2466         find a group entry for the group ID but it doesn't contain the
2467         correct member, switch to the slow mode and use getgrent_r.
2468         (internal_getgrent_r): When we see a +: entry, determine whether
2469         there is any callback and which we can use the initgroups_dyn
2470         callback.
2472 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2474         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2475         (_int_free): Likewise.
2477         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2478         AF_IEEE802154.
2479         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2480         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2481         and ARPHRD_IEEE802154_PHY.
2483         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2484         relative to generic Linux version.
2486 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2488         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2489         ($(objpfx)ifuncmain1vispie): Likewise.
2491 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2493         * login/Makefile: Build pt_chown as PIE.
2495 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2497         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2498         a format string.
2499         * elf/sln.c (usage): Likewise.
2500         * malloc/memusage.sh (do_help): Likewise.
2501         * nss/getent.c (more_help): Likewise.
2502         * posix/getconf.c (main): Likewise.
2503         * sunrpc/rpcinfo.c (usage): Likewise.
2504         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2506 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2508         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2509         those needed.
2510         * login/Makefile: If necessary link pt_chown with -lcap.
2511         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2512         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2514 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2516         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2517         comparisons.
2518         * string/test-memchr.c (do_random_tests): Test very large lengths
2519         as well.
2521 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2523         * Makeconfig (+link-pie): Define.
2524         (+prectorS): Define.
2525         (+postctorS): Define.
2526         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2527         * nscd/Makefile ($(objpfx)nscd): Likewise.
2529 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2531         [BZ #10107]
2532         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2533         with cmplwi.
2534         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2536 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2538         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2539         into ...
2540         * sysdeps/unix/grantpt.c: ...here.
2542 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2544         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2545         chmod if it is necessary.
2547         [BZ #10166]
2548         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2549         when the slave device is in devpts or devfs.
2551         [BZ #10183]
2552         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2554         [BZ #10195]
2555         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2556         of nd_opt_home_agent_info_preference to uint16_t.
2557         Patch by Arnaud Ebalard <arno@natisbad.org>.
2559         [BZ #10207]
2560         * nss/getent.c: Add support for printing gshadow data.
2562         [BZ #10203]
2563         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2564         not just the currently used one and those which follow.
2565         Patch by Joe Landers <jlanders@vmware.com>.
2567         [BZ #10196]
2568         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2569         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2570         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2572         [BZ #10217]
2573         * stdlib/abort.c: Define variable __abort_msg.
2574         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2575         * include/stdlib.h: Declare __abort_msg.
2576         * assert/assert-perr.c: Don't free buffer for message immediately.
2577         Store atomically in __abort_msg and free old buffer if necessary.
2578         * assert/assert.c: Likewise.
2579         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2580         store pointer in __abort_msg, and possibly free old string.
2581         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2583         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2585         [BZ #10211]
2586         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2587         handle leap seconds if they are available.
2588         Patch by Akinori Hattori <hattya@gentoo.org>.
2590         * timezone/tzselect.ksh: Update from tzcode2009i.
2591         * timezone/zdump.c: Likewise.
2592         * timezone/zic.c: Likewise.
2594         * timezone/africa: Update from tzdata2009i.
2595         * timezone/antarctica: Likewise.
2596         * timezone/asia: Likewise.
2597         * timezone/australasia: Likewise.
2598         * timezone/backward: Likewise.
2599         * timezone/etcetera: Likewise.
2600         * timezone/europe: Likewise.
2601         * timezone/factory: Likewise.
2602         * timezone/iso3166.tab: Likewise.
2603         * timezone/leapseconds: Likewise.
2604         * timezone/northamerica: Likewise.
2605         * timezone/pacificnew: Likewise.
2606         * timezone/solar87: Likewise.
2607         * timezone/solar88: Likewise.
2608         * timezone/solar89: Likewise.
2609         * timezone/southamerica: Likewise.
2610         * timezone/systemv: Likewise.
2611         * timezone/yearistype: Likewise.
2612         * timezone/zone.tab: Likewise.
2614 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2616         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2617         STT_GNU_IFUNC symbol or in 8 into type_class.
2619         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2620         instead of Elf64_Addr.
2622 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2624         * po/sv.po: Update from translation team.
2626         [BZ #10229]
2627         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2628         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2629         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2630         the C version.
2632 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2634         * Versions.def: Add GLIBC_2.11 for libpthread.
2636 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2638         * resolv/res_send.c (send_dg): Remember we switched to
2639         single-request mode.
2641 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2643         * dlfcn/dlfcn.h: Remove comma at end of enum.
2644         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2646         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2647         parsing mode string.
2649 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2651         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2653         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2655         * sysdeps/x86_64/multiarch/strlen.S: New file.
2656         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2657         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2658         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2659         content.
2661         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2662         is defined.
2664 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2666         * sysdeps/x86_64/strlen.S: Minor optimizations.
2668 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2670         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2671         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2672         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2673         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2674         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2675         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2676         ifuncmain3.c, ifuncmod3.c,.
2677         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2678         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2679         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2680         ifuncmain4picstatic.
2681         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2682         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2683         ifuncmain3, ifuncmain4.
2684         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2685         $(objpfx)ifuncmain1vispie.out.
2686         (modules-names): Add ifuncmod1 ifuncmod3.
2687         (generated): Add ifuncmain1pie ifuncmain1pie.out
2688         ifuncmain1vispie ifuncmain1vispie.out.
2689         Define rules to build and run the tests.
2690         * elf/ifuncdep1.c: New file.
2691         * elf/ifuncdep1pic.c: New file.
2692         * elf/ifuncdep2.c: New file.
2693         * elf/ifuncdep2pic.c: New file.
2694         * elf/ifuncmain1.c: New file.
2695         * elf/ifuncmain1pic.c: New file.
2696         * elf/ifuncmain1picstatic.c: New file.
2697         * elf/ifuncmain1pie.c: New file.
2698         * elf/ifuncmain1static.c: New file.
2699         * elf/ifuncmain1staticpic.c: New file.
2700         * elf/ifuncmain1vis.c: New file..
2701         * elf/ifuncmain1vispic.c: New file..
2702         * elf/ifuncmain1vispie.c: New file.
2703         * elf/ifuncmain2.c: New file.
2704         * elf/ifuncmain2pic.c: New file.
2705         * elf/ifuncmain2picstatic.c: New file.
2706         * elf/ifuncmain2static.c: New file.
2707         * elf/ifuncmain3.c: New file.
2708         * elf/ifuncmain4.c: New file.
2709         * elf/ifuncmain4picstatic.c: New file.
2710         * elf/ifuncmain4static.c: New file.
2711         * elf/ifuncmod1.c: New file.
2712         * elf/ifuncmod3.c: New file.
2714 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2716         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2718 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2720         [BZ #10221]
2721         * posix/Makefile (routines): Add execvpe.
2722         * posix/Versions: Export execvpe for GLIBC_2.11.
2723         * posix/execvp.c: Now only a wrapper.  Move code to...
2724         * posix/execvpe.c: ...here.  New file.
2725         * posix/unistd.h: Declare execvpe.
2727 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2729         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2730         for STT_GNU_IFUNC handling for efficiency.
2731         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2733         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2734         _exit.
2735         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2737 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2739         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2740         for !SHARED.
2742 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2744         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2745         is not defined.
2746         (__rela_iplt_start): New declaration.
2747         (__rela_iplt_end): Likewise.
2748         (__rel_iplt_start): Likewise.
2749         (__rel_iplt_end): Likewise.
2750         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2751         * elf/elf.h (R_386_IRELATIVE): New macro.
2752         (R_X86_64_IRELATIVE): New macro.
2753         (R_386_NUM): Updated.
2754         (R_X86_64_NUM): Likewise.
2755         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2756         (libc_ifunc_hidden_def): New macro.
2757         * sysdeps/generic/dl-irel.h: New file.
2758         * sysdeps/i386/dl-irel.h: New file.
2759         * sysdeps/x86_64/dl-irel.h: New file.
2760         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2761         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2762         Handle R_386_IRELATIVE.
2763         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2764         (elf_machine_lazy_rela): Likewise.
2765         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2766         R_X86_64_IRELATIVE.
2767         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2769 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2771         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2772         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2773         are no differences.  If an architecture has bits in CPUID index 1
2774         meaning different things the values for the COMMON_CPUID_INDEX_1
2775         index must not be set.
2776         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2777         (HAS_POPCOUNT): ...this.  New macro.
2778         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2779         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2780         to set the value for Intel and AMD architectures.
2781         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2782         INTEL_CPUID_INDEX_1.
2783         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2784         change.
2786 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2788         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2789         and $build.
2791 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2793         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2794         (__expm1l): Set errno to ERANGE on overflow.
2795         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2796         (__tanl): Set errno to EDOM for Â±Inf.
2797         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2798         (__cosl): Set errno to EDOM for Â±Inf.
2799         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2800         (__sinl): Set errno to EDOM for Â±Inf.
2802         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2803         defined, use it.
2804         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2805         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2806         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2808 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2810         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2811         code accessing it.
2812         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2814 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2816         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2817         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2818         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2819         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2821         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2822         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2823         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2824         defined.
2825         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2826         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2828 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2830         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2831         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2832         is, either do nothing at all if __ASSUME_ACCEPT4, or
2833         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2834         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2835         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2836         define.
2837         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2838         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2839         internal_accept4 in socket directory.
2841 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2843         * sysdeps/ia64/configure.in: New file.
2845 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2847         [BZ #10162]
2848         * sysdeps/ia64/memchr.S: Use speculative load.
2850         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2851         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2852         use it.
2854         * sysdeps/i386/__longjmp.S: Add .text.
2855         * sysdeps/x86_64/__longjmp.S: Likewise.
2857 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2859         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2860         __ASSUME_ACCEPT4 for IA-64.
2862 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2864         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2866         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2867         (SOCKOP_accept4): Define.
2869 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2871         Sun approved the change of the license.
2872         * sunrpc/auth_des.c: Replace license text.
2873         * sunrpc/auth_none.c: Likewise.
2874         * sunrpc/auth_unix.c: Likewise.
2875         * sunrpc/authdes_prot.c: Likewise.
2876         * sunrpc/authuxprot.c: Likewise.
2877         * sunrpc/bindrsvprt.c: Likewise.
2878         * sunrpc/clnt_gen.c: Likewise.
2879         * sunrpc/clnt_perr.c: Likewise.
2880         * sunrpc/clnt_raw.c: Likewise.
2881         * sunrpc/clnt_simp.c: Likewise.
2882         * sunrpc/clnt_tcp.c: Likewise.
2883         * sunrpc/clnt_udp.c: Likewise.
2884         * sunrpc/clnt_unix.c: Likewise.
2885         * sunrpc/des_crypt.c: Likewise.
2886         * sunrpc/des_soft.c: Likewise.
2887         * sunrpc/get_myaddr.c: Likewise.
2888         * sunrpc/getrpcport.c: Likewise.
2889         * sunrpc/key_call.c: Likewise.
2890         * sunrpc/key_prot.c: Likewise.
2891         * sunrpc/openchild.c: Likewise.
2892         * sunrpc/pm_getmaps.c: Likewise.
2893         * sunrpc/pm_getport.c: Likewise.
2894         * sunrpc/pmap_clnt.c: Likewise.
2895         * sunrpc/pmap_prot.c: Likewise.
2896         * sunrpc/pmap_prot2.c: Likewise.
2897         * sunrpc/pmap_rmt.c: Likewise.
2898         * sunrpc/rpc/auth.h: Likewise.
2899         * sunrpc/rpc/auth_unix.h: Likewise.
2900         * sunrpc/rpc/clnt.h: Likewise.
2901         * sunrpc/rpc/des_crypt.h: Likewise.
2902         * sunrpc/rpc/key_prot.h: Likewise.
2903         * sunrpc/rpc/netdb.h: Likewise.
2904         * sunrpc/rpc/pmap_clnt.h: Likewise.
2905         * sunrpc/rpc/pmap_prot.h: Likewise.
2906         * sunrpc/rpc/pmap_rmt.h: Likewise.
2907         * sunrpc/rpc/rpc.h: Likewise.
2908         * sunrpc/rpc/rpc_des.h: Likewise.
2909         * sunrpc/rpc/rpc_msg.h: Likewise.
2910         * sunrpc/rpc/svc.h: Likewise.
2911         * sunrpc/rpc/svc_auth.h: Likewise.
2912         * sunrpc/rpc/types.h: Likewise.
2913         * sunrpc/rpc/xdr.h: Likewise.
2914         * sunrpc/rpc_clntout.c: Likewise.
2915         * sunrpc/rpc_cmsg.c: Likewise.
2916         * sunrpc/rpc_common.c: Likewise.
2917         * sunrpc/rpc_cout.c: Likewise.
2918         * sunrpc/rpc_dtable.c: Likewise.
2919         * sunrpc/rpc_hout.c: Likewise.
2920         * sunrpc/rpc_main.c: Likewise.
2921         * sunrpc/rpc_parse.c: Likewise.
2922         * sunrpc/rpc_parse.h: Likewise.
2923         * sunrpc/rpc_prot.c: Likewise.
2924         * sunrpc/rpc_sample.c: Likewise.
2925         * sunrpc/rpc_scan.c: Likewise.
2926         * sunrpc/rpc_scan.h: Likewise.
2927         * sunrpc/rpc_svcout.c: Likewise.
2928         * sunrpc/rpc_tblout.c: Likewise.
2929         * sunrpc/rpc_util.c: Likewise.
2930         * sunrpc/rpc_util.h: Likewise.
2931         * sunrpc/rpcinfo.c: Likewise.
2932         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2933         * sunrpc/rpcsvc/key_prot.x: Likewise.
2934         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2935         * sunrpc/rpcsvc/mount.x: Likewise.
2936         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2937         * sunrpc/rpcsvc/rex.x: Likewise.
2938         * sunrpc/rpcsvc/rstat.x: Likewise.
2939         * sunrpc/rpcsvc/rusers.x: Likewise.
2940         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2941         * sunrpc/rpcsvc/spray.x: Likewise.
2942         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2943         * sunrpc/rtime.c: Likewise.
2944         * sunrpc/svc.c: Likewise.
2945         * sunrpc/svc_auth.c: Likewise.
2946         * sunrpc/svc_authux.c: Likewise.
2947         * sunrpc/svc_raw.c: Likewise.
2948         * sunrpc/svc_run.c: Likewise.
2949         * sunrpc/svc_simple.c: Likewise.
2950         * sunrpc/svc_tcp.c: Likewise.
2951         * sunrpc/svc_udp.c: Likewise.
2952         * sunrpc/svc_unix.c: Likewise.
2953         * sunrpc/svcauth_des.c: Likewise.
2954         * sunrpc/xcrypt.c: Likewise.
2955         * sunrpc/xdr.c: Likewise.
2956         * sunrpc/xdr_array.c: Likewise.
2957         * sunrpc/xdr_float.c: Likewise.
2958         * sunrpc/xdr_mem.c: Likewise.
2959         * sunrpc/xdr_rec.c: Likewise.
2960         * sunrpc/xdr_ref.c: Likewise.
2961         * sunrpc/xdr_sizeof.c: Likewise.
2962         * sunrpc/xdr_stdio.c: Likewise.
2964         * po/da.po: Update from translation team.
2966 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2968         * sysdeps/sh/____longjmp_chk.S: New file.
2969         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2970         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2972 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2973             Ulrich Drepper  <drepper@redhat.com>
2975         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2976         (__nscd_cache_search): Assume each entry in the
2977         hash chain needs one hashentry and half of datahead.  Use
2978         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2980 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2982         * posix/sys/wait.h: Fix typos.  Pretty printing.
2983         * stdlib/stdlib.h: Likewise.  Correct comments.
2985         [BZ #10159]
2986         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2988         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2989         patch.
2991 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2993         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2994         Use it if we absolutely cannot reach any more correct list elements
2995         because that many do not fit into the currently mapped database.
2997 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2999         * nscd/nscd_helper.c: Include stddef.h.
3000         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3001         in a couple of places.  Return NULL if trail is not less than
3002         datasize, don't consider dataheads with length smaller than
3003         offsetof (struct datahead, data) + datalen.
3004         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3005         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3006         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3007         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3008         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3009         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3010         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3012         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3013         Rename ...
3014         (fallocate64): ... to this.
3015         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3016         Rename ...
3017         (fallocate64): ... to this.
3018         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3019         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3020         fallocate64@@GLIBC_2.10.
3021         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3022         fallocate64@@GLIBC_2.11.
3023         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3025         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3026         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3028         * nscd/selinux.c (nscd_avc_destroy): Removed.
3029         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3030         * nscd/nscd.c (termination_handler): Don't call
3031         nscd_avc_destroy.
3033 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3035         * include/atomic.h: Formatting.
3036         (catomic_compare_and_exchange_val_acq): Don't define if already
3037         defined by bits/atomic.h.
3039 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3041         * math/libm-test.inc (expm1_test): Add test for range error.
3043         * Versions.def: Add GLIBC_2.11 for libc.
3044         * debug/Makefile (routines): Add longjmp_chk.
3045         Add rules to build and run tst-longjmp_chk.
3046         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3047         * debug/longjmp_chk.c: New file.
3048         * debug/tst-longjmp_chk.c: New file.
3049         * include/bits/setjmp2.: New file.
3050         * include/stdio.h: Mark __fortify_fail as internal_function.
3051         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3052         * setjmp/bits/setjmp2.h: New file.
3053         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3054         of the aliases.
3055         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3056         defined.
3057         * sysdeps/i386/____longjmp_chk.S: New file.
3058         * sysdeps/x86_64/____longjmp_chk.S: New file.
3059         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3060         * sysdeps/x86_64/__longjmp.S: Likewise.
3062         * version.h: Bump for 2.11 development.
3064         * elf/check-execstack.c: New file.
3065         * elf/Makefile: Add rules to build and run check-execstack.
3067 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3069         * version.h (VERSION): Bump to 2.10.1.
3071         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3072         compatibility functions.
3073         * nss/getXXent_r.c: Likewise.
3074         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3075         * gshadow/getsgnam_r.c: Likewise.
3076         * gshadow/Version: Remove duplicate entries.
3078         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3079         for recent processor.
3080         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3081         Likewise.
3083 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3085         * version.h (VERSION): Bump for 2.10 release.
3086         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3088         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3089         same place we add ASFLAGS-config.
3091 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3093         [BZ #10128]
3094         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3095         or FORMERR and the other NOERROR, don't raise an error.
3097 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3099         [BZ #10118]
3100         * Makeconfig (+asflags): New variable based upon ASFLAG or
3101         asflags-cpu.
3102         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3103         * config.make.in (asflags-cpu): Add variable based upon
3104         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3105         the assembler.
3106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3107         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3108         recognizes power6 instruction set due to passing -mcpu=power6 from
3109         --with-cpu=power6 when compiling .S files.
3110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3111         Likewise.
3112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3113         Likewise.
3114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3115         Likewise.
3117 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3119         * string/stratcliff.c (do_test): Test for zero length
3120         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3121         at the end of the page.
3123 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3125         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3127         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3128         count is zero.
3130         * po/da.po: Update from translation team.
3132 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3134         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3135         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3137 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3139         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3140         and READ_IMPLIES_EXEC.
3142 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3144         * po/da.po: Update from translation team.
3146 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3148         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3149         comment change.
3151 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3153         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3154         to MAP_ANON in PROT_NONE mmap64 call.
3155         (open_archive): Likewise.
3156         (file_data_available_p): Use mmap64 instead of mremap.
3157         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3158         Attempt to reserve address space after mmap64 region.
3160 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3162         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3163         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3164         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3166         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3167         atanh should set ERANGE.
3169         [BZ #10087]
3170         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3171         result of lookup to make call to implement STT_GNU_IFUNC.
3172         (_dl_profile_fixup): Likewise.
3173         Patch by H.J. Lu <hjl.tools@gmail.com>.
3175         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3176         warning.
3178         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3179         from definition.
3181         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3182         label if it is not used.
3184         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3185         of gmon_hist_hdr and gmon_hdr structures and use them.
3186         * elf/sprof.c: Likewise.
3188         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3189         warning.
3191         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3193         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3194         to avoid cast.
3196         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3197         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3198         to avoid warnings.
3199         (iruserok_af): Use ss_family instead of casts.
3201         * gmon/gmon.c (write_hist): Define real-type variant of
3202         gmon_hist_hdr structure and use it.
3203         (write_gmon): Likewise for gmon_hdr.
3205         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3206         function if we are not going to define it.
3207         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3209         * inet/inet6_option.c (option_alloc): Add temporary variable to
3210         avoid warning.
3212         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3213         name of VTable element.
3214         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3215         * libio/iovsscanf.c: Likewise.
3216         * libio/vasprintf.c: Likewise.
3217         * libio/vsnprintf.c: Likewise.
3218         * stdio-common/isoc99_vsscanf.c: Likewise.
3219         * stdlib/strfmon_l.c: Likewise.
3220         * debug/vasprintf_chk.c: Likewise.
3221         * debug/vsnprintf_chk.c: Likewise.
3222         * debug/vsprintf_chk.c: Likewise.
3224         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3225         function pointers.
3227 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3229         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3231 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3233         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3235         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3236         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3237         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3238         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3239         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3240         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3241         * math/libm-test.inc: Add tests for errno after tan calls with
3242         Â±Inf.
3244         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3245         errno value vor pow(+-0,neg).
3246         * math/libm-test.inc (pow_test): Add tests for errno value for
3247         pole errors.
3249         * math/w_fmod.c: Also handle x=±Inf as error.
3250         * math/w_fmodf.c: Likewise.
3251         * math/w_fmodl.c: Likewise.
3252         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3253         x=±Inf or y=0.
3255         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3256         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3257         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3258         * sysdeps/i386/fpu/s_sin.S: Likewise.
3259         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3260         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3261         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3262         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3263         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3264         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3265         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3266         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3267         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3268         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3269         Â±Inf.
3271         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3272         ERANGE for underflows.
3273         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3275         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3276         the 2001 revision.
3278         * libio/tst-widetext.input: Remove surrogates.
3280         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3282         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3283         for lgamma should set errno to ERANGE, not EDOM.
3284         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3286 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3288         [BZ #10093]
3289         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3290         UTF-16 surrogates.
3292         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3293         space when temporarily mapping the whole content of the old file.
3295         [BZ #10100]
3296         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3297         not zero.
3299 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3301         * iconvdata/sjis.c (BODY): Don't advance inptr before
3302         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3303         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3304         two byte chars.
3306 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3308         * locale/locarchive.h (struct locarhandle): Rename len field to
3309         mmaped and add new reserved field.
3310         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3311         (create_archive): Reserve address space and then map file into it.
3312         (open_archive): Likewise.
3313         (file_data_available_p): New function.
3314         (compare_from_file): New function.
3315         (close_archive): Adjust to member name changes.
3316         (add_locale): Before comparing locale data, check it is mapped.
3317         Otherwise fall back to reading from the file.
3319 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3321         * stdio-common/psiginfo.c: Include <errno.h>.
3323 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3325         [BZ #9920]
3326         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3327         to get consistency between 32 and 64 bit architectures.
3329         [BZ #10052]
3330         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3331         directory for dummy syscall rules.
3332         Patch by Chris Steinbroner <hesh@pobox.com>.
3334 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3336         [BZ #10092]
3337         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3338         MNT_EXPIRE.
3340 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3342         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3343         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3345 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3347         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3348         data from vector to temporary buffer and call PWRITEV after it
3349         instead of vice versa.
3350         * sysdeps/posix/preadv.c: Fix up comment.
3351         * misc/preadv.c: Likewise.
3352         * misc/preadv64.c: Likewise.
3353         * misc/pwritev.c: Likewise.
3354         * misc/pwritev64.c: Likewise.
3355         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3357 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3359         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3361         * shadow/Makefile (tests): Add tst-shadow.
3362         * shadow/tst-shadow.c: New file.
3364         [BZ #9955]
3365         * gshadow/Makefile: New file.
3366         * gshadow/Versions: New file.
3367         * gshadow/fgetsgent.c: New file.
3368         * gshadow/fgetsgent_r.c: New file.
3369         * gshadow/getsgent.c: New file.
3370         * gshadow/getsgent_r.c: New file.
3371         * gshadow/getsgnam.c: New file.
3372         * gshadow/getsgnam_r.c: New file.
3373         * gshadow/gshadow.h: New file.
3374         * gshadow/putsgent.c: New file.
3375         * gshadow/sgetsgent.c: New file.
3376         * gshadow/sgetsgent_r.c: New file.
3377         * gshadow/tst-gshadow.c: New file.
3378         * include/gshadow.h: New file.
3379         * Makeconfig (all-subdirs): Add gshadow.
3380         * Makefile (installed-headers): Add gshadow/gshadow.h.
3381         * nss/Makefile (databases): Add sgrp.
3382         * nss/Versions: Add gshadow functions as private exports.
3383         * nss/nsswitch.conf: Add gshadow entry.
3384         * nss/sgrp-lookup.c: New file.
3385         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3386         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3387         * nss/nss_files/files-sgrp.c: New file.
3388         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3389         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3391 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3393         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3394         * stdio-common/reg-modifier.c: Likewise.
3396 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3398         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3399         is no FPU.
3401 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3403         [BZ #10086]
3404         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3405         headers up to 2.6.30.
3407         * po/ca.po: Update from translation team.
3409 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3411         [BZ #10069]
3412         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3413         an object that uses static TLS if the TLS modid is higher than the
3414         reserve we always allocate.  At least for multi-threaded code.
3416 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3418         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3419         Numerically stable check for valid width.
3421         * locale/programs/locarchive.c (open_archive): Map the entire file
3422         and not just the administrative data.
3423         (add_locale): When we find a hash sum match compare the content
3424         to be sure.
3426         * malloc/malloc.c (malloc_info): Output address space information.
3428 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3430         * malloc/malloc.c (malloc_info): Also output system memory information.
3432         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3433         architectures have preadv/pwritev in 2.6.30.
3435         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3436         * sysdeps/posix/readv.c: Likewise.
3437         Reported by Markus Armbruster <armbru@redhat.com>.
3439         * malloc/hooks.c (top_check): Force hook value into register.
3441 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3443         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3444         calls to _dl_relocate_object.
3446 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3448         [BZ #9957]
3449         * malloc/malloc.c (force_reg): Define.
3450         (sYSMALLOc): Load hook variable into variable
3451         before test and force into register.
3452         (sYSTRIm): Likewise.
3453         (public_mALLOc): Force hook value into register.
3454         (public_fREe): Likewise.
3455         (public_rEALLOc): Likewise.
3456         (public_mEMALIGn): Likewise.
3457         (public_vALLOc): Likewise.
3458         (public_pVALLOc): Likewise.
3459         (public_cALLOc): Likewise.
3460         (__posix_memalign): Likewise.
3461         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3462         before test and force into register.
3463         * malloc/hooks.c (top_check): Likewise.
3464         (public_sET_STATe): Pretty printing.
3466         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3467         in case we only receive one reply in single-request mode.
3469 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3471         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3472         are dlopened in statically linked program even for __LM_ID_CALLER.
3474 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3476         * resolv/res_send.c (send_dg): Don't switch into single-request
3477         mode if we already are in it.
3479 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3481         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3482         are always at least 4 bytes in the returned line.
3484 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3486         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3487         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3488         instead of 8K.  Stop searching in /proc/stat after hitting first
3489         line not starting with cpu.
3490         (next_line): Truncate too long
3491         lines at buffer size * 3/4 instead of pretending there were line
3492         breaks inside of large lines.
3494 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3496         * sysdeps/x86_64/mp_clz_tab.c: New file.
3498 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3499             Ulrich Drepper  <drepper@redhat.com>
3501         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3502         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3503         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3505 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3507         * sysdeps/sh/libc-tls.c: New file.
3509         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3511 2009-04-14  Roland McGrath  <roland@redhat.com>
3513         * elf/elf.h: Add various missing ARM constants, to match binutils.
3515 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3517         Optimizations from GMP.
3518         * sysdeps/x86_64/add_n.S: New file.
3519         * sysdeps/x86_64/addmul_1.S: New file.
3520         * sysdeps/x86_64/lshift.S: New file.
3521         * sysdeps/x86_64/mul_1.S: New file.
3522         * sysdeps/x86_64/rshift.S: New file.
3523         * sysdeps/x86_64/sub_n.S: New file.
3524         * sysdeps/x86_64/submul_1.S: New file.
3526 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3528         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3529         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3530         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3531         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3533 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3535         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3536         preadv/pwritev.
3538 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3540         * sysdeps/x86-64/strrchr.S: New file.
3542 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3544         * stdio-common/printf.h (struct printf_info): Add user element.
3545         New types printf_arginfo_size_function, printf_va_arg_function.
3546         Declare register_printf_specifier, register_printf_modifier,
3547         register_printf_type.
3548         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3549         (union printf_arg): Add pa_user element.
3550         Adjust __printf_arginfo_table type.
3551         Add __printf_va_arg_table, __printf_modifier_table,
3552         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3553         declarations.
3554         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3555         If registered arginfo call failed try normal specifier.
3556         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3557         function.
3558         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3559         * stdio-common/Versions: Export register_printf_modifier,
3560         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3561         * stdio-common/reg-modifier.c: New file.
3562         * stdio-common/reg-type.c: New file.
3563         * stdio-common/reg-printf.c (__register_printf_specifier): New
3564         function.  Mostly the old __register_printf_function function but
3565         uses locking and type of third parameter changed.
3566         (__register_printf_function): Implement using
3567         __register_printf_specifier.
3568         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3569         calls to arginfo functions.  Allocate enough memory for user-defined
3570         types.  Call new va_arg functions to get user-defined types.
3571         Try installed handlers even for existing format specifiers first.
3573 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3575         * sysdeps/x86_64/rawmemchr.S: New file.
3577         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3578         Simplified code and possible copy problem fixed.
3580         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3581         function if it is not defined.  Add some necessary casts.
3582         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3584         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3585         have preadv/pwritev in 2.6.30.
3587 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3589         * malloc/malloc.c (malloc_info): New function.
3590         * malloc/malloc.h: Declare it.
3591         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3593         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3594         to avoid PLT slot.
3596         * malloc/malloc.c (_int_realloc): Add parameter with old block
3597         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3598         Adjust all callers.
3599         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3601 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3603         * sysdeps/x86_64/strchrnul.S: New file.
3605         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3606         depending libcrypt on -lfreebl3.
3608         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3609         preadv/pwritev in 2.6.30.
3611         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3612         instead of __strcasecmp.
3614         * string/stratcliff.c (do_test): Add memchr tests..
3615         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3616         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3617         first read quad word.
3619 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3621         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3622         * string/tst-svc.input: Add new test case.
3623         * string/tst-svc.expect: Adjust.
3624         * string/Makefile: Don't ignore tst-svc error.
3626         * sysdeps/x86_64/memchr.S: New file.
3628         * resolv/resolv.h (RES_SNGLKUP): Define.
3629         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3630         * resolv/res_send.c (send_dg): If we sent two requests at once and
3631         only get one reply before timeout switch to mode where we send the
3632         second request only after the first answer has been received.
3634 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3636         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3637         * sysdeps/x86_64/strchr.S: Likewise.
3639 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3641         * configure.in: We need to test for the compiler earlier.
3643         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3644         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3645         GLIBC_2.10.
3646         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3647         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3648         and pwritev.
3649         * misc/preadv.c: New file.
3650         * misc/preadv64.c: New file.
3651         * misc/pwritev.c: New file.
3652         * misc/pwritev64.c: New file.
3653         * sysdeps/posx/preadv.c: New file.
3654         * sysdeps/posx/preadv64.c: New file.
3655         * sysdeps/posx/pwritev.c: New file.
3656         * sysdeps/posx/pwritev64.c: New file.
3657         * sysdeps/unix/sysv/linux/preadv.c: New file.
3658         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3659         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3660         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3661         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3662         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3664         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3665         compatibility code.
3666         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3668         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3669         __ASSUME_COMPLETE_READV_WRITEV.
3670         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3671         with modern kernels.
3672         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3674         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3675         to free a possible malloced buffer in case of cancellation.
3676         * sysdeps/posix/writev.c: Likewise for write.
3678 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3680         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3682         * configure.in: Recognize --enable-nss-crypt.
3683         * config.make.in: Add nss-crypt entry.
3684         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3685         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3686         and include path for NSS directory to compiler for md5-crypt,
3687         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3688         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3689         function implementation, use NSS.  Introduce wrappers around the
3690         hash function calls.  Little code size optimization.
3691         * crypt/sha256-crypt.c: Likewise.
3692         * crypt/sha512-crypt.c: Likewise.
3693         * scripts/check-local-headers.sh: Ignore nss3 directory.
3695         * configure.in: Rename pic_default to libc_cv_pic_default.
3696         * config.make.in: Likewise.
3698 2009-04-01  Roland McGrath  <roland@redhat.com>
3700         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3701         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3702         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3703         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3704         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3705         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3706         (R_SPARC_NUM): Update.
3707         From Dave Miller <davem@davemloft.net>.
3709 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3711         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3713 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3715         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3716         those which are used.
3717         * elf/dl-addr.c: Likewise.
3718         * elf/dl-caller.c: Likewise.
3719         * elf/dl-fini.c: Likewise.
3720         * elf/dl-iteratephdr.c: Likewise.
3721         * elf/dl-libc.c: Likewise.
3722         * elf/dl-load.c: Likewise.
3723         * elf/dl-support.c: Likewise.
3724         * elf/dl-sym.c: Likewise.
3725         * elf/rtld.c: Likewise.
3726         * sysdeps/generic/ldsodefs.h: Likewise.
3728         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3729         * elf/dl-minimal.c: Likewise.
3730         * elf/dl-misc.c: Likewise.
3731         * elf/rtld.c: Likewise.
3732         * sysdeps/generic/ldsodefs.h: Likewise.
3734 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3736         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3737         Avoid reuse of complex expression.
3739         * po/fr.po: Update from translation team.
3741 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3743         * include/dirent.h: Yet more changes to match sort function type
3744         change.
3745         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3746         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3747         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3749 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3751         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3753 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3755         * nscd/connections.c (restart): Try to preserve the process name
3756         by reading the /proc/self/exe symlink and using the return name.
3757         Patch by Jeff Bastian <jbastian@redhat.com>.
3759 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3761         [BZ #9733]
3762         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3763         if we are not loading a new audit library.
3764         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3765         Only use profiling trampoline for auditing if we are not relocating
3766         an audit library.
3767         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3768         * elf/rtld.c: Likewise.
3769         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3771         * elf/rtld.c (dl_main): Extend help message for --audit option.
3773         [BZ #9759]
3774         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3775         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3776         * dirent/alphasort.c: Adjust implementation to type change.
3777         * dirent/alphasort64.c: Likewise.
3778         * dirent/scandir.c: Likewise.
3779         * dirent/versionsort.c: Likewise.
3780         * dirent/versionsort64.c: Likewise.
3781         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3782         declaration.
3783         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3784         declaration.
3786         [BZ #9880]
3787         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3788         correctly.  Set segleft member in output as required.
3789         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3790         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3792         [BZ #9881]
3793         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3794         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3795         * inet/Makefile (tests): Add tst-inet6_rth.
3796         * inet/tst-inet6_rth.c: New file.
3798         [BZ #5807]
3799         * string/strlen.c (strlen): Fix omission in the expression to test
3800         for NUL bytes.
3802 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3804         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3806         * elf/dl-runtime.c (reloc_offset): Define.
3807         (reloc_index): Define.
3808         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3809         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3810         computing index from reloc_offset.
3811         (_dl_call_pltexit): Likewise.
3812         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3813         the relocation index to _dl_fixup.
3814         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3815         _dl_call_pltexit.
3816         * sysdeps/x86_64/dl-runtime.c: New file.
3818         [BZ #9893]
3819         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3820         alignment of La_x86_64_regs.  Store xmm parameters.
3821         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3823         [BZ #9913]
3824         * string/strverscmp.c (__strverscmp): Fix case of different digits
3825         in fractional part of string.
3826         Patch by Jingyu Liu <jyliu@fortinet.com>.
3827         * string/Makefile (tests): Add tst-svc2.
3828         * string/tst-svc2.c: New file.
3830         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3832         * locale/iso-639.def: Add Min Nan.
3834 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3836         [BZ #9948]
3837         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3839 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3841         * elf/dl-sysdep.c (auxvars): Compress data structure.
3843         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3844         STT_GNU_IFUNC handling.
3845         (elf_machine_rela): Likewise.
3847 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3849         * config.h.in (USE_MULTIARCH): Define.
3850         * configure.in: Handle --enable-multi-arch.
3851         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3852         (_dl_fixup_profile): Likewise.
3853         * elf/do-lookup.c (dl_lookup_x): Likewise.
3854         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3855         * elf/elf.h (STT_GNU_IFUNC): Define.
3856         * include/libc-symbols.h (libc_ifunc): Define.
3857         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3858         framework in init-arch.h to get CPUID values.
3859         * sysdeps/x86_64/multiarch/Makefile: New file.
3860         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3861         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3862         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3864         * config.make.in (experimental-malloc): Define.
3865         * configure.in: Handle --enable-experimental-malloc.
3866         * malloc/Makefile: Handle experimental-malloc flag.
3867         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3868         * malloc/arena.c: Likewise.
3869         * malloc/hooks.c: Likewise.
3870         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3872 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3874         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3875         prediction.  A few size optimizations.
3877 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3879         * time/tzset.c: Optimize a bit for size.
3881 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3883         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3884         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3886         * elf/sprof.c: Avoid warning about multi-line comment.
3888 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3890         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3891         DST name.
3892         * time/tst-posixtz.c: Add tests for quoted timezone names.
3894 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3896         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3897         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3898         200809L instead of 200112L.
3899         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3900         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3902         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3903         instead of __quick_exit_funcs to __run_exit_handlers.
3904         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3905         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3906         (__cxa_at_quick_exit): Remove attribute_hidden.
3907         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3908         to __run_exit_handlers.
3909         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3910         attribute_hidden.
3912 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3914         * po/id.po: Update from translation team.
3916 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3919         .machine push; .machine "power6" and .machine pop around mtfsf
3920         insns outside of _ARCH_PWR6 define.
3921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3923         Likewise.
3924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3925         Likewise.
3926         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3927         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3928         relax_fenv_state): Likewise.
3930 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3932         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3933         cxa_at_quick_exit.
3934         (static-only-routines): Add at_quick_exit.
3935         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3936         GLIBC_2.10.
3937         * stdlib/quick_exit.c: New file.
3938         * stdlib/at_quick_exit.c: New file.
3939         * stdlib/cxa_at_quick_exit.c: New file.
3940         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3941         it appropriately.
3942         (__internal_atexit): New function.
3943         (__new_exitfn): Now takes parameter to point to the list to use.
3944         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3945         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3946         (exit): ...here.  Just call __run_exit_handlers appropriately.
3947         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3948         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3949         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3950         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3952         * po/id.po: Update from translation team.
3954 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3956         * po/ru.po: Update from translation team.
3958 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3960         * po/nl.po: Update from translation team.
3962 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3964         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3965         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3966         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3967         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3968         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3969         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3970         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3972         * po/pl.po: Update from translation team.
3974 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3976         [BZ #7083]
3977         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3978         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3979         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3980         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3981         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3982         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3983         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3984         for GLIBC_2.10.
3985         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3986         Add fallocate and fallocate64.
3988         * io/fcntl.h: Pretty printing.
3990 2009-03-02  Richard Guenther  <rguenther@suse.de>
3992         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3993         attribute also for non-C99 inline semantics variant.
3995 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3997         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3998         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3999         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4000         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4002         Likewise.
4003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4004         Likewise.
4006 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4008         * po/cs.po: Update from translation team.
4010 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4012         * po/bg.po: Update from translation team.
4013         * po/sv.po: Likewise.
4014         * po/fi.po: Likewise.
4015         * po/vi.po: Likewise.
4017 2009-02-27  Roland McGrath  <roland@redhat.com>
4019         * Makeconfig (%.v.i): Depend on Makeconfig.
4020         Exclude % lines from initial #-comment removal.
4022 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4024         * po/ko.po: Update from translation team.
4026 2009-02-26  Roland McGrath  <roland@redhat.com>
4028         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4029         avoids unused warning.
4031 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4032             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4034         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4035         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4036         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4037         and asm/user.h.  Include asm/ptrace.h.
4038         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4039         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4040         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4041         Undefine.
4042         (start_thread): Don't undefine.
4043         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4044         Define.
4046 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4048         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4049         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4050         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4051         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4052         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4053         200112L to 200809L.
4054         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4055         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4056         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4057         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4058         _SC_THREAD_ROBUST_PRIO_PROTECT.
4059         * posix/unistd.h: fexecve is in POSIX 2008.
4060         * time/time.h: strftime_l is in POSIX 2008.
4061         * io/sys/stat.h: futimens is in POSIX 2008.
4062         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4063         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4064         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4065         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4066         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4067         open_memstream, and vdprintf are in POSIX 2008.
4069 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4071         * include/features.h: Define macros for XPG7/POSIX 2008.
4072         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4073         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4074         POSIX 2008.
4075         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4076         * locale/xlocale.h: Define locale_t type.
4077         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4078         in POSIX 2008.  Don't define locale_t here.
4079         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4080         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4081         UTIME_OMIT only with __USE_ATFILE.
4082         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4083         * stdio-common/psiginfo.c: New file.
4084         * stdio-common/psiginfo-data.h: New file.
4085         * stdio-common/psiginfo-define.h: New file.
4086         * stdio-common/Makefile (routines): Add psiginfo.
4087         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4088         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4089         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4090         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4091         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4092         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4093         * io/sys/stat.h: Move mknodat definition into same conditional as
4094         mknod.
4095         * time/sys/time.h: futimesat is not among the functions accepted
4096         into the POSIX standard.
4098         * include/features.h: If no feature selection given and we select
4099         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4100         * posix/Versions: Export __posix_getopt.
4101         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4102         Use it to alternatively initialize __posixly_correct.
4103         (_getopt_internal_r): Take addition parameter.  Pass on to
4104         _getopt_initialize.
4105         (_getopt_internal): Take addition parameter.  Pass on to
4106         _getopt_internal_r.
4107         (getopt): Pass additional zero to _getopt_internal.
4108         (__posix_getopt): New function.
4109         * posix/getopt.h: Add redirection for getopt.
4110         * posix/getopt1.c (getopt_long): Pass additional zero to
4111         _getopt_internal.
4112         (getopt_long_only): Likewise.
4113         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4114         (_getopt_long_only_r): Likewise.
4115         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4116         _getopt_internal_r.
4118 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4120         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4121         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4122         * sysdeps/posix/sysconf.c (__sysconf): Handle
4123         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4124         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4126 2009-02-24  Roland McGrath  <roland@redhat.com>
4128         [BZ #9895]
4129         * README.template: Reworded not to use substituted version number.
4130         Renamed to ...
4131         * README: ... here (no longer generated).
4132         * Makefile (README): Target removed.
4134 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4136         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4137         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4138         instead.
4140         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4142         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4144 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4146         * po/bg.po: Update from translation team.
4148 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4150         * stdlib/monetary.h: Uglify function parameter names.
4151         * sunrpc/rpc/pmap_clnt.h: Likewise.
4152         * sunrpc/rpc/svc.h: Likewise.
4153         * sunrpc/rpc/xdr.h: Likewise.
4154         * sunrpc/rpc/clnt.h: Likewise.
4155         * resolv/netdb.h: Likewise.
4156         * resolv/arpa/nameser.h: Likewise.
4157         * resolv/resolv.h: Likewise.
4158         * argp/argp.h: Likewise.
4159         * locale/langinfo.h: Likewise.
4160         * io/sys/stat.h: Likewise.
4161         * posix/spawn.h: Likewise.
4162         * nis/rpcsvc/nislib.h: Likewise.
4163         * malloc/obstack.h: Likewise.
4164         * sysdeps/ia64/bits/link.h: Likewise.
4165         * sysdeps/i386/bits/link.h: Likewise.
4166         * sysdeps/s390/bits/link.h: Likewise.
4167         * sysdeps/powerpc/bits/link.h: Likewise.
4168         * sysdeps/x86_64/bits/link.h: Likewise.
4169         * sysdeps/sparc/bits/link.h: Likewise.
4170         * sysdeps/sh/bits/link.h: Likewise.
4171         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4172         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4173         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4174         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4176 2008-12-01  Fredrik Unger  <fred@tree.se>
4178         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4179         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4180         _FP_UNPACK_RAW_2, fix up first argument.
4182 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4184         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4185         (GET_NPROCS_PARSER): Change parameters and use next_line.
4186         (__get_nprocs): Rewrite to not use stdio routines.
4187         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4188         Change parameters and use next_line.
4190 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4192         [BZ #5381]
4193         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4194         Change mempool_alloc prototype.
4195         * nscd/mem.c (gc): Don't handle mem_in_flight.
4196         (mempool_alloc): Third parameter now only indicates whether this is the
4197         first call (to allocate data) or not.  If it is, get db rdlock.
4198         Release it on error.  Don't handle mem_in_flight.
4199         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4200         Adjust third parameter of mempool_alloc calls.
4201         Nothing to do here in case mempool_alloc fails.
4202         Avoid local variable shadowing parameter.  No need to get db rdlock
4203         before calling cache_add.
4204         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4205         no mem_in_flight array anymore.
4206         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4207         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4208         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4209         in case mempool_alloc fails. No need to get db rdlock before calling
4210         cache_add.
4211         * nscd/hstcache.c (cache_addhst): Likewise.
4212         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4213         * nscd/servicescache.c (cache_addserv): Likewise.
4214         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4216 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4218         * po/lt.po: Update from translation team.
4220 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4222         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4223         defined, allow additional data to be added using the optional
4224         MORE_ELF_HEADER_DATA macro.
4225         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4226         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4228 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4230         * include/atomic.h: Define catomic_and if not already defined.
4231         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4232         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4234 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4236         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4237         Change all callers.
4238         (_int_realloc): Likewise.  Third argument is now padded size
4239         All _int_* functions are now static.
4241         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4242         * malloc/arena.c: Likewise.
4243         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4244         functions.
4246         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4247         easily.
4249         * malloc/malloc.c: Add branch prediction for use of the hooks.
4251         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4253 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4255         [BZ #7095]
4256         * bits/confname.h: Add SUSv7 macros for getconf environments.
4257         * bits/environments.h: Likewise.
4258         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4259         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4260         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4261         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4262         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4263         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4264         * posix/getconf.c: Likewise.
4265         * posix/sysconf.c: Likewise.
4266         * sysdeps/posix/sysconf.c: Likewise.
4267         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4268         environments.
4270 2009-01-16  Petr Baudis  <pasky@suse.cz>
4272         [BZ #9753]
4273         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4274         even if we currently have zero nscount.
4276 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4278         [BZ #9781]
4279         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4280         the input line is too long.
4282         * po/Makefile (libc.pot): Add f_print as function taking c-format
4283         parameter.
4285         * debug/xtrace.sh: Unify translatable messages.
4286         * elf/ldd.bash.in: Likewise.
4287         * elf/sprof.c: Likewise.
4288         * locale/programs/locale.c: Likewise.
4289         * malloc/memusage.sh: Likewise.
4290         * nss/getent.c: Likewise.
4292 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4294         * debug/pcprofiledump.c (print_version,
4295         argp_program_version_hook): New function.
4296         * elf/ldconfig.c (more_help): New function.
4297         (argp): Use it.
4298         * elf/sln.c (usage): New function.
4299         (main): Support --help and --version.
4300         * malloc/memusagestat.c (print_version): New function.
4301         (argp_program_version_hook): New variable.
4302         * nscd/nscd.c (more_help): New function.
4303         (argp): Use it.
4304         * posix/getconf.c (main): Send --version output to stdout.
4305         Support --help.
4306         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4307         arguments.  All callers changed.
4308         (print_version): New function.
4309         (parseargs): Support --help and --version.
4310         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4311         changed.
4312         (print_version): New function.
4313         (main): Use getopt_long.  Support --help and --version.
4314         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4315         --version.
4317 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4319         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4320         (update_data): Fix handling of wrapping back
4321         to the beginning of the buffer.
4323         [BZ #9823]
4324         * stdio-common/psignal.c (psignal): Fix test for empty string.
4326 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4328         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4329         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4330         move _null_auth to .rodata.
4332         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4333         value of 24.
4335         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4337         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4338         today than when the original code was written.  Use larger
4339         buffers.  This also makes it unnecessary to have stat information,
4340         if this causes extra efforts.
4341         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4342         __alloc_dir.
4344 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4346         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4347         is set.
4348         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4349         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4350         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4351         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4352         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4353         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4355 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4357         * po/ru.po: Update from translation team.
4359 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4361         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4362         Add _tid slot to maintain consistency with kernel.
4364 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4366         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4367         incomplete characters at end of input buffer.
4368         * libio/Makefile (tests): Add tst-fgetwc.
4369         * libio/tst-fgetwc.c: New file.
4370         * libio/tst-fgetwc.input: New file.
4372 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4374         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4376 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4378         [BZ #9793]
4379         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4380         *OUTBUFSTART unless the whole output fit into the buffer.
4381         * iconv/Makefile (tests): Add tst-iconv4.
4382         * iconv/tst-iconv4.c: New file.
4384 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4386         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4387         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4389 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4391         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4392         newer linker scripts.
4394 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4396         [BZ #7040]
4397         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4398         inotify_rm_watch should have type int.
4400 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4402         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4403         Make aligned_restore_vmx a local symbol.
4404         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4405         Likewise.
4407 2009-01-30  Andreas Jaeger  <aj@suse.de>
4409         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4410         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4411         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4412         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4413         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4414         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4415         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4417 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4419         [BZ #9726]
4420         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4421         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4423 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4425         [BZ #9726]
4426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4427         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4429         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4431 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4433         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4434         memcpy instead of memcmp.
4435         (_dl_setup_pointer_guard): Likewise.
4437 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4439         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4440         manipulated brk, use malloc_printerr.
4441         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4442         requests.
4444 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4446         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4447         rindex): For C++ add inlines so that they can be recognized as
4448         builtins.
4449         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4451 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4452             Jakub Jelinek  <jakub@redhat.com>
4454         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4455         * wcsmbs/wchar.h: Likewise.
4457 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4459         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4460         (stackinfo_sub_sp): Define.
4462 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4464         [BZ #9750]
4465         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4466         * include/alloca.h (alloca_account): Define.
4467         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4468         (stackinfo_sub_sp): Define.
4470         * nscd/connections.c (nscd_init): If database file access fails
4471         check whether this is due to permission problems and bail in that
4472         case.
4474         [BZ #9741]
4475         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4476         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4478 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4480         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4481         Add "t" to clobber list.
4482         (INTERNAL_SYSCALL_NCS): Likewise.
4484 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4486         * nss/getent.c (print_networks): Don't print comma between aliases.
4488 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4490         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4492         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4493         the hash table.
4494         * misc/Makefile (tests): Add bug-hsearch1.
4495         * misc/bug-hsearch1.c: New file.
4497 2009-01-22  Roland McGrath  <roland@redhat.com>
4499         * Makeconfig (%.v.i): Strip trailing # comments,
4500         not only whole-line comments.
4502 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4504         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4505         one parameter.  If non-NULL use it to initialize return value.
4506         (_dl_setup_pointer_guard): New function.
4507         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4508         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4509         * elf/rtld.c (security_init): Pass _dl_random to
4510         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4511         pointer_chk_guard.
4512         * elf/dl-sysdep.c (_dl_random): New variable.
4513         (_dl_sysdep_start): Handle AT_RANDOM.
4514         (_dl_show_auxv): Likewise.
4515         * elf/dl-support.c (_dl_random): New variable.
4516         (_dl_aux_init): Handle AT_RANDOM.
4517         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4518         to _dl_setup_stack_chk_guard.
4520         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4522 2009-01-10  Roland McGrath  <roland@redhat.com>
4524         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4526 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4528         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4530         [BZ #9706]
4531         * nss/nss_files/files-parse.c (strtou32): New function.
4532         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4533         across 32-bit and 64-bit platforms.
4534         (INT_FIELD_MAYBE_NULL): Likewise.
4536 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4538         [BZ #9720]
4539         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4540         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4541         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4542         Likewise.
4544 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4546         [BZ #697]
4547         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4548         being NULL also if there are no backreferences.
4549         * posix/rxspencer/tests: Add testcases.
4551 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4553         [BZ #9697]
4554         * posix/bug-regex17.c: Add testcases.
4555         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4556         handling.
4558 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4560         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4561         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4562         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4563         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4564         for elf subdir.
4565         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4566         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4567         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4568         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4569         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4570         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4572 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4574         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4575         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4576         re_string_skip_chars, re_string_reconstruct): Likewise.
4577         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4579 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4581         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4582         adjust the buffer alignment.
4584 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4586         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4587         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4588         net/route.h.
4590         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4591         flavor to description only when flavor is not NULL.
4593         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4594         mutex after SIGIO/SIGURG lookup loop.
4596 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4598         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4600 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4602         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4603         handling.
4605 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4607         * sysdeps/unix/sysv/linux/kernel-features.h
4608         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4610         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4611         if no output is written.
4613         * version.h: Bump to 2.10 development.
4615         * posix/getconf.c: Update copyright year.
4616         * nss/getent.c: Likewise.
4617         * iconv/iconvconfig.c: Likewise.
4618         * iconv/iconv_prog.c: Likewise.
4619         * elf/ldconfig.c: Likewise.
4620         * catgets/gencat.c: Likewise.
4621         * csu/version.c: Likewise.
4622         * elf/ldd.bash.in: Likewise.
4623         * elf/sprof.c (print_version): Likewise.
4624         * locale/programs/locale.c: Likewise.
4625         * locale/programs/localedef.c: Likewise.
4626         * nscd/nscd.c (print_version): Likewise.
4627         * debug/xtrace.sh: Likewise.
4628         * malloc/memusage.sh: Likewise.
4629         * malloc/mtrace.pl: Likewise.
4630         * debug/catchsegv.sh: Likewise.
4632 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4634         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4635         script.
4637 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4639         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4640         gethostbyname4_r function call succeeded, just leave the loop.
4642         [BZ #9694]
4643         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4644         very end.
4645         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4646         * wctype/Makefile (tests): Add bug-wctypeh.
4647         * wctype/bug-wctypeh.c: New file.
4649         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4650         LOCALDOMAIN is defined.
4651         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4653         * sysdeps/x86_64/bits/select.h: New file.
4655         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4657 2008-12-21  Bruno Haible  <bruno@clisp.org>
4659         [BZ #9677]
4660         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4661         if no output is written.
4663 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4665         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4666         libc internal symbol __dup2 to avoid access through the PLT.
4668 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4670         [BZ #6545]
4671         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4672         available only for __USE_GNU.
4674         * inet/Makefile (tests): Add tst-getni2.
4675         * inet/tst-getni2.c: New file.
4677         [BZ #7080]
4678         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4679         NULL when NI_NAMEREQD is set.
4680         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4681         * inet/Makefile (tests): Add tst-getni1.
4682         * inet/tst-getni1.c: New file.
4684 2008-12-03  Petr Baudis  <pasky@suse.cz>
4686         [BZ #7067]
4687         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4688         instead of prune_lock.
4689         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4690         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4692 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4694         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4695         use.
4697         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4698         handling.
4700         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4701         after reading name server list.
4703         [BZ #7058]
4704         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4705         handling for host name aliases.
4707 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4709         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4710         instead of doing things manually.
4712 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4714         * posix/regex_internal.h (build_wcs_upper_buffer):
4715         Return type is reg_error_t.
4717 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4719         * posix/globtest.sh: Use mktemp to create temporary file and
4720         directory.
4722         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4723         sets correctly.
4724         (__CPU_CLR_S): Likewise.
4725         (__CPU_ISSET_S): Likewise.
4727 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4728             Ulrich Drepper  <drepper@redhat.com>
4730         * scripts/firstversion.awk: Use custom comparison function to compare
4731         version numbers.
4732         * scripts/versions.awk: Use sort invocation which can handle
4733         multi-digit sub-version numbers.
4735 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4737         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4738         * locale/iso-639.def: Add Chhattisgarhi entry.
4740 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4742         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4743         ESRCH return value.
4744         (_nss_dns_gethostbyname4_r): Likewise.
4745         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4746         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4747         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4748         the no_data variable.
4750         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4751         information at the correct index.
4753         * socket/sys/socket.h: Declare accept4.
4754         * socket/accept4.c: New file.
4755         * sysdeps/unix/sysv/linux/accept4.c: New file.
4756         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4757         * socket/Makefile (routines): Add accept4.
4758         * socket/Versions: Export accept4 with version GLIBC_2.10.
4759         * socket/paccept.c: Removed.
4760         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4761         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4762         * Versions.def: Define GLIBC_2.10 for libc.
4763         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4765         * nscd/connections.c: Use accept4.
4767         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4769 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4771         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4772         flag already set.
4774         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4775         not exist.
4776         * stdlib/Makefile (tests): Add tst-unsetenv1.
4777         * stdlib/tst-unsetenv1.c: New file.
4779 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4781         * login/utmp_file.c (file_writable): New variable.
4782         (setutent_file): Don't try to open file for writing.
4783         (pututline_file): Before writing, make descriptor writable if
4784         necessary.
4786 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4788         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4789         to IPv4 or IPv6 if an interface has been found.
4791 2008-11-26  Roland McGrath  <roland@redhat.com>
4793         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4794         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4796         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4797         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4798         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4800         * elf/elf.h (NT_386_IOPERM): New macro.
4801         (NT_PPC_VSX): New macro.
4803 2008-11-25  Roland McGrath  <roland@redhat.com>
4805         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4806         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4807         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4808         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4809         Subdirectories moved to ports repository.
4810         * configure.in (base_machine): Remove alpha case.
4812 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4814         * sysdeps/mach/strerror_l.c: New file.
4816 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4818         [BZ #6411]
4819         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4820         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4821         magic numbers.
4822         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4823         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4824         (relax_fenv_state): Same as above.
4825         (FPSCR_29): Reserve bit in ISA 2.05.
4826         (FPSCR_NI): Provide define for compat.
4827         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4828         magic numbers.
4829         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4830         magic numbers.
4831         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4832         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4833         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4834         access to hwcap to account for hwcap size increase to uint64_t.
4835         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4836         Likewise.
4837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4838         (*setcontext): Likewise.
4839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4840         New file.
4841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4842         New file.
4843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4844         (*setcontext): dynamically select mtfsf insn based on
4845         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4846         increase to uint64_t.
4847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4848         (*swapcontext): dynamically select mtfsf insn based on
4849         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4850         increase to uint64_t.
4851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4852         New file.
4853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4854         New file.
4855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4856         (*setcontext): dynamically select mtfsf insn based on
4857         PPC_FEATURE_HAS_DFP.
4858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4859         (*swapcontext): dynamically select mtfsf insn based on
4860         PPC_FEATURE_HAS_DFP.
4862 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4864         * version.h: Bump for 2.9 release.
4865         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4867         [BZ #7029]
4868         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4869         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4870         all the rounding.
4872 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4874         [BZ #7009]
4875         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4876         unknown request types for now.
4878 2008-11-11  Roland McGrath  <roland@redhat.com>
4880         * sysdeps/x86_64/configure: New file.
4882         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4883         * configure: Regenerated.
4885 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4887         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4888         correct instruction to remove the stack frame.
4890 2008-11-03  Michael Matz  <matz@suse.de>
4892         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4893         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4895 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4897         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4898         Remove.
4900         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4901         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4902         of the thread variable instead of void *.
4903         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4904         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4905         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4906         __libc_tsd_define arguments.
4907         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4908         __libc_tsd_address arguments.  Remove union hack.
4909         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4910         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4911         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4912         Adjust __libc_tsd_{set,get} arguments.
4913         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4914         __libc_tsd_define arguments.
4915         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4916         arguments.
4917         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4918         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4919         (LOCALE): Adjust __libc_tsd_define arguments.
4920         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4921         arguments.
4922         (LOCALE): Adjust __libc_tsd_define arguments.
4923         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4924         arguments.
4925         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4926         arguments.
4928 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4930         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4931         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4933 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4935         [BZ #6966]
4936         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4938 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4939             Ulrich Drepper  <drepper@redhat.com>
4941         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4942         definition for GCC 3.1 and later.
4944 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4946         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4947         refetch dtv, as it might have changed.
4948         * elf/Makefile: Add rules to build and run tst-tls18.
4949         * elf/tst-tls18.c: New test.
4950         * elf/tst-tlsmod18a.c: New file.
4952 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4954         [BZ #6875]
4955         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4957 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4959         [BZ #6867]
4960         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4962         [BZ #6919]
4963         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4964         Fix length of copy operation.
4966 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4968         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4969         and fix its calling convention.
4971 2008-10-07  Andreas Schwab  <schwab@suse.de>
4973         [BZ #6942]
4974         * resolv/res_send.c (send_vc): Fix last change.
4975         (send_dg): Align here as well.
4977 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4979         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4980         return value in case rlimit is RLIM_INFINITY.
4982         [BZ #6947]
4983         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4984         for UL_SETFSIZE.
4985         * resource/Makefile (tests): Add bug-ulimit1.
4986         * resource/bug-ulimit1.c: New file.
4988         [BZ #6974]
4989         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4990         without dot.  Properly terminate the string with a null byte.
4991         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4993         [BZ #6980]
4994         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4995         negative sizees.
4996         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4997         negative __size.
4999         [BZ #6995]
5000         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5002 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5004         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5005         abort if there is no initgroups_dyn function.
5007         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5008         result if any of the queries really provided an answer.
5010 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5012         * po/lt.po: Update from translation team.
5014 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5016         * po/id.po: Update from translation team.
5018 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5020         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5021         Fix tests for existence of second reply.
5023 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5025         * po/id.po: New file.
5026         Contributed by the Indonesian translation team.
5028 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5030         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5031         initialization.
5033 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5035         * elf/Makefile: Add rules to build and run tst-tls17.
5036         * elf/tst-tls17.c: New test.
5037         * elf/tst-tlsmod17a.c: New file.
5038         * elf/tst-tlsmod17b.c: Likewise.
5040 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5042         * stdlib/divmod_1.c: Use correct type for dummy variable.
5043         * stdlib/mod_1.c: Likewise.
5045 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5047         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5049 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5051         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5052         __nonnull order for C++.
5053         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5054         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5056 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5058         * stdlib/longlong.h: Update from GCC.
5060 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5061             David S. Miller  <davem@davemloft.net>
5063         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5064         make sure any registers used with 64-bit 'branch-on-register'
5065         instructions have their top 32-bits clear.
5066         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5067         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5069 2008-09-18  Andreas Schwab  <schwab@suse.de>
5071         [BZ #6942]
5072         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5073         Properly handle partial reads.
5075 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5077         * elf/elf.h (STO_MIPS_PLT): New.
5078         (R_MIPS_COPY): New.
5079         (R_MIPS_JUMP_SLOT): New.
5080         (R_MIPS_NUM): Redefine to 128.
5081         (DT_MIPS_PLTGOT): New.
5082         (DT_MIPS_RWPLT): New.
5083         (DT_MIPS_NUM): Redefine to 0x35.
5085 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5087         * timezone/africa: Update from tzdata2008f.
5088         * timezone/asia: Likewise.
5089         * timezone/australasia: Likewise.
5090         * timezone/europe: Likewise.
5091         * timezone/leapseconds: Likewise.
5092         * timezone/northamerica: Likewise.
5093         * timezone/southamerica: Likewise.
5094         * timezone/zone.tab: Likewise.
5096 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5098         * nscd/connections.c: Disable use of paccept for now.
5100 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5102         * socket/Versions: Remove paccept export for GLIBC_2.9.
5103         * socket/Makefile (routines): Remove paccept.
5104         * socket/sys/socket.h: Remove paccept declaration.
5106         * po/sv.po: Update from translation team.
5108 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5110         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5111         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5113 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5115         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5116         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5118 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5120         * sunrpc/rpc/svc.h: Declare svcfd_create.
5121         Patch by Michael Solberg <msolberg@redhat.com>.
5123 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5124             Ulrich Drepper  <drepper@redhat.com>
5126         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5127         _int_valloc fails.
5128         (public_pVALLOc): Likewise.
5130 2008-09-02  Andreas Jaeger  <aj@suse.de>
5132         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5133         commit.
5135 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5137         [BZ #6860]
5138         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5140 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5142         * Makefile (check-data): Check data directory in add-ons.
5143         * elf/Makefile (check-data): Likewise.
5145 2008-08-18  Roland McGrath  <roland@redhat.com>
5147         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5148         * configure: Regenerated.
5149         * config.make.in (cflags-cpu): New substituted variable.
5150         (with-cpu): Variable removed.
5151         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5153 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5155         [BZ #6845]
5156         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5157         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5158         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5159         redundant.  Functions which call floating point assembler operations
5160         should go into a sysdeps powerpc/fpu directory.
5162 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5164         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5165         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5167 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5169         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5171         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5172         change related to AT_EXECFN.  We cannot use that string.
5173         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5174         _dl_execfn member.
5175         * elf/dl-support.c: Remove _dl_execfn variable.
5176         (_dl_aux_init): Remove handling of AT_EXECFN.
5177         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5178         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5180 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5182         [BZ #6544]
5183         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5184         byte gets added to writes and seeks from the end use the length of
5185         the buffer and not the currently terminating NUL byte.
5187         [BZ #6634]
5188         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5189         Set to true if locking failed.
5190         (getutid_r_file): Adjust caller.
5191         (pututline_file): Likewise.  Return NULL in this case.
5192         Patch mostly by halesh.s@gmail.com.
5194 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5196         [BZ #6589]
5197         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5198         Define.
5199         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5201 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5203         [BZ #6839]
5204         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5205         macro since it is now available in elf/dynamic-link.h.
5207 2008-08-12  Roland McGrath  <roland@frob.com>
5209         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5210         in case used outside of libc.
5211         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5213 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5215         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5216         directly instead of going through dn_comp.
5218 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5220         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5221         Fix asm constraints.
5223 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5225         [BZ #6790]
5226         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5227         (IPV6_PMTUDISC_PROBE): Likewise.
5229 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5231         [BZ #6791]
5232         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5234 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5235             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5237         [BZ #6817]
5238         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5239         Added the members 'vsx' and 'arch_2_06'.
5240         (_dl_powerpc_platforms): Add the member 'power7'.
5241         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5242         to reflect the changes required by VSX and ISA 2.06.
5243         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5244         'power7'.
5245         Defined PPC_PLATFORM_POWER7.
5246         (_dl_string_platform): Add support for POWER7.
5247         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5248         capability and ISA 2.06.
5250 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5252         [BZ #6824]
5253         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5254         macro to detect use of 128 bit long double.
5255         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5257 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5259         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5261         [BZ #5794]
5262         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5263         parameters.
5264         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5265         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5267 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5269         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5270         guaranteed to be large enough to read inotify event.  Ignore
5271         EAGAIN error.  Better error message.  Add branch predicition.
5272         (main_loop_epoll): Likewise.
5274 2008-08-02  Roland McGrath  <roland@frob.com>
5276         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5277         Add memory clobbers.
5279 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5281         * manual/arith.texi: Avoid @strong{Note:}.
5282         * manual/creature.texi: Likewise.
5283         * manual/filesys.texi: Likewise.
5284         * manual/math.texi: Likewise.
5285         * manual/memory.texi: Likewise.
5286         * manual/resource.texi: Likewise.
5287         * manual/syslog.texi: Likewise.
5288         * manual/time.texi: Likewise.
5290         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5291         to prevent warning.
5293 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5295         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5296         new epoll_create1 interface.
5297         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5298         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5301         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5302         (NS_GET32): Likewise.
5304         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5305         syscalls, too.
5307         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5308         use the AT_EXECFN value if it is no absolute path.
5309         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5310         __ASSUME_AT_EXECFN.
5312         * Versions.def: Add GLIBC_2.9 to libresolv.
5313         * include/resolv.h: Remove hidden proto declarations for __ns_*
5314         functions.  Add them for __dn_count_labels and __p_secstodate.
5315         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5316         Define ns_msg_getflags macro here.
5317         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5318         and __p_secstodate.
5319         * resolv/Versions: Export functions from <arpa/nameser.h> from
5320         libresolv in version GLIBC_2.9.
5321         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5322         hidden definitions.
5323         * resolv/ns_netint.c: Likewise.
5324         * resolv/ns_parse.c: Likewise.
5325         * resolv/ns_print.c: Likewise.
5326         * resolv/ns_samedomain.c: Likewise.
5327         * resolv/ns_ttl.c: Likewise.
5328         * resolv/arpa/nameser_compat.h: Likewise.
5329         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5330         function calls.
5331         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5332         instead of ns_get16.
5333         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5334         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5335         (gaih_getanswer_slice): Likewise.
5336         * resolv/Makefile (libresolv-routines): Add ns_date.
5337         * resolv/ns_date.c: New file.
5339         * elf/Makefile (check-localplt.out): Also check libresolv and
5340         libcrypt.
5342 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5344         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5345         __ASSUME_O_CLOEXEC.
5347 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5349         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5350         buffer passed to NSS functions.
5352         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5354         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5355         Define.
5357         * misc/syslog.c (openlog_internal): Fix compile problem.
5359 2008-07-28  Roland McGrath  <roland@redhat.com>
5361         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5363 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5365         * io/ftw.c (add_object): Remove inline to avoid warning.
5367         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5369         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5370         Use it instead of locally defined resplen2 variable.
5371         (res_nsend): Adjust for __libc_res_nsend interface change.
5372         (send_vc): Initialize *resplen2 if necessary.  Read length of
5373         package into an appropriately aligned variable.  Store converted length
5374         in new variable and use it appropriately.
5375         Add branch prediction help.
5376         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5377         and pass it on to __libc_res_nsend.  Adjust all callers.
5378         (__libc_res_nsearch): Likewise.
5379         (__libc_res_nqeurydomain): Likewise.
5380         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5381         change.
5382         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5383         Define resplen2 variable and pass it to __libc_res_nsearch and then
5384         to gaih_getanswer.
5385         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5386         Add branch prediction.
5387         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5388         (gaih_getanswer): Don't decode second slice if first one failed due
5389         to a too small buffer.  Don't let not found status of second
5390         decoder shadow results of the first.
5391         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5392         and __libc_res_nquery interface changes
5393         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5394         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5395         __libc_res_nsearch, and __libc_res_nsend.
5396         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5397         change.
5398         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5399         __libc_res_nsearch interface changes.
5401 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5403         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5405         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5406         file descriptors with close-on-exec set.
5407         (exec_comm_child): Fix the case where the write end of the pipe is
5408         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5410         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5411         * io/pipe2.c: Likewise.
5412         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5413         instead of __ASSUME_PACCEPT.
5414         * include/unistd.h: Declare __have_pipe2.
5415         * libio/iopopen.c: Implement "e" flag.
5416         * libio/Makefile (tests): Add tst-popen1.
5417         * libio/tst-popen1.c: New file.
5419         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5420         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5422 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5424         [BZ #6771]
5425         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5426         success call of _IO_SEEKOFF or calls which failed because the
5427         descriptor is for a pipe.
5429         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5430         magic number.
5432         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5434         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5435         F_SETFD use if we know fopen set the flag.
5437         * login/utmp_file.c (setutent_file): Minor optimization in case
5438         O_CLOEXEC is available.
5440 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5442         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5443         * elf/Makefile: Use pie-ccflag variable.
5444         * nscd/Makefile: Likewise.
5445         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5447 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5449         [BZ #6724]
5450         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5451         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5452         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5453         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5454         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5455         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5456         utmp32, utmpx32 and login32.
5457         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5458         versions of struct utmp functions to libc and libutil.
5459         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5460         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5461         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5462         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5463         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5464         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5465         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5466         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5467         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5468         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5469         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5470         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5471         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5472         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5473         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5474         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5475         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5476         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5477         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5478         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5479         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5480         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5482 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5484         * scripts/gen-as-const.awk: Generate more widely usable code by
5485         using 64-bit arithmetic.
5487         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5488         the same treatment as narrow output code in last patch.
5490         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5492         [BZ #6763]
5493         * elf/dl-load.c (local_strdup): Remove inline.
5494         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5495         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5496         part of the object.
5498         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5500 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5502         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5503         the new syscalls, too.
5505         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5506         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5508         [BZ #6698]
5509         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5510         parameter for end of buffer.  If temporary copy is too large use
5511         malloc.
5512         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5513         interface change.
5514         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5515         string rewrite when allocating buffer.
5517         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5518         syscalls, too.
5520         * nscd/connections.c (nscd_init): Clean up fcntl call.
5522         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5523         SOCK_NONBLOCK if possible.
5525         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5526         SOCK_CLOEXEC if available.
5528         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5529         __libc_clntudp_bufcreate_internal.
5530         * include/sys/socket.h: Declare __have_sock_cloexec.
5531         * socket/Makefile (aux): Add have_sock_cloexec.
5532         * socket/have_sock_cloexec.c: New file.
5533         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5534         __libc_clntudp_bufcreate.
5535         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5536         which takes an additional parameter.  Create socket with non-blocking
5537         mode and close-on-exec flag set, if wanted.
5538         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5539         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5540         instead of clntudp_create.  The socket has already the close-on-exec
5541         flag set if SOCK_CLOEXEC is defined.
5543 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5545         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5546         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5547         appropriate.
5548         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5549         non-blocking mode by using socket, paccept, and inotify_init1.
5551         * Versions.def (glibc): Add GLIBC_2.9.
5552         * io/Makefile (routines): Add dup3 and pipe2.
5553         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5554         * io/dup3.c: New file.
5555         * io/pipe2.c: New file.
5556         * posix/unistd.h: Declare dup3 and pipe2.
5557         * socket/Makefile (routines): Add paccept.
5558         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5559         * socket/paccept.c: New file.
5560         * socket/sys/socket.h: Declare paccept.
5561         * sysdeps/unix/syscalls.list: Add entry for dup3.
5562         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5563         epoll_create2 and inotify_init1.
5564         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5565         * sysdeps/unix/sysv/linux/paccept.c: New file.
5566         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5567         possible.
5568         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5569         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5570         inotify_init1, and pipe2 entries.
5571         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5572         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5573         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5574         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5575         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5576         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5577         SOCK_NONBLOCK.
5578         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5579         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5580         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5581         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5582         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5583         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5584         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5585         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5586         EPOLL_NONBLOCK.  Declare epoll_create2.
5587         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5588         EFD_NONBLOCK.
5589         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5590         IN_NONBLOCK.  Declare inotify_init1.
5591         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5592         SFD_NONBLOCK.
5593         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5594         TFD_NONBLOCK.
5596         * elf/elf.h: Define AT_EXECFN.
5597         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5598         LD_ORIGIN_PATH.
5599         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5600         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5601         if __ASSUME_AT_EXECFN is defined.
5602         (_dl_aux_init): Handle AT_EXECFN.
5603         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5604         for 2.6.27 and up.
5605         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5606         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5607         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5608         _dl_execfn if available and avoid compatibility code if
5609         __ASSUME_AT_EXECFN is defined.
5611         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5612         _dl_discover_osversion only for older kernels.
5614 2008-07-22  Roland McGrath  <roland@frob.com>
5616         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5618 2008-07-21  Roland McGrath  <roland@frob.com>
5620         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5621         returned too much data out of line.
5623 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5625         * locale/setlocale.c (setname): Remove inline to avoid compiler
5626         warning.
5628         [BZ #6712]
5629         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5631 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5633         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5634         doesn't manage to write anything, fail.
5636         * malloc/hooks.c (__malloc_check_init): Remove printf.
5638 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5640         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5642 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5644         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5645         from inotify.
5646         (main_loop_epoll): Likewise.
5648 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5650         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5652         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5653         if DEBUG is defined.
5655         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5656         query.  Adjust buffer size computation for padding.
5658 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5660         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5661         * stdio-common/tst-setvbuf1.c: New file.
5662         * stdio-common/tst-setvbuf1.expect: New file.
5664         [BZ #6719]
5665         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5666         when selecting fully-buffered stream.
5667         Patch by Wang Xin <wxinee@gmail.com>.
5669 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5671         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5672         (__open_2): New function.
5673         (__open64_2): New alias to __open_2.
5674         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5675         (__openat_2): New function.
5676         (__openat64_2): New alias to __openat_2.
5678 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5680         [BZ #6723]
5681         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5683 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5685         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5686         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5687         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5688         __hurd_dfail.
5689         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5690         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5691         * sysdeps/mach/hurd/send.c (__send): Likewise.
5692         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5693         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5695 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5697         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5698         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5699         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5700         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5701         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5702         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5704 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5706         [BZ #6657]
5707         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5708         of %EY.
5709         Patch by Petr Baudis.
5711 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5713         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5714         Patch by Peter Jones <pjones@redhat.com>.
5716 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5718         [BZ #6654]
5719         * stdlib/canonicalize.c (__realpath): readlink can write too much
5720         into the buffer on platforms without PATH_MAX.
5722 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5724         [BZ #6653]
5725         * posix/tst-regex.c (main): Rename to...
5726         (do_test): ... this. Remove cmdline option processing.
5727         (TIMEOUT): Define.
5728         (TEST_FUNCTION): Define.
5729         (CMDLINE_OPTIONS): Define.
5731 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5733         [BZ #5210]
5734         * configure.in: Add -Werror to -fstack-protector test to catch
5735         unsupported architectures.
5736         Patch by Gilles Esponasse <g.esp@free.fr>.
5738 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5740         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5741         getcontext returns ENOSYS.
5743 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5745         * nscd/connections.c (main_loop_poll): Fix test for read error.
5746         (main_loop_epoll): Likewise.
5748 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5750         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5751         better place so it is not called when nscd is used.
5753         * nscd/connections.c: Also recognize and handle changes to the
5754         resolver configuration file.
5756 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5758         * time/strftime.c: Pass reference to tzset_called around to handle
5759         recursive calls.
5761         [BZ #6612]
5762         * time/strftime.c (__strftime_internal): Call tzset() only
5763         when printing timezone-dependent values.
5764         Based on a patch by Petr Baudis <pasky@suse.cz>.
5766         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5767         unconditionally use second gaih_getanswer_slice result.
5769         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5770         (getaddrinfo): RES must always be non-NULL.
5772 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5774         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5775         cr[34] registers.
5776         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5777         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5778         Likewise.
5779         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5780         register.
5782 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5784         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5785         fields.
5786         * nscd/connections.c (inotify_fd): New variable.
5787         (nscd_init): Try to open an inotify descriptor.
5788         If successful, watch files for databases using inotify instead of
5789         having prune threads stat the files.
5790         (nscd_run_prune): Recognize clear_cache flag being set and call
5791         prune_cache appropriately.
5792         (main_loop_poll): Add inotify descriptor to wait set and handle the
5793         reported changes.
5794         (main_loop_epoll): Likewise.
5795         * nscd/cache.c (prune_cache): Don't stat files for databases if
5796         inotify is used.
5797         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5798         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5800         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5801         fixed-size portion of the record.
5802         * nscd/servicescache.c (cache_addserv): Likewise.
5803         * nscd/pwdcache.c (cache_addpw): Likewise.
5804         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5806 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5808         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5809         out we don't use uninitialized memory.
5811         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5812         the client.
5814 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5816         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5817         ignore T_DNAME messages.
5818         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5820 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5822         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5823         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5825 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5827         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5828         instead of portstr to nscd_getserv_r.  Patch by
5829         Roman Kagan <rkagan@mail.ru>.
5831 2008-05-26  Jim Meyering  <meyering@redhat.com>
5833         Remove more useless "if" tests before "free".
5834         * include/inline-hashtab.h (htab_delete): Likewise.
5835         * libio/freopen.c (freopen): Likewise.
5836         * libio/freopen64.c (freopen64): Likewise.
5837         * locale/programs/ld-collate.c (collate_read): Likewise.
5838         * misc/fstab.c (libc_freeres_fn): Likewise.
5839         * posix/glob.c (globfree): Likewise.
5841 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5843         * string/Makefile (strop-tests): Add memmem.
5844         * string/test-memmem.c: New file.
5845         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5846         (test_init): Size buf1 according to BUF1PAGES.
5848 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5850         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5851         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5852         (CFLAGS-scanf17.c): New.
5853         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5854         * stdio-common/scanf15.c (main): Likewise.
5855         * stdio-common/scanf16.c: New file.
5856         * stdio-common/scanf17.c: New file.
5858 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5860         * resolv/res_send.c (send_dg): If we already have one of two
5861         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5862         use the one answer insted of failing.
5864 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5866         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5867         being executed on PowerPC as the expected result exceeds IBM
5868         long double 128 __LDBL_MAX__.
5870 2008-05-21  Roland McGrath  <roland@redhat.com>
5872         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5874         * Makefile (check-data): Use $(abi-name) before other guesses.
5875         Look in $(add-ons) dirs before scripts/data/.
5876         * elf/Makefile (check-data): Likewise.
5878         * scripts/soversions.awk: Grok ABI line.
5879         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5880         Emit definition for abi-name variable.
5882 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5884         * string/endian.h: Define new fixed-size hto* and *toh macros only
5885         if [__USE_BSD].
5887         * iconvdata/Depend: Add localedata.
5889 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5891         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5893 2008-05-08  David S. Miller  <davem@davemloft.net>
5895         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5896         HIDDEN_JUMPTARGET.
5897         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5898         (__SYSCALL_CLOBBERS): Remove %g* registers.
5899         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5900         (__SYSCALL_CLOBBERS): Likewise.
5901         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5902         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5904 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5906         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5907         (CALL_ERRNO_LOCATION): Define.
5908         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5909         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5910         (CALL_ERRNO_LOCATION): Define.
5911         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5912         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5913         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5915 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5917         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5918         variable.
5920 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5922         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5923         (FIRST_FRAME_POINTER): Define.
5925 2008-05-09  David S. Miller  <davem@davemloft.net>
5927         * sysdeps/sparc/sparc64/backtrace.c: New file.
5929 2008-05-14  David S. Miller  <davem@davemloft.net>
5931         * sysdeps/sparc/machine-gmon.h: New file.
5932         * sysdeps/sparc/sparc-mcount.S: Likewise.
5933         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5934         sysdep_routines in gmon directory.
5936 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5938         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5940 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5942         * resolv/res_query.c (__libc_res_nquery): In case one of two
5943         answer was too short don't try to read that answer's header.
5945         * resolv/res_send.c (send_dg): In case of timeout and there are
5946         two queries and one has been answered, return value indicating
5947         success.
5949 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5951         * nscd/cache.c (cache_add): Take additional parameter specifying
5952         whether this is in response of a cache refill.  Check alignment
5953         of package data.  Revamp waking of pruning thread.
5954         (prune_cache): Small optimization.
5955         * nscd/nscd.h: Adjust cache_add prototypes.
5956         * nscd/aicache.c: Adjust cache_add calls.
5957         * nscd/grpcache.c: Likewise.
5958         * nscd/hstcache.c: Likewise.
5959         * nscd/initgrcache.c: Likewise.
5960         * nscd/pwdcache.c: Likewise.
5961         * nscd/servicescache.c: Likewise.
5962         * nscd/connections.c (restart): Really disable cache use before
5963         exec attempt.  If it fails, reenable cache.
5964         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5965         time to max to be able to notice concurrent cache additions.  Unlock
5966         prune_lock while performing gc.  Afterwards compute wakeup time with
5967         current wakeup_time value in mind.
5969 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5971         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5973         * nscd/mem.c (gc): Correctly determine highest used array element
5974         in mark.
5976         * nscd/mem.c (markrange): Add assert to check entries are all
5977         aligned.  Small cleanup in bitmap use.
5979         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5980         blockoff of type nscd_ssize_t.
5981         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5982         (mempoll_alloc): Record block offset and not address.
5984         * nscd/mem.c (gc): Fix test for stack overuse.
5986         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5987         more asserts.
5989         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5990         entry is available, believe it.
5992         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5993         no answers return NSS_STATUS_NOTFOUND.
5994         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5995         buffer does not have any content.
5997 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5999         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6001         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6002         lookup, don't assign canon unconditionally.
6004 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6006         * string/Makefile (distribute): Add str-two-way.h.
6008 2008-03-29  Eric Blake  <ebb9@byu.net>
6010         Rewrite string searches to O(n) rather than O(n^2).
6011         * string/str-two-way.h: New file.  For linear fixed-allocation
6012         string searching.
6013         * string/memmem.c: New implementation.
6014         * string/strstr.c: New implementation.
6015         * string/strcasestr.c: New implementation.
6017 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6019         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6020         opr.ctx_type.
6021         (calc_first): Initialize constraint field.
6022         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6023         Use search_duplicated_node to avoid loops.  Fix grammar.
6024         (duplicate_node): Merge constraint field for all node types.
6025         (calc_eclosure_iter): Look at constraint field for all node types.
6026         * posix/regex_internal.c (create_cd_newstate): Don't look at
6027         create_cd_newstate.
6029 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6031         [BZ #6428]
6032         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6034         [BZ #6442]
6035         * string/endian.h: Add macros for fixed-size endian conversion.
6036         * bits/byteswap.h: Allow inclusion from <endian.h>.
6037         * sysdeps/i386/bits/byteswap.h: Likewise.
6038         * sysdeps/ia64/bits/byteswap.h: Likewise.
6039         * sysdeps/s390/bits/byteswap.h: Likewise.
6040         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6041         * string/Makefile (tests): Add tst-endian.
6042         * string/tst-endian.c: New file.
6044         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6045         Patch by Reuben Thomas.
6047 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6049         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6051 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6053         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6055         [BZ #6461]
6056         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6057         Add missing braces.
6058         (BODY for __gconv_transform_internal_ascii): Likewise.
6060         [BZ #6472]
6061         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6062         to be treated like link-local addresses.
6063         (match_prefix): Don't treat IPv4 loopback address special when
6064         converting to v4 mapped addressed.
6066         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6067         if necessary.
6068         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6069         * posix/tst-rfc3484-2.c: Likewise.
6070         * posix/tst-rfc3484-3.c: Likewise.
6072         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6073         and SCTP.
6075         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6077         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6079         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6081 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6083         * po/lt.po: New file.  From Lituanian translation team.
6085 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6087         Introduce TLS descriptors for i386 and x86_64.
6088         * include/inline-hashtab.h: New file, copied from 2005's
6089         libiberty, with fix for memory leak imported afterwards by
6090         Glauber de Oliveira Costa.
6091         * elf/tlsdeschtab.h: New file.
6092         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6093         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6094         (CHECK_STATIC_TLS): Move to...
6095         * elf/dynamic-link.h: ... this file.
6096         (TRY_STATIC_TLS): New macro.
6097         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6098         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6099         R_386_TLS_DESC): Define.
6100         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6101         binutils.
6102         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6103         R_X86_64_TLSDESC): Define.
6104         (R_386_NUM, R_X86_64_NUM): Adjust.
6105         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6106         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6107         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6108         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6109         release tlsdesc_table.
6110         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6111         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6112         (elf_machine_rel): Handle R_386_TLS_DESC.
6113         (elf_machine_rela): Likewise.
6114         (elf_machine_lazy_rel): Likewise.
6115         (elf_machine_lazy_rela): Likewise.
6116         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6117         * sysdeps/i386/dl-tlsdesc.S: New file.
6118         * sysdeps/i386/dl-tlsdesc.h: New file.
6119         * sysdeps/i386/tlsdesc.c: New file.
6120         * sysdeps/i386/tlsdesc.sym: New file.
6121         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6122         tlsdesc_table.
6123         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6124         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6125         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6126         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6127         release tlsdesc_table.
6128         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6129         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6130         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6131         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6132         (elf_machine_rela): Likewise.
6133         (elf_machine_lazy_rel): Likewise.
6134         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6135         (__tls_get_addr): Do not declare for non-shared compiles.
6136         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6137         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6138         * sysdeps/x86_64/tlsdesc.c: New file.
6139         * sysdeps/x86_64/tlsdesc.sym: New file.
6140         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6141         tlsdesc_table for both 32- and 64-bit structs.
6143 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6145         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6146         its own function.  This reduces the frame setup costs and more.
6148 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6150         [BZ #3406]
6151         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6152         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6154 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6156         * io/openat.c (__openat_2): Also pass fd to __openat.
6157         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6158         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6160         * string/tester.c (test_memcmp): Add a few more tests.
6161         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6163 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6165         * nscd/cache.c (cache_add): Before returning with failure and this
6166         is the first use of the record, mark it as unusable.
6167         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6168         reporting a failure.
6169         * nscd/grpcache.c: Likewise
6170         * nscd/hstcache.c: Likewise.
6171         * nscd/initgrcache.c: Likewise.
6172         * nscd/pwdcache.c: Likewise.
6173         * nscd/servicescache.c: Likewise.
6175 2008-05-10  Roland McGrath  <roland@redhat.com>
6177         [BZ #6505]
6178         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6180 2008-05-08  David S. Miller  <davem@davemloft.net>
6182         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6184         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6185         (__ieee754_y0l): Likewise.
6186         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6187         (__ieee754_y1l): Likewise.
6188         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6189         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6190         frexpl and ldexpl.  math_private.h provides them and the latter
6191         is not even used.
6192         (__log1pl): Use __frexpl.
6194 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6196         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6197         prototypes.
6198         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6199         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6200         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6201         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6202         af==AF_UNSPEC.
6203         (_nss_nis_gethostbyname4_r): New function.
6204         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6205         Change to also handle af==AF_UNSPEC.
6206         (get_tablename): New function.  Use it to avoid duplication.
6207         (_nss_nisplus_gethostbyname4_r): New function.
6208         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6209         available.
6210         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6211         * nss/nss.h: Define struct gaih_addrtuple.
6212         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6213         af==AF_UNSPEC.
6214         (_nss_files_gethostbyname4_r): New function.
6215         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6216         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6217         calls.
6218         * resolv/res_query.c (__libc_res_nquery): Take two additional
6219         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6220         look up IPv4 and IPv6.
6221         Change all callers.
6222         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6223         for an additional query and answer buffer.  Pass to send_vc and
6224         send_dg.
6225         (send_vc): Send possibly two requests and receive two answers.
6226         (send_dg): Likewise.
6227         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6228         __libc_res_nquery.
6229         (_nss_dns_gethostbyname4_r): New function.
6230         (gaih_getanswer_slice): Likewise.
6231         (gaih_getanswer): Likewise.
6232         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6233         __libc_res_nquery call.
6234         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6235         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6236         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6237         available.
6239 2008-05-05  David S. Miller  <davem@davemloft.net>
6241         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6242         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6244 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6246         Fix termios bit macros.
6247         Move *DLY definitions where they belong, in termios.h.
6248         Add *[0-3] definitions.
6249         Fixes confusion between VT and FF.
6250         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6251         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6252         are already defined to avoid collision with termios.h.
6253         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6254         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6255         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6256         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6257         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6258         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6259         VTDLY, VT0, VT1): New macros.
6260         [__USE_GNU] (OLCUC): Change value of macro.
6261         [__USE_XOPEN] (OFILL): New macro.
6262         [__USE_BSD] (CRTSCTS): Change value.
6263         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6264         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6265         (B7200, B14400, B28800, B76800): New macros.
6267 2008-05-01  David S. Miller  <davem@davemloft.net>
6269         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6270         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6271         (gen-as-const-headers): Add it.
6272         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6273         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6274         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6275         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6277         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6278         six system call parameters.
6279         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6281 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6283         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6284         RUSAGE_LWP.
6285         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6286         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6288 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6290         * stdlib/tst-setcontext.c: Include unistd.h.
6292 2008-04-25  David S. Miller  <davem@davemloft.net>
6294         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6295         Pass "union semun" properly in to sys_ipc, it must be passed
6296         by value, not by reference.
6298 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6300         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6301         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6302         * nscd/connections.c (mem_in_flight): Likewise.
6304         * nscd/nscd.h (dbs): Make hidden.
6306         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6307         Avoid returning -1, return 0 instead.
6309 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6311         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6313 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6315         [BZ #5209]
6316         * sysdeps/unix/sysv/linux/times.c: New file.
6318         [BZ #5381]
6319         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6320         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6321         prototype.
6322         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6323         appropriate mem_in_flight element.
6324         (gc): Take allocations which have not yet been committed to the
6325         database into account.
6326         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6327         Reset mem_in_flight before returning.
6328         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6329         cue it up in mem_in_flight_list.
6330         * nscd/aicache.c: Adjust mempool_alloc call.
6331         * nscd/grpcache.c: Likewise.
6332         * nscd/hstcache.c: Likewise.
6333         * nscd/initgrcache.c: Likewise.
6334         * nscd/pwdcache.c: Likewise.
6335         * nscd/servicescache.c: Likewise.
6336         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6337         of -fpie.
6339         * nscd/connections.c (handle_request): Provide better error message
6340         in case SELinux forbids the service.
6342         * version.h (VERSION): Bump to 2.8.90.
6344 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6346         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6348 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6350         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6351         Also use for 32-bit.
6352         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6353         __nextafter instead of nextafter to avoid local PLT.
6354         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6355         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6357         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6359         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6360         __fe_nomask_env.
6361         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6362         <fenv_libc.h> instead of <fenv.h>.
6363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6366         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6368         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6369         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6370         function from fegetexcept and make old name weak alias.
6371         * include/fenv.h: Declare __fegetexcept.
6372         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6373         fegetexcept.
6374         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6375         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6376         to fetestexcept.
6377         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6378         instead of frexpl to avoid local PLT.
6379         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6380         ilogbl to avoid local PLT.
6381         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6382         instead of ldexpl to avoid local PLT.
6383         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6384         __roundl not roundl to avoid local PLT.
6385         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6386         local PLTs.  Use __sincosl instead of separate sinl and cosl
6387         calls.
6388         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6390         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6391         version for ppc64 to 2.4.21 since without it makecontext will fail.
6393         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6394         to the ABI in use.
6395         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6396         .__tls_get_addr.
6397         [__powerpc64__] (TLS_GD): Likewise.
6399 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6401         [BZ #4997]
6402         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6403         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6404         mantissa.
6405         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6406         Likewise.  Also account for when x is an odd number between 2^52
6407         and 2^53-1.
6408         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6409         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6410         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6411         detect aforementioned erroneous conditions.
6413 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6415         * configure.in: Check for -fno-section-anchors in addition to
6416         -fno-toplevel-reorder.
6418 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6420         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6422         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6423         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6424         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6425         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6426         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6427         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6429 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6431         [BZ #5443]
6432         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6433         * time/alt_digit.c: Likewise.
6434         * wcsmbs/wcsmbsload.c: Likewise.
6436 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6438         * version.h (VERSION): Bump to 2.8.
6440         * timzeone/asia: Update from tzdata2008b.
6441         * timezone/backward: Likewise.
6442         * timezone/europe: Likewise.
6443         * timezone/northamerica: Likewise.
6444         * timezone/southamerica: Likewise.
6445         * timezone/iso3166.tab: Likewise.
6446         * timezone/leapseconds: Likewise.
6447         * timezone/zone.tab: Likewise.
6448         * timezone/private.h: Update from tzcode2008a.
6449         * timezone/zdump.c: Likewise.
6450         * timezone/zic.c: Likewise.
6452 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6454         [BZ #5741]
6455         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6456         Define additonal Data Cache Block instruction macros.
6457         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6458         Replace dcbst with dcbf and sync with sync/isync.
6460 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6462         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6463         Always set ELF_RTYPE_CLASS_PLT.
6464         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6466 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6468         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6469         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6470         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6471         For ISA 2.01 and later replace mftb with mfspr 268.
6473 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6475         [BZ #5768]
6476         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6477         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6479 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6481         [BZ #5768]
6482         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6483         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6484         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6485         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6487 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6489         * stdlib/tst-makecontext.c (othervar): New variable.
6490         (cf): Test sign extending the argument to long.
6492 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6494         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6495         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6496         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6497         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6498         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6499         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6500         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6502 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6504         * elf/Makefile (tests): Substitute tests-vis-yes here.
6505         (tests-vis-yes): Delete.
6506         (modules-name, modules-vis-yes): Similarly.
6508 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6510         [BZ #4407]
6511         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6512         Preserve sign in signgamp when x is zero.
6514 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6516         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6517         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6518         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6519         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6520         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6521         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6523 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6525         [BZ #4314]
6526         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6527         buffers.
6529         [BZ #5209]
6530         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6531         a reserved error value.
6533         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6534         value to check for correct sign extension.
6536         [BZ #5436]
6537         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6538         Copy 64-bit parameter values even though this is not required in
6539         the standard.
6541         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6542         PC save.
6544 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6546         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6547         PC save.
6549 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6551         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6553 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6555         [BZ #5998]
6556         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6557         in line-buffered stream failed.
6558         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6560 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6562         [BZ #6024]
6563         * scripts/abi-versions.awk: If the version specified by
6564         --enable-oldest-abi is older than the first version for this
6565         architecture, use the default version.
6567         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6568         as well when ignoring the whole category.
6570 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6572         [BZ #6042]
6573         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6574         ETHERTYPE_* definitions.
6575         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6577 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6579         * stdlib/mbtowc.c (__no_r_state): Remove.
6580         (mbtowc): New static state variable.  Use it instead of
6581         __no_r_state.
6582         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6583         (__wctomb_state): New hidden variable.
6584         (wctomb): Use __wctomb_state instead of __no_r_state.
6585         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6586         (__wctomb_state): New extern decl.
6587         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6589 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6591         [BZ #5475]
6592         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6594 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6596         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6598 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6600         * po/nl.po: Update from translation team.
6602 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6604         [BZ #6007]
6605         * string/strfry.c: Handle empty strings again.
6607 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6609         [BZ #5443]
6610         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6611         before looking for translation.
6612         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6613         * locale/freelocale.c: Likewise.
6614         * locale/newlocale.c: Likewise.
6615         * locale/setlocale.c: Likewise.
6616         Based partially on a patch by ryo@np.css.fujitsu.com.
6618 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6620         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6621         acquiring wrlock.  Do conv_tab allocation while holding lock.
6622         * intl/Makefile: Add rules to build and run tst-gettext6.
6623         * intl/tst-gettext6.c: New test.
6624         * intl/tst-gettext6.sh: New file.
6626 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6628         * po/nl.po: Update from translation team.
6630         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6631         provided through st_blksize, try the default size before giving up.
6633 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6635         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6637         [BZ #5939]
6638         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6640         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6641         error message.  POSIX today does not require the messages to be in
6642         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6644         [BZ #5979]
6645         * sunrpc/auth_unix.c: Unify printed strings.
6646         * sunrpc/clnt_tcp.c: Likewise.
6647         * sunrpc/clnt_udp.c: Likewise.
6648         * sunrpc/clnt_unix.c: Likewise.
6649         * sunrpc/svc_tcp.c: Likewise.
6650         * sunrpc/svc_udp.c: Likewise.
6651         * sunrpc/svc_unix.c: Likewise.
6652         * sunrpc/xdr.c: Likewise.
6653         * sunrpc/xdr_array.c: Likewise.
6654         * sunrpc/xdr_rec.c: Likewise.
6655         * sunrpc/xdr_ref.c: Likewise.
6656         * locale/programs/ld-time.c (time_finish): Unify messages.
6657         * locale/programs/locfile.c (handle_copy): Fix typo.
6658         * nscd/nscd.c (options): Fix typo.
6660         [BZ #5995]
6661         * stdlib/strtod_l.c: Use correct sign for result in one more
6662         underflow case.
6663         Patch by Eric Blake <ebb9@byu.net>.
6665 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6667         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6668         and creat system calls.
6669         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6670         call.
6671         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6672         system calls.
6673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6674         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6675         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6677 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6679         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6680         <linux/limits.h> has defined it.
6681         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6682         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6683         headers.
6684         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6685         it instead of ARG_MAX.
6687 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6689         * posix/gai.conf: Fix comment for scope nullbits.
6690         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6691         default to 128 bits for v4 mapped addresses.
6693 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6695         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6696         ptrace call to get the ieee_instruction_pointer from the kernel.
6697         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6698         ptrace call to set the ieee_instructtion_pointer.
6699         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6700         Add comment that ieee_instruction_pointer is always 0.
6702 2008-03-09  Andreas Jaeger  <aj@suse.de>
6704         [BZ #5857]
6705         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6706         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6707         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6709         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6710         (rint_test): Likewise.
6712 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6714         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6715         call.
6716         (__nisfind_server): Similar for open readColdStartFile call.
6717         Patch partially by Jim Meyering.
6718         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6719         around internal_setent call.
6721         * po/vi.po: New Vietnamese translation.
6723         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6724         ADJ_OFFSET_SS_READ.
6726         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6727         remove CLONE_STOPPED.
6729 2008-02-10  Jim Meyering  <meyering@redhat.com>
6731         Remove useless "if" before "free":
6732         * elf/ldconfig.c (parse_conf_include): Likewise.
6733         * gmon/gmon.c (weak_alias): Likewise.
6734         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6735         * inet/rcmd.c (__validuser2_sa): Likewise.
6736         * intl/bindtextdom.c (set_binding_values): Likewise.
6737         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6738         * libio/genops.c (save_for_backup): Likewise.
6739         * libio/wgenops.c (save_for_wbackup): Likewise.
6740         * locale/programs/ld-collate.c (collate_read): Likewise.
6741         * locale/programs/linereader.c (get_string): Likewise.
6742         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6743         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6744         * resolv/res_debug.c (do_section): Likewise.
6745         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6746         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6747         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6748         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6749         * time/tzset.c (tzset_internal): Likewise.
6751 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6753         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6754         of ASSEMBLER.
6756 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6758         [BZ #5903]
6759         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6760         not stream for output file.  Open output file here.
6761         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6762         and output file name.
6763         (process_fd): Likewise.
6764         (process_file): Likewise.
6765         (main): Adjust callers of changed functions.
6766         * iconv/iconv_prog.h: Adjust prototype.
6768 2008-03-09  Andreas Jaeger  <aj@suse.de>
6770         [BZ #5753]
6771         * sysdeps/ia64/ieee754.h: Use protected namespace
6772         __BIG_ENDIAN/__LITTLE_ENDIAN.
6773         * sysdeps/ieee754/ieee754.h: Likewise.
6774         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6776 2008-03-08  Roland McGrath  <roland@frob.com>
6778         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6779         ignore a signal that came from a machine exception, treat it as a
6780         fatal core-dump signal instead.
6781         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6783         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6784         Clear DF bit in thread state's eflags.
6785         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6787 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6789         [BZ #5774]
6790         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6791         of NAN(...) sequence.
6792         * stdlib/Makefile (tests): Add tst-strtod6.
6793         * stdlib/tst-strtod6.c: New file.
6795         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6797         [BZ #5762]
6798         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6799         putting offending option character in quotes.  Clean up error
6800         messages.
6801         * po/be.po: Adjust msgstr in translation file.
6802         * po/bg.po: Likewise.
6803         * po/ca.po: Likewise.
6804         * po/cs.po: Likewise.
6805         * po/da.po: Likewise.
6806         * po/de.po: Likewise.
6807         * po/es.po: Likewise.
6808         * po/fr.po: Likewise.
6809         * po/hr.po: Likewise.
6810         * po/ko.po: Likewise.
6811         * po/nl.po: Likewise.
6812         * po/rw.po: Likewise.
6813         * po/sk.po: Likewise.
6814         * po/sv.po: Likewise.
6815         * po/tr.po: Likewise.
6816         * po/zh_CN.po: Likewise.
6817         * po/zh_TW.po: Likewise.
6819         [BZ #5760]
6820         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6821         Patch by Roland Bless <roland@bless.de>.
6823         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6824         .o file.
6825         * elf/Makefile (routines): Add dl-sysdep.
6826         (elide-routines.os): Likewise.
6828 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6830         [BZ #5786]
6831         * elf/dl-sysdep.c: Undefine ROUND after use.
6832         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6833         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6834         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6835         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6836         to ...
6837         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6838         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6839         if necessary.
6840         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6842         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6843         _dl_tls_get_addr_soft element.
6844         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6845         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6846         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6847         GLRO.
6848         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6849         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6850         of internal_function.
6852         * stdlib/Makefile (aux): Add tens_in_limb.
6853         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6854         * stdlib/tens_in_limb.c: ...here.  New file.
6856         [BZ #5778]
6857         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6858         __statfs_chown_restricted.
6859         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6860         for _PC_CHOWN_RESTRICTED.
6861         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6862         Implement __statfs_chown_restricted.
6863         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6864         _POSIX_CHOWN_RESTRICTED value to zero.
6865         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6866         defined to zero.
6868         * sysdeps/x86_64/rtld-memset.c: New file.
6870 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6872         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6874         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6875         Barcelona machine.  Make default fall through branch of
6876         __x86_64_preferred_memory_instruction check as the integer code path.
6878 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6880         * sysdeps/x86_64/cacheinfo.c
6881         (__x86_64_preferred_memory_instruction): New variable.
6882         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6884         * sysdeps/x86_64/memset.S: Rewrite.
6886 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6888         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6889         __obstack_printf_chk): New prototypes.
6890         (__vasprintf_chk, __vdprintf_chk,
6891         __obstack_vprintf_chk): Likewise.
6892         Add libc_hidden_proto.
6893         * libio/obprintf.c
6894         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6895         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6896         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6897         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6898         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6899         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6900         __obstack_vprintf_chk): New prototypes.
6901         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6902         obstack_vprintf): New inlines.
6903         * debug/dprintf_chk.c: New file.
6904         * debug/vdprintf_chk.c: New file.
6905         * debug/asprintf_chk.c: New file.
6906         * debug/vasprintf_chk.c: New file.
6907         * debug/obprintf_chk.c: New file.
6908         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6909         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6910         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6911         @@GLIBC_2.8.
6912         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6913         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6914         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6915         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6916         libc_hidden_proto.
6917         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6918         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6919         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6920         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6921         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6922         @@GLIBC_2.8.
6923         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6924         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6925         obstack_vprintf_chk.
6926         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6927         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6928         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6929         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6930         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6931         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6933 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6935         [BZ #5779]
6936         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6937         Patch by Roy Marples <roy@marples.name>.
6939         [BZ #5736]
6940         * malloc/malloc.c: Fix typo in comment.
6942         [BZ #5627]
6943         * locale/iso-639.def: Add Shuswap.
6945 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6947         [BZ #5790]
6948         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6949         overwrite *h_errnop/*errnop values from getanswer_r in case of
6950         failure.
6952 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6954         [BZ #5818]
6955         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6956         (verify_persistent_db): Remove one unnecessary test and add a new one
6957         for bad configuration.
6958         (nscd_init): Improve error reported when persistent database cannot
6959         be reused.
6960         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6961         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6962         .suggested_module and .max_db_size and case config file says the
6963         values are zero.
6964         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6966         [BZ #5854]
6967         * nis/ypclnt.c (yp_order): Fix handling of return value of
6968         do_ypcall_tr call.
6969         Patch by Jeff Moyer <jmoyer@redhat.com>.
6971         * po/fr.po: Update from translation team.
6973 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6974             Carlos O'Donell <carlos@systemhalted.org>
6976         [BZ #5012]
6977         * FAQ.in: Describe why glibc needs to be compiled with
6978         optimization.
6980 2008-02-19  Roland McGrath  <roland@redhat.com>
6982         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6984 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6986         [BZ #5737]
6987         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6988         __USE_MISC is defined.
6990 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6992         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6993         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6994         sys/timerfd.h.
6995         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6996         timerfd_gettime, timerfd_settime.
6997         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6998         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7000 2008-02-08  Roland McGrath  <roland@redhat.com>
7002         * elf/elf.h (NT_PPC_SPE): New macro.
7004 2008-02-06  Roland McGrath  <roland@redhat.com>
7006         * Makerules ($(common-objpfx)sysd-rules):
7007         Depend on $(sysdep-makeconfigs).
7009 2008-01-31  Roland McGrath  <roland@redhat.com>
7011         [BZ #5442]
7012         * configure.in: Use -print-file-name if it yields a directory,
7013         for each of include and include-fixed.
7014         * configure: Regenerated.
7016         * Makeconfig (sysd-rules-targets): New variable.
7017         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7018         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7020 2008-01-30  Roland McGrath  <roland@redhat.com>
7022         * manual/libc.texinfo: Update back-cover text.
7024         * elf/elf.h (NT_386_TLS): New macro.
7026 2008-01-29  Roland McGrath  <roland@redhat.com>
7028         * Makeconfig (sysd-rules-patterns): New variable.
7029         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7030         (check-inhibit-asm): New canned sequence, replaces ...
7031         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7032         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7033         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7034         (CFLAGS-rtld): Variable removed.
7036 2008-01-24  Roland McGrath  <roland@redhat.com>
7038         * configure.in: Let configure fragments set base_os.
7039         * configure: Regenerated.
7041 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7043         * po/ko.po: Update from translation team.
7045 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7047         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7049 2008-01-12  Andreas Jaeger  <aj@suse.de>
7051         [BZ #5040]
7052         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7053         Add EPOLLRDHUP.
7055 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7057         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7058         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7059         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7061 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7063         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7064         * elf/dl-close.c (_dl_close): Check for it.
7065         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7066         (_dl_allocate_static_tls): Likewise.
7067         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7068         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7069         to it.
7070         * elf/tst-tls16.c: New file.
7071         * elf/tst-tlsmod16a.c: New file.
7072         * elf/tst-tlsmod16b.c: New file.
7073         * elf/Makefile: Add rules to build and run tst-tls16.
7075 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7077         [BZ #5628]
7078         * bits/shm.h: Fix comment describing shmid_ds.
7079         * sysdeps/gnu/bits/shm.h: Likewise.
7080         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7081         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7082         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7083         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7084         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7085         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7086         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7087         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7088         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7090         [BZ #5607]
7091         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7092         prototypes.
7093         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7094         additional suffixes.
7095         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7096         Add optional functions mq_timedreceive and mq_timedsend.
7097         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7098         * conform/data/pthread.h-data: Fix prototype of
7099         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7100         * conform/data/semaphore.h-data: Allow time.h definitions.
7101         * conform/data/signal.h-data: Likewise.
7102         * conform/data/stdio.h-data: getw and putw are not required in v6.
7103         * conform/data/stdlib.h-data: Change setstate prototype.
7104         * conform/data/string.h-data: Fix strerror_r prototype.
7105         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7106         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7107         Fix readlink prototype.
7108         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7109         in6addr_loopback.
7110         * inet/netinet/in.h: Cleanup namespace.
7111         * posix/regex.h: Likewise.
7112         * resolv/netdb.h: Likewise.
7113         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7114         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7115         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7116         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7117         of names of in in6_addr.
7118         (default_precedence): Likewise.
7119         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7120         NULL definition.
7122 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7124         * conform/data/fmtmsg.h-data: Add missing allows.
7125         * conform/data/ftw.h-data: Likewise.
7126         * conform/data/inttypes.h-data: Likewise.
7127         * conform/data/math.h-data: Likewise.
7128         * conform/data/signal.h-data: Likewise.
7129         * conform/data/net/if.h-data: Likewise.
7130         * conform/data/netinet/in.h-data: Likewise.
7131         * conform/data/sys/socket.h-data: Likewise.
7133         [BZ #5614]
7134         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7135         (__strtok_r): Simplify.
7136         * string/tester.c (test_strtok_r): Add test case for futile search
7137         with single-character seach string.
7139 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7141         * po/ko.po: Update from translation team.
7143 2008-01-11  Andreas Jaeger  <aj@suse.de>
7145         [BZ #5600]
7146         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7147         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7148         kernel header.
7150 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7152         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7153         native interface lookup in all the relevant places.
7155 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7156             Ulrich Drepper  <drepper@redhat.com>
7158         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7159         field.  Use sockaddr_in6 for source_addr.
7160         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7161         (match_prefix): Likewise.
7162         (get_label): Likewise.
7163         (get_precedence): Likewise.
7164         (rfc3484_sort): Change to use indirect access to results array.
7165         Adjust to use of sockaddr_in6.  Replace service_order test with
7166         simple index comparison.
7167         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7168         service_order field.  Adjust qsort_t calls.  Access sorted result
7169         array indirectly through order array.
7170         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7171         * posix/tst-rfc3484-2.c: Likewise.
7172         * posix/tst-rfc3484-3.c: Likewise.
7174 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7176         [BZ #5541]
7177         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7178         pollfd structures.
7179         Patch by André Cruz.
7181         [BZ #5545]
7182         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7183         (clnt_spcreateerror): Likewise.
7185         [BZ #5553]
7186         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7187         (public_mEMALIGn): Likewise.
7188         Patch mostly by Daniel Jacobowitz.
7190 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7192         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7193         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7194         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7195         * stdlib/tst-makecontext2.c: New test.
7197 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7199         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7200         defined.
7201         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7202         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7203         transliteration hooks and REINIT_PARAMS afterwards.
7204         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7205         status.
7206         (REINIT_PARAMS): Define.
7207         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7208         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7209         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7210         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7211         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7212         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7213         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7214         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7215         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7216         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7217         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7218         * iconvdata/tst-iconv7.c: New test.
7220 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7222         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7224 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7226         [BZ #5112]
7227         * nscd/connections.c (restart): Fix condition.
7229 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7231         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7232         __ctype_toupper_loc): Add __THROW.
7234 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7236         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7237         recognition of interface family.
7239         * posix/getconf.c: Update copyright year.
7240         * nss/getent.c: Likewise.
7241         * iconv/iconvconfig.c: Likewise.
7242         * iconv/iconv_prog.c: Likewise.
7243         * elf/ldconfig.c: Likewise.
7244         * catgets/gencat.c: Likewise.
7245         * csu/version.c: Likewise.
7246         * elf/ldd.bash.in: Likewise.
7247         * elf/sprof.c (print_version): Likewise.
7248         * locale/programs/locale.c: Likewise.
7249         * locale/programs/localedef.c: Likewise.
7250         * nscd/nscd.c (print_version): Likewise.
7251         * debug/xtrace.sh: Likewise.
7252         * malloc/memusage.sh: Likewise.
7253         * malloc/mtrace.pl: Likewise.
7254         * debug/catchsegv.sh: Likewise.
7256 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7258         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7259         second lookup.
7261 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7263         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7264         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7266 2007-12-17  Roland McGrath  <roland@redhat.com>
7268         * inet/ether_line.c (ether_line): Remove unused variable.
7270 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7272         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7273         and winp.
7274         * login/openpty.c (openpty): Likewise.
7275         * login/pty.h (openpty, forkpty): Likewise.
7276         * manual/terminal.texi (openpty, forkpty): Likewise.
7278 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7280         * malloc/malloc.c (public_cALLOc): For arenas other than
7281         main_arena, count all bytes inside the mprotect_size range of the
7282         heap as uninitialized.
7284 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7286         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7287         executable stacks.
7289         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7290         mTRIm for all of them.
7291         (mTRIm): Additionally iterate over all free blocks and use madvise
7292         to free memory for all those blocks which contain at least one
7293         memory page.
7294         * malloc/tst-trim1.c: New file.
7295         * malloc/Makefile (tests): Add tst-trim1.
7297         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7299 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7301         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7302         First cast argument to long
7303         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7304         Return long.
7305         (__vdso_clock_gettime): Likewise.
7306         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7307         return long.
7309 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7311         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7312         * locale/nl_langinfo_l.c: Real implementation, copied from
7313         nl_langinfo.c.
7314         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7316 2007-12-01  Jim Meyering  <meyering@redhat.com>
7318         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7319         that would inhibit utf8-optimization of a regexp containing line-
7320         or buffer-anchors, e.g., `^', `$'.
7322 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7324         * time/bug-getdate1.c (do_test): Don't use century values which
7325         aren't valid on 32-bit systems.
7327 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7329         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7330         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7331         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7332         __strcat_g, __strncat_g): Add __asm__.
7334 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7336         [BZ #5477]
7337         * io/fchmodat.c: Fix typo in stub_warning use.
7338         Patch by Petr Salinger.
7340 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7342         * iconvdata/hp-thai8.c: New file.
7343         * iconvdata/Makefile: Add rules for hp-thai8.c.
7344         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7345         * iconvdata/gconv-modules: Likewise.
7347         [BZ #5464]
7348         * iconvdata/hp-greek8.c: New file.
7349         * iconvdata/Makefile: Add rules for hp-greek8.c.
7350         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7351         * iconvdata/gconv-modules: Likewise.
7353         [BZ #5463]
7354         * iconvdata/hp-turkish8.c: New file.
7355         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7356         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7357         * iconvdata/gconv-modules: Likewise.
7359         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7360         (shrink_heap): ... this new function.
7361         (heap_trim): Call shrink_heap instead of grow_heap.
7363         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7364         case don't call alloc_perturb.
7366 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7368         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7369         possible.
7370         * sysdeps/unix/sysv/linux/kernel-features.h
7371         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7372         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7374 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7376         [BZ #5424]
7377         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7378         * stdio-common/Makefile (tests): Add bug22.
7379         * stdio-common/bug22.c: New file.
7381         [BZ #5451]
7382         * time/getdate.c: Fix filling in default values.
7383         * time/bug-getdate1.c: New file.
7384         * time/Makefile: Add rules to build and run bug-getdate1.
7386         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7387         * iconvdata/ebcdic-es.c: Likewise.
7388         * iconvdata/ebcdic-es-a.c: Likewise.
7389         * iconvdata/ebcdic-uk.c: Likewise.
7390         * iconvdata/iso8859-16.c: Likewise.
7391         * iconvdata/viscii.c: Likewise.
7392         * iconvdata/iso8859-9e.c: Likewise.
7393         * iconvdata/Makefile: Adjust appropriately.
7395         [BZ #5428]
7396         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7397         __need_wint_t.
7399 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7401         [BZ #5427]
7402         * iconvdata/hp-roman9.c: New file.
7403         * iconvdata/Makefile: Add rules for hp-roman9.c.
7404         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7405         * iconvdata/gconv-modules: Likewise.
7407         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7408         * iconvdata/Makefile: Adjust appropriately.
7410         [BZ #5441]
7411         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7412         structure, it's allocated with alloca.
7413         * stdio-common/Makefile (tests): Add bug21.
7414         * stdio-common/bug21.c: New file.
7416 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7418         [BZ #5452]
7419         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7420         keyword for gcc's braced-groups.
7422 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7424         [BZ #5454]
7425         * inet/ether_line.c: Strip hostname of whitespaces.
7426         * inet/Makefile (tests): Add tst-ether_line.
7427         * inet/tst-ether_line.c: New file.
7429 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7431         [BZ #5439]
7432         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7434         [BZ #5435]
7435         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7437         * stdlib/tst-setcontext.c: Catch the case where the links gets
7438         messed up and we do not reach main again.
7440         * po/ca.po: Update from translation team.
7442 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7444         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7445         * posix/regex.h (REG_ENOSYS): Likewise.
7446         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7448 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7450         * nscd/nscd.h (MAX_STACK_USE): Define.
7451         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7452         (gc): Initialize stack_used based on allocation in prune_cache.
7453         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7454         Clear array before use.
7456         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7457         memory allocation failed.
7458         * nscd/hstcache.c (cache_addhst): Likewise.
7459         * nscd/grpcache.c (cache_addgr): Likewise.
7460         * nscd/servicescache.c (cache_addserv): Likewise.
7461         * nscd/pwdcache.c (cache_addpw): Likewise.
7462         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7464 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7467         and creat system calls.
7469         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7471 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7473         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7474         Add netiucv/iucv.h.
7475         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7476         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7477         protocol.
7478         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7479         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7480         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7482 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7484         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7485         strncat): Define as macros to avoid compile errors.
7487         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7488         creat entries.
7490 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7492         [BZ #5382]
7493         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7494         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7495         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7496         overflow it.
7497         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7499         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7500         Return zero in case the thread library is not NPTL.
7502         [BZ #5375]
7503         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7504         initializing interface list.
7506         [BZ #5378]
7507         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7508         use result of nss_getgrgid_r if nothing was found.  For other
7509         error return with a failure.
7510         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7512         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7513         macro name.
7515 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7517         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7518         (get_scope): For IPv4 scope, use scopes table.
7519         (fini): Free scopes table if necessary.
7520         (free_scopelist): New function.
7521         (scopecmp): New function.
7522         (gaiconf_init): Also handle scopev4 entries.
7523         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7524         * posix/tst-rfc3484-2.c (do_test): Likewise.
7525         * posix/gai.conf: Document scopev4 defaults.
7526         * posix/Makefile (tests): Add tst-rfc3484-3.
7527         * posix/tst-rfc3484-3.c: New file.
7529         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7530         Teredo tunnels.
7531         * posix/gai.conf: Update for current default tables.
7533 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7535         * po/tr.po: Update from translation team.
7537 2007-11-18  Roland McGrath  <roland@frob.com>
7539         * manual/arith.texi (Remainder Functions): Spelling fix.
7540         From Shaun Silk <genix@mysoul.com.au>.
7542         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7544 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7546         * po/zh_CN.po: Update from translation team.
7548         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7549         Add sys/signalfd.h and sys/eventfd.h.
7551 2007-11-15  Bruno Haible  <bruno@clisp.org>
7553         [BZ #5346]
7554         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7555         union.
7556         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7557         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7558         it needs only fixed stack space. Delay the initialization of
7559         msgid_len until it is needed.
7561 2007-11-15  Andreas Jaeger  <aj@suse.de>
7563         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7564         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7566 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7568         * po/ko.po: Update from translation team.
7570 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7572         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7573         significantly.  The device type is also part of the ifinfomsg data.
7575         * po/sv.po: Update from translation team.
7576         * po/nl.po: Likewise.
7578         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7579         to wake up in 24 hours.
7581         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7583 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7585         * po/cs.po: Update from translation team.
7586         * po/pl.po: Likewise.
7588         * include/ifaddrs.h: Remove in6ai_temporary.
7589         (struct in6addrinfo): Add index element.
7590         Declare __check_native.
7591         * inet/Makefile (aux): Add check_native.
7592         * sysdeps/unix/sysv/linux/check_native.c: New file.
7593         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7594         IFA_F_TEMPORARY.  Pass back ifa_index.
7595         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7596         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7597         call __check_native if necessary.
7598         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7599         to sort addresses.  Pass information about the results.
7600         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7601         of rfc3484_sort interface.
7602         * posix/tst-rfc3484-2.c: Likewise.
7604         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7605         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7606         for _quicksort.
7607         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7608         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7609         on as third parameter to compare function and _quicksort.
7610         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7611         to the compare function.
7612         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7613         * Versions.def: Add GLIBC_2.8 for libc.
7615         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7616         * posix/tst-rfc3484-2.c: Likewise.
7618         * include/kernel-features.h: Moved to...
7619         * sysdeps/mach/hurd/kernel-features.h: ...here.
7621 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7623         * sysdeps/i386/i586/memcpy_chk.S: New file.
7624         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7625         * sysdeps/i386/i586/memset_chk.S: Likewise.
7627 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7629         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7630         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7631         list of interfaces.  Also store prefix length.
7632         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7633         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7634         prefix if source and destination address are in the same subnet.
7635         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7636         Always look for matching record in in6ai list.
7637         Correct source_addr_len value for IPv6->IPv4 converted records.
7639 2007-11-11  Roland McGrath  <roland@frob.com>
7641         * include/kernel-features.h: New file.
7643 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7645         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7646         complications for 64-bit platforms.
7648         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7649         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7650         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7651         open64_2.
7652         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7653         entries.
7654         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7655         * sysdeps/wordsize-64/alphasort.c: New file.
7656         * sysdeps/wordsize-64/alphasort64.c: New file.
7657         * sysdeps/wordsize-64/fseeko.c: New file.
7658         * sysdeps/wordsize-64/fseeko64.c: New file.
7659         * sysdeps/wordsize-64/ftello.c: New file.
7660         * sysdeps/wordsize-64/ftello64.c: New file.
7661         * sysdeps/wordsize-64/ftw.c: New file.
7662         * sysdeps/wordsize-64/ftw64.c: New file.
7663         * sysdeps/wordsize-64/iofgetpos.c: New file.
7664         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7665         * sysdeps/wordsize-64/iofopen.c: New file.
7666         * sysdeps/wordsize-64/iofopen64.c: New file.
7667         * sysdeps/wordsize-64/iofsetpos.c: New file.
7668         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7669         * sysdeps/wordsize-64/lockf.c: New file.
7670         * sysdeps/wordsize-64/lockf64.c: New file.
7671         * sysdeps/wordsize-64/mkostemp.c: New file.
7672         * sysdeps/wordsize-64/mkostemp64.c: New file.
7673         * sysdeps/wordsize-64/mkstemp.c: New file.
7674         * sysdeps/wordsize-64/mkstemp64.c: New file.
7675         * sysdeps/wordsize-64/scandir.c: New file.
7676         * sysdeps/wordsize-64/scandir64.c: New file.
7677         * sysdeps/wordsize-64/tmpfile.c: New file.
7678         * sysdeps/wordsize-64/tmpfile64.c: New file.
7679         * sysdeps/wordsize-64/versionsort.c: New file.
7680         * sysdeps/wordsize-64/versionsort64.c: New file.
7681         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7682         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7683         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7684         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7685         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7686         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7687         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7688         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7689         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7690         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7691         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7692         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7694         * crypt/sha256-crypt.c: Fix a comment.
7695         * crypt/sha512-crypt.c: Likewise.
7697 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7699         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7701 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7703         [BZ #5277]
7704         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7705         because output buffer is too small break, don't loop.
7706         * iconvdata/Makefile (tests): Add bug-iconv6.
7707         * iconvdata/bug-iconv6.c: New file.
7709 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7711         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7712         with size_t type.
7713         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7714         size_t.  Add casts where needed.
7716         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7717         old headers, don't call avc_has_perm if we don't have the
7718         permission information.
7720 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7722         * elf/rtld.c (dl_main): Use the page size to find the map start.
7724 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7726         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7727         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7729         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7730         when the lookup call failed.
7732         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7733         Add prune_cond and wakeup_time.
7734         (CACHE_PRUNE_INTERNAL): Define.
7735         Update declarations of prune_cache and setup_thread.
7736         * nscd/connections.c (dbs): Update initializers.
7737         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7738         (nscd_init): Default number of threads is now 4.
7739         (invalidate_cache): Take lock before calling prune_cache.
7740         (handle_request): If SELinux forbids the request, say so.
7741         (readylist_cond): Use static initializer.
7742         (nscd_run_prune): New function.  Used only by pruning threads.
7743         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7744         here.
7745         (fd_ready): Update nscd_run reference.
7746         (start_threads): No need to initialize readylist_cond.
7747         Start pruning threads separately.
7748         * nscd/nscd_setup_thread.c: Change return value type to int and always
7749         return 0.
7750         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7751         to int and return nonzero value if we can use the TID address hack.
7752         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7753         the database is later than the new entry's timeout, update the
7754         wakeup time and wake the cleanup thread.
7755         (prune_cache): Return seconds the next entry in the database is still
7756         valid.  Remove locking for pruning here.
7757         * nscd/nscd.conf: Document default number of threads.
7759 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7761         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7762         stack is properly aligned for the target function.
7763         Correct unwind info.
7765         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7766         when using auditing libraries.
7768 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7770         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7771         _nss_dns_getnetbyaddr2_r.
7772         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7773         extra parameter to getanswer_r.
7774         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7775         _nss_dns_getnetbyaddr2_r.
7777         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7778         gethstbynm3_r.
7779         * nscd/gethstbynm2_r.c: Remove.
7780         * nscd/gethstbynm3_r.c: New file.
7781         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7782         __gethostbyaddr_r.
7783         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7784         __gethostbyaddr_r compatibility wrapper.
7785         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7786         determining timeout of entry.
7787         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7788         __gethostbyaddr2_r.
7789         (addhstbyX): Pass reference to variable for TTL to lookup and
7790         cache_addhst.
7791         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7792         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7793         and __nss_next2.  Remove __nss_services_lookup.
7794         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7795         Add compat wrapper.
7796         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7797         __nss_next2.
7798         * nss/getXXent_r.c: Likewise.
7799         * nss/getnssent_r.c: Likewise.
7800         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7801         does not exist in module, try the optional second name.
7802         (__nss_next2): New function.
7803         (__nss_next): Now wrapper around __nss_next2.
7804         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7805         Declare __nss_next2.
7806         Adjust definition of db_lookup_function type.
7807         * nss/service-lookup.c: Define NO_COMPAT.
7808         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7809         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7810         * inet/ether_ntoh.c: Likewise.
7811         * sunrpc/netname.c: Likewise.
7812         * sunrpc/publickey.c: Likewise.
7813         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7814         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7815         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7816         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7817         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7819         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7821         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7823 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7825         [BZ #5204]
7826         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7827         * crypt/sha512c-test.c: Likewise.
7829         [BZ #5225]
7830         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7831         to keep track of end of %[ format string element.
7832         * stdio-common/Makefile (tests): Add bug20.
7833         * stdio-common/bug20.c: New file.
7835         [BZ #5222]
7836         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7837         path elements in counting mode.
7839 2007-10-27  Andreas Jaeger  <aj@suse.de>
7841         [BZ #5040]
7842         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7844         [BZ #3112]
7845         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7846         (__cleanup): Free shared library when exiting.
7847         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7848         (__cleanup): Free shared library when exiting.
7850 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7852         [BZ #2549]
7853         * math/libm-test.inc (check_float_internal): Support
7854         denormalized return.
7856 2007-10-23  Andreas Jaeger  <aj@suse.de>
7858         [BZ #5208]
7859         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7860         __LONG_LONG_PAIR to handle little endian byte order.
7861         Suggested by abhishekrai@google.com
7863 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7865         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7867 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7869         * nscd/cache.c (prune_cache): Move test for modified file outside
7870         of locking.
7872 2007-10-21  Andreas Jaeger  <aj@suse.de>
7874         * manual/texinfo.tex: Update to latest version.
7876         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7878         * manual/arith.texi (Status bit operations): Fix formatting.
7880         * manual/errno.texi (Error Messages): Fix formatting.
7882         * manual/sysinfo.texi (System Parameters): Fix formatting.
7884         * manual/libc.texinfo: Update VERSION and UPDATED.
7886 2007-10-19  Roland McGrath  <roland@redhat.com>
7888         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7890 2007-10-06  David S. Miller  <davem@davemloft.net>
7892         * configure.in: Add sparcv9v2 and sparc64v2.
7893         * scripts/config.sub: Likewise.
7894         * configure: Regenerate.
7895         * elf/elf.h (HWCAP_SPARC_N2): New.
7896         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7897         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7898         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7899         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7900         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7901         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7902         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7904 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7906         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7907         even if the poll result indicates there is data to read.
7908         Patch by Jeff Moyer <jmoyer@redhat.com>.
7910 2007-10-18  Roland McGrath  <roland@redhat.com>
7912         * elf/elf.h (NT_PPC_VMX): New macro.
7914 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7916         * version.h (VERSION): Set to 2.7.90.
7918 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7920         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7921         weak_alias.
7923 2007-10-17  Roland McGrath  <roland@frob.com>
7925         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7926         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7928 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7930         * version.h (VERSION): Bump to 2.7.
7931         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7933         [BZ #5186]
7934         * time/tzset.c (__tz_convert): Don't force testing for a change of
7935         TZ if not called from localtime.  But then also see whether the
7936         file changed, in case __use_tzfile is set.
7938         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7939         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7940         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7941         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7942         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7943         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7944         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7945         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7947 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7949         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7950         and admin selects to be able to replace the gai.conf file, lock
7951         data structures around the qsort call.
7953 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7955         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7956         new memset.
7957         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7958         too high for the improvements.  Implement bzero unconditionally for
7959         use in libc.
7961 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7962             Jakub Jelinek  <jakub@redhat.com>
7964         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7965         even when time_t is 32-bit.
7966         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7967         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7968         always set after the search.
7970 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7972         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7973         unreachable code on 32-bit machines.
7975 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7977         [BZ #5184]
7978         * time/strftime_l.c: Include stdbool.h.
7979         (my_strftime): New wrapper, old function renamed to...
7980         (__strftime_internal): ... new function.  Add tzset_called
7981         argument, pass it down to recursive calls, don't call tzset ()
7982         if already true, set to true after call to tzset ().
7984 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7986         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7987         into account when copying TZ string.
7989 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7991         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7992         num_transition rather than num_transitions - 1.
7994 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7996         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7997         PIC indirect jump.
7999         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8000         a local label rather than HIDDEN_JUMPTARGET.
8002 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8004         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8005         (init_cacheinfo): Initialize it.
8006         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8007         Always define bzero.
8008         Remove non-glibc code.
8009         * sysdeps/x86_64/bzero.S: Make an empty file.
8011 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8013         * sysdeps/x86_64/cacheinfo.c
8014         (__x86_64_preferred_memory_instruction): New.
8015         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8017         * sysdeps/x86_64/memset.S: Rewrite.
8019 2007-10-15  Roland McGrath  <roland@redhat.com>
8021         * po/libc.pot: Regenerated.
8023 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8025         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8026         pointers.
8028         [BZ #3425]
8029         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8030         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8031         address record to T_A/T_AAAA requests.
8033 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8035         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8037         * posix/glob.c: Add some branch prediction throughout.
8039         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8040         read from nscd.
8042         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8043         service_order.
8044         (rfc3484_sort): Make sure that even if qsort doesn't support
8045         stable sorting out sorting here is stable by comparing service_order.
8046         (getaddrinfo): Initialize service_order.
8047         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8048         service_order field to sorting structure.
8049         * posix/tst-rfc3484-2.c (do_test): Likewise.
8051         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8052         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8053         __tzset_parse_tz and updating of daylight, timezone, tzname into
8054         update_vars.
8055         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8056         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8057         happens in __tz_compute.
8058         * time/tzfile.c (__tzfile_read): Also read TZ string.
8059         (find_transition): Fold into __tzfile_compute.
8060         (__tzfile_compute): For times beyond the last transition try to
8061         use the TZ string.
8062         * timezone/tst-timezone.c: Information in daylight and tzname does
8063         change for Asia/Tokyo timezone with more concrete information.
8064         Remove the test.
8066         * include/stdio.h: Add libc_hidden_proto for ftello.
8067         * libio/ftello.c: Add libc_hidden_def.
8069         [BZ #1140]
8070         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8071         on the specified time and not the last entries in the file.  Move
8072         code to determine tzname[] to...
8073         (find_transition): ...here.  Add ugly guess for times before the
8074         first transition.
8076 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8078         [BZ #3195]
8079         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8080         no entry.
8081         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8082         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8083         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8084         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8086         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8087         read mechanism when there are no group members and avoid no-op
8088         read syscall in this case.
8090         [BZ #3242]
8091         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8092         (__readall): If reading failed due to EAGAIN error wait a bit
8093         and possibly try again.
8094         (__readvall): Likewise.
8096 2007-10-13  Bruno Haible  <bruno@clisp.org>
8098         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8099         when we cannot recode the message.
8101 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8103         [BZ #4359]
8104         * libio/__freading.c (__freading): Don't return true for
8105         write-only streams.  For read/write streams, check whether we
8106         performed a read operation already.
8107         * libio/Makefile (tests): Add tst-ext2.
8108         * libio/tst-ext2.c: New file.
8110 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8112         * locale/programs/repertoire.c (repertoire_read): Always free
8113         memory for repertoire file name [Coverity CID 270].
8115         * elf/cache.c (save_aux_cache): Free memory allocated for
8116         temporary file name [Coverity CID 267].
8118 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8120         * misc/Makefile (headers): Add bits/error.h.
8122 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8124         * posix/fnmatch_loop.c: Take rule index returned as part of
8125         findidx return value into account when accessing weights.
8126         * posix/regcomp.c: Likewise.
8127         * posix/regexec.c: Likewise.
8129         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8130         (skip_to): Fix problems with parameter of elifdef/elifndef.
8132 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8134         * iconv/gconv_simple.c: Add some branch prediction.
8136 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8138         * locale/programs/ld-collate.c (collate_read): If ignore_content
8139         and nowtok is tok_define, eat any tok_eol tokens.
8141 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8143         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8144         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8146         * inet/netinet/in.h: Don't include bits/socket.h.
8147         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8148         macro.
8149         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8151 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8153         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8154         and tok_elifndef.
8155         * locale/programs/locfile-kw.gperf: Likewise.
8156         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8158 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8160         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8161         (__find_specwc): Change into __extern_always_inline function.
8162         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8163         (__parse_one_specmb): Remove ps argument.
8164         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8165         Adjust __find_specmb and __parse_one_specmb callers.
8166         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8167         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8168         Removed.
8169         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8170         caller.
8172 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8174         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8175         with some Pentium Ds.
8177 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8179         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8180         __read not read.
8181         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8182         __write not write.
8184 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8186         [BZ #181]
8187         * locale/C-time.c: Set week_1stday data to 19971201.
8188         * locale/programs/ld-time.c (time_finish): Default for
8189         first_workday is Monday.
8191         [BZ #2633]
8192         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8194         [BZ #5103]
8195         * posix/glob.c (glob): Recognize patterns starting \/.
8196         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8197         (main): Add test for pattern starting \/.
8199         * misc/error.h: Use __const instead of const.
8200         * misc/bits/error.h: Likewise.
8202 2007-10-07  Andreas Jaeger  <aj@suse.de>
8204         * include/bits/error.h: New file.
8206         * misc/bits/error.h (error_at_line): Fix prototype.
8208 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8210         [BZ #3924]
8211         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8212         more little bugs in creating the stack frame when pltexit has to
8213         be called.
8215         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8216         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8218         [BZ #4407]
8219         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8220         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8221         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8222         * math/libm-test.inc: Add test for this case.
8224         [BZ #5010]
8225         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8226         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8227         map service succeeded.
8228         (svc_is_mapped): New function.
8229         (svc_unregister): Use it before trying to unmap service.
8231 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8233         * timezone/zic.c: Update from tzcode2007h.
8235         [BZ #5063]
8236         * timezone/africa: Update from tzdata2007h.
8237         * timezone/antarctica: Likewise.
8238         * timezone/asia: Likewise.
8239         * timezone/australasia: Likewise.
8240         * timezone/europe: Likewise.
8241         * timezone/leapseconds: Likewise.
8242         * timezone/northamerica: Likewise.
8243         * timezone/southamerica: Likewise.
8244         * timzeone/zone.tab: Likewise.
8246         [BZ #5104]
8247         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8249         [BZ #5113]
8250         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8251         avoid warning with -Wconversion.
8252         (__strndup): Likewise.
8253         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8255         [BZ #5112]
8256         * nscd/connections.c (restart): Don't resync if database is
8257         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8259         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8260         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8262         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8263         evetnfd_read, eventfd_write.
8264         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8265         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8266         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8267         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8268         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8269         eventfd_write for GLIBC_2.7.
8271         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8272         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8273         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8274         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8276 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8278         * stdlib/msort.c: Include stdint.h.
8279         (struct msort_param): New type.
8280         (msort_with_tmp): Use struct msort_param pointer for unchanging
8281         parameters.  Add optimized handling for several common sizes
8282         and indirect sorting mode.
8283         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8284         sorting.
8285         Suggested by Belazougui Djamel .
8287         * stdlib/Makefile (tests): Add tst-qsort2.
8288         * stdlib/tst-qsort2.c: New test.
8290 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8292         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8293         for dup2 in case another thread races with the current one.  Retry
8294         in this case.
8296         * misc/error.h: Remove support for use outside of libc.  We have to
8297         include <features.h> now.  Include <bits/error.h> if possible.
8298         * misc/bits/error.h: New file.
8300 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8302         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8303         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8304         __extern_always_inline functions unconditionally, drop macros.
8306         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8307         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8308         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8310         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8311         add __artificial__ attribute.
8313 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8315         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8316         backward to forward direction.
8318         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8320         [BZ #645]
8321         * locale/programs/ld-collate.c (collate_finish): Compare against last
8322         used section which is known to have rules defined.
8323         (collate_read): After order_start, correctly record order of sections
8324         and queue sections up.
8326 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8328         [BZ #5071]
8329         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8330         the same number of pages.
8331         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8333         * locale/programs/ld-collate.c (collate_read): After initial copy
8334         statement, continue in state 0.
8336         * include/stdio_ext.h (__fsetlocking): Define as macro.
8338 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8340         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8341         of section order.
8343         * po/pt_BR.po: Fix typo.
8345 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8347         * iconvdata/Makefile (modules): Add ISO8859-9E.
8348         (distribute): Add iso8859-9e.c.
8349         (gen-8bit-gap-modules): Add iso8859-9e.
8350         * iconvdata/iso8859-9e.c: New file.
8351         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8352         * iconvdata/TESTS: Likewise.
8353         * iconvdata/tst-tables.sh: Likewise.
8355         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8357         * locale/iso-639.def: Add several new entries.
8359 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8361         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8362         void * pointers instead of struct link_map **.
8363         (_dl_scope_free): Change argument type to void *.
8364         * include/link.h (struct link_map): Change type of l_reldeps
8365         to struct link_map_reldeps, move l_reldepsact into that
8366         struct too.
8367         * elf/dl-deps.c: Include atomic.h.
8368         (_dl_map_object_deps): Only change l->l_initfini when it is
8369         fully populated, use _dl_scope_free for freeing it.  Optimize
8370         removal of libs from reldeps by using l_reserved flag, when
8371         some removal is needed, allocate a new list instead of
8372         reallocating and free the old with _dl_scope_free.  Adjust
8373         for l_reldeps and l_reldepsact changes.
8374         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8375         searching in l_initfini and l_reldeps without holding dl_load_lock.
8376         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8377         l_reldepsact changes.
8378         * elf/dl-close.c (_dl_close_worker): Likewise.
8379         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8381 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8383         * iconvdata/Makefile (modules): Add KOI8-RU.
8384         (distribute): Add koi8-ru.c.
8385         (gen-8bit-gap-modules): Add koi8-ru.
8386         * iconvdata/koi8-ru.c: New file.
8387         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8388         * iconvdata/TESTS: Likewise.
8389         * iconvdata/tst-tables.sh: Likewise.
8391         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8393 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8395         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8396         with __warning__/__error__ attributes.
8397         (__warnattr): Define.
8398         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8399         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8400         __warnattr.
8401         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8402         of __*_chk if compile time detectable overflow is found.
8403         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8404         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8405         with __warnattr.
8406         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8407         instead of __*_chk if compile time detectable overflow is found.
8408         (__gets_alias): Rename to...
8409         (__gets_warn): ... this.  Add __warnattr.
8410         (gets): Call __gets_warn instead of __gets_alias.
8411         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8412         aliases with __warnattr.
8413         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8414         time detectable overflow is found.
8415         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8416         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8417         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8418         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8419         __getdomainname_chk_warn): New aliases with __warnattr.
8420         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8421         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8422         __*_chk_warn instead of __*_chk if compile time detectable overflow
8423         is found.
8424         (__getgroups_chk): Rename argument to __listlen from listlen.
8425         (__getwd_alias): Rename to...
8426         (__getwd_warn): ... this.  Add __warnattr.
8427         (getwd): Call __getwd_warn instead of __getwd_alias.
8428         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8429         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8430         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8431         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8432         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8433         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8434         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8435         compile time detectable overflow is found.
8436         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8437         to use __*_chk or not.
8438         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8439         in comparisons which function should be called and in __*_chk*
8440         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8441         detectable overflow is found.
8442         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8443         __*_chk argument.
8444         * debug/tst-chk1.c (do_test): Add a few more tests.
8446 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8448         [BZ #5058]
8449         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8450         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8451         (_nl_unload_domain): Finalize conversions_lock.
8452         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8453         handling table of known conversions.
8455 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8457         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8458         close_not_cancel_no_status instead of close.
8460 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8462         [BZ #5028]
8463         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8464         nrules != 0 for multibyte chars.
8466 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8468         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8469         Provide better error message in case the type is unknown.
8471         [BZ #4963]
8472         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8473         * string/stratcliff.c: Make usable to test wide char functions.
8474         * wcsmbs/wcsatcliff.c: New file.
8475         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8477         [BZ #4972]
8478         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8479         (distribute): Add mac-centraleurope.c.
8480         (gen-8bit-gap-modules): Add mac-centraleurope.
8481         * iconvdata/mac-centraleurope.c: New file.
8482         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8483         * iconvdata/TESTS: Likewise.
8484         * iconvdata/tst-tables.sh: Likewise.
8486         [BZ #5043]
8487         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8489 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8491         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8492         from __x86_64_core_cache_size_half.
8493         (init_cacheinfo): Compute shared cache size for AMD processors with
8494         shared L3 correctly.
8495         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8496         name change.
8497         Patch in large parts by Evandro Menezes.
8499 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8501         * elf/dl-lookup.c (add_dependency): Handle failing memory
8502         allocation for dependency list.  Remove unnecessary check.
8504         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8505         open/close when determining source addresses.
8507         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8508         sha512-crypt, and sha512.
8509         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8510         (distribute): Add sha256.h and sha512.h.
8511         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8512         and call the appropriate code.
8513         * crypt/sha256-crypt.c: New file.
8514         * crypt/sha256.c: New file.
8515         * crypt/sha256.h: New file.
8516         * crypt/sha256c-test.c: New file.
8517         * crypt/sha256test.c: New file.
8518         * crypt/sha512-crypt.c: New file.
8519         * crypt/sha512.c: New file.
8520         * crypt/sha512.h: New file.
8521         * crypt/sha512c-test.c: New file.
8522         * crypt/sha512test.c: New file.
8524 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8526         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8527         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8528         __syslog_chk.
8530 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8532         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8533         %as in fscanf format strings.
8535         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8536         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8537         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8538         Likewise.
8539         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8540         Likewise.
8542         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8543         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8544         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8545         * elf/dl-sym.c (do_sym): Likewise.
8546         * include/link.h (struct link_map): Add l_serial field.
8547         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8548         * elf/dl-lookup.c (add_dependency): Add flags argument.
8549         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8550         flags, use THREAD_GSCOPE_RESET_FLAG before and
8551         THREAD_GSCOPE_SET_FLAG after
8552         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8553         Don't dereference map until it has been found on some list.
8554         If map->l_serial changed, return -1.
8556 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8558         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8559         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8560         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8561         libc_hidden_proto.
8562         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8563         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8564         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8565         add libc_hidden_proto.
8566         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8567         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8568         conformance requested.
8569         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8570         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8571         conformance requested.
8572         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8573         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8574         conformance requested.
8575         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8576         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8577         ISO C99 or POSIX conformance requested.
8578         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8579         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8580         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8581         and __isoc99_vsscanf@@GLIBC_2.7.
8582         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8583         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8584         (tests): Add scanf14.
8585         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8586         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8587         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8588         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8589         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8590         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8591         from using internal headers.
8592         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8593         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8594         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8595         and __isoc99_vswscanf@@GLIBC_2.7.
8596         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8597         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8598         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8599         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8600         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8601         * stdio-common/isoc99_scanf.c: New file.
8602         * stdio-common/isoc99_vsscanf.c: New file.
8603         * stdio-common/isoc99_vscanf.c: New file.
8604         * stdio-common/isoc99_vfscanf.c: New file.
8605         * stdio-common/isoc99_fscanf.c: New file.
8606         * stdio-common/isoc99_sscanf.c: New file.
8607         * wcsmbs/isoc99_fwscanf.c: New file.
8608         * wcsmbs/isoc99_vswscanf.c: New file.
8609         * wcsmbs/isoc99_swscanf.c: New file.
8610         * wcsmbs/isoc99_wscanf.c: New file.
8611         * wcsmbs/isoc99_vwscanf.c: New file.
8612         * wcsmbs/isoc99_vfwscanf.c: New file.
8613         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8614         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8615         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8616         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8617         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8618         * stdio-common/scanf14.c: New test.
8619         * stdio-common/scanf15.c: New test.
8620         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8621         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8622         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8623         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8624         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8625         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8626         __nldbl___isoc99_scanf@@GLIBC_2.7,
8627         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8628         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8629         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8630         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8631         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8632         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8633         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8634         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8635         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8636         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8637         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8638         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8639         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8640         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8641         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8642         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8643         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8644         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8645         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8646         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8647         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8648         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8649         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8650         functions.
8651         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8652         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8653         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8654         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8655         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8656         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8657         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8658         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8659         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8660         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8661         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8662         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8664         * stdio-common/Makefile (tests): Add scanf13.
8665         (scanf13-ENV): New.
8666         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8667         m modifier followed by l.
8668         (STRING_ARG): Add width argument.
8669         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8670         <case L_('C')>: Handle %mlc and %mC.
8671         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8672         arguments.
8673         * stdio-common/scanf13.c: New test.
8675         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8676         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8678 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8680         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8681         type and __THROW marker of splice, vmsplice, and tee.
8682         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8683         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8684         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8685         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8687         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8688         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8689         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8690         as cancellation points.
8692 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8694         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8695         parse more than three parts of the version number.
8697 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8699         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8700         modifier.  Patch by Jakub Jelinek.
8702 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8704         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8705         call_fallocate in misc subdir.
8706         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8707         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8708         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8709         instead of __fallocate64.
8710         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8712 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8714         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8715         * rt/Makefile (headers): Add bits/mqueue2.h.
8716         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8717         optimizing with GCC and __va_arg_pack_len is defined.
8718         * rt/bits/mqueue2.h: New file.
8719         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8720         (mq_open): New strong_alias.
8721         (__mq_open_2): New function.
8722         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8723         (mq_open): New strong_alias.
8724         (__mq_open_2): New function.
8725         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8726         * Versions.def (librt): Add GLIBC_2.7 version.
8727         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8728         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8730         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8731         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8732         is defined rather than when not C++.
8733         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8734         __openat64_alias): New redirects.
8735         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8736         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8737         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8738         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8739         functions instead of function-like macros.
8741 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8743         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8744         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8745         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8747 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8749         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8750         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8752 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8754         * inet/tst-network.c: Increment ERRORS for failing tests.
8756 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8758         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8759         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8760         implement as __extern_always_inline function.
8761         (vsyslog): Define as __extern_always_inline function unconditionally.
8762         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8763         When __va_arg_pack is defined, implement as __extern_always_inline
8764         functions.
8765         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8766         __extern_always_inline functions unconditionally.
8767         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8768         bits/stdio2.h will be included.
8769         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8770         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8771         implement as __extern_always_inline functions.
8772         (vswprintf, vwprintf, vfwprintf): Define as
8773         __extern_always_inline functions unconditionally.
8774         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8776 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8778         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8779         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8780         attribute.
8781         * include/features.h (__USE_EXTERN_INLINES): Define only when
8782         __extern_inline is defined.
8783         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8784         is defined instead of when not __cplusplus.
8785         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8786         is defined instead of when not __cplusplus.
8787         * socket/sys/socket.h: Include bits/socket2.h when
8788         __extern_always_inline is defined instead of when not __cplusplus.
8789         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8790         is defined instead of when not __cplusplus.
8791         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8792         is defined instead of when not __cplusplus.
8793         * string/string.h: Include bits/string3.h when __extern_always_inline
8794         is defined instead of when not __cplusplus.
8795         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8796         is defined instead of when not __cplusplus.
8797         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8798         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8799         is not defined.
8800         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8801         defined __extern_always_inline instead of !defined __cplusplus.
8802         * libio/bits/stdio-ldbl.h: Likewise.
8803         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8804         * misc/bits/syslog.h (syslog): Don't define for C++.
8805         (vsyslog): Use __extern_always_inline function for C++ instead of
8806         a macro.
8807         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8808         whenever that macro is defined.
8809         (vprintf): Don't provide the inline for C++.
8810         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8811         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8812         define the macros for C++.
8813         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8814         __extern_always_inline functions for C++.
8815         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8816         stat64, lstat64, fstat64, fstatat64): Don't define if not
8817         __USE_EXTERN_INLINES.
8818         * wcsmbs/bits/wchar2.h: Fix #error message.
8819         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8820         (vswprintf, vwprintf, vfwprintf): Define using
8821         __extern_always_inline functions for C++.
8822         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8823         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8824         strncpy, strcat, strncat): Define as __extern_always_inline
8825         functions instead of macros for C++.
8826         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8827         defined __extern_inline.
8828         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8829         to __extern_inline whenever that macro is defined.
8830         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8831         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8832         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8833         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8834         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8835         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8836         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8837         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8838         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8839         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8840         prototypes.  Only provide __extern_inline routines if
8841         __USE_EXTERN_INLINES.
8842         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8843         tests.
8844         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8845         For now avoid some *printf tests in C++.  Skip all testing
8846         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8847         is not.
8848         * debug/tst-chk4.cc: New file.
8849         * debug/tst-chk5.cc: New file.
8850         * debug/tst-chk6.cc: New file.
8851         * debug/tst-lfschk4.cc: New file.
8852         * debug/tst-lfschk5.cc: New file.
8853         * debug/tst-lfschk6.cc: New file.
8854         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8855         prototypes in C++.
8856         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8857         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8858         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8860 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8862         * po/cs.po: Update from translation team.
8864 2007-09-11  Roland McGrath  <roland@redhat.com>
8866         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8867         compiling.
8869 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8871         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8873 2007-09-05  Roland McGrath  <roland@redhat.com>
8875         * manual/signal.texi (Signaling Another Process): Typo fix.
8876         From Karl Berry <karl@freefriends.org>.
8878 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8880         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8881         zero if not defined.
8882         (make_request): Recognize optimistic addresses and treat them like
8883         deprecated addresses.
8884         Reported by Neil Horman <nhorman@redhat.com>.
8886 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8888         * nscd/connections.c (send_ro_fd): Also transfer file size.
8889         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8890         file size don't call fstat.
8892         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8893         ahead and map the file.  This should always be correct and we can
8894         catch problems later.
8896 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8898         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8899         prototypes.
8900         (__fread_alias, __fread_unlocked_alias): New aliases.
8901         (fread): New extern inline.
8902         (fread_unlocked): Likewise.  Undef macro before definition of
8903         the inline function.
8904         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8905         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8906         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8907         and __fread_unlocked_chk@@GLIBC_2.7.
8908         * debug/fread_chk.c: New file.
8909         * debug/fread_u_chk.c: New file.
8910         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8912 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8914         * sysdeps/unix/sysv/linux/syscalls.list
8915         (personality): Change caller to EXTRA.
8917 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8919         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8920         to keep gcc quiet.
8921         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8923         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8924         NDEBUG is defined.
8926         * Makerules: Use -p option with mkdir.
8928         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8929         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8930         (_xdr_directory_obj): Likewise.
8931         (xdr_entry_obj): Likewise.
8932         (xdr_group_obj): Likewise.
8933         (xdr_link_obj): Likewise.
8934         (xdr_table_obj): Likewise.
8935         (_xdr_nis_result): Likewise.
8936         (_xdr_ns_request): Likewise.
8937         (_xdr_ib_request): Likewise.
8938         (_xdr_nis_taglist): Likewise.
8939         (xdr_cback_data): Likewise.
8940         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8941         (xdr_ypresp_maplist): Likewise.
8943         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8945         * posix/regex_internal.h: Prevent some declarations and definitions
8946         to be seen when used in tests.
8948         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8949         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8951         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8953         * config.make.in (datarootdir): Add to shut up configure.
8955         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8956         associativity for fully-associative caches.
8958         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8959         requests.  Fill on more associativity values for L2.
8960         Patch mostly by Evandro Menezes.
8962 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8964         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8965         (_libc_vdso_platform_setup): Avoid using exported variable by using
8966         alias.
8968         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8970         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8971         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8972         defined.
8974 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8976         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8977         align stack for call if pltexit is to be used.
8979         [BZ #3924]
8980         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8981         align for function call in case pltexit has to be called later.
8983         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8984         implicit atomic operation when storing function pointer.
8985         (_dl_runtime_profile): Likewise.
8987 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8989         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8990         NIS_NOTFOUND.
8992 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8994         [BZ #4566]
8995         * string/strtok.c: Fix typo in comment.
8997         [BZ #4582]
8998         * debug/segfault.c: Fix typos in comments.
9000         [BZ #4588]
9001         * stdio-common/tempnam.c: Fix comment, it is not checked that
9002         TMPDIR points to a writable directory.
9004         [BZ #4726]
9005         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9006         memory allocated for the name server address.
9008         [BZ #4946]
9009         * nscd/connections.c (handle_request): Using sendfile always
9010         requires that mmap is used for the database.
9011         Patch by Petr Baudis <pasky@suse.cz>.
9013         [BZ #4905]
9014         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9015         suddenly has two or more addresses, ignore it and remove the old
9016         entry.
9018         [BZ #4814]
9019         * resolv/res_hconf.c: Prepare for compiling outside libc.
9020         * nscd/res_hconf.c: New file.
9021         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9022         the new file.
9023         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9024         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9026         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9028         [BZ #4925]
9029         * debug/pcprofiledump.c: Turn on internationalization by calling
9030         setlocale.  Patch mostly by Benno Schulenberg.
9032         [BZ #4936]
9033         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9034         the state.
9035         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9036         * iconvdata/bug-iconv5.c: New file.
9038 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9040         [BZ #4896]
9041         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9042         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9043         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9044         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9045         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9046         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9047         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9048         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9050 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9052         [BZ #4937]
9053         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9054         lookup loop.  Suggested by John Reiser.
9056 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9058         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9060 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9062         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9063         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9064         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9065         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9066         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9067         to...
9068         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9070 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9072         * po/nl.po: Update from translation team.
9074 2007-08-16  Andreas Jaeger  <aj@suse.de>
9076         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9077         Reported by Peter Festner <peter.festner@ewetel.net>.
9079 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9081         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9083 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9085         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9086         to check for undefined symbols.
9088         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9089         If the syscall fails, set errno to the actual returned error number
9090         rather than EINVAL.
9091         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9092         arguments are incorrect, set errno to EINVAL, if the syscall
9093         fails, set errno to the actual returned error number.
9095         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9096         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9098         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9099         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9100         file.
9101         (ASI_PNF, ASI_BLK_P): Don't define.
9102         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9103         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9104         file.
9105         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9106         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9107         file.
9109 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9111         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9112         FE_UNDERFLOW on Niagara CPUs.
9114         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9115         exceptions.
9117 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9119         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9120         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9121         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9122         flush should be used or not inside of the function.
9123         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9125         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9126         __thread_start): Use HIDDEN_JUMPTARGET.
9127         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9128         __thread_start): Likewise.
9129         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9131         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9132         Add libc_hidden_proto.
9133         (STRTOF): Add libc_hidden_proto.
9134         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9135         (strtold_l, wcstold_l): Use them as second argument for
9136         long_double_symbol.
9138 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9140         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9142 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9144         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9146 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9148         * po/bg.po: New file.  From the translation team.
9150 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9152         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9153         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9154         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9155         when each feature was introduced.
9157         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9158         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9159         (CHECK_HASH): New macro.
9160         (PREPARE_VERSION): Use it.
9162         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9163         prototype if not __ASSUME_PSELECT.
9164         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9165         prototype if not __ASSUME_PPOLL.
9167         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9169         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9170         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9171         is defined.
9173 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9175         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9176         (_libc_vdso_platform_setup): If vDSO is not available point
9177         __vdso_gettimeofday to the vsyscall.
9178         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9179         __vdso_gettimeofday instead of vsyscall.
9181 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9183         * nscd/servicescache.c: Include kernel-features.h.
9184         * nscd/gai.c: Likewise.
9185         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9186         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9187         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9188         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9189         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9190         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9191         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9192         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9193         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9195 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9197         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9198         and _dl_get_origin defines anymore.
9200         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9201         Build fix for systems which might lack POSIX timer support.
9203         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9204         (_libc_vdso_platform_setup): Mangle function pointers before storing
9205         them.
9206         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9207         Demangle vdso pointer before use.
9208         (INTERNAL_VSYSCALL): Likewise.
9210         * elf/cache.c (primes): Mark as const.
9211         Noted by Roland McGrath.
9213 2007-08-01  Andreas Jaeger  <aj@suse.de>
9214             Jakub Jelinek  <jakub@redhat.com>
9216         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9217         (options): Add option.
9218         (parse_opt): Handle option.
9219         (manual_link): Adjust process_file caller.  Call implicit_soname.
9220         (search_dir): Formatting.  Use and populate auxiliary cache.
9221         (main): Load and save auxiliary cache.
9222         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9223         stat64 from fstat64 to caller.
9224         (implicit_soname): New function.
9225         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9226         leave *soname as NULL.
9227         * elf/cache.c: Include libgen.h.
9228         (print_entry, print_cache, compare, save_cache, add_to_cache):
9229         Formatting and cleanups.
9230         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9231         aux_cache_file): New structures.
9232         (AUX_CACHEMAGIC): Define.
9233         (primes): New array.
9234         (aux_hash_size, aux_hash): New variables.
9235         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9236         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9237         load_aux_cache, save_aux_cache): New functions.
9238         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9239         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9240         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9241         (process_file): Adjust prototype.
9243 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9245         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9246         with __need_size_t.
9248 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9250         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9251         r_found_version structure as second parameter.
9252         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9253         (_dl_vdso_vsym): Change type of second parameter accordingly.
9254         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9255         (_libc_vdso_platform_setup): Adjust.
9256         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9257         (_libc_vdso_platform_setup): Likewise.
9259         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9260         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9261         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9262         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9263         * csu/libc-start.c: Pretty printing.
9264         Use VDSO_SETUP if defined.
9265         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9266         and let generic code call into _libc_vdso_platform_setup.
9267         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9268         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9269         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9270         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9271         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9272         for GLIBC_PRIVATE.
9273         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9274         (sysdep_rountines): Add dl-vdso.
9276         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9277         of routines.
9279         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9280         attribute_hidden to __vdso_gettimeofday prototype.
9282 2007-08-12  Roland McGrath  <roland@redhat.com>
9284         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9285         From: Karl Berry <karl@freefriends.org>.
9287 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9289         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9290         an atime update for the files we read.
9292 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9294         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9296         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9297         instead of mkstemp.
9299         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9300         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9301         * misc/mkostemp.c: New file.
9302         * misc/mkostemp64.c: New file.
9303         * stdlib/stdlib.h: Declare the new functions.
9304         * sysdeps/posix/tempname.c: Add new parameter which is added to
9305         the flags for open.  Remove __GT_BIGFILE handling.
9306         * stdio-common/tempname.c: Likewise.
9307         * include/stdio.h: Adjust __gen_tempname prototype.
9308         Renumber __GT_* constants.
9309         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9310         * misc/mkdtemp.c: Likewise.
9311         * misc/mkstemp.c: Likewise.
9312         * misc/mkstemp64.c: Likewise.
9313         * misc/mktemp.c: Likewise.
9314         * stdio-common/tempnam.c: Likewise.
9315         * stdio-common/tmpfile.c: Likewise.
9316         * stdio-common/tmpfile64.c: Likewise.
9317         * stdio-common/tmpnam.c: Likewise.
9318         * stdio-common/tmpnam_r.c: Likewise.
9320 2007-08-10  Roland McGrath  <roland@frob.com>
9322         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9323         New macros.
9324         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9325         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9327 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9329         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9330         possible.
9331         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9332         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9333         * nss/nss_files/files-have_o_cloexec.c: New file.
9335         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9336         available.
9338 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9340         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9341         ___new_wcstold_l): New weak aliases.
9342         (strtold_l, wcstold_l): Use them as second argument for
9343         long_double_symbol.
9345 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9347         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9348         register in test for error.
9350         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9351         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9353         * po/sv.po: Update from translation team.
9355 2007-08-06  Roland McGrath  <roland@redhat.com>
9357         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9358         Remove __strto*_l inlines.
9359         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9360         * stdlib/strtod.c: Add libc_hidden_def.
9361         * stdlib/strtod_l.c: Likewise.
9362         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9363         for __new_strtold and __new_wcstold.
9364         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9365         __STRTOF, STRTOF.
9366         * stdlib/strtol.c: Add libc_hidden_def.
9367         * stdlib/strtol_l.c: Likewise.
9368         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9369         strtoq.
9371         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9373         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9374         * scripts/data/localplt-generic.data: ... here.
9375         * elf/Makefile (check-data): Get generic file if no other.
9376         ($(objpfx)check-localplt.out): Make target unconditional.
9378         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9379         Use ElfW(Nhdr).
9381 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9383         * po/zh_CN.po: Updated translation from translation team.
9385 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9388         Don't use CGOTSETUP and CGOTRESTORE macros.
9390 2007-08-04  Roland McGrath  <roland@redhat.com>
9392         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9394 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9396         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9397         __extension__ around the whole statement expression.
9399 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9401         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9402         elements during initialization.
9404         * po/pl.po: Updated translation from translation team.
9405         * po/tr.po: Likewise.
9406         * po/nl.po: Likewise.
9408 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9410         * rt/aio.h: Add __nonnull attributes.
9412 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9414         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9415         * stdlib/Makefile (tests): Add tst-strtod5.
9416         (tst-strtod5-ENV): New.
9417         * stdlib/tst-strtod5.c: New file.
9419         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9420         failed.
9421         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9422         on failure.
9424         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9425         allocated.
9427 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9429         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9430         numbers.
9432 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9434         * io/Makefile (aux): Add have_o_cloexec.
9435         * include/fcntl.h: Declare __have_o_cloexec.
9436         * io/have_o_cloexec.c: New file.
9437         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9438         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9439         fcntl call if not necessary.
9440         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9441         of local variable.
9443         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9444         Avoid memset, add explicit initialization.
9445         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9446         to the end and change into zero-sized array.
9447         Move lock member to fill a hole on 64-bit platforms.
9449         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9450         inline functions.
9451         * include/stdlib.h: Add __strto*_internal prototypes here.
9452         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9453         inline functions.
9454         * include/wchar.h: Add __wcsto*_internal prototypes.
9455         * sysdeps/generic/inttypes.h: No need to protect the declaration
9456         of the __strto*_internal and __wcsto*_internal members here.
9458         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9460 2007-08-02  Roland McGrath  <roland@redhat.com>
9462         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9463         $(inst_bindir)/getconf if possible.
9465         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9466         (generated): Add it.
9467         ($(inst_libexecdir)/getconf): Use it.
9469 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9471         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9472         /proc is faster and sufficient.  /sys is still needed for
9473         __get_nprocs_conf.
9475 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9477         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9478         syscall as __fallocate64.
9479         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9480         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9482 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9484         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9485         value.
9487         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9488         if off_t is different rank from size_t.
9490         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9491         uw_frame_state_for): Avoid type punning warnings.
9492         * sysdeps/generic/unwind-dw2-fde-glibc.c
9493         (_Unwind_IteratePhdrCallback): Likewise.
9494         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9495         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9496         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9497         pointers.
9499 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9501         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9502         total processors using sysfs.
9503         (__get_nprocs): Use sysfs to determine which processors are online.
9505 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9507         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9508         syscall arguments count.
9510         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9512 2007-07-30  Roland McGrath  <roland@redhat.com>
9514         * manual/libc.texinfo: Update copyrights, formatting magic, and
9515         @dircategory.  From Karl Berry <karl@freefriends.org>.
9517 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9519         [BZ #4860]
9520         * io/Makefile (headers): Add bits/fcntl2.h.
9522         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9523         using gcc builtin.
9524         (__CPU_EQUAL_S): Likewise.
9526         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9527         (tests): Add tst-cpuset.
9528         * posix/sched_cpualloc.c: New file.
9529         * posix/sched_cpufree.c: New file.
9530         * posix/tst-cpuset.c: New file.
9531         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9532         GLIBC_2.7.
9533         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9534         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9535         macros.  Define CPU_*_S macros.
9537 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9539         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9540         entry.
9542         [BZ #4858]
9543         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9544         #.0g and value rounded to 1.0.
9545         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9547 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9549         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9550         for int_frac_digits and frac_digits.
9552         * login/logout.c (logout): Avoid aliasing violation.
9553         * login/logwtmp.c (logwtmp): Likewise.
9555         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9557         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9558         to avoid warning.
9559         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9560         warning.
9561         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9562         warning.
9563         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9564         to avoid warnings.
9566         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9567         void **.
9568         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9570         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9571         char * to avoid warning.
9572         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9574         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9576         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9577         allocate_arrays): Cast second argument to charmap_find_symbol
9578         to char * to avoid warnings.
9580         * locale/programs/repertoire.c (repertoire_new_char): Change
9581         from_nr, to_nr and cnt to unsigned long, adjust printf format
9582         string.
9584         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9585         Cast second argument to new_element to char * to avoid warnings.
9587         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9589         * intl/gettextP.h (struct loaded_domain): Change plural to const
9590         struct expression *.
9591         * intl/plural-eval.c (plural_eval): Change first argument to
9592         const struct expression *.
9593         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9594         argument to const struct expression **.
9595         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9596         prototypes.
9597         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9598         in call to __gettext_free_exp.
9600         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9601         unitialized wstring/wpattern var warnings.
9603         * posix/runtests.c (struct a_test): Make data field const char *.
9605         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9606         vars if not LDBL_MANT_DIG >= 106.
9608         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9610         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9611         __find_specmb to avoid warning.
9613         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9615         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9616         to avoid warnings.
9618         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9619         initializer.
9621         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9622         tv var when it will be actually used.
9624         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9625         to avoid warnings.
9627         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9628         char array resp. pointer.
9629         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9630         char array.
9631         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9632         to const unsigned char **.
9633         (ucs4_to_cns11643): Change second argument to unsigned char *.
9634         * iconvdata/euc-tw.c (BODY): Change endp type to
9635         const unsigned char *.
9636         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9637         to unsigned char *.
9638         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9639         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9640         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9641         types to unsigned char pointers/arrays instead of char.
9642         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9643         to unsigned char *.
9644         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9645         * iconvdata/jis0212.h: Include assert.h.
9646         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9647         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9648         of trying to handle that.
9649         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9650         shut up a warning.
9651         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9652         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9653         two dimensional const unsigned char arrays.
9654         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9655         Initialize endp to inptr to shut up a warning.
9657 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9659         [BZ #4772]
9660         * time/strptime_l.c (__strptime_internal): Silently ignore
9661         strftime modifiers and field width in recursive calls.
9663         * include/time.h (enum ptime_locale_status): Remove.
9664         (__strptime_internal): Remove decided and era_cnt arguments,
9665         add statep argument.
9666         * time/strptime_l.c (__strptime_internal): Remove decided
9667         and era_cnt arguments, add statep argument.  Don't recompute
9668         any fields in recursive calls, only update caller's tm
9669         and state, if recursive call fails, don't change tm nor
9670         any state.
9671         (get_alt_number): Adjust.
9672         (recursive): Adjust caller.
9673         (strptime): Likewise.
9674         * time/strptime.c (strptime): Likewise.
9676 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9678         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9679         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9680         if from and to charsets are the same.
9681         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9682         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9683         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9685 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9687         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9688         Don't define wint_t when __need_mbstate_t unless it
9689         is necessary.
9690         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9691         in the typedef if possible.
9692         * wctype/wctype.h (wint_t): Define by including
9693         wchar.h with __need_wint_t instead of including stddef.h
9694         with __need_wint_t and as fallback definining it ourselves.
9695         * iconv/gconv.h (__need_wint_t): Define before including
9696         wchar.h.
9697         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9698         or _GLIBCPP_USE_WCHAR_T.
9699         (__need_wchar_t): Don't define
9700         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9701         (__need_wint_t): Don't define before including stddef.h,
9702         define before including wchar.h only if _LIBC or
9703         _GLIBCPP_USE_WCHAR_T.
9704         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9705         * sysdeps/mach/hurd/_G_config.h: Likewise.
9706         * sysdeps/generic/_G_config.h: Likewise.
9707         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9708         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9709         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9710         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9712 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9714         * sysdeps/posix/posix_fallocate64.c: Undefine
9715         __posix_fallocate64_l64 before alias handling.
9716         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9717         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9718         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9719         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9721         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9723 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9725         * locale/programs/ld-collate.c (atwc): New variable.
9726         (add_to_tablewc): New toplevel function, moved from collate_output.
9727         (collate_output): Remove add_to_tablewc nested function.
9729         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9730         (name_insert): New function.
9731         (write_output): Remove hash_table and hash_size vars and name_insert
9732         nested function.
9734 2007-07-24  Roland McGrath  <roland@redhat.com>
9736         * Makerules (install-others-programs-nosubdir): New target.
9737         (install-no-libc.a-nosubdir): Depend on it.
9739         * iconv/Makefile (install-others-programs): Set this instead of
9740         install-others.
9741         * login/Makefile (install-others-programs): Likewise.
9742         * posix/Makefile (install-others-programs): Likewise.
9744         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9745         dependencies.
9747 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9749         * io/Makefile (tests): Add tst-posix_fallocate.
9750         * io/tst-posix_fallocate.c: New file.
9752         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9753         __ASSUME_FALLOCATE.
9755 2007-07-22  Roland McGrath  <roland@frob.com>
9757         * hurd/getdport.c: Add missing copyright year update.
9759         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9760         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9762 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9764         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9766         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9767         O_CLOEXEC is needed.
9768         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9769         Avoid additional fcntl to set O_CLOEXEC if not needed.
9770         * nis/nss_compat/compat-initgroups.c: Likewise.
9771         * nis/nss_compat/compat-pwd.c: Likewise.
9772         * nis/nss_compat/compat-spwd.c: Likewise.
9774 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9776         [BZ #3665]
9777         * manual/errno.texi: Change ECANCELED value to 119.
9779         [BZ #4610]
9780         * mach/lock-intern.h: Include <sys/cdefs.h>.
9782         [BZ #4178]
9783         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9784         reading A.
9786         [BZ #4126]
9787         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9788         to __sigsuspend.
9790         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9792 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9794         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9795         `__ASSEMBLER__'.
9796         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9798 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9800         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9801         descriptor received from nscd.
9803         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9805         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9806         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9807         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9808         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9809         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9810         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9812 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9814         [BZ #4816]
9815         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9817         [BZ #4813]
9818         * login/forkpty.c (forkpty): Close master and slave fds on
9819         fork failure.  Patch by
9820         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9822 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9824         * include/features.h (__USE_ISOC95): New define.
9825         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9826         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9827         for -std=iso9899:199409.
9828         * CONFORMANCE: Remove comments about unsupported AMD1.
9830 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9832         * sysdeps/ia64/sched_cpucount.c: New file.
9833         * sysdeps/powerpc/sched_cpucount.c: New file.
9835         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9836         __BEGIN_DECLS/__END_DECLS around the prototype.
9837         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9838         pointer to const cpu_set_t.
9840         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9841         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9842         __need_size_t and include stddef.h.
9843         * sysvipc/sys/msg.h: Likewise.
9844         * posix/sched.h: Likewise.
9845         * hurd/hurd/signal.h (__need_size_t): Define.
9847         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9848         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9849         no longer defines wint_t or wchar_t.
9851         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9852         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9853         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9854         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9855         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9856         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9857         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9858         * debug/printf_chk.c (__printf_chk): Likewise.
9859         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9860         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9862         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9863         Define.
9865         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9866         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9868 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9870         [BZ #4792]
9871         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9872         * malloc/malloc.h (realloc): Likewise.
9874         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9875         if one of proc_file_chain streams has that fileno.
9876         * stdio-common/Makefile (tests): Add tst-popen2.
9877         * stdio-common/tst-popen2.c: New test.
9879 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9881         * elf/ldconfig.c: Allow GPLv2 or any later version.
9882         * elf/readlib.c: Likewise.
9883         * elf/chroot_canon.c: Likewise.
9884         * elf/cache.c: Likewise.
9885         * nscd/mem.c: Likewise.
9886         * nscd/getpwuid_r.c: Likewise.
9887         * nscd/grpcache.c: Likewise.
9888         * nscd/aicache.c: Likewise.
9889         * nscd/getsrvbynm_r.c: Likewise.
9890         * nscd/nscd.c: Likewise.
9891         * nscd/servicescache.c: Likewise.
9892         * nscd/getsrvbypt_r.c: Likewise.
9893         * nscd/initgrcache.c: Likewise.
9894         * nscd/gethstbyad_r.c: Likewise.
9895         * nscd/gethstbynm2_r.c: Likewise.
9896         * nscd/getgrnam_r.c: Likewise.
9897         * nscd/nscd_setup_thread.c: Likewise.
9898         * nscd/getpwnam_r.c: Likewise.
9899         * nscd/gai.c: Likewise.
9900         * nscd/connections.c: Likewise.
9901         * nscd/dbg_log.c: Likewise.
9902         * nscd/cache.c: Likewise.
9903         * nscd/hstcache.c: Likewise.
9904         * nscd/nscd_conf.c: Likewise.
9905         * nscd/getgrgid_r.c: Likewise.
9906         * nscd/pwdcache.c: Likewise.
9907         * catgets/gencat.c: Likewise.
9908         * locale/programs/linereader.h: Likewise.
9909         * locale/programs/locarchive.c: Likewise.
9910         * locale/programs/ld-paper.c: Likewise.
9911         * locale/programs/locfile-kw.h: Likewise.
9912         * locale/programs/ld-address.c: Likewise.
9913         * locale/programs/xmalloc.c: Likewise.
9914         * locale/programs/ld-time.c: Likewise.
9915         * locale/programs/localedef.c: Likewise.
9916         * locale/programs/simple-hash.c: Likewise.
9917         * locale/programs/xstrdup.c: Likewise.
9918         * locale/programs/ld-numeric.c: Likewise.
9919         * locale/programs/locfile-kw.gperf: Likewise.
9920         * locale/programs/ld-collate.c: Likewise.
9921         * locale/programs/charmap-kw.gperf: Likewise.
9922         * locale/programs/charmap.h: Likewise.
9923         * locale/programs/charmap-kw.h: Likewise.
9924         * locale/programs/config.h: Likewise.
9925         * locale/programs/locfile.c: Likewise.
9926         * locale/programs/ld-ctype.c: Likewise.
9927         * locale/programs/charmap.c: Likewise.
9928         * locale/programs/ld-messages.c: Likewise.
9929         * locale/programs/repertoire.h: Likewise.
9930         * locale/programs/locale.c: Likewise.
9931         * locale/programs/ld-name.c: Likewise.
9932         * locale/programs/linereader.c: Likewise.
9933         * locale/programs/locfile.h: Likewise.
9934         * locale/programs/3level.h: Likewise.
9935         * locale/programs/ld-monetary.c: Likewise.
9936         * locale/programs/ld-measurement.c: Likewise.
9937         * locale/programs/charmap-dir.c: Likewise.
9938         * locale/programs/ld-identification.c: Likewise.
9939         * locale/programs/localedef.h: Likewise.
9940         * locale/programs/charmap-dir.h: Likewise.
9941         * locale/programs/repertoire.c: Likewise.
9942         * locale/programs/simple-hash.h: Likewise.
9943         * locale/programs/ld-telephone.c: Likewise.
9944         * locale/programs/locale-spec.c: Likewise.
9945         * locale/programs/locfile-token.h: Likewise.
9946         * posix/getconf.c: Likewise.
9947         * iconv/dummy-repertoire.c: Likewise.
9948         * iconv/iconv_charmap.c: Likewise.
9949         * iconv/iconvconfig.c: Likewise.
9950         * iconv/iconv_prog.c: Likewise.
9951         * malloc/memusagestat.c: Likewise.
9952         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9954 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9956         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9957         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9958         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9959         check for the first argument.
9961 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9963         [BZ #4775]
9964         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9965         (__tgmath_real_type): Fix if expr is const int or other const
9966         qualified integral type.
9967         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9968         expressions and handle const qualified arguments.
9969         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9970         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9971         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9972         statement expressions.
9973         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9974         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9975         (__TGMATH_UNARY_IMAG): Define.
9976         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9977         * math/Makefile (tests): Add test-tgmath2.
9978         (CFLAGS-test-tgmath2.c): Add.
9979         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9980         count_cfloat, count_cldouble): New variables.
9981         (NCCALLS): Define.
9982         (main): Check number of complex calls as well.
9983         (F(compile_test)): Add complex tests and tests with const qualified
9984         arguments.
9985         (y, z, ccount): Define.
9986         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9987         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9988         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9989         F(cproj)): New functions.
9990         * math/test-tgmath2.c: New test.
9992 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9994         [BZ #4776]
9995         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9996         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9997         instead output ".".
9998         * dlfcn/Makefile (distribute): Add glreflib3.c.
9999         (module-names): Add glreflib3.
10000         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10001         glreflib1.so.
10002         (LDFLAGS_glreflib3.so): New.
10003         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10004         glreflib1.so.
10005         * dlfcn/glreflib3.c: New file.
10007         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10008         returned -1, return NULL.
10009         * intl/explodename.c (_nl_explode_name): Return -1 if
10010         _nl_normalize_codeset failed.
10012 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10014         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10015         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10016         and avoid branch misspredicts for > 31 bytes memset case.
10017         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10018         Remove toc ref to __cache_line_size.
10020         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10021         to get ISA-V2.0 branch hints.
10022         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10023         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10024         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10025         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10026         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10027         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10028         Remove toc ref to __cache_line_size.
10030         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10031         Include math_ldbl_opt.h.
10033 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10035         [BZ #4773]
10036         * time/strptime_l.c (__strptime_internal): Implement greedy
10037         matching of weekday and month names.
10039 2007-07-09  Roland McGrath  <roland@redhat.com>
10041         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10042         (ELF_NOTE_ABI): Use it.
10043         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10045 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10047         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10048         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10050 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10052         [BZ #4745]
10053         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10054         in loop to look for conversion specifier to avoid testing of
10055         wrong errno value.
10056         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10057         * stdio-common/bug18.c: New file.
10058         * stdio-common/bug18a.c: New file.
10059         * stdio-common/bug19.c: New file.
10060         * stdio-common/bug19a.c: New file.
10062 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10064         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10065         running awk script.
10067 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10069         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10070         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10071         Return NULL if mmap failed instead of asserting it does not.
10072         (calloc): Check for integer overflow.
10074         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10075         than LONG_MAX / 10.
10077 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10079         [BZ #4702]
10080         * nis/nss-default.c: Include errno.h.
10081         (init): Preserve errno.
10083 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10085         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10087 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10089         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10091 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10093         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10095 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10097         * sysdeps/s390/dl-procinfo.c: New file.
10098         * sysdeps/s390/dl-procinfo.h: New file.
10099         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10101 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10103         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10104         in PT_NOTE segments with multiple notes.
10105         * elf/readelflib.c (process_elf_file): Likewise.
10107 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10109         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10110         ISO C compliant.
10112 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10114         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10116 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10118         * include/link.h: Don't include rtld-lowlevel.h.
10119         (struct link_map): Remove l_scope_lock.
10120         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10121         (_dl_scope_free_list): New field (variable) in _rtld_global.
10122         (DL_LOOKUP_SCOPE_LOCK): Remove.
10123         (_dl_scope_free): New prototype.
10124         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10125         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10126         (_dl_profile_fixup): Likewise.
10127         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10128         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10129         THREAD_GSCOPE_RESET_FLAG around it.
10130         * elf/dl-close.c (_dl_close_worker): Don't use
10131         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10132         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10133         scopes were queued or if l_scope_mem has been abandoned.
10134         * elf/dl-open.c (_dl_scope_free): New function.
10135         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10136         * elf/dl-support.c (_dl_scope_free_list): New variable.
10137         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10138         Remove DL_LOOKUP_SCOPE_LOCK handling.
10139         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10140         handling.
10141         * elf/dl-object.c (_dl_new_object): Don't use
10142         __rtld_mrlock_initialize.
10144 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10146         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10147         to fill in holes
10148         (rtld_global_ro): Likewise.
10150 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10152         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10153         Move PT_LOAD checking to...
10154         (_dl_addr_inside_object): ... here, new function.
10155         * elf/dl-sym.c (do_sym): If not l_contiguous,
10156         call _dl_addr_inside_object.
10157         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10158         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10159         * elf/dl-open.c (dl_open_worker): Likewise.
10160         (_dl_addr_inside_object): New function if IS_IN_rtld.
10161         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10162         holes are present or are PROT_NONE protected.
10163         * include/link.h (struct link_map): Add l_contiguous field.
10164         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10166 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10167             Tomas Janousek  <tjanouse@redhat.com>
10168             Ulrich Drepper  <drepper@redhat.com>
10170         [BZ #4647]
10171         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10172         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10173         socket.
10174         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10175         unused member a bitmap.
10176         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10177         servers are configured.
10179 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10181         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10183 2007-06-17  Andreas Schwab  <schwab@suse.de>
10185         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10187 2007-06-16  Andreas Jaeger  <aj@suse.de>
10189         [BZ #4125]
10190         * sysdeps/unix/sysv/linux/sys/ptrace.h
10191         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10192         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10193         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10194         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10195         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10196         Define.
10197         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10198         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10199         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10200         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10202 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10204         [BZ #4599]
10205         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10206         determining whether there are IPv4/IPv6 addresses, ignore loopback
10207         addresses.
10209 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10211         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10212         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10213         as the return type.  Change type of "r" variable to CMPtype.
10214         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10215         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10216         * soft-fp/gedf2.c (__gedf2): Likewise.
10217         * soft-fp/gesf2.c (__gesf2): Likewise.
10218         * soft-fp/getf2.c (__getf2): Likewise.
10219         * soft-fp/ledf2.c (__ledf2): Likewise.
10220         * soft-fp/lesf2.c (__lesf2): Likewise.
10221         * soft-fp/letf2.c (__letf2): Likewise.
10222         * soft-fp/unorddf2 (__unorddf2): Likewise.
10223         * soft-fp/unordsf2 (__unordsf2): Likewise.
10224         * soft-fp/unordtf2 (__unordtf2): Likewise.
10226 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10228         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10229         make sure gcc doesn't mess around with this.
10231 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10233         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10235 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10237         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10238         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10239         at most once per _dl_close_worker.
10241 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10243         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10244         __sched_cpucount as const.
10245         * posix/sched_cpucount.c: Adjust.
10247         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10248         instruction for counting bits.
10249         * sysdeps/x86_64/sched_cpucount.c: New file.
10251 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10253         * configure.in: Avoid variable named BASH.
10254         * config.make.in: Likewise.
10255         Patch in part by Mike Frysinger.
10257 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10259         [BZ #4586]
10260         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10261         pseudo-zeros as zero.
10262         * sysdeps/x86_64/ldbl2mpn.c: New file.
10263         * sysdeps/ia64/ldbl2mpn.c: New file.
10265 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10267         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10268         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10269         Remove unreachable code at the end.
10271 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10273         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10274         ldbl-128ibm in comment.
10275         (fpclassifyl): Correct classification of denormals.
10276         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10277         return value for MIN denormal. Rewrite using long double math too
10278         correctly handle denormals and canonicalize the results.
10280 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10282         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10283         (__mpn_construct_long_double): Fix conversion where result ought
10284         to be smaller than __LDBL_MIN__, or the low double should be
10285         denormal.  Fix decision where to negate low double - honor round
10286         to even rules.
10287         * stdio-common/tst-sprintf2.c: Include string.h.
10288         (COMPARE_LDBL): Define.
10289         (TEST): Also test whether a string hexadecimal float representation
10290         can be parsed back to the number.
10291         (main): Add a couple of further tests.
10293 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10295         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10296         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10297         is non-zero, but smaller than 2 * __DBL_MIN__.
10298         * stdio-common/tst-sprintf2.c: New test.
10299         * stdio-common/Makefile (tests): Add tst-sprintf2.
10301         * math/test-misc.c (main): Don't run last batch of tests with
10302         IBM long double format.
10304 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10306         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10307         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10308         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10309         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10310         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10311         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10312         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10313         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10314         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10315         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10318         New file.
10319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10320         New file.
10321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10322         New file.
10323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10324         New file.
10325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10326         New file.
10327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10329         New file.
10330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10331         New file.
10332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10333         New file.
10334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10335         New file.
10336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10337         New file.
10339 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10341         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10342         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10343         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10344         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10345         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10346         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10347         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10348         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10350 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10352         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10353         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10354         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10355         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10356         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10357         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10358         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10359         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10361 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10363         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10364         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10365         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10366         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10368 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10370         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10371         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10373 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10375         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10376         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10377         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10378         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10380 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10382         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10383         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10385 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10387         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10388         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10390         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10391         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10392         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10393         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10395 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10397         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10398         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10399         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10400         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10402 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10404         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10405         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10406         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10407         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10408         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10409         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10411 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10413         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10414         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10415         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10416         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10418 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10420         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10421         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10422         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10423         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10424         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10425         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10426         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10427         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10428         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10429         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10430         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10431         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10432         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10433         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10434         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10435         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10437 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10439         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10440         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10442 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10444         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10445         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10447 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10449         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10450         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10451         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10452         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10453         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10454         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10455         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10456         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10457         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10458         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10460 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10462         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10464 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10466         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10467         branch miss-predicts. Ensure that cache line crossing does not impact
10468         dispatch grouping.
10470 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10472         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10473         "../../powerpc32/power4/memcopy.h".
10474         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10475         "../../powerpc32/power4/wordcopy.c".
10477 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10479         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10480         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10481         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10482         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10483         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10484         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10486 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10488         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10490 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10492         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10493         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10494         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10495         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10496         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10497         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10498         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10499         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10501 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10503         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10505 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10507         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10508         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10509         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10510         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10511         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10512         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10513         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10515 2007-05-29  Roland McGrath  <roland@redhat.com>
10517         * po/Makefile (po-sed-cmd): New variable.
10518         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10520 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10522         * crypt/md5-crypt.c: Fix comment.
10524         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10525         of crashing.  When this is the case or if the reply is malformed,
10526         don't try to close the new file descriptor since it does not
10527         exist.
10528         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10530 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10532         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10533         if __NR_utimensat is not defined.
10535 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10537         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10539 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10541         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10542         (open): Fix comment typos.  Don't call __open_2 if flags
10543         is a compile time constant without O_CREAT.
10544         (__open64_2): Add nonnull attribute.
10545         (open64): Fix comment typos.  Don't call __open64_2 if flags
10546         is a compile time constant without O_CREAT.
10547         (__openat_2): Add nonnull attribute, fix nonnull attribute
10548         on redirect.
10549         (openat): Fix comment typos.  Don't call __openat_2 if flags
10550         is a compile time constant without O_CREAT.
10551         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10552         on redirect.
10553         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10554         is a compile time constant without O_CREAT.
10556 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10558         * Makerules (sysd-rules): Define PTW for ptw-* files.
10559         * Versions: Define GLIBC_2.7 for libc.
10560         * include/stdio.h: Declare __fortify_fail.
10561         * debug/fortify_fail.c: New file.
10562         * debug/Makefile (routines): Add fortify_fail.
10563         * debug/chk_fail.c: Use __fortify_fail.
10564         * debug/stack_chk_fail.c: Likewise.
10565         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10566         __openat64_2 for GLIBC_2.7.
10567         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10568         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10569         and fails if necessary.
10570         * io/open64.c: Likewise.
10571         * io/openat.c: Likewise.
10572         * io/openat64.c: Likewise.
10573         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10574         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10575         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10576         * io/bits/fcntl2.h: New file.
10577         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10578         __openat64_2.
10579         * include/bits/fcntl2.h: New file.
10580         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10581         Add open_2.
10582         * sysdeps/unix/sysv/linux/open_2.c: New file.
10584 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10586         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10587         as second parameter to handle_intel.
10589         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10590         the entry.
10592         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10593         handling to ...
10594         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10595         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10596         cacheinfo.
10597         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10598         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10599         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10601         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10603 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10605         [BZ #4525]
10606         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10607         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10608         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10610         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10612         [BZ #4514]
10613         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10614         reinitialize workend at the start of each do_positional format spec
10615         loop, free workstart before do_positional loops.
10616         (printf_unknown): Fix size of work_buffer.
10617         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10619         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10620         (public_sET_STATe): If ms->version < 3, put all chunks into
10621         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10622         chunks.
10624         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10625         * malloc/hooks.c: Likewise.
10626         * malloc/arena.c: Likewise.
10627         * malloc/malloc.c (do_check_malloc_state): Don't assert
10628         n_mmaps is not greater than n_mmaps_max.  This removes the need
10629         for the previous change.
10631         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10632         2007-05-07 commit.
10634 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10636         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10637         Define for kernel >= 2.6.22.
10639 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10641         * elf/dl-close.c (_dl_close_worker): When removing object from
10642         global scope, wait for all lookups to finish afterwards.
10643         * elf/dl-open.c (add_to_global): When global scope array must
10644         grow, allocate a new one and free old array only after all
10645         lookups finish.
10646         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10647         (_dl_lookup_symbol_x): Likewise.
10648         * elf/dl-support.c: Define _dl_wait_lookup_done.
10649         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10650         _dl_wait_lookup_done.
10652         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10653         not overlapping with arena.
10655         * malloc/mcheck.c (reallochook): If size==0, free the block.
10657         * rt/tst-shm.c: Use fstat64 instead of fstat.
10659         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10660         __NR_sync_file_range is not defined.
10662 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10664         Dummy files to prevent stub versions from being used.
10665         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10666         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10667         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10668         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10670         * version.h (VERSION): Set to 2.6.90.
10672 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10674         * version.h (VERSION): Define to 2.6.
10675         * include/features.h (__GLIBC_MINOR__): Define to 6.
10677         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10679         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10680         sizes.
10682 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10684         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10685         number of mmaps.  n_mmaps_max is the target.
10686         * malloc/hooks.c: Likewise.
10687         * malloc/arena.c: Likewise.
10689 2007-05-12  Andreas Jaeger  <aj@suse.de>
10691         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10692         getpid.
10694 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10696         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10697         adding new variables.
10699         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10700         optimize.  Completely extend global scope array before making the
10701         new entries visible.
10703 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10705         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10706         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10707         tst-getcpu.
10709         * include/link.h: Move l_version and l_nversion members around to
10710         fill gaps.
10712         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10714         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10715         (__sched_setaffinity_new): If syscall was successful and
10716         RESET_VGETCPU_CACHE is defined, use it before returning.
10717         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10719         * io/sys/stat.h: Make sure struct timespec is defined for
10720         __USE_ATFILE.
10722         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10723         UTIME_OMIT.
10724         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10725         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10726         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10727         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10728         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10729         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10730         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10731         * io/sys/stat.h: Declare utimensat, futimens.
10732         * io/utimensat.c: New file.
10733         * io/futimens.c: New file.
10734         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10735         * sysdeps/unix/sysv/linux/futimens.c: New file.
10736         * io/Makefile (routines): Add utimensat, futimens.
10737         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10738         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10739         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10740         available.
10742         * include/sys/cdefs.h: Redefine __nonnull so that test for
10743         incorrect parameters in the libc code itself are not omitted.
10745 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10747         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10748         exception in addition to inexact when asked to raise only FE_INEXACT.
10750         [BZ #3427]
10751         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10752         in *envp.
10754 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10756         [BZ #4403]
10757         * string/strfry.c (strfry): Make result more random.
10759 2007-05-07  Richard Henderson  <rth@redhat.com>
10761         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10762         if __NO_LONG_DOUBLE_MATH.
10763         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10764         available in the compiler, add .arch directive to the assembly.
10766 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10768         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10769         compat_symbol to GLIBC_2_1.
10770         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10771         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10772         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10773         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10774         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10775         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10776         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10777         libc, not libm.
10778         (__isnanl): New compat_symbol.
10780 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10781             Jakub Jelinek  <jakub@redhat.com>
10783         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10784         (new_heap): Initialize mprotect_size.
10785         (grow_heap): When growing, only mprotect from mprotect_size till
10786         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10787         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10789 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10790             Peter Bergner  <bergner@us.ibm.com>
10792         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10793         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10794         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10795         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10796         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10797         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10798         Call __fe_mask_env() if all FP exceptions disabled.
10799         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10800         from old FPSCR to new fenv to propagate DFP rounding modes.
10801         Call __fe_mask_env() if FP exceptions previously enabled.
10802         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10803         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10804         transitioning from all exceptions disabled to any exception enabled
10805         or visa versa.
10806         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10807         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10808         when transitioning from all exceptions disabled to any exception
10809         enabled or visa versa.
10810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10817 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10819         [BZ #4465]
10820         * posix/unistd.h: Remove __THROW from fdatasync.
10822 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10824         [BZ #4465]
10825         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10827 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10829         * stdio-common/vfprintf.c (process_string_arg): Optimize
10830         ridiculous precision in wide char code printing multi-byte string.
10831         Reported by Jim Meyering <jim@meyering.net>.
10833         [BZ #4131]
10834         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10835         boundaries to work around systems with overlapping binary loading.
10836         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10838 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10840         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10841         __mbsnrtowcs after last change.
10843         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10844         (get_ident): Likewise.
10846 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10848         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10849         with setting the sticky bit.
10850         * math/test-misc.c (main): Add more truncation tests.
10852 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10854         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10855         double in the function declaration.
10856         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10857         double in the function declaration.
10858         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10859         float in the function declaration.
10860         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10861         float in the function declaration.
10863         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10864         denormal operands.  Do not generate FP_EX_DENORM exception.
10865         (FP_UNPACK_RAW_EP): Ditto.
10866         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10867         undefined _FP_UNPACK_RAW_E.
10868         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10869         undefined _FP_UNPACK_RAW_EP.
10870         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10871         undefined _FP_PACK_RAW_E.
10872         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10873         undefined _FP_PACK_RAW_EP.
10875         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10876         _FP_FRAC_COPY_2.
10877         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10878         _FP_FRAC_COPY_4.
10880 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10881             Jakub Jelinek  <jakub@redhat.com>
10883         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10884         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10885         this case.
10886         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10888 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10890         * math/test-misc.c (main): Add tests for rounding long double
10891         values close to smallest double denormalized value to double.
10893 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10895         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10896         condition for truncating to 0.  Set sticky bit for such
10897         truncation.
10899 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10901         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10902         fixed length array for ignore.
10904 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10906         [BZ #4438]
10907         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10908         stack for large precisions.
10909         * stdio-common/test-vfprintf.c (main): Add test for large
10910         precision.
10912 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10914         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10915         for exponent 0.
10916         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10918         [BZ #4439]
10919         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10920         account in the size check.
10921         * resolv/tst-inet_ntop.c: New test.
10922         * resolv/Makefile (tests): Add tst-inet_ntop.
10924 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10925             Jakub Jelinek  <jakub@redhat.com>
10927         [BZ #4349]
10928         * malloc/malloc.c: Keep separate list for first blocks on the bin
10929         lists with a given size.  This helps skipping over list elements
10930         we know won't fit in two places.
10931         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10933 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10935         [BZ #4102]
10936         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10937         label to Teredo tunnel addresses 2001://32.
10939 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10941         * locale/programs/ld-collate.c (collate_read): Allow order_start
10942         after copy.
10944         * locale/programs/ld-collate.c (collate_read): Fix printing of
10945         error message.
10947         [BZ #3213]
10948         * locale/C-translit.h.in: Add entry for U2044.
10950         [BZ #4342]
10951         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10952         hexa-decimal floats without exponent.
10953         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10955 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10957         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10958         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10959         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10960         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10961         GLIBC_2.6.
10962         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10963         Add sched_getcpu.
10965 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10967         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10968         of 0 after the out_fail label.
10970 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10972         [BZ #4406]
10973         * iconv/gconv_charset.h (strip): Allow ':'.
10974         * iconv/iconv_open.c (iconv_open): Adjust comment.
10976 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10978         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10979         version.
10981 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10983         [BZ #4381]
10984         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10985         alignment of buffer and tmp_buffer.
10986         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10987         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10988         alignment of buffer.
10989         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10990         bigger than INT_MAX.
10991         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10992         h_errnop arguments.  Fail if buflen is too small.
10993         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10995 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10997         [BZ #4405]
10998         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10999         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11001 2007-04-22  Roland McGrath  <roland@redhat.com>
11003         * elf/elf.h (NT_PRXFPREG): New macro.
11005 2007-04-19  Andreas Jaeger  <aj@suse.de>
11007         [BZ #3905]
11008         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11009         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11010         Added.
11012 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11014         * include/sys/mman.h: Mark madvise hidden.
11015         * misc/madvise.c: Add libc_hidden_def.
11017 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11019         * nis/nis_domain_of.c (__nis_domain_of): New function.
11020         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11021         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11022         * nis/nis_call.c (rec_dirsearch): Likewise.
11023         (first_shoot): Likewise.  Remove search_parent_first argument.
11024         (struct nis_server_cache): Rename search_parent_first field
11025         to search_parent.
11026         (nis_server_cache_search, nis_server_cache_add): Rename
11027         search_parent_first argument to search_parent.
11028         (__nisfind_server): Likewise.  If search_parent, call
11029         __nis_domain_of.
11031 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11033         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11035 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11037         [BZ #4368]
11038         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11040 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11042         [BZ #4364]
11043         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11045 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11047         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11048         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11049         current number of locales in SUPPORTED.
11050         (create_archive): Initialize serial.
11051         (enlarge_archive): Preserve aliases rather than duplicating
11052         their locrecs.
11054 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11056         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11057         after _IO_un_link, not before it.
11059         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11060         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11061         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11063 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11065         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11066         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11067         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11068         Remove __THROW.
11069         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11070         _IO_file_xsgetn_maybe_mmap): Likewise.
11071         * libio/oldfileops.c (old_do_write): Likewise.
11072         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11073         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11074         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11075         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11076         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11077         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11078         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11079         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11080         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11081         _IO_file_underflow, _IO_file_underflow_mmap,
11082         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11083         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11084         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11085         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11086         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11087         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11088         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11089         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11090         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11091         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11092         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11093         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11094         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11095         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11096         _IO_adjust_column_internal, _IO_default_uflow_internal,
11097         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11098         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11099         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11100         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11101         _IO_file_close_it_internal, _IO_file_underflow_internal,
11102         _IO_file_overflow_internal, _IO_file_attach_internal,
11103         _IO_file_fopen_internal, _IO_file_sync_internal,
11104         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11105         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11106         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11107         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11108         _IO_seekpos_unlocked): Likewise.
11109         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11110         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11112 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11114         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11115         argument in xmalloc size computation.
11117 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11119         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11120         math_opt_barrier and math_force_eval macros.
11122 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11124         [BZ #3306]
11125         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11126         * sysdeps/i386/fpu/math_private.h: New file.
11127         * sysdeps/x86_64/fpu/math_private.h: New file.
11128         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11129         math_force_eval macros.  Use "+m" constraint on asm rather than
11130         "=m" and "m".
11131         * math/s_nextafter.c (__nextafter): Likewise.
11132         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11133         Likewise.
11134         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11135         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11136         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11137         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11138         math_opt_barrier and math_force_eval macros.
11139         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11140         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11141         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11142         (__nexttoward): Use math_opt_barrier and
11143         math_force_eval macros.  Use "+m" constraint on asm rather than
11144         "=m" and "m".  Only use asm to force double result if
11145         FLT_EVAL_METHOD is 2.
11146         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11147         (__nexttowardf): Use math_opt_barrier and
11148         math_force_eval macros.  Use "+m" constraint on asm rather than
11149         "=m" and "m".  Only use asm to force double result if
11150         FLT_EVAL_METHOD is not 0.
11151         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11152         (__nexttowardf): Use math_opt_barrier and
11153         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11154         x to float using asm.
11155         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11156         (__nldbl_nexttowardf): Use math_opt_barrier and
11157         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11158         x to float using asm.
11159         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11160         (__nexttowardf): Use math_opt_barrier and math_force_eval
11161         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11162         * math/bug-nextafter.c (zero, inf): New variables.
11163         (main): Add new tests.
11164         * math/bug-nexttoward.c (zero, inf): New variables.
11165         (main): Add new tests.
11167 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11169         [BZ #3427]
11170         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11171         exceptions both in SW and MXCSR.
11172         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11173         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11174         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11175         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11176         in MXCSR if SSE is available.
11177         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11178         and ldsodefs.h.
11179         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11180         Fix comment typo.
11181         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11182         Return 0 rather than 1.
11183         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11184         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11185         * math/test-fenv.c (feholdexcept_tests): New function.
11186         (main): Call it.
11188 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11190         [BZ #3427]
11191         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11192         in SW.
11194 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11196         [BZ #4344]
11197         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11198         Reported by David Anderson <davea42@earthlink.net>.
11200 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11202         * posix/sys/wait.h: Remove unnecessary forward declaration.
11204 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11206         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11207         with obj->do_servers after first_shoot.
11209 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11211         * posix/Makefile (routines): Add sched_cpucount.
11212         (tests): Add tst-cpucount.
11213         * posix/sched_cpucount.c: New file.
11214         * posix/tst-cpucount.c: New file.
11215         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11216         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11217         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11218         * posix/sched.h: Define CPU_COUNT.
11220 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11222         * posix/fnmatch.c (STRUCT): Define.
11223         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11224         * posix/fnmatch_loop.c (struct STRUCT): New type.
11225         (FCT): Add ends argument.  If ends != NULL and normal * is
11226         seen in the pattern, store current pattern and string pointers
11227         and return.  Adjust recursive calls.
11228         (EXT): Adjust FCT callers.
11229         (STRUCT): Undef at the end of the file.
11230         * posix/Makefile (tests): Add tst-fnmatch2.
11231         * posix/tst-fnmatch2.c: New test.
11233 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11235         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11236         and 1 on failure.
11238         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11239         Change last argument to unsigned int.
11241 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11243         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11245 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11247         * config.h.in (HAVE_LIBCAP): Add.
11248         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11249         sys/capabilities.h.
11250         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11251         free_caps.  Cast away const from 4th cap_set_flag argument.
11253 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11255         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11256         GLIBC_2.6.
11257         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11258         Add sync_file_range.
11259         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11261 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11263         * sysdeps/powerpc/bits/atomic.h
11264         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11265         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11266         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11267         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11268         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11269         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11270         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11271         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11272         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11273         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11274         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11275         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11276         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11277         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11278         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11279         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11280         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11281         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11282         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11283         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11285 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11287         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11288         (__cache_line_size): Define the variable here.  Add
11289         attribute_hidden, remove weak_extern.
11290         (__libc_start_main): Set __cache_line_size
11291         unconditionally.
11292         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11293         (__cache_line_size): Define the variable here.  Add
11294         attribute_hidden, remove weak_extern.
11295         (DL_PLATFORM_AUXV): Set __cache_line_size
11296         unconditionally.
11297         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11298         weak_extern, add attribute_hidden.
11299         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11300         defined in ld.so.
11301         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11302         definition.
11303         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11305 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11307         [BZ #4276]
11308         * timezone/africa: Update from tzdata2007d.
11309         * timezone/asia: Likewise.
11310         * timezone/australasia: Likewise.
11311         * timezone/backward: Likewise.
11312         * timezone/europe: Likewise.
11313         * timezone/iso3166.tab: Likewise.
11314         * timezone/leapseconds: Likewise.
11315         * timezone/northamerica: Likewise.
11316         * timezone/southamerica: Likewise.
11317         * timezone/zone.tab: Likewise.
11319         * timezone/private.h: Update from tzcode2007d.
11320         * timezone/zdump.c: Likewise.
11321         * timezone/zic.c: Likewise.
11323 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11325         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11326         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11327         variables.
11328         (nis_server_cache_search, nis_server_cache_add): New functions.
11329         (__nisfind_server): Use them.  Add dbp and flags argument, if
11330         call __nisbind_create.
11331         (__nisbind_create): Add server_used and current_ep arguments,
11332         only call __nis_findfastest if server_used is ~0.
11333         (__do_niscall2, __prepare_niscall): Adjust callers.
11334         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11335         ckey_cache_euid, ckey_cache_lock): New variables.
11336         (get_ckey): New function.
11337         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11338         __pmap_getnisport.  Save __pmap_getnisport result in
11339         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11340         key.
11341         * nis/nis_lookup.c (nis_lookup): Likewise.
11342         * nis/nis_table.c (nis_list): Likewise.
11343         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11344         prototypes.
11346         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11347         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11348         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11349         _nss_nisplus_getservbyport_r): Likewise.
11350         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11351         _nss_nisplus_getnetbyaddr_r): Likewise.
11352         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11353         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11354         _nss_nisplus_getntohost_r): Likewise.
11355         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11356         _nss_nisplus_getrpcbynumber_r): Likewise.
11358 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11360         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11361         * configure: Rebuilt.
11363         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11364         bit-fields.
11365         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11367 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11369         [BZ #2831]
11370         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11371         bit-fields.
11373 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11375         * nscd/gai.c: Include alloca.h.
11376         (__libc_use_alloca): Define.
11378 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11380         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11381         smaller scopes.
11382         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11383         (DL_DST_REQUIRED): Adjust user.
11385         * include/dlfcn.h (struct link_map): New forward decl.
11387         * inet/getnameinfo.c: Include stddef.h.
11388         (getnameinfo): Use offsetof.
11390         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11392         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11394         * string/strerror_l.c: Include stdlib.h.
11396         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11397         * config.make.in (gnu89-inline-CFLAGS): New variable.
11398         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11399         -std=gnu99.
11400         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11401         * argp/argp.h: Use it.
11402         * bits/mathinline.h: Likewise.
11403         * bits/sigset.h: Likewise.
11404         * bits/string.h: Likewise.
11405         * ctype/ctype.h: Likewise.
11406         * hurd/hurd.h: Likewise.
11407         * hurd/hurd/fd.h: Likewise.
11408         * hurd/hurd/port.h: Likewise.
11409         * hurd/hurd/signal.h: Likewise.
11410         * hurd/hurd/threadvar.h: Likewise.
11411         * hurd/hurd/userlink.h: Likewise.
11412         * io/sys/stat.h: Likewise.
11413         * libio/bits/stdio.h: Likewise.
11414         * libio/bits/stdio2.h: Likewise.
11415         * mach/lock-intern.h: Likewise.
11416         * mach/mach/mig_support.h: Likewise.
11417         * math/bits/cmathcalls.h: Likewise.
11418         * posix/bits/unistd.h: Likewise.
11419         * socket/bits/socket2.h: Likewise.
11420         * stdlib/bits/stdlib.h: Likewise.
11421         * stdlib/stdlib.h: Likewise.
11422         * string/argz.h: Likewise.
11423         * string/bits/string2.h: Likewise.
11424         * string/bits/string3.h: Likewise.
11425         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11426         * sysdeps/generic/inttypes.h: Likewise.
11427         * sysdeps/generic/machine-lock.h: Likewise.
11428         * sysdeps/generic/machine-sp.h: Likewise.
11429         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11430         * sysdeps/i386/i486/bits/string.h: Likewise.
11431         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11432         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11433         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11434         * sysdeps/mach/i386/machine-lock.h: Likewise.
11435         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11436         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11437         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11438         * sysdeps/s390/bits/string.h: Likewise.
11439         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11440         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11441         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11442         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11443         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11444         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11445         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11446         * wcsmbs/bits/wchar2.h: Likewise.
11447         * wcsmbs/wchar.h: Likewise.
11448         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11449         __extern_inline definition.
11451 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11453         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11454         NULL.
11456         [BZ #3919]
11457         * math/libm-test.inc (log_test): Test -Inf and NaN.
11458         (log10_test, log1p_test, log2_test): Test -Inf.
11459         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11460         FE_INVALID when argument is qNaN.
11461         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11462         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11463         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11464         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11465         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11466         testb $4, %ah and jump if non-zero.
11467         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11468         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11470         [BZ #4101]
11471         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11472         ancestors with the same depths.
11473         Patch by Niels Moeller <nisse@lysator.liu.se>.
11474         (filter_doc): Don't crash if argp is NULL.
11475         * argp/Makefile (tests): Add tst-argp2.
11476         * argp/tst-argp2.c: New test.
11478         [BZ #4130]
11479         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11480         open_not_cancel_2.
11481         (updwtmp_file): Likewise.
11483         [BZ #4181]
11484         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11485         (inet6_opt_append): Don't check extlen is big enough if extbuf
11486         is NULL.
11487         (inet6_opt_finish): Likewise.
11488         * inet/Makefile (tests): Add test-inet6_opt.
11489         * inet/test-inet6_opt.c: New test.
11491         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11492         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11493         NLMSG_ERR.  Instead use a page sized buffer.
11494         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11495         buffer.
11497 2007-03-14  Richard Henderson  <rth@redhat.com>
11499         * sysdeps/alpha/fpu/s_llround.c: New file.
11500         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11501         * sysdeps/alpha/fpu/s_lround.c: New file.
11502         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11503         * sysdeps/alpha/fpu/s_round.c: New file.
11504         * sysdeps/alpha/fpu/s_roundf.c: New file.
11505         * sysdeps/alpha/fpu/s_trunc.c: New file.
11506         * sysdeps/alpha/fpu/s_truncf.c: New file.
11508         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11509         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11510         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11511         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11512         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11513         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11515         * sysdeps/alpha/fpu/s_fmax.S: New file.
11516         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11517         * sysdeps/alpha/fpu/s_fmin.S: New file.
11518         * sysdeps/alpha/fpu/s_fminf.S: New file.
11519         * sysdeps/alpha/fpu/s_isnan.c: New file.
11520         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11521         * sysdeps/alpha/fpu/s_llrint.c: New file.
11522         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11523         * sysdeps/alpha/fpu/s_lrint.c: New file.
11524         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11525         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11526         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11528         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11529         (__fdimf, fdimf, __fdim, fdim): Remove.
11530         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11531         (__isnanf, __isnan, __isnanl): New.
11533 2007-03-13  Richard Henderson  <rth@redhat.com>
11535         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11537 2007-03-13  Richard Henderson  <rth@redhat.com>
11539         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11540         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11541         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11542         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11543         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11544         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11546 2007-03-13  Richard Henderson  <rth@redhat.com>
11548         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11549         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11550         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11551         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11552         Move to dl-auxv.h; initialize instead of extern weak.
11553         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11554         weak symbol.
11555         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11556         Extern instead of initialized.
11558 2007-03-13  Richard Henderson  <rth@redhat.com>
11560         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11561         __sigsuspend_nocancel.
11563 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11565         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11566         172.16/12 address range.
11568 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11570         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11571         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11572         message.
11574 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11576         [BZ #4069]
11577         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11578         earlier.
11579         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11581         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11582         for x qNaN and y either +-inf or non-integer value.
11583         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11584         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11585         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11587 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11589         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11590         from sysdep_headers.
11592 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11594         * time/tzfile.c (find_transition): Instead of a linear search try to
11595         guess the transition index, use a linear search if the result is at
11596         most 10 transitions away from the guess or binary search otherwise.
11598 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11600         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11601         memory reallocation.
11603 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11605         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11606         and fix some typos.
11607         Optimize use of TOLOWER.
11609         [BZ #3325]
11610         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11611         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11612         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11614         [BZ #3458]
11615         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11616         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11618         [BZ #4076]
11619         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11620         (open_dir_stream): Likewise.
11621         * io/Makefile (tests): Add bug-ftw5.
11622         * io/bug-ftw5.c: New file.
11624         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11625         * nscd/servicescache.c (cache_addserv): Likewise.
11627         * nscd/grpcache.c (cache_addgr): In case a record changed on
11628         refresh, adjust key_copy.
11630         [BZ #4074]
11631         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11632         refresh, adjust key_copy.
11634         [BZ #4070]
11635         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11636         special cases.
11637         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11639 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11641         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11642         optimization.
11644         * stdio-common/vfscanf.c: Small cleanups throughout.
11646 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11648         [BZ #3325]
11649         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11650         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11651         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11652         Patch by Jared Casper <jaredcasper@gmail.com>.
11654         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11655         * sysdeps/unix/opendir.c: Likewise.
11656         * sysdeps/unix/readdir.c: Likewise.
11658         [BZ #2211]
11659         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11660         point numbers.
11661         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11663         * stdio-common/vfscanf.c: Fix problems in width accounting.
11664         * stdio-common/tst-sscanf.c (double_tests): New tests.
11665         (main): Hook them up.
11667         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11668         More simplifications of floating-point reader.
11670         * stdio-common/Makefile (tests): Add tst-swscanf.
11671         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11672         testing.
11673         * stdio-common/tst-swscanf.c: New file.
11675 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11677         [BZ #2633]
11678         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11679         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11680         Remove using for __jmp_buf_tag.
11681         * locale/locale.h (struct lconv): Also define in std namespace.
11682         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11684         [BZ #3842]
11685         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11686         using __libc_enable_secure.
11688         [BZ #3818]
11689         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11691         [BZ #3745]
11692         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11693         of names for ellipsises.
11695         [BZ #3348]
11696         * malloc/memusage.sh: Cleanups.
11697         * debug/xtrace.sh: Quoting and trap changes.
11699 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11701         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11703         * locale/iso-3166.def: Update entry for Serbia.
11704         * locale/iso-4217.def: Define RSD, remove CSD.
11706         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11707         and 64-bit operations.
11709         [BZ #4040]
11710         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11711         16-bit operations.
11713         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11714         of writev.
11716 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11718         [BZ #3991]
11719         * assert/assert.h (assert): Simplify.
11720         (assert_perror): Likewise.
11721         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11723         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11724         reqdata.
11726         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11727         change: don't pass NULL in place of an integer.
11729 2007-02-02  Bruno Haible  <bruno@clisp.org>
11731         [BZ #3954]
11732         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11733         Add mapping for U+327E.
11734         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11735         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11736         mapping of 0xD9 0xE8.
11737         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11738         mapping of U+327E.
11739         Reported by Jungshik Shin <jungshik@google.com>.
11741         [BZ #3955]
11742         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11743         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11744         Reported by Jungshik Shin <jungshik@google.com>.
11746 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11748         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11749         byte variants.
11751         [BZ #4040]
11752         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11753         byte variants.  Patch mostly be tom@tommay.net.
11755 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11757         [BZ #3996]
11758         * posix/glob.c (attribute_hidden): Define if not defined.
11759         (glob): Unescape dirname, filename or username when needed and not
11760         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11761         is NULL.  Handle unescaped [ in pattern without closing ].
11762         Don't pass GLOB_CHECK down to recursive glob for directories.
11763         (__glob_pattern_type): New function.
11764         (__glob_pattern_p): Implement using __glob_pattern_type.
11765         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11766         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11767         Remove unreachable code.
11768         * posix/globtest.sh: Add a couple of new tests.
11770 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11772         * po/ru.po: Update from translation team.
11774 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11776         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11777         to the list of i486+ CPUs.
11778         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11780 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11782         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11783         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11784         references.
11786 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11788         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11790         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11791         * resolv/res_mkquery.c: Define __res_nopt.
11792         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11793         try adding EDNS0 record.
11794         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11795         EDNS0 record was send make sure we don't try it again.
11796         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11797         * include/resolv.h: Declare __res_nopt.
11799 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11801         [BZ #3944]
11802         * time/strptime_l.c (__strptime_internal): Set have_mon for
11803         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11804         have been computed from tm_yday and tm_year.  Don't crash
11805         in day_of_the_week or day_of_the_year if not have_mon
11806         and tm_mon contains bogus value.
11807         * time/Makefile (tests): Add tst-strptime3.
11808         * time/tst-strptime3.c: New test.
11810 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11812         [BZ #3957]
11813         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11814         bit for RE_HAT_LISTS_NOT_NEWLINE.
11815         (build_charclass_op): Remove bogus comment.
11816         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11817         * posix/bug-regex27.c: New test.
11818         * posix/bug-regex28.c: New test.
11820 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11822         * po/sv.po: Update from translation team.
11824 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11826         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11828 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11830         * include/locale.h (__uselocale): Add libc_hidden_proto.
11831         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11833         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11834         gettimeofday.
11836 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11838         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11839         returning.
11840         (PTR_DEMANGLE): Real definition now that it's not the same as
11841         PRT_MANGLE anymore.
11842         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11844         * string/strerror_l.c: New file.
11845         * string/Makefile (routines): Add strerror_l.
11846         * string/string.h: Declare strerror_l.
11847         * string/Versions: Export strerror_l for GLIBC_2.6.
11849 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11851         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11852         as parameter.  Construct request record.  Try sending request
11853         before the first poll use, it usually succeeds.  Adjust all
11854         callers.
11855         * nscd/nscd-client.h: Define MAXKEYLEN.
11856         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11858 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11860         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11861         from return value.
11862         * nscd/nscd_helper.c: Include string.h.
11863         (__nscd_cache_search): Remove const qualifier from return value.
11864         On strict alignment architectures check hash entry and data head
11865         alignment.
11866         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11867         mmapped data during GC cycle contains garbage.  If
11868         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11869         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11870         dropped to 0.
11871         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11872         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11873         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11874         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11875         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11877 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11879         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11881 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11883         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11884         names not numbers in cfi_*.
11886 2007-01-26  Andreas Jaeger  <aj@suse.de>
11888         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11889         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11890         Correct values of PER_HPUX and PER_OSF4.
11892 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11894         * elf/dl-minimal.c: Undefine _itoa first.
11895         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11896         * malloc/mtrace.c: Revert last change.
11897         * posix/wordexp.c: Likewise.
11899 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11901         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11902         and __geode__ to the list of i486+ CPUs.
11903         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11905 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11907         * stdio-common/_itoa.c: Include <limits.h>.
11908         * stdio-common/_itowa.c: Likewise.
11910 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11912         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11913         platforms.
11914         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11915         64-bit platforms.
11916         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11917         possible.
11918         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11919         if possible.
11921         [BZ #3902]
11922         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11923         * stdio-common/Makefile (tests): Add bug17.
11924         * stdio-common/bug17.c: New file.
11926 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11928         * iconvdata/brf.c: New file.
11929         * iconvdata/testdata/BRF: New file.
11930         * iconvdata/testdata/BRF..UTF8: New file.
11931         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11932         * iconvdata/Makefile: Add rules to build BRF.
11933         * iconvdata/TESTS: Add BRF entry.
11934         * iconvdata/gconv-modules: Likewise.
11935         * iconvdata/tst-tables.sh: Likewise.
11937 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11939         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11940         type `long long int', not `long int'.
11941         (wcstoq): Likewise.
11943 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11945         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11946         of values on 64-bit platforms which are too large.
11948 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11949             Joe Kerian  <jkerian@us.us.ibm.com>
11951         [BZ #2749]
11952         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11953         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11954         (__copysignl): Use signbit() for comparison.
11955         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11956         SET_LDOUBLE_WORDS64.
11958         [BZ #2423, #2749]
11959         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11960         (__ceill): Remove calls to fegetround(), fesetround().
11961         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11965 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11967         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11969         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11971 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11973         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11974         demangle pointer.
11975         * csu/libc-start.c: Likewise.
11977 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11979         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11980         really work anyway.
11982 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11984         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11985         users.
11986         (handle_request): Remove unnecessary tests.
11988         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11990 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11992         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11993         workbits in semi-raw fraction.
11995         * math/test-misc.c: Add new tests.
11997 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11999         * math/basic-test.c: Include test-skeleton.c.
12000         (TEST_TRUNC): Define.
12001         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12002         (main): Rename to ...
12003         (do_test): ...this.  Run new tests.
12004         (TEST_FUNCTION): Define.
12006 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12007             Joe Kerian  <jkerian@us.us.ibm.com>
12009         [BZ #2749]
12010         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12011         handling for high words.
12012         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12013         and overflow for infinity.
12015 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12017         * nscd/connections.c (handle_request): Add a __builtin_expect.
12019         * nscd/connections.c (serv2db): Change type into structure which
12020         also says whether this is a request for data.  Renamed to
12021         servinfo.  All users changed.
12022         (handle_request): Much simpler test whether we should search the cache.
12024         * nscd/connections.c (handle_request): Fix thinko in selinux test
12025         invocation.
12027         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12028         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12029         it before getting dl_load_lock and then relock.
12030         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12031         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12032         case we unlocked the scope.
12033         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12034         _dl_lookup_symbol_x in case we locked the scope.
12035         (_dl_profile_fixup): Likewise.
12036         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12037         set DL_LOOKUP_SCOPE_LOCK.
12039 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12041         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12042         CFLAGS-getsrvbynpt_r.c.
12043         * nscd/getsrvbynm_r.c: New file.
12044         * nscd/getsrvbypt_r.c: New file.
12045         * nscd/nscd_getserv_r.c: New file.
12046         * nscd/servicescache.c: New file.
12047         * nscd/Makefile (routines): Add nscd_getserv_r.
12048         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12049         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12050         CFLAGS-getsrvbypt_r.c.
12051         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12052         table.  Add entries for services database.
12053         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12054         services database.
12055         (dbs): Add .reset_res and servdb initialization.
12056         (serv2db): Add entries for services database.
12057         (verify_persistent_db): Accept dbnr == servdb.
12058         (invalidate_cache): Rewrite database name recognition to use a table.
12059         Call res_init() if .reset_res is set for database.
12060         (handle_request): Add code to handle services database.
12061         * nscd/gai.c: Don't define __getservbyname_r.
12062         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12063         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12064         (serv_response_header): Define.
12065         (struct datahead): Add serv_response_header member.
12066         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12067         using table.
12068         * nscd/nscd.conf: Add entries for services database.
12069         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12070         Declare serv_iov_disabled.
12071         Declare addservbyname, readdservbyname, addservbyport, and
12072         readdservbyport.
12073         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12074         (find_db): Fix error message.
12075         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12076         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12077         * nscd/selinux.c (perms): Add entries for services database.
12078         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12079         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12081         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12082         * nscd/hstcache.c: Likewise.
12083         * nscd/pwdcache.c: Likewise.
12085         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12086         computation of keylen.
12088         * include/string.h: Only redefine strndupa if this is really for
12089         libc code.
12091 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12093         * nscd/nscd_gethst_r.c: Minor cleanups.
12095         * nscd/connections.c (handle_request): Check selinux permissions
12096         for all non-admin commands.
12098         * sysdeps/i386/i486/bits/atomic.h: Define
12099         atomic_compare_and_exchange_val_acq,
12100         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12101         using __sync_* built-ins for gcc >= 4.1.
12102         * sysdeps/x86_64/bits/atomic.h: Likewise.
12104         [BZ #3840]
12105         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12106         and .oS.d files.
12108 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12110         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12111         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12112         (do_test): Check errno and exit(0) if ENOSYS.
12114 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12116         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12117         thousands separators.
12118         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12119         * stdlib/tst-strtod4.c: New test.
12121         [BZ #3855]
12122         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12123         hexadecimal digit should accept just the initial 0.
12124         * stdlib/tst-strtod2.c (tests): New variable.
12125         (do_test): Run several tests rather than just one.
12127 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12129         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12130         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12132 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12134         * io/fts.c: Make sure fts_cur is always valid after return from
12135         fts_read.
12136         Patch by Miloslav Trmac <mitr@redhat.com>.
12138 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12140         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12141         (R_MIPS_NUM): Bump by 1.
12143 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12145         * posix/execvp.c: Include alloca.h.
12146         (allocate_scripts_argv): Renamed to...
12147         (scripts_argv): ... this.  Don't allocate buffer here nor count
12148         arguments.
12149         (execvp): Use alloca if possible.
12150         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12151         * posix/tst-vfork3.c: New test.
12153 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12155         * string/Makefile (tst-strxfrm2-ENV): Define.
12156         * stdlib/Makefile (tst-strtod3-ENV): Define.
12158 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12160         * posix/getconf.c: Update copyright year.
12161         * nss/getent.c: Likewise.
12162         * iconv/iconvconfig.c: Likewise.
12163         * iconv/iconv_prog.c: Likewise.
12164         * elf/ldconfig.c: Likewise.
12165         * catgets/gencat.c: Likewise.
12166         * csu/version.c: Likewise.
12167         * elf/ldd.bash.in: Likewise.
12168         * elf/sprof.c (print_version): Likewise.
12169         * locale/programs/locale.c: Likewise.
12170         * locale/programs/localedef.c: Likewise.
12171         * nscd/nscd.c (print_version): Likewise.
12172         * debug/xtrace.sh: Likewise.
12173         * malloc/memusage.sh: Likewise.
12174         * malloc/mtrace.pl: Likewise.
12175         * debug/catchsegv.sh: Likewise.
12177 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12179         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12180         attempts.
12182 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12184         * posix/wordexp.c: Remove some unnecessary tests.
12186 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12188         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12189         blacklist the group till after we look it up.
12191 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12193         * include/atomic.h (atomic_forced_read): New macro.
12195 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12197         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12199 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12201         * nss/getXXbyYY_r.c: Include atomic.h.
12202         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12203         add atomic_write_barrier () in between.
12205         * stdlib/Makefile (tests): Add tst-makecontext.
12206         * stdlib/tst-makecontext.c: New test.
12208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12209         (__makecontext): Don't realign uc_mcontext.uc_regs.
12211 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12213         * elf/dl-support.c: Include dl-procinfo.h.
12214         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12215         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12216         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12217         Define.
12218         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12219         hardcoded constants.
12220         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12221         PPC_PLATFORM_* macros for array designators.
12223 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12225         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12226         names to the beginning.
12227         (_dl_powerpc_platforms): Add "power6x".
12228         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12229         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12230         (_DL_PLATFORMS_COUNT): Increase.
12231         (_dl_string_platform): Handle power6x case.
12232         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12233         PPC_FEATURE_POWER6_EXT): Define.
12234         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12236 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12238         [BZ #3747]
12239         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12240         [-2^31 .. 2^31) range.
12241         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12242         targets.
12243         * stdlib/tst-rand48-2.c: New test.
12244         * stdlib/Makefile (tests): Add tst-rand48-2.
12246 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12248         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12250 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12252         * misc/tst-pselect.c (do_test): Make sure the helper process is
12253         terminating when the test is aborted.
12255 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12257         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12258         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12259         Handle relatime mount option.
12261         [BZ #2337]
12262         * libio/Makefile (tests): Add tst-setvbuf1.
12263         * libio/tst-setvbuf1.c: New file.
12265 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12267         [BZ #2337]
12268         * libio/genops.c (__uflow): Fix a typo.
12269         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12270         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12271         the narrow buffer size.
12273 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12275         [BZ #2337]
12276         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12277         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12278         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12279         in _flags.
12280         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12281         _IO_wstr_finish): Likewise.
12282         * libio/wmemstream.c (open_wmemstream): Likewise.
12283         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12284         even for wide streams.
12286 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12289         kernel-features.h.
12291 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12293         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12294         separators also if no non-zero digits found.
12295         * stdlib/Makefile (tests): Add tst-strtod3.
12297 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12299         [BZ #3632]
12300         * include/features.h: Fix comment about default value for
12301         _POSIX_C_SOURCE.
12303         [BZ #3664]
12304         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12305         empty parsed strings.
12306         * stdlib/Makefile (tests): Add tst-strtod2.
12307         * stdlib/tst-strtod2.c: New file.
12309         [BZ #3673]
12310         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12311         computation.
12312         * stdlib/Makefile (tests): Add tst-atof2.
12313         * stdlib/tst-atof2.c: New file.
12315         [BZ #3674]
12316         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12317         correctly if removing trailing zero of hex-float.
12318         * stdlib/Makefile (tests): Add tst-atof1.
12319         * stdlib/tst-atof1.c: New file.
12321 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12323         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12324         Start searching for next comma at p rather than rest.
12325         * misc/Makefile (tests): Add tst-mntent2.
12326         * misc/tst-mntent2.c: New test.
12328         * misc/getusershell.c (initshells): Check for integer overflows.
12329         Make strings buffer one bigger as fgets always succeeds when second
12330         argument is 1.  Don't use calloc for shells array.  Disallow
12331         / as shell.
12333 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12335         * malloc/memusage.c: Handle realloc with new size of zero and
12336         non-NULL pointer correctly.
12337         (me): Really write first record twice.
12338         (struct entry): Make format bi-arch safe.
12339         (dest): Write out more realloc statistics.
12340         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12342 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12344         * nis/nis_subr.c (nis_getnames): Revert last change.
12346 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12348         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12349         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12350         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12351         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12352         ENOTTY.
12353         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12354         * io/tst-ttyname_r.c: New test.
12356 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12358         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12360 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12362         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12363         jump table entries.
12365 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12367         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12368         `clone' function to ensure proper unwinding stop of gdb.
12369         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12371 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12373         * nscd/nscd.init: Remove obsolete and commented-out -S option
12374         handling.
12376 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12378         [BZ #3514]
12379         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12381         [BZ #3515]
12382         * manual/string.texi (strtok): Remove duplicate paragraph.
12384 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12386         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12387         libgcc not supporting `rflags' unwinding (register # >= 17).
12389 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12391         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12392         succeeded.
12394 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12395             Jakub Jelinek  <jakub@redhat.com>
12396             Jan Kratochvil  <jan.kratochvil@redhat.com>
12398         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12399         unwind information.
12400         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12401         'restore_rt' even in the 'signal' directory.
12402         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12404 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12406         [BZ #3559]
12407         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12408         malloc crashed.  Don't allocate memory unnecessarily in each
12409         loop.
12411 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12413         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12415 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12417         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12419 2006-11-18  Bruno Haible  <bruno@clisp.org>
12421         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12422         __sysconf only after having tried to call getgroups32.
12424 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12426         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12427         addresses for IPv4 queries if they can be mapped.
12429 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12431         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12432         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12433         (signmask): Add .size directive.
12434         (othermask): Add .type directive.
12436 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12438         * po/nl.po: Update from translation team.
12440         * timezone/zdump.c: Redo fix for BZ #3137.
12442 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12444         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12445         to first_unused after parsing :include: file.
12447 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12449         * timezone/africa: Update from tzdata2006o.
12450         * timezone/antarctica: Likewise.
12451         * timezone/asia: Likewise.
12452         * timezone/australasia: Likewise.
12453         * timezone/backward: Likewise.
12454         * timezone/europe: Likewise.
12455         * timezone/iso3166.tab: Likewise.
12456         * timezone/northamerica: Likewise.
12457         * timezone/southamerica: Likewise.
12458         * timezone/zone.tab: Likewise.
12460         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12461         on machines with 64-bit time_t.
12463         * timezone/checktab.awk: Update from tzcode2006o.
12464         * timezone/ialloc.c: Likewise.
12465         * timezone/private.h: Likewise.
12466         * timezone/scheck.c: Likewise.
12467         * timezone/tzfile.h: Likewise.
12468         * timezone/tzselect.ksh: Likewise.
12469         * timezone/zdump.c: Likewise.
12470         * timezone/zic.c: Likewise.
12472         [BZ #3483]
12473         * elf/ldconfig.c (main): Call setlocale and textdomain.
12474         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12476         [BZ #3480]
12477         * manual/argp.texi: Fix typos.
12478         * manual/charset.texi: Likewise.
12479         * manual/errno.texi: Likewise.
12480         * manual/filesys.texi: Likewise.
12481         * manual/lang.texi: Likewise.
12482         * manual/maint.texi: Likewise.
12483         * manual/memory.texi: Likewise.
12484         * manual/message.texi: Likewise.
12485         * manual/resource.texi: Likewise.
12486         * manual/search.texi: Likewise.
12487         * manual/signal.texi: Likewise.
12488         * manual/startup.texi: Likewise.
12489         * manual/stdio.texi: Likewise.
12490         * manual/sysinfo.texi: Likewise.
12491         * manual/syslog.texi: Likewise.
12492         * manual/time.texi: Likewise.
12493         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12495         [BZ #3465]
12496         * sunrpc/clnt_raw.c: Minimal message improvements.
12497         * sunrpc/pm_getmaps.c: Likewise.
12498         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12499         * nis/nis_print_group_entry.c: Likewise.
12500         * locale/programs/repertoire.c: Likewise.
12501         * locale/programs/charmap.c: Likewise.
12502         * malloc/memusage.sh: Likewise.
12503         * elf/dl-deps.c: Likewise.
12504         * locale/programs/ld-collate.c: Likewise.
12505         * libio/vswprintf.c: Likewise.
12506         * malloc/memusagestat.c: Likewise.
12507         * sunrpc/auth_unix.c: Likewise.
12508         * sunrpc/rpc_main.c: Likewise.
12509         * nscd/cache.c: Likewise.
12510         * locale/programs/repertoire.c: Unify output messages.
12511         * locale/programs/charmap.c: Likewise.
12512         * locale/programs/ld-ctype.c: Likewise.
12513         * locale/programs/ld-monetary.c: Likewise.
12514         * locale/programs/ld-numeric.c: Likewise.
12515         * locale/programs/ld-time.c: Likewise.
12516         * elf/ldconfig.c: Likewise.
12517         * nscd/selinux.c: Likewise.
12518         * elf/cache.c: Likewise.
12519         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12521         [BZ #3451]
12522         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12523         change atomic.
12524         (ceil): Likewise.
12526 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12528         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12529         if N is one bigger than return value.
12530         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12531         and l1 last arguments, if buf is defined, verify the return value
12532         equals to strlen (buf) and verify no byte beyond passed length
12533         is modified.
12535 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12537         * po/sv.po: Update from translation team.
12539 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12541         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12542         noinline attribute.
12544 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12546         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12547         noinline attribute.
12549         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12550         Use __new_sys_siglist instead of _sys_siglist_internal as
12551         second macro argument.
12552         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12553         strong_alias.
12555 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12557         [BZ #3493]
12558         * posix/unistd.h (sysconf): Remove const attribute.
12560         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12561         temporary or deprecated addresses.
12562         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12564         * string/Makefile (tests): Add tst-strxfrm2.
12565         * string/tst-strxfrm2.c: New file.
12567 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12569         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12570         rather than r->r_brk.
12572 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12574         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12575         optimization even if needed > n.
12577         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12578         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12579         return false, otherwise return true.
12580         (cache_rpath): Return decompose_rpath return value.
12582 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12584         * include/libc-symbols.h (declare_symbol): Rename to...
12585         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12586         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12587         .size directive.
12588         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12589         changes.
12590         * sysdeps/gnu/siglist.c: Likewise.
12592 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12594         * sysdeps/powerpc/fpu/bits/mathinline.h
12595         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12596         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12598 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12600         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12601         Update handling of cache descriptor 0x49 for new models.
12602         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12603         Likewise.
12605 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12607         * malloc/memusage.c (dest): Reset not_me back to false after
12608         printing statistics.
12610 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12612         * configure.in: Work around ld --help change and avoid -z relro
12613         test completely if the architecture doesn't care about security.
12615 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12617         * po/sv.po: Update from translation team.
12619 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12621         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12622         generate compatibility version.
12624 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12626         * configure.in: Relax -z relro requirement a bit.
12628         * po/sv.po: Update from translation team.
12630 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12632         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12633         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12634         * elf/dl-close.c (_dl_close_worker): Likewise.
12635         * elf/dl-open.c (_dl_open_worker): Likewise.
12636         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12638 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12640         * configure.in: Require assembler support for visibility, compiler
12641         support for visibility and aliases, linker support for various -z
12642         options.
12643         * Makeconfig: Remove conditional code which now is unnecessary.
12644         * config.h.in: Likewise.
12645         * config.make.in: Likewise.
12646         * dlfcn/Makefile: Likewise.
12647         * elf/Makefile: Likewise.
12648         * elf/dl-load.c: Likewise.
12649         * elf/rtld.c: Likewise.
12650         * include/libc-symbols.h: Likewise.
12651         * include/stdio.h: Likewise.
12652         * io/Makefile: Likewise.
12653         * io/fstat.c: Likewise.
12654         * io/fstat64.c: Likewise.
12655         * io/fstatat.c: Likewise.
12656         * io/fstatat64.c: Likewise.
12657         * io/lstat.c: Likewise.
12658         * io/lstat64.c: Likewise.
12659         * io/mknod.c: Likewise.
12660         * io/mknodat.c: Likewise.
12661         * io/stat.c: Likewise.
12662         * io/stat64.c: Likewise.
12663         * libio/stdio.c: Likewise.
12664         * nscd/Makefile: Likewise.
12665         * stdlib/Makefile: Likewise.
12666         * stdlib/atexit.c: Likewise.
12667         * sysdeps/generic/ldsodefs.h: Likewise.
12668         * sysdeps/i386/dl-machine.h: Likewise.
12669         * sysdeps/i386/sysdep.h: Likewise.
12670         * sysdeps/i386/i686/memcmp.S: Likewise.
12671         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12672         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12673         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12675         * Makerules: USE_TLS support is now default.
12676         * tls.make.c: Likewise.
12677         * csu/Versions: Likewise.
12678         * csu/libc-start.c: Likewise.
12679         * csu/libc-tls.c: Likewise.
12680         * csu/version.c: Likewise.
12681         * dlfcn/dlinfo.c: Likewise.
12682         * elf/dl-addr.c: Likewise.
12683         * elf/dl-cache.c: Likewise.
12684         * elf/dl-close.c: Likewise.
12685         * elf/dl-iteratephdr.c: Likewise.
12686         * elf/dl-load.c: Likewise.
12687         * elf/dl-lookup.c: Likewise.
12688         * elf/dl-object.c: Likewise.
12689         * elf/dl-open.c: Likewise.
12690         * elf/dl-reloc.c: Likewise.
12691         * elf/dl-support.c: Likewise.
12692         * elf/dl-sym.c: Likewise.
12693         * elf/dl-sysdep.c: Likewise.
12694         * elf/dl-tls.c: Likewise.
12695         * elf/ldconfig.c: Likewise.
12696         * elf/rtld.c: Likewise.
12697         * elf/tst-tls-dlinfo.c: Likewise.
12698         * elf/tst-tls1.c: Likewise.
12699         * elf/tst-tls10.h: Likewise.
12700         * elf/tst-tls14.c: Likewise.
12701         * elf/tst-tls2.c: Likewise.
12702         * elf/tst-tls3.c: Likewise.
12703         * elf/tst-tls4.c: Likewise.
12704         * elf/tst-tls5.c: Likewise.
12705         * elf/tst-tls6.c: Likewise.
12706         * elf/tst-tls7.c: Likewise.
12707         * elf/tst-tls8.c: Likewise.
12708         * elf/tst-tls9.c: Likewise.
12709         * elf/tst-tlsmod1.c: Likewise.
12710         * elf/tst-tlsmod13.c: Likewise.
12711         * elf/tst-tlsmod13a.c: Likewise.
12712         * elf/tst-tlsmod14a.c: Likewise.
12713         * elf/tst-tlsmod2.c: Likewise.
12714         * elf/tst-tlsmod3.c: Likewise.
12715         * elf/tst-tlsmod4.c: Likewise.
12716         * elf/tst-tlsmod5.c: Likewise.
12717         * elf/tst-tlsmod6.c: Likewise.
12718         * include/errno.h: Likewise.
12719         * include/link.h: Likewise.
12720         * include/tls.h: Likewise.
12721         * locale/global-locale.c: Likewise.
12722         * locale/localeinfo.h: Likewise.
12723         * malloc/arena.c: Likewise.
12724         * malloc/hooks.c: Likewise.
12725         * malloc/malloc.c: Likewise.
12726         * resolv/Versions: Likewise.
12727         * sysdeps/alpha/dl-machine.h: Likewise.
12728         * sysdeps/alpha/libc-tls.c: Likewise.
12729         * sysdeps/generic/ldsodefs.h: Likewise.
12730         * sysdeps/generic/tls.h: Likewise.
12731         * sysdeps/i386/dl-machine.h: Likewise.
12732         * sysdeps/ia64/dl-machine.h: Likewise.
12733         * sysdeps/ia64/libc-tls.c: Likewise.
12734         * sysdeps/mach/hurd/fork.c: Likewise.
12735         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12736         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12737         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12738         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12739         * sysdeps/s390/libc-tls.c: Likewise.
12740         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12741         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12742         * sysdeps/sh/dl-machine.h: Likewise.
12743         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12744         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12745         * sysdeps/x86_64/dl-machine.h: Likewise.
12747         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12748         split out locking and parameter checking.
12749         (_dl_close): Call _dl_close_worker after locking and checking.
12750         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12751         _dl_close.
12752         * elf/Makefile: Add rules to build and run tst-thrlock.
12753         * elf/tst-thrlock.c:  New file.
12755         [BZ #3426]
12756         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12757         reality.
12759         [BZ #3429]
12760         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12761         we are sure we do not need it anymore for _dl_close.  Also move
12762         the asserts inside the lock region.
12763         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12765 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12767         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12768         argument.
12769         (_dl_lookup_symbol_x): Adjust caller.
12771         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12772         _ns_global_scope.
12773         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12775         * elf/dl-libc.c: Revert l_scope name changes.
12776         * elf/dl-load.c: Likewise.
12777         * elf/dl-object.c: Likewise.
12778         * elf/rtld.c: Likewise.
12779         * elf/dl-close.c (_dl_close): Likewise.
12780         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12781         always use __rtld_mrlock_{change,done}.  Always free old scope list
12782         here if not l_scope_mem.
12783         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12784         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12785         the lookup and __rtld_mrlock_unlock it after the lookup.
12786         * elf/dl-sym.c: Likewise.
12787         * include/link.h (struct r_scoperec): Remove.
12788         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12789         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12791 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12793         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12795 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12797         * configure.in: Disable building profile libraries by default.
12799 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12801         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12802         as signed longs, check for x_base + pos overflow.
12803         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12804         * sunrpc/tst-xdrmem2.c: New test.
12806 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12808         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12809         _dl_lookup_symbol_x code.
12811 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12813         * elf/dl-runtime.c: Include sysdep-cancel.h.
12814         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12815         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12816         instead of catomic_* macros.
12817         * elf/dl-sym.c: Include sysdep-cancel.h.
12818         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12819         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12820         * elf/dl-close.c: Include sysdep-cancel.h.
12821         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12822         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12823         * elf/dl-open.c: Include sysdep-cancel.h.
12824         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12825         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12827 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12829         [BZ #3313]
12830         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12831         fastbin rather than end of fastbin array.
12833 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12835         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12836         body macro.
12837         * sysdeps/x86_64/bits/atomic.h
12838         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12839         (catomic_decrement): Use correct body macro.
12841 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12843         * include/atomic.h: Add a unique prefix to all local variables
12844         in macros.
12845         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12847 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12849         [BZ #3369]
12850         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12851         and 7.
12853 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12855         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12857 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12859         [BZ #3313]
12860         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12861         determine highest fast bin to consolidate, always look into all of
12862         them.
12863         (do_check_malloc_state): Only require for empty bins for large
12864         sizes in main arena.
12866         * libio/stdio.h: Add more __wur attributes.
12868         * elf/dl-minimal.c (realloc): Optimize last patch.
12870 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12872         [BZ #3352]
12873         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12874         and use memcpy() if it does.
12876 2006-11-12  Andreas Jaeger  <aj@suse.de>
12878         [BZ #2510]
12879         * manual/search.texi (Hash Search Function): Clarify.
12880         (Array Search Function): Clarify.
12882 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12884         [BZ #2830]
12885         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12886         shifting.
12887         * math/atest-exp2.c (read_mpn_hex): Likewise.
12888         * math/atest-sincos.c (main): Likewise.
12890 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12892         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12893         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12894         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12895         version GLIBC_2.6.
12896         * Versions.def: Add GLIBC_2.6 for libc.
12898         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12900         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12902 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12904         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12906         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12908         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12909         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12911 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12913         * include/atomic.c: Define catomic_* operations.
12914         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12915         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12916         * malloc/memusage.c: Likewise.
12917         * gmon/mcount.c: Likewise.
12918         * elf/dl-close.c: Likewise.
12919         * elf/dl-open.c: Likewise.
12920         * elf/dl-profile.c: Likewise.
12921         * elf/dl-sym.c: Likewise.
12922         * elf/dl-runtime.c: Likewise.
12923         * elf/dl-fptr.c: Likewise.
12924         * resolv/res_libc.c: Likewise.
12926 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12928         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12929         components which lack them.
12931         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12932         at least one entry consisting of the parameter concatenated with
12933         the domain.
12935 2006-10-10  Roland McGrath  <roland@frob.com>
12937         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12938         * sysdeps/mach/hurd/futimes.c: Likewise.
12939         * sysdeps/mach/hurd/lutimes.c: Likewise.
12941 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12942             Jakub Jelinek  <jakub@redhat.com>
12944         Implement reference counting of scope records.
12945         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12946         from the list in objects which remain.  Always allocate new scope
12947         record.
12948         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12949         don't resize, allocate a new one.
12950         * elf/dl-runtime.c: Update reference counters before using a scope
12951         array.
12952         * elf/dl-sym.c: Likewise.
12953         * elf/dl-libc.c: Adjust for l_scope name change.
12954         * elf/dl-load.c: Likewise.
12955         * elf/dl-object.c: Likewise.
12956         * elf/rtld.c: Likewise.
12957         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12958         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12959         Add l_scoperec_lock.
12960         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12961         * sysdeps/generic/rtld-lowlevel.h: New file.
12963         * include/atomic.h: Rename atomic_and to atomic_and_val and
12964         atomic_or to atomic_or_val.  Define new macros atomic_and and
12965         atomic_or which do not return values.
12966         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12967         Various cleanups.
12968         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12970         * po/sv.po: Update from translation team.
12972 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12974         * Versions.def: Add GLIBC_2.6 to libpthread.
12976         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12977         (versioned_symbol): Likewise.
12978         (compat_symbol): Likewise.
12980         * po/tr.po: Update from translation team.
12982 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12984         * nis/Banner: Removed.  It's been integral part forever and the
12985         author info is incomplete anyway.
12986         * libio/Banner: Likewise.
12988         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12989         code, make sure the nis_freeresult call doesn't crash and that the
12990         result is reported correctly.
12992 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12994         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12995         when callback is NULL.
12997         * nis/Versions (libnss_nisplus): Add
12998         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12999         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13000         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13001         _nss_create_tablename): Rename to...
13002         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13003         ... these.  No longer static.
13004         (internal_setgrent): Adjust users.
13005         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13006         Don't use locking around _nss_grp_create_tablename call.
13007         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13009 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13011         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13013 2006-10-06  Andreas Jaeger  <aj@suse.de>
13015         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13017 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13019         * po/pl.po: Update from translation team.
13021         * nscd/nscd.c (main): Fix typo in message.
13022         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13024 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13026         [BZ #3291]
13027         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13028         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13029         (__sigprocmask): Define.
13031 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13033         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13034         used.
13036 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13038         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13039         in oldtotal and newtotal calculation.
13040         * nscd/nscd-client.h (struct mapped_database): Add datasize
13041         field.
13042         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13043         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13044         increased.
13045         (__nscd_cache_search): Add checks to make sure we never reference
13046         data beyond the current mapping.
13048 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13050         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13051         variables const to avoid compiler warnings.
13053         * io/fts.c (fts_close): Remove redundant checks.
13054         (fts_build): Likewise.
13055         (fts_palloc): Likewise.
13057         * manual/message.texi (Advanced gettext functions,
13058         Using gettextized software): Fix typos.
13060 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13062         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13063         explain why there are no leaks.
13065 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13067         * libio/wmemstream.c: Include <wchar.h>.
13068         * libio/bug-wmemstream1.c: Likewise.
13069         * libio/tst-wmemstream1.c: Likewise.
13070         * libio/tst-wmemstream2.c: Likewise.
13072         * version.h (RELEASE): Bump to 2.5.
13073         * README: Regenerated.
13075         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13077         [BZ #3273]
13078         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13079         found no group members.
13080         Patch by Petr Baudis.
13082 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13084         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13085         assert bootstrap_map.l_tls_modid is zero.
13086         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13087         if USE___THREAD.
13089 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13091         * libio/stdio.h: Move open_wmemstream prototype to ...
13092         * wcsmbs/wchar.h: ... here.
13094 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13096         [BZ #3252]
13097         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13098         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13099         __{,l}chown to handle the rest.
13100         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13101         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13102         __{,l}chown to handle the rest.
13103         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13104         i386/fchownat.c.
13105         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13106         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13108         [BZ #3253]
13109         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13110         time, rather allocate increasingly bigger arrays of pointers, if
13111         possible with alloca, if too large with malloc.
13113 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13115         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13117         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13119 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13121         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13122         home addresses.
13123         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13124         IFA_F_HOMEADDRESS flag for interfaces.
13125         * include/ifaddrs.h (struct in6addrinfo): Define
13126         in6ai_homeaddress.
13128 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13130         [BZ #3225]
13131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13132         PTR_DEMANGLE3): Define.
13133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13134         PTR_DEMANGLE3): Likewise.
13135         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13136         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13137         Likewise.
13138         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13140 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13142         * po/libc.pot: Regenerated.
13143         * po/be.po: Updated.
13144         * po/ca.po: Likewise.
13145         * po/cs.po: Likewise.
13146         * po/da.po: Likewise.
13147         * po/de.po: Likewise.
13148         * po/el.po: Likewise.
13149         * po/en_GB.po: Likewise.
13150         * po/es.po: Likewise.
13151         * po/fi.po: Likewise.
13152         * po/fr.po: Likewise.
13153         * po/gl.po: Likewise.
13154         * po/hr.po: Likewise.
13155         * po/hu.po: Likewise.
13156         * po/ja.po: Likewise.
13157         * po/ko.po: Likewise.
13158         * po/nb.po: Likewise.
13159         * po/nl.po: Likewise.
13160         * po/pl.po: Likewise.
13161         * po/pt_BR.po: Likewise.
13162         * po/ru.po: Likewise.
13163         * po/rw.po: Likewise.
13164         * po/sk.po: Likewise.
13165         * po/sv.po: Likewise.
13166         * po/tr.po: Likewise.
13167         * po/zh_CN.po: Likewise.
13168         * po/zh_TW.po: Likewise.
13170         [BZ #3137]
13171         * iconv/iconv_prog.c (main): Fix spelling in error message.
13172         * iconv/iconvconfig.c (main): Likewise.
13173         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13174         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13175         * locale/programs/localedef.c (main): Likewise.
13176         * locale/programs/repertoire.c (repertoire_read): Likewise.
13177         * timezone/zdump.c (main): Likewise.
13178         * nscd/connections.c (handle_request): Fix spelling in log message.
13179         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13181 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13183         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13184         interfaces.
13186 2006-09-20  Andreas Jaeger  <aj@suse.de>
13188         * math/libm-test.inc (lrint_test_upward): Fix typo.
13190 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13192         [BZ #2592]
13193         * math/libm-test.inc (lrint_test_tonearest): New function.
13194         (lrint_test_towardzero): New function.
13195         (lrint_test_downward): New function.
13196         (lrint_test_upward): New function.
13197         (main): Run these new tests.
13198         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13199         of values near to 0.
13200         (two52): Use double not long double.
13201         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13202         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13203         (two23): Use float not double.
13204         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13205         (two23): Use float not double.
13206         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13207         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13208         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13209         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13211 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13213         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13214         Cast sp to unsigned long to avoid compiler warning.
13215         Use __makecontext_ret function instead of a trampoline on the stack.
13216         (__makecontext_ret): New function.
13217         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13219 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13221         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13222         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13223         bits.
13225 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13227         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13228         sure no reference to the unloaded map's search list remains in the
13229         dependency's scope.
13231 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13233         * elf/Makefile: Add rules to build and run unload7 test.
13234         * elf/unload7.c: New test.
13235         * elf/unload7mod1.c: New file.
13236         * elf/unload7mod2.c: New file.
13238 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13240         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13241         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13242         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13243         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13244         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13245         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13246         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13247         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13248         PTRACE_GETEVENTMSG): Likewise.
13249         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13250         values.
13252 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13254         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13255         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13256         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13257         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13259 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13261         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13262         write '\0' to the fd.
13263         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13264         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13265         Change regs to unsigned long pointer from unsigned int, fix fscr
13266         offset.
13268 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13270         * io/Makefile (CFLAGS-fstatat.c): Set.
13271         (CFLAGS-fstatat64.c): Likewise.
13272         (CFLAGS-mknodat.c): Likewise.
13274         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13275         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13276         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13277         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13279 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13280             Steven Munroe  <sjmunroe@us.ibm.com>
13282         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13283         names to the beginning.  Rename "cell" to "cellbe".
13284         (_dl_powerpc_platforms): New.
13285         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13286         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13287         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13288         (_DL_HWCAP_PLATFORM): Define to new mask.
13289         (_dl_platform_string, _dl_string_platform): New functions.
13290         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13291         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13293 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13295         [BZ #2526]
13296         * README.libm: Fix a thinko in sqrt algorithm description.
13298         [BZ #3143]
13299         * manual/string.texi (argz_delete): Fix prototype.
13300         Patch by <alpt@freaknet.org>.
13302 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13304         [BZ #3138]
13305         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13306         * io/tst-fcntl.c (do_prepare): Likewise.
13307         * posix/tst-exec.c (do_prepare): Likewise.
13308         * posix/tst-preadwrite.c (do_prepare): Likewise.
13309         * posix/tst-spawn.c (do_prepare): Likewise.
13310         * posix/tst-truncate.c (do_prepare): Likewise.
13311         * rt/tst-aio.c (do_prepare): Likewise.
13312         * rt/tst-aio64.c (do_prepare): Likewise.
13313         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13314         size_t.
13316 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13318         [BZ #2821]
13319         * time/mktime.c (guess_time_tm): Fix overflow detection.
13320         * time/Makefile (tests): Add bug-mktime1.
13321         * time/bug-mktime1.c: New file.
13323         [BZ #3189, #3188]
13324         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13325         (mremap): Likewise.
13327 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13329         [BZ #1006]
13330         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13331         Ensure relocation doesn't clobber any bits outside of the
13332         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13333         R_SPARC_HI22 and R_SPARC_H44.
13335         [BZ #2775]
13336         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13337         (long) (MINSIZE + nb - old_size) is positive.
13339         * malloc/arena.c (grow_heap): When growing bail even if new_size
13340         is negative.
13342         [BZ #3155]
13343         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13344         stack below r1.
13346 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13348         * posix/regex_internal.c (re_string_reconstruct): Handle
13349         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13350         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13351         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13352         re_string_context_at.
13353         * posix/Makefile: Add rules to build and run bug-regex26 test.
13354         * posix/bug-regex26.c: New test.
13356         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13357         rather than col_sym_free.  Move seqp declaration earlier.
13359         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13361 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13363         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13364         decl before first goto out.
13366 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13368         * Makerules (shlib.lds): If have-hash-style, put .hash section
13369         at the end of the RO segment.
13371 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13373         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13374         style hash table format is used.
13376 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13378         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13379         randomization rather than before.
13380         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13382 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13384         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13386         * malloc/malloc.c (_int_malloc): Use full list insert and not
13387         shortcut which assumes the list is empty for large requests
13388         too.
13390         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13392 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13394         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13395         and offout arguments to the prototype.
13396         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13397         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13398         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13399         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13400         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13401         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13402         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13403         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13405 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13407         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13409         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13410         dlopen parameters.
13412 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13414         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13415         only if herrno is NETDB_INTERNAL.  Handle errors other than
13416         ERANGE outside of the loops, handle TRY_AGAIN.
13418         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13419         if other's ctype category was missing.
13420         * locale/programs/ld-collate.c (collate_read): Return if
13421         copy_locale's collate category is missing.
13423 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13425         [BZ #2684]
13426         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13427         arenas if allocation failed.
13428         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13430 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13432         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13433         waste bins[0..1].
13434         (malloc_state): Reduce bins size by 2.
13435         (_int_malloc): Fix test for large enough buffer for early termination.
13436         When no unsorted block matches perfectly and an exiting block has
13437         to be split, use full list insert and not shortcut which assumes
13438         the list is empty.
13440         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13441         failure.
13443 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13445         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13446         do anything.
13448         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13449         symbol require exact match (these are PLTs).
13450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13451         (_dl_ppc64_addr_sym_match): Likewise.
13453         [BZ #2683]
13454         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13455         If symbol has a value use it.
13456         * elf/tst-dladdr1.c: New file.
13457         * elf/Makefile: Add rules to build and run tst-addr1.
13459 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13461         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13462         keeps failing and heap growth or new heap creation isn't
13463         successful either.
13464         * malloc/tst-malloc.c (main): Add new tests.
13466 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13468         [BZ #2734]
13469         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13470         as in the x86-64 code to use bswap.
13472 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13474         [BZ #2680]
13475         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13476         __USE_UNIX98.
13477         * posix/bits/unistd.h: Likewise.
13479 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13481         [BZ #2751]
13482         * string/strchr.c: Add cast to avoid warning.
13484 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13486         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13487         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13488         limit is needed to avoid the exploding of the address space
13489         requirement for secondary heaps.
13490         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13491         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13493 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13495         [BZ #3018]
13496         * Makerules (depfiles): Handle extra-test-objs the same as
13497         extra-objs.
13498         (common-mostlyclean): Likewise.
13499         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13500         instead.
13501         * elf/Makefile (extra-objs): Likewise.
13502         * stdlib/Makefile (extra-objs): Likewise.
13504 2006-08-14  Eric Blake  <ebb9@byu.net>
13506         [BZ #3044]
13507         * misc/error.h: Assume C89 or better.
13508         * misc/error.c: Likewise.
13510 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13512         [BZ #3040]
13513         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13514         __ASSUME_ATFCTS is defined.
13516 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13518         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13519         to sort in each call.
13521         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13522         is empty simply return and use next service.
13523         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13525         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13526         tells us when not finding a charmap file is an error.
13527         * locale/programs/charmap.h: Adjust charmap_read prototype.
13528         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13529         cannot find a charmap.
13530         * locale/programs/localedef.c (main): Adjust charmap_read call.
13532 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13534         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13535         sysdeps/posix/pause.c implementation instead.
13537 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13539         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13540         to EPERM.
13542 2006-08-13  Andreas Schwab  <schwab@suse.de>
13544         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13545         Don't clobber caller's LRSAVE.
13546         (_dl_prof_resolve): Likewise.
13548 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13550         [BZ #1996]
13551         * libio/memstream.c (open_memstream): Allocate initial buffer with
13552         calloc.
13553         * libio/wmemstream.c (open_wmemstream): Likewise.
13554         * libio/strops.c: Pretty printing.
13555         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13556         (enlarge_userbuf): New function.
13557         (_IO_str_seekoff): Call it if seek position is larger than current
13558         buffer.
13559         * libio/wstrops.c: Likewise.
13560         * libio/vasprintf.c: Add comment as to why we do not have to use
13561         calloc instead of malloc to allocate initial buffer.
13562         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13563         * libio/bug-memstream1.c: New file.
13564         * libio/bug-wmemstream1.c: New file.
13566 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13568         * libio/wstrops.c: Remove dead macro definitions and comments.
13569         * libio/strops.c: Likewise.
13571         [BZ #2764]
13572         * login/utmpname.c (__utmpname): Remove unnecessary test.
13574 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13576         [BZ #2832]
13577         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13578         0s from integers.
13580 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13582         [BZ #2987]
13583         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13584         for CPU clocks.
13585         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13586         setting of CPU clocks.
13588 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13590         [BZ #2841]
13591         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13592         since C99 requires the result to promote to 'int' when uint_least8_t
13593         and uint_least16_t promote to 'int'.
13595 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13597         [BZ #3013]
13598         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13599         lenght of one output field, correct bitmask creation.
13600         * locale/programs/ld-time.c: Add alignment.
13602         [BZ #2997]
13603         * misc/error.c: Add space between program name and message if file
13604         name is missing.
13606 2006-08-03  Eric Blake  <ebb9@byu.net>
13608         [BZ #2998]
13609         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13611 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13613         * malloc/memusagestat.c: Silence warnings.
13615         * malloc/malloc.c: Dynamically size mmap treshold if the program
13616         frees mmaped blocks.
13617         Patch by Valerie Henson and Arjan van de Ven.
13619 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13621         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13622         __USE_GNU.
13624         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13625         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13626         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13627         Only provide var definitions in strtol_l (or for *ull*
13628         in strtoll_l).
13630         * stdio-common/bug16.c (tests): New array.
13631         (do_tests): Allow the first hexadecimal digit
13632         to be 1, 2, 4 or 8.  Do 3 additional tests.
13634         * sysdeps/s390/fpu/libm-test-ulps: Update.
13636         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13637         fchownat syscall if available.
13638         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13639         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13640         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13642 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13644         * nis/nis_xdr.c: Avoid some function calls.
13646 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13647             Ulrich Drepper  <drepper@redhat.com>
13649         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13650         short cut if only one name component is stripped away.
13652 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13654         * nis/nis_call.c: Minor cleanups throughout.
13655         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13656         (first_shoot): Add search_parent_first parameter.  Only if it is set
13657         search parent server first.
13658         If directory for table found through cold start cache is not the same
13659         as referenced in the cache, don't use it.
13660         (__nisfind_server): Take additional parameter.  Pass it on to
13661         first_shoot.
13662         (__prepare_niscall): Adjust __nisfind_server call.
13663         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13664         * nis/nis_table.c: Adjust __nisfind_server call.
13665         * nis/nis_lookup.c: Likewise.
13666         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13668 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13670         [BZ #2182]
13671         * math/s_cacosh.c: Return values from positive branch.
13672         * math/s_cacoshf.c: Likewise.
13673         * math/s_cacoshl.c: Likewise.
13675         [BZ #2883]
13676         * sysvipc/sys/msg.h: Change return value to ssize_t.
13677         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13678         * sysvipc/msgrcv.c: Likewise.
13679         * include/sys/msg.h: Likewise.
13681         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13682         test introduced in patch for bz #661.
13683         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13684         element for NEWGROUPS.
13686         [BZ #2908]
13687         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13688         'f', use '1' as leading digit not '\1'.
13689         * stdio-common/Makefile (tests): Add bug16.
13690         * stdio-common/bug16.c: New file.
13692         [BZ #2914]
13693         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13694         and don't try to open it.  The patch introducing the macro
13695         contained a bug and used the same file name as the new file
13696         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13697         this out completely.
13699         [BZ #2926]
13700         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13701         Patch by Jerry James <Jerry.James@usu.edu>.
13703         * rt/Makefile (tests): Add tst-clock2.
13704         * rt/tst-clock2.c: New file.
13706         [BZ #2978]
13707         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13708         function and its parameters and pass it to new thread.
13709         (__gai_notify): Add support for alternative waiting for completion.
13710         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13711         waiting for completion.
13712         * resolv/getaddrinfo_a.c: Likewise.
13713         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13714         waiting for completion is used.
13715         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13716         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13717         * resolv/gai_error.c: Likewise.
13718         * resolv/gai_sigqueue.c: Likewise.
13720 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13722         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13723         errno to EBADF and return MACH_PORT_NULL.
13725 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13727         [BZ #2980]
13728         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13730 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13732         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13733         walk them instead of the symbol table.
13735 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13737         [BZ #2098]
13738         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13739         status of NSS calls, not the number of returned entries.
13741         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13742         request_key, keyctl.
13744 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13746         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13748 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13750         * elf/tst-auditmod1.c: Fix typo in #error.
13752 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13754         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13756         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13758 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13760         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13761         that the directory is empty even on non-POSIX filesystems.
13763 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13765         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13767         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13768         the backend NSS module.  If backend setgrent call failed, don't have
13769         internal_setgrent fail.  Just remember this until it is needed.
13770         * nis/nss_compat/compat-pwd.c: Likewise.
13771         * nis/nss_compat/compat-spwd.c: Likewise.
13773 2006-07-30  Roland McGrath  <roland@redhat.com>
13775         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13776         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13777         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13778         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13780         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13781         (nanosleep_not_cancel): New macro.
13782         (sigsuspend_not_cancel): new macro.
13783         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13784         (do_sigsuspend): Define as inline.
13785         (__sigsuspend): Always use do_sigsuspend.
13786         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13787         * include/signal.h: Declare __sigsuspend_nocancel.
13788         * sysdeps/posix/pause.c
13789         [! NO_CANCELLATION] (__pause_nocancel): New function.
13791         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13792         * include/time.h (__nanosleep_nocancel): Likewise.
13794 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13796         * locale/programs/localedef.c (add_to_readlist): Rename local
13797         variables to avoid confusion.
13799         * locale/programs/charmap.c (charmap_read): Emit error message if
13800         charmap couldn't be found or read.
13802 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13804         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13805         __ASSUME_FUTEX_LOCK_PI.
13806         * include/time.h: Declare __nanosleep_nocancel.
13807         * include/unistd.h: Declare __pause_nocancel.
13809         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13810         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13811         get the __stack_chk_fail_local definition when it's needed.
13813 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13815         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13816         * dlfcn/bug-atexit3.c: New file.
13817         * dlfcn/bug-atexit3-lib.cc: New file.
13819         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13820         used when the namespace is not the base namespace.
13822 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13824         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13825         (__new_exitfn): Bump it in every successful call.
13826         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13827         more exit handlers, call them right away.
13828         * stdlib/exit.h: Declare __new_exitfn_called.
13830 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13832         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13833         calling registered handler.
13835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13836         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13837         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13838         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13839         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13840         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13841         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13842         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13844 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13846         * elf/dl-lookup.c (dl_new_hash): New functions.
13847         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13848         value here.  Compute new-style hash value.  Pass new hash value
13849         and reference to variable with the old value to do_lookup_x.
13850         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13851         old-style hash table.
13852         (_dl_debug_bindings): Pass new hash value and reference to variable
13853         with the old value to do_lookup_x.
13854         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13855         new-style hash value and change old-style hash value parameter to
13856         be a reference.  Reoganize functions to determine whether
13857         new-style hash table is available.  Only fall back on old-style
13858         table.  If old-style hash value is needed, compute it here.
13859         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13860         entry.
13861         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13862         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13863         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13864         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13865         * Makeconfig: If linker supports --hash-style option add it to all
13866         linker command lines to build DSOs.
13867         * config.make.in: Define have-hash-style.
13868         * configure.in: Test whether linker supports --hash-style option.
13870         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13871         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13873 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13875         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13876         auditing.
13878         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13879         RPATH of main map twice.
13881 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13883         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13884         look further, return original strings.
13885         (_nl_find_msg): Do not return found translation if the conversion
13886         failed.  Either signal the string is unusable or that something went
13887         wrong and the original should be used.
13889 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13891         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13893 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13895         [BZ #2766]
13896         * misc/insremque.c (insque): Handle prev == NULL.
13897         * misc/Makefile (tests): Add tst-insremque.
13898         * misc/tst-insremque.c: New test.
13900 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13902         [BZ #2792]
13903         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13904         conflict with DL_DST_REQUIRED.
13906 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13908         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13909         match what Solaris does.
13911 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13913         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13914         local_setegid instead of seteuid and setegid.
13915         * sysdeps/generic/local-setxid.h: New file.
13916         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13918         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13920         * string/Makefile (tests): Add bug-envz1.
13921         * string/bug-envz1.c: New file.
13923 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13925         * posix/regex_internal.c (re_string_skip_chars): If no character has
13926         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13927         to the byte which couldn't be converted.
13928         (re_string_reconstruct): Don't clear valid_raw_len before calling
13929         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13930         tip_context using re_string_context_at.
13931         * posix/Makefile: Add rules to build and run bug-regex25 test.
13932         * posix/bug-regex25.c: New test.
13934 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13936         [BZ #2703]
13937         * string/envz.c (envz_strip): Correct erroneously reversed src
13938         and dest parameters to memmove() invocation.
13940 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13942         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13943         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13944         to make sure the database has been already invalidated.
13945         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13946         after the cache has been invalidated.  Use pthread_mutex_lock rather
13947         than pthread_mutex_trylock if fd != -1.
13948         * nscd/connections.c (invalidate_cache): Add fd argument, write
13949         response to fd if not calling prune_cache, pass fd to prune_cache.
13950         (handle_request): Adjust invalidate_cache caller.
13951         (nscd_run): Pass -1 as fd to prune_cache.
13953 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13955         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13956         the correct place.
13958 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13960         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13961         * nscd/cache.c (prune_cache): Take prunelock before starting the
13962         work.  Just return in case it is already taken.
13963         * nscd/connections.c (dbs): Initialize .prunelock.
13965 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13967         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13968         copying.  No need to allocate new array for group members.  Just
13969         move the pointers and update the size.
13971         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13972         Avoid memory leak in case realloc fails.  Simplification for
13973         better code generation.
13975         Avoid deprecation warning because of libc_hidden_proto for
13976         inet6_option_alloc.
13977         * inet/inet6_option.c (option_alloc): Renamed from
13978         inet6_option_alloc.  Made static.
13979         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13980         (inet6_option_append): Call option_alloc.
13981         * include/netinet/in.h: Remove libc_hidden_proto for
13982         inet6_option_alloc.
13984         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13985         for cleanup when cb!=NULL [Coverity CID 233].
13987 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13989         [BZ #2693]
13990         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13991         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13992         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13993         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13994         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13995         and inet6_rth_getaddr.
13996         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13997         array.
13998         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13999         Mark inet6_option_* interfaces as deprecated.
14000         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14001         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14002         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14003         inet6_rth_segments, and inet6_rth_getaddr.
14004         * inet/inet6_opt.c: New file.
14005         * inet/inet6_rth.c: New file.
14007         * inet/netinet/icmp6.h: Pretty printing.
14009         [BZ #2683]
14010         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14012 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14014         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14015         doing it all here.  When server does not know the answer do not
14016         fail immediate, try parent first.
14018         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14019         overflow test.
14021 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14023         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14024         from __do_niscall.
14025         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14026         and exported.
14027         (__follow_path): New function.  Split out from nis_list.
14028         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14029         _xdr_nis_result.
14030         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14031         _xdr_nis_result.
14032         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14033         and __follow_path.
14034         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14035         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14036         from libnsl for version GLIBC_PRIVATE.
14037         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14038         Remove entry parameter from _nss_nisplus_parse_pwent and
14039         _nss_nisplus_parse_grent.
14040         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14041         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14042         again.  Rewrite getpwent handling to not use nis_first_entry and
14043         nis_next_entry.  Roll out own niscall handling.
14044         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14046         * sunrpc/xdr_rec.c: Fix typo in comment.
14048 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14050         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14051         handling.
14053         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14054         to allocate memory for my_pollfd.  Better initialization of
14055         cb_is_running.  Use TEMP_FAILURE_RETRY.
14057         * malloc/memusage.sh (memusageso): Add quotes.
14058         (memusagestat): Likewise.
14059         * debug/xtrace.sh (pcprofileso): Likewise.
14060         (pcprofiledump): Likewise.
14061         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14062         replacement.
14063         * malloc/Makefile ($(objpfx)memusage): Likewise.
14065         * nis/nis_callback.c (__nis_create_callback): Calls to
14066         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14067         asprintf call fails.
14069         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14070         no uninitialized memory is passed to sendto.
14072 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14074         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14075         of snprintf+strdup.  Handle OOM.
14076         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14077         cb->serv together.  Remove now obsolete free calls.
14078         (__nis_destroy_callback): Remove now obsolete free call.
14080 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14082         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14083         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14084         and ULA respectively). Set precedence for IPv4 address to 10 as
14085         defined in RFC3484 for preferring IPv6.
14086         * posix/gai.conf: Update to match the new default tables.
14088 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14090         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14091         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14092         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14093         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14095         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14096         Removed.
14097         (init_nss_interface): Remove initialization of these variables.
14099 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14101         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14102         nis_free_directory forward to avoid duplication.
14104 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14106         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14107         rec_dirsearch returning NULL.
14108         (first_shoot): Handle __nis_finddirectory returning NULL.
14109         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14111         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14112         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14114 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14116         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14117         pid changed.
14119 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14121         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14123         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14124         * nscd/nscd_getgr_r.c: Likewise.
14126         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14128         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14129         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14131         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14133         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14135         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14137         * include/rpc/auth.h: Mark xdr_des_block_internal and
14138         xdr_opaque_auth_internal as hidden.
14140         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14141         hidden.
14143         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14145         * misc/getusershell.c (okshells): Don't use static initializers,
14146         do it dynamically.
14148         * stdlib/fmtmsg.c (keywords): Change type of len element to
14149         uint32_t to not waste space on 64bit machines.
14151         * locale/setlocale.c: Change _nl_category_names into a string.
14152         Add new _nl_category_name_idxs.  Change all users.
14153         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14154         Declare _nl_category_name_idxs.
14155         * locale/findlocale.c: Adjust for _nl_category_names change.
14156         * locale/loadlocale.c: Likewise.
14157         * locale/newlocale.c: Likewise.
14158         * intl/dcigettext.c: Likewise.
14160         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14161         (add_alias2): ...here.  New function.
14162         (__gconv_read_conf): Simplify builtin alias handling.
14163         (builtin_aliases): Convert to string to avoid relocations.
14164         * iconv/gconv_builtin.h: Add comment about correct formatting.
14166 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14168         * resolv/res_debug.c (loc_ntoa): Make error const.
14170 2006-05-14  Andreas Schwab  <schwab@suse.de>
14172         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14174 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14176         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14177         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14178         sizeof (cpu_set_t).
14180 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14182         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14184         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14186         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14187         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14189         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14190         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14192         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14193         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14194         xdr_cback_data.
14196         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14197         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14198         xdr_ypupdate_args.
14200         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14201         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14203         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14204         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14206         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14207         * include/rpcsvc/nis_callback.h: New file.
14209         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14210         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14212         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14213         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14215         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14216         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14218         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14219         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14221         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14222         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14223         xdr_ypdelete_args.
14225         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14226         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14228         * nis/nis_error.c: Remove table of strings.  Use position
14229         independent mechanism.
14230         * nis/nis_error.h: New file.
14232 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14234         * locale/programs/ld-time.c (time_finish): If wide era name or
14235         format aren't provided, set both wname and wformat to L"".
14237 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14239         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14240         results if the call was succesful.
14242         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14244         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14245         as hidden.
14247 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14249         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14251 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14253         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14254         caller makes sure this is not the case.
14255         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14257 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14259         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14260         calls.
14262         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14263         [Coverity CID 229, 230]
14265         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14266         DGETTEXT calls.
14267         (hol_help): Likewise.  [Coverity CID 226, 227]
14269         * string/argz-replace.c (__argz_replace): Unconditionally call
14270         free on SRC.  [Coverity CID 225]
14272         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14273         the return value of __nis_default_owner and __nis_default_group,
14274         it has been especially allocated.  [Coverity CID 224]
14276         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14277         searchgroup and searchowner.  Significantly simplified.
14278         (__nis_default_owner): Remove duplication.  Do not locally copy the
14279         string before duplicating it.
14280         (__nis_default_group): Likewise.
14282         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14283         we must clear the variable before calling __nisfind_server.
14285         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14286         nis_getnames.  [Coverity CID 223]
14288         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14289         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14291         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14292         allocate memory for the input to add_bytes.  [Coverity CID 221]
14294         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14295         was allocated here.  [Coverity CID 219, 220]
14297         * posix/getconf.c (print_all): Free confstr data after printing.
14298         [Coverity CID 218]
14300         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14301         list allocation fails.  [Coverity CID 215]
14303         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14304         [Coverity CID 213]
14306         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14307         string is NULL.  [Coverity CID 212]
14308         * argp/Makefile: Add rules to build and run bug-argp1.
14309         * argp/bug-argp1.c: New file.
14311         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14312         end of string.
14313         * stdlib/canonicalize.c (__realpath): Likewise.
14315         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14316         pointer.  [Coverity CID 206]
14318         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14319         in statically linked code.
14320         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14321         statically built code, be prepared to have no link map.
14322         [Coverity CID 205]
14324         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14325         dgettext calls. [Coverity CID 204]
14327         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14328         the one user.
14329         (uparam_names): Reduce size.  Avoid relative relocations.
14330         Moved to read-only segment.
14331         (fill_in_uparams): Update for new layout.
14333         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14334         assumed to always be != NULL. [Coverity CID 202]
14336         * argp/argp-help.c (hol_entry_help): Remove some dead code
14337         [Coverity CID 200].
14339         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14340         away a few more unconditional yperr2nss calls.
14341         (_nss_nis_getservbyname_r): Likewise.
14343 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14345         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14346         architectures.
14348         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14349         that unused memory passed to sendto is nevertheless initialized.
14351         [BZ #2499]
14352         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14353         possibly unaligned memory accesses.
14355         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14356         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14357         and __putlong respectively.  Correct buffer overflow check for
14358         NS_NOTIFY_OP.
14360         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14362         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14363         (send_dg): Rewrite error handling to be more compact and avoid
14364         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14366         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14368         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14369         instead of ns_get16.
14370         (res_queriesmatch): Likewise.  Minor optimization.
14372         [BZ #2499]
14373         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14374         __libc_res_nsend might reallocate the buffer for the answer.  In
14375         this case we have to reload the HP pointer.
14377 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14379         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14380         some branch prediction hints.
14382         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14383         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14384         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14385         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14386         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14387         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14388         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14389         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14391 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14393         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14394         by a GOT relocation to make Scrt1.o position independent.
14395         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14397         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14398         six system call parameters.
14399         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14401 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14403         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14404         malloc&bzero.
14406         * sunrpc/svc_udp.c (BZERO): Remove definition.
14407         (CALLOC): Define.
14408         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14410         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14411         (des_SPtrans): Use uint32_t type.
14412         (des_skb): Likewise.
14414         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14416 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14418         [BZ #2509]
14419         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14420         on 32-bit arches.
14422 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14424         * locale/programs/ld-address.c (address_finish): Fix one more
14425         place where the iso639 array might be accessed beyond the limits.
14427 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14429         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14430         filling it for the first time.
14432         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14433         Adjust all callers.
14434         Free res object content before returning.
14436         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14438         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14439         client->cl_auth.
14441         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14442         cleanup for initial thread, just the free call on TVP.
14444         * nscd/gai.c (__getline): Define.
14447 See ChangeLog.16 for earlier changes.