manual: fix doubled-words and typos
[glibc.git] / ChangeLog
blobe9a86cca16e01075ab2fe5608f7bc3a74995da10
1 2010-02-22  Jim Meyering  <meyering@redhat.com>
3         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
4         * manual/charset.texi (Selecting the Conversion): Likewise.
5         * manual/getopt.texi (Getopt Long Options): Likewise.
6         * manual/memory.texi (Resizing the Data Segment): Likewise.
7         * manual/message.texi (GUI program problems): Likewise.
8         * manual/resource.texi (CPU Affinity): Likewise.
9         * manual/stdio.texi (Streams and Threads): Likewise.
10         * manual/time.texi (High Accuracy Clock): Likewise.
12 2009-02-20  David S. Miller  <davem@davemloft.net>
14         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
15         Adjust rela->r_offset by l->l_addr when rewriting PLT.
17         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
18         test end of buffer.
20         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
21         (__makecontext): Adjust arg counter properly when copying arg
22         stack slots.
24 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
26         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
27         Adjust rela->r_offset by l->l_addr when rewriting PLT.
29 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
31         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
32         non-existent `tiocsctty_port'.
34 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
36         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
37         instead of FEATURE_OFFSET.
38         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
40         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
41         Fix one unwind info problem.
43         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
45         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
47 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
48             Ulrich Drepper  <drepper@redhat.com>
50         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
51         Clean up a bit.
53 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
55         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
56         (tiocsctty_port): ...this new function.
58         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
59         `ioctl_handler_t'.
61 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
63         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
64         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
65         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
66         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
68         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
69         undefined code.
71 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
73         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
75         memcmp-c, memcmp-ssse3, and memcmp-sse4.
76         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
77         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
78         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
79         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
80         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
81         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
82         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
83         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
84         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
85         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
87 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
89         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
90         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
91         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
92         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
93         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
94         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
95         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
96         is not supported.
97         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
98         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
99         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
100         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
101         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
102         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
103         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
104         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
105         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
106         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
107         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
108         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
109         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
110         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
111         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
112         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
113         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
115         Likewise.
116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
117         Likewise.
118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
119         Likewise.
120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
121         Likewise.
122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
124 2010-02-12  Alan Modra  <amodra@gmail.com>
126         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
127         Define and use for __powerpc64__ too.
128         [__powerpc__] (TLS_LD): Add r3 to clobbers.
129         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
130         [__powerpc64__] (TLS_GD): Make __result r3 reg.
131         [__powerpc64__] (TLS_IE): Relax output constraint.
133 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
135         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
136         instructions cu21 and cu24.  Add well-formedness checking
137         parameter and adjust the software implementation.
138         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
140 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
142         [BZ #11271]
143         * io/ftw.c (ftw_startup): Close descriptor for initial directory
144         after changing back to it.
146 2010-02-05  David S. Miller  <davem@davemloft.net>
148         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
149         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
150         ifunc relocs.
151         (elf_machine_lazy_rel): Likewise.
152         (sparc_fixup_plt): Pull out to...
153         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
154         * sysdeps/sparc/sparc32/dl-irel.h: New file.
155         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
156         ifunc relocs.
157         (elf_machine_lazy_rel): Likewise.
158         (sparc64_fixup_plt): Pull out to...
159         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
160         * sysdeps/sparc/sparc64/dl-irel.h: New file.
162 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
164         * elf/elf.h: Define m68k TLS relocations.
166 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
168         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
169         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
170         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
171         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
173         64-bit power7 fpu path.
174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
175         32-bit power7 fpu math.
177 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
179         * sysdeps/i386/rshift.S: More compact unwind information.
181         * sysdeps/i386/lshift.S: Fix unwind information.
183 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
185         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
186         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
187         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
188         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
189         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
190         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
191         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
192         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
193         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
194         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
195         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
196         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
198 2010-02-08  Andreas Schwab  <schwab@redhat.com>
200         * include/fenv.h: Add hidden proto for fegetenv.
201         * math/fegetenv.c: Add hidden alias.
202         * sysdeps/i386/fpu/fegetenv.c: Likewise.
203         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
204         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
205         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
206         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
207         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
208         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
210 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
212         [BZ #11230]
213         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
214         during recovery.
216 2010-01-26  Andreas Schwab  <schwab@redhat.com>
218         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
219         interface.
220         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
221         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
222         utmpx interface.
224         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
225         entry for 2.12.
227 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
229         [BZ #11235]
230         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
231         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
232         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
233         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
234         MS_ACTIVE, and MS_NOUSER.
235         (MS_RMT_MASK): Update according to current kernels.
237         [BZ #11242]
238         * misc/getusershell.c (initshells): Allocate one more byte in input
239         buffer so that fgets doesn't loop undefinitely.
241 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
243         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
244         __libc_use_alloca tells us not to.  Fix memory leak in an error
245         situation.  Based partially on patch by Jim Meyering.
247 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
249         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
250         get_phys_pages, get_avphys_pages): Add weak aliases.
252 2010-01-25  Andreas Schwab  <schwab@redhat.com>
254         * iconv/iconv_prog.c (write_output): Fix check for open failure.
256 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
258         [BZ #11200]
259         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
260         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
262 2010-01-22  Jim Meyering  <jim@meyering.net>
264         [BZ #11193]
265         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
266         buffer length computation.
268         [BZ #11192]
269         * posix/regexec.c (re_copy_regs): Don't leak when allocation
270         of the start buffer succeeds but allocation of the "end" one fails.
272         [BZ #11191]
273         * posix/regexec.c (re_search_2_stub): Check for overflow
274         when adding the sizes of the two strings.
276         [BZ #11190]
277         * posix/regexec.c (re_search_internal): Avoid overflow
278         in computing re_malloc buffer size.
280         [BZ #11189]
281         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
282         in computing re_malloc buffer size.
284         [BZ #11188]
285         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
286         in size calculation.
288         [BZ #11187]
289         * posix/regexec.c (re_search_2_stub): Use simpler method than
290         boolean for freeing internal storage.
292 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
294         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
295         failed mbrtowc call.
297 2010-01-22  Jim Meyering  <jim@meyering.net>
299         [BZ #11186]
300         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
301         fits in wchar_t.  Problem reported by Eric Blake.
303         [BZ #11185]
304         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
305         and stores into set-but-not-used local, "q".
307         [BZ #11184]
308         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
309         detection test.  Patch by Paul Eggert.
311         [BZ #11183]
312         * posix/regex_internal.c (re_string_realloc_buffers):
313         Detect and handle internal overflow.  Patch by Paul Eggert
315 2010-01-20  Andreas Schwab  <schwab@redhat.com>
317         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
318         (CHECK_SP): Fix check for alternate stack.
319         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
320         (CHECK_SP): Likewise.
322 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
324         * sysdeps/i386/i686/multiarch/memmove.S: Also check
325         bit_Fast_Rep_String when SHARED isn't defined.
327 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
329         [BZ #11194]
330         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
332 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
334         * sysdeps/mach/hurd/bits/libc-lock.h
335         (__rtld_lock_recursive_t): New type.
336         (__rtld_lock_initialize): New macro.
338 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
340         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
341         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
345 2010-01-18  Andreas Schwab  <schwab@redhat.com>
347         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
348         definitions of O_DSYNC and O_RSYNC.
350         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
351         casting d_tag.
353         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
354         dynamic entry types.
356 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
358         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
359         constant.
360         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
361         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
362         overflow.
363         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
365         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
366         math_opt_barrier and math_force_eval macros.
368 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
370         * posix/regcomp.c: Fix a few more cases of ignored return values.
371         * posix/regex_internal.c: Likewise.
372         * posix/regexec.c: Likewise.
374         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
375         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
376         if _XOPEN_SOURCE is not defined as well.
378 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
380         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
381         high gprs kernel facility.
382         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
383         Added high gprs check for DSOs.
384         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
385         new elf header flag.
387 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
389         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
390         dl_main.
391         * elf/dl-open.c (_dl_sysdep_start): Likewise..
392         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
393         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
394         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
395         started.
397 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
399         [BZ #11027]
400         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
401         to RFC 2474.
402         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
404         [BZ #11141]
405         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
406         addresses.
408         [BZ #11127]
409         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
410         re_node_set_insert failure; return REG_ESPACE.
411         Patch by Paul Eggert.
413         * bits/confname.h: Make pre-C99-safe.
415 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
417         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
418         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
419         files are found by GCC.
421 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
423         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
424         brk, and sbrk.
426         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
427         index, and rindex.
429         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
431         * Versions.def: Add GLIBC_2.12 for libpthread.
433         [BZ #11126]
434         * malloc/malloc.c (malloc_info): Initialize malloc if not already
435         done.  Handle empty bin lists.
437         * posix/unistd.h: Change getpagesize and getdtablesize declaration
438         visibility some more.
440         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
442         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
444         [BZ #11120]
445         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
446         needed outside libc.
448 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
450         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
452 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
454         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
456 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
458         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
460 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
462         * conform/data/complex.h-data: Test for POSIX2008.
464         * conform/data/ctype.h-data: Fix POSIX testing.
466         * conform/data/dirent.h-data: ino_t only needed for XSI.
468         * grp/grp.h: Declare getgrent and endgrent for XPG7.
470         * conform/data/inttypes.h-data: Use same types as the headers.
472         * resolv/netdb.h: Don't define old resolver macros for XPG7.
474         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
476         * conform/conformtest.pl: Implement tag for allow-header.
477         Fix newline handling in allow-header implementation.
479         * conform/data/time.h-data: Use allow-header instead of duplicating
480         information.
482         * conform/data/time.h-data: Allow sigevent tag.
484         * posix/sched.h: Define time_t and pid_t for XPG7.
486 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
488         * sysdeps/i386/i686/bcopy.S: New file.
490         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
492         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
493         and END_CHK.
494         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
495         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
496         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
498         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
500         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
501         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
502         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
503         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
504         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
505         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
506         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
507         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
508         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
509         * sysdeps/i386/i686/multiarch/bzero.S: New file.
510         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
511         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
512         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
513         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
514         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
515         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
516         * sysdeps/i386/i686/multiarch/memmove.S: New file.
517         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
518         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
519         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
520         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
521         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
522         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
523         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
524         * sysdeps/i386/i686/multiarch/memset.S: New file.
525         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
527         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
528         (END_CHK): Likewise.
530         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
531         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
532         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
534         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
535         for 0x0e and 0x80.
536         (__x86_64_data_cache_size): New.
537         (init_cacheinfo): Set __x86_64_data_cache_size.
539         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
540         on bit_Fast_Rep_String for Intel Core i7.
542         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
543         (index_Fast_Rep_String): Likewise.
544         (FEATURE_INDEX_1): Likewise.
545         (FEATURE_INDEX_MAX): Likewise.
546         (cpu_features): Add feature.
548 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
550         * conform/data/sys/select.h-data: Fix up for XPG7.
552 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
554         * posix/sys/wait.h: Don't define W* macros etc. if
555         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
557 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
559         * io/sys/stat.h: Declare fchmod for XPG7.
560         * conform/data/sys/stat.h-data: Fix up for XPG7.
562         * termios/termios.h: Define pid_t for XPG7.
564         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
565         * conform/data/tgmath.h-data: Likewise.
567         * conform/data/time.h-data: Fix POSIX tests.
569         * conform/data/wchar.h-data: Fix up XPG7 tests.
571         * include/features.h: Fix __USE_ISOC95 handling.
573         * conform/data/wordexp.h-data: Fix typo in last change.
575         * conform/data/unistd.h-data: Fix up older POSIX tests.
577         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
578         * posix/unistd.h: Likewise.
580         * posix/unistd.h: Include environments.h also for XPG6 and up.
581         Define intptr_t for XPG6 and up.
582         Fix up for XPG7.
583         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
585         * conform/data/sys/types.h-data: Fix up for XPG7.
587         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
588         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
589         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
590         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
591         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
592         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
593         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
594         * sysdeps/unix/sysv/bits/stat.h: Likewise.
595         * sysdeps/mach/hurd/bits/stat.h: Likewise.
597         * bits/confname.h: Fix typo in last change.
599         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
601 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
603         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
604         and SA_RESETHAND now available in Base.
605         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
606         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
607         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
608         * conform/data/signal.h-data: Update for XPG7.
610         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
612         * string/strings.h: Don't declare obsolete functions for XPG7.
613         Declare ffs only for XSI.
614         * conform/data/strings.h-data: Update for XPG7.
616 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
618         [BZ #11125]
619         * libio/stdio.h: Define va_list, off_t, and ssize_t.
621         * posix/glob.h: Define size_t.
623         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
625         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
627 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
629         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
630         be self-contained.
632         * conform/data/stdio.h-data: Expect off_t and ssize_t.
634 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
636         * libio/stdio.h: Define va_list also for XPG7.
638         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
639         * conform/data/ctype.h-data: Likewise.
640         * conform/data/dirent.h-data: Likewise.
641         * conform/data/errno.h-data: Likewise.
642         * conform/data/fcntl.h-data: Likewise.
643         * conform/data/fmtmsg.h-data: Likewise.
644         * conform/data/fnmatch.h-data: Likewise.
645         * conform/data/ftw.h-data: Likewise.
646         * conform/data/glob.h-data: Likewise.
647         * conform/data/grp.h-data: Likewise.
648         * conform/data/iconv.h-data: Likewise.
649         * conform/data/langinfo.h-data: Likewise.
650         * conform/data/libgen.h-data: Likewise.
651         * conform/data/limits.h-data: Likewise.
652         * conform/data/locale.h-data: Likewise.
653         * conform/data/math.h-data: Likewise.
654         * conform/data/monetary.h-data: Likewise.
655         * conform/data/mqueue.h-data: Likewise.
656         * conform/data/ndbm.h-data: Likewise.
657         * conform/data/netdb.h-data: Likewise.
658         * conform/data/pthread.h-data: Likewise.
659         * conform/data/pwd.h-data: Likewise.
660         * conform/data/regex.h-data: Likewise.
661         * conform/data/sched.h-data: Likewise.
662         * conform/data/search.h-data: Likewise.
663         * conform/data/semaphore.h-data: Likewise.
664         * conform/data/setjmp.h-data: Likewise.
665         * conform/data/signal.h-data: Likewise.
666         * conform/data/spawn.h-data: Likewise.
667         * conform/data/stdio.h-data: Likewise.
668         * conform/data/stdlib.h-data: Likewise.
669         * conform/data/string.h-data: Likewise.
670         * conform/data/strings.h-data: Likewise.
671         * conform/data/sys/ipc.h-data: Likewise.
672         * conform/data/sys/msg.h-data: Likewise.
673         * conform/data/sys/resource.h-data: Likewise.
674         * conform/data/sys/sem.h-data: Likewise.
675         * conform/data/sys/shm.h-data: Likewise.
676         * conform/data/sys/socket.h-data: Likewise.
677         * conform/data/sys/stat.h-data: Likewise.
678         * conform/data/sys/time.h-data: Likewise.
679         * conform/data/sys/types.h-data: Likewise.
680         * conform/data/sys/uio.h-data: Likewise.
681         * conform/data/sys/wait.h-data: Likewise.
682         * conform/data/syslog.h-data: Likewise.
683         * conform/data/tar.h-data: Likewise.
684         * conform/data/termios.h-data: Likewise.
685         * conform/data/time.h-data: Likewise.
686         * conform/data/ulimit.h-data: Likewise.
687         * conform/data/unistd.h-data: Likewise.
688         * conform/data/utmpx.h-data: Likewise.
689         * conform/data/wchar.h-data: Likewise.
690         * conform/data/wctype.h-data: Likewise.
691         * conform/data/wordexp.h-data: Likewise.
693         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
694         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
695         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
696         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
697         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
698         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
699         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
700         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
701         * sysdeps/unix/sysv/bits/stat.h: Likewise.
702         * sysdeps/mach/hurd/bits/stat.h: Likewise.
704         * stdlib/stdlib.h: Define wait-related bits for XPG7.
705         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
706         Declare mkstemp and getsubopt for XPG7.
707         Declare posix_openpt for XPG6 XSI.
709         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
710         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
712         * string/string.h: Declare strdup for XPG7.
714 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
716         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
717         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
719         * dirent/dirent.h: Really fix feature selection.
721         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
722         Fix all users.
723         * locale/C-address.c: Fix all users.
724         * locale/C-collate.c: Likewise.
725         * locale/C-ctype.c: Likewise.
726         * locale/C-identification.c: Likewise.
727         * locale/C-measurement.c: Likewise.
728         * locale/C-messages.c: Likewise.
729         * locale/C-monetary.c: Likewise.
730         * locale/C-name.c: Likewise.
731         * locale/C-numeric.c: Likewise.
732         * locale/C-paper.c: Likewise.
733         * locale/C-telephone.c: Likewise.
734         * locale/C-time.c: Likewise.
735         * locale/findlocale.c: Likewise.
736         * locale/global-locale.c: Likewise.
737         * locale/loadarchive.c: Likewise.
738         * locale/loadlocale.c: Likewise.
739         * locale/nl_langinfo_l.c: Likewise.
740         * locale/setlocale.c: Likewise.
741         * locale/xlocale.c: Likewise.
742         * locale/xlocale.h: Likewise.
743         * stdio-common/vfscanf.c: Likewise.
744         * stdlib/strfmon_l.c: Likewise.
745         * stdlib/strtod_l.c: Likewise.
746         * stdlib/strtol_l.c: Likewise.
747         * string/strcoll_l.c: Likewise.
748         * string/strxfrm_l.c: Likewise.
749         * time/alt_digit.c: Likewise.
750         * time/asctime.c: Likewise.
751         * time/era.c: Likewise.
752         * time/lc-time-cleanup.c: Likewise.
753         * time/strftime_l.c: Likewise.
754         * time/strptime_l.c: Likewise.
755         * wcsmbs/wcsmbsload.c: Likewise.
756         * wcsmbs/wcsmbsload.h: Likewise.
758         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
759         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
760         for XPG7.
761         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
762         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
763         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
764         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
765         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
766         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
768 2010-01-07  Roland McGrath  <roland@redhat.com>
770         * elf/elf.h (PN_XNUM): New macro.
772         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
773         literal 2.
775 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
777         * dirent/dirent.h: Fix typo in feature selection macro use.
779 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
781         [BZ #11115]
782         * stdlib/tst-makecontext3.c: New file.
783         * stdlib/Makefile (tests): Add new test.
785         * stdlib/tst-setcontext.c (check_called): Fix a typo.
787 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
789         * configure.in: Enable multi-arch by default if the assembler
790         supports gnu_indirect_function symbol type and the architecture
791         supports it.
793 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
795         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
796         is defined.
798 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
800         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
801         MACH_PORT_NULL when id != cttyid.
803 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
805         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
806         __mach_port_deallocate on rootdevid.
808 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
810         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
811         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
812         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
813         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
815 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
817         [BZ #10992]
818         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
819         Patch by Eric Blake <ebb9@byu.net>.
821 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
823         [BZ #11093]
824         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
825         POLLWRBAND also for POSIX 2008.
826         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
827         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
829         * include/link.h (struct link_map): Move l_used into its own word.
830         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
831         still zero.
832         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
833         never really used.
835 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
837         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
838         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
839         check processor feature.
840         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
841         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
842         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
843         (index_SSE2): Likewise.
845 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
847         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
848         if __ASSEMBLER__ is defined.
849         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
850         (bit_SSE4_2): Likewise.
851         (index_SSSE3): Likewise.
852         (index_SSE4_2): Likewise.
853         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
854         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
855         check processor feature.
856         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
857         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
858         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
859         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
860         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
861         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
862         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
864 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
866         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
868 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
870         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
872 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
874         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
875         O_DSYNC to match 2.6.33+ kernels.
876         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
877         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
879         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
880         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
881         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
883 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
885         [BZ #11000]
886         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
887         *herrnop before returning.
888         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
889         Likewise.
890         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
891         TRYAGAIN errors separately.
892         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
893         *name4_r after functions.
895 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
897         [BZ #11046]
898         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
899         version check.
901 2009-11-05  Bruno Haible  <bruno@clisp.org>
903         [BZ #11056]
904         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
905         argv argument as non-NULL.
906         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
908 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
910         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
911         recvmmsg.
912         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
913         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
915 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
917         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
918         registers.
919         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
920         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
921         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
923 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
925         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
926         SCHED_RESET_ON_FORK.
928 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
930         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
931         only used on truly ancient kernel if configuration requires a more
932         recent kernel.
934 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
936         [BZ #3662]
937         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
938         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
940         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
941         pass it on to __ptsname_internal.
942         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
943         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
944         All the code from __ptsname_r but take additional parameter.  Use that
945         instead of pointer to local stat64 variable.
946         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
947         variable.
948         * include/stdlib.h: Declare __ptsname_internal.
950         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
951         before the exec.
952         * sysdeps/unix/sysv/linux/grantpt.c: New file.
953         * login/programs/pt_chown.c (main): Don't print message on errors
954         when doing real work.
956         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
957         once.
959         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
960         irel relocations split out from...
961         (__libc_csu_init): ...here.
962         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
964 2009-11-23  Andreas Schwab  <schwab@redhat.com>
966         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
967         for timestamps also if __USE_XOPEN2K8.
968         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
969         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
970         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
971         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
973 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
975         * nscd/connections.c (restart): Try harder to re-exec.
977         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
979         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
980         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
981         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
982         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
983         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
984         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
986         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
987         Define.
988         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
990 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
992         [BZ #10162]
993         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
994         than software pipeline.  Properly recover from shorter read.
996 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
998         [BZ #10958]
999         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1000         initialized before using it.
1001         (_IO_putwc_unlocked): Likewise.
1003         [BZ #10918]
1004         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1005         in cast to not throw away const-ness of parameters.
1006         (__CPU_EQUAL_S): Likewise.
1007         (__CPU_OP_S): Likewise.
1009         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1010         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1011         this gratuitous change and we have to keep compatibility.
1012         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1013         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1014         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1015         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1016         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1017         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1019 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1022         of parameters of sync_file_range.
1023         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1024         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1025         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1026         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1027         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1028         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1030 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1032         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1033         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1034         is defined.
1035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1036         file.
1038 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1040         * posix/bug-regex30.c: New file.
1041         * posix/Makefile: Add rules to build and run bug-regex30.
1042         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1043         character lead bytes when there is a range in a COMPLEX_BRACKET.
1044         Reported by Oleg Bylatov.
1046 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1048         [BZ #10969]
1049         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1050         * locale/tst-duplocale.c: New file.
1051         * locale/Makefile (tests): Add tst-duplocale.
1053         [BZ #10968]
1054         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1055         Patch by Bruno Haible <bruno@clisp.org>.
1056         * locale/tst-locname.c: New file.
1057         * locale/Makefile (tests): Add tst-locname.
1059         [BZ #10972]
1060         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1061         constants from recent kernels.
1062         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1063         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1064         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1065         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1066         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1067         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1069 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1071         [BZ #10162]
1072         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1073         software pipeline.
1075 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1077         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1078         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1079         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1081 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1083         * posix/bug-regex29.c: Include stdio.h.
1085 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1087         [BZ #10939]
1088         * Versions.def: Define GLIBC_2.12 for libc.
1089         * manual/errno.texi: Add ERFKILL entry.
1090         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1091         for 2.12.
1092         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1093         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1095         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1096         F_GETOWN_EX definitions according to corrected kernel definitions.
1097         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1098         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1099         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1100         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1101         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1104 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1106         * version.h: Bump for 2.12 development.
1108 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1110         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1111         out of buffer space.
1112         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1113         map_v4v6_hostent running out of space.
1115 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1117         * string/bits/string3.h (memset): If the second parameter is constant
1118         and zero there is likely no transposition.
1119         Patch by Caolan McNamara <caolanm@redhat.com.
1121 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1123         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1124         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1126 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1128         * malloc/memusagestat.c (main): Fix spelling in an error message.
1130 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1132         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1133         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1135 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1138         readahead.
1140 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1142         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1143         relocate opd entry when resolving prelink conflicts.
1145 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1147         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1148         when -D_FILE_OFFSET_BITS=64.
1150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1151         of last two arguments when -D_FILE_OFFSET_BITS=64.
1152         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1154         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1155         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1156         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1157         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1159 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1161         [BZ #4457]
1162         * sysdeps/generic/libgcc_s.h: New file.
1163         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1165 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1167         * malloc/hooks.c (free_check): Restore locking and call _int_free
1168         appropriately.
1170 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1172         * version.h (VERSION): Bump for 2.11 release.
1173         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1175         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1177         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1179         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1180         to avoid warning.
1181         * stdlib/tst-strtoll.c (tests): Likewise.
1183         [BZ #9986]
1184         * time/strftime_l.c (__strftime_internal): Allow %OC.
1186         * misc/mkostemps.c: New file.
1187         * misc/mkostemps64.c: New file.
1189 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1191         * locale/programs/locale-spec.c: Include <error.h> and
1192         <libintl.h>.
1194         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1196 2009-10-28  Roland McGrath  <roland@redhat.com>
1198         * Makefile (dist-prepare): New target.
1199         (tag-for-dist): Target removed.
1200         (glibc-%.tar): Pattern rule removed.
1201         (%.tar): New pattern rule, does simple use of git archive.
1202         (dist-version): Remove variable definition.
1203         (dist): Just depend on that.  Add .tar.xz dependency.
1204         If dist-version variable not set on command line, depend on
1205         dist-prepare, re-invoke with dist-version set via git describe.
1207         * Makerules (%.xz): New pattern rule.
1209 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1211         * elf/ifuncdep2.c: Include ifunc-sel.h.
1212         (global): Delete.
1213         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1214         * elf/ifuncmain1.c (global): Delete.
1215         * elf/ifuncmain1vis.c: Likewise.
1216         * elf/ifuncmain2.c: Likewise.
1217         * elf/ifuncmain5.c: Likewise.
1218         * elf/ifuncmod3.c: Likewise.
1219         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1220         (foo_ifunc): Use ifunc_one.
1221         * elf/ifuncmain7.c: Likewise.
1222         * elf/ifuncmod1.c: Include ifunc-sel.h.
1223         (global): Define protected var.
1224         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1225         * elf/ifuncmod5.c: Likewise.
1226         * sysdeps/generic/elf/ifunc-sel.h: New file.
1227         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1229 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1231         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1232         (R_PPC_REL16*): Correct comments.
1233         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1234         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1235          R_PPC64_REL16_HA): Define.
1236         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1237         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1238         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1239         Delete unused "reloc" param.
1240         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1241         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1242         Delete "reloc" param.
1243         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1244         R_PPC_IRELATIVE.
1245         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1246         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1247         relocations.
1249 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1251         [BZ #10315]
1252         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1253         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1254         UDP_ENCAP_L2TPINUDP.
1256         [BZ #10349]
1257         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1258         parameter, specifying length of prefix.
1259         * stdio-common/tempname.c: Likewise.
1260         * include/stdio.h: Adjust prototypes.
1261         * libio/oldtmpfile.c: Adjust caller.
1262         * misc/mkdtemp.c: Likewise.
1263         * misc/mkostemp.c: Likewise.
1264         * misc/mkostemp64.c: Likewise.
1265         * misc/mkstemp.c:  Likewise.
1266         * misc/mkstemp64.c: Likewise.
1267         * misc/mktemp.c: Likewise.
1268         * stdio-common/tempnam.c: Likewise.
1269         * stdio-common/tmpfile.c: Likewise.
1270         * stdio-common/tmpnam.c: Likewise.
1271         * stdio-common/tmpnam_r.c: Likewise.
1272         * misc/mkstemps.c: New file.
1273         * misc/mkstemps64.c: New file.
1274         * stdlib/stdlib.h: Add prototypes.
1275         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1276         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1278 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1280         * locale/iso-639.def: Add sml entry.
1282         [BZ #10391]
1283         * resolv/res_send.c (send_dg): Initialize resplen.
1285         [BZ #10446]
1286         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1287         definition to the kernel's.
1288         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1290 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1292         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1293         offsets and record sizes in assert()s and response sending.
1294         * nscd/grpcache.c: Likewise.
1295         * nscd/hstcache.c: Likewise.
1296         * nscd/initgrcache.c: Likewise.
1297         * nscd/pwdcache.c: Likewise.
1299 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1301         [BZ #10540]
1302         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1303         /etc/hosts does not exist set errnop and herrnop appropriately.
1304         Patch by Steve Langasek <vorlon@debian.org>.
1306         [BZ #10553]
1307         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1308         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1310         [BZ #10564]
1311         * login/utmp_file.c (TIMEOUT): Increase to 10.
1313         [BZ #10609]
1314         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1315         for file names in case the syscall is not available.
1316         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1317         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1318         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1319         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1320         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1321         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1322         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1323         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1324         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1325         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1326         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1327         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1328         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1329         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1330         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1331         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1332         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1334         [BZ #10643]
1335         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1336         creation filed, remove the request from the 'requests' list and signal
1337         the caller that the request is finished.
1339         [BZ #10692]
1340         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1341         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1343         [BZ #10713]
1344         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1345         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1347         [BZ #10780]
1348         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1349         overflows the int return type.
1351         [BZ #10717]
1352         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1353         have to compute maxsize_total, we have to update the variables, and
1354         the also_total handling must happen after the repair.
1356         [BZ #10742]
1357         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1358         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1360 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1362         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1363         errno is always set when returning unsuccessfully.
1365 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1367         * malloc/memusage.c (update_data): Fix index wraparound handling
1368         so that buffer_cnt is actually reset.
1370 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1372         [BZ #10784]
1373         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1374         of the directory we look at into the static buffer if there is one
1375         at the start of the loop.
1377         [BZ #10789]
1378         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1379         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1381         [BZ #10840]
1382         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1383         __ASSUME_F_GETOWN_EX.
1384         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1385         if possible.
1386         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1388         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1389         and f_owner_ex.
1390         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1391         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1392         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1393         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1394         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1395         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1397         [BZ #10847]
1398         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1399         getutmpx symbol.
1401         [BZ #10823]
1402         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1403         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1405 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1407         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1409 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1411         [BZ #10817]
1412         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1413         Reported by Ray Chason.
1415 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1417         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1418         strend-sse4.
1419         * sysdeps/x86_64/multiarch/strchr.S: New file.
1420         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1421         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1423 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1425         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1427 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1429         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1430         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1431         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1432         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1433         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1434         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1435         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1436         __ieee751_expl to handle overflow.
1438 2009-10-14  David S. Miller  <davem@davemloft.net>
1440         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1441         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1443 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1445         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1446         !USE_MULTIARCH.
1448 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1450         [BZ #10730]
1451         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1452         Patch in part by Steve Ward <planet36@gmail.com>.
1454         [BZ #10731]
1455         * stdlib/rand_r.c: Fix typo.
1457         * po/cs.po: Update from translation team.
1459 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1461         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1462         returning if RTLD_NOLOAD.
1464 2009-10-06  Roland McGrath  <roland@redhat.com>
1466         * sysdeps/x86_64/multiarch/strstr-c.c
1467         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1469         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1470         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1472         * sysdeps/x86_64/multiarch/init-arch.h
1473         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1474         (HAS_CPU_FEATURE): New macro.
1475         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1476         * sysdeps/x86_64/multiarch/init-arch.c
1477         (__get_cpu_features): #undef it before definition.
1479 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1481         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1482         first_weekday to 1 and first_workday to 2.
1484 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1486         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1487         F_GETOWN_EX.
1488         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1489         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1490         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1491         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1492         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1493         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1495 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1497         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1498         * stdio-common/vfprintf.c: Likewise.
1500 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1502         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1503         (mkdirat): Call __directory_name_split_at instead of
1504         __directory_name_split.
1506 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1508         * locale/programs/locale-spec.c (locale_special): If nothing matches
1509         fail with an appropriate message.
1511 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1513         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1514         and XX.
1516 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1518         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1519         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1521 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1523         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1525 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1527         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1528         character size elements in step data.
1530 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1532         * po/hu.po: Update from translation team.
1533         * po/vi.po: Likewise.
1535 2009-09-19  Roland McGrath  <roland@redhat.com>
1537         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1539 2009-09-15  Roland McGrath  <roland@redhat.com>
1541         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1542         * nptl/sysdeps/pthread/configure: Regenerated.
1543         * nptl/sysdeps/x86_64/configure: Regenerated.
1544         * sysdeps/unix/sysv/linux/configure: Regenerated.
1545         * sysdeps/x86_64/elf/configure: Regenerated.
1547         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1549         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1550         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1551         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1552         * configure: Regenerated.
1554 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1556         * posix/getconf.c (main): Handle -- on command line.
1558 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1560         * configure.in: Support binutils 2.100 and 3.0.
1562 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1564         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1565         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1566         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1567         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1569 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1571         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1572         unnamed_section_defined field.
1573         (collate_read): Test and set unnamed_section_defined.
1575         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1576         _POSIX2_LINE_MAX.
1578 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1580         * configure.in: Support binutils 2.20.
1582 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1584         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1585         __strstr_ia32): Add attribute_hidden.
1587 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1589         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1590         parsing of group entry.
1592 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1594         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1595         external buffer.  Always discard readahead in internal buffer.
1596         * libio/Makefile (tests): Add bug-wsetpos.
1597         * libio/bug-wsetpos.c: New file.
1599 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1601         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1602         Add attribute_hidden.
1603         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1604         __strcasestr_sse2): Likewise.
1605         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1606         (__fma_fma): Make static.
1607         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1608         (__fmaf_fma): Make static.
1610 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1612         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1613         reformulate in-buffer optimisation check to match code in
1614         _IO_new_file_seekoff.
1616 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1618         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1619         to srwi in 32-bit memcpy for power6.
1621 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1623         * include/stdio.h: Declare hidden proto for fflush.
1624         * libio/iofflush.c: Add hidden weak alias for fflush.
1626 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1628         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1629         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1631 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1633         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1635 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1637         [BZ #10560]
1638         * malloc/malloc.c: Add local assert definition to avoid problems with
1639         memory allocation in the real one.
1641 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1643         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1644         Removed.
1645         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1646         turn off SSSE3 on Atom.
1648 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1650         * stdlib/tst-strtol.c (tests): More tests.
1651         * stdlib/tst-strtoll.c (tests): Likewise.
1653 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1655         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1657         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1659 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1661         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1662         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1664         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1666         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1668         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1670 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1672         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1674 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1676         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1677         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1679         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1681         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1682         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1684         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1685         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1687         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1688         leftover YMM_SIZE definition.
1690 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1692         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1693         union.
1694         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1695         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1696         Redefine.
1697         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1699         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1700         and SET_FLOAT_WORD definitions.
1702 2009-08-24  Roland McGrath  <roland@redhat.com>
1704         * sysdeps/unix/syscall-template.S: New file.
1705         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1706         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1707         (compile-syscall): Pass mkdep and -g options as normal.
1708         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1709         (common-generated): Don't add them here.
1711 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1713         * math/s_fdim.c: In case of overflows set errno.
1714         * math/s_fdimf.c: Likewise.
1715         * math/s_fdiml.c: Likewise.
1717         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1718         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1719         are using the inline optimizations.
1721         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1722         (__signbitf): Likewise.
1724 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1726         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1727         terminated.
1728         * posix/Makefile (tests): Add bug-regex29.
1729         * posix/bug-regex29.c: New file.
1731         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1732         older POSIX versions are selected.
1734         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1735         as well.
1736         * stdio-common/printf_fphex.c: Likewise.
1737         * stdio-common/tstdiomisc.c: Add more tests.
1739         * locale/locale.h: Include xlocale.h and the thread-local locale
1740         declarations for XPG7, not XPG6.
1742 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1744         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1745         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1748         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1749         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1751 2009-08-20  Roland McGrath  <roland@redhat.com>
1753         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1754         Use l_addr instead of l_map_start (dli_fbase).
1755         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1756         address when there is no proximate symbol.
1757         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1758         Likewise.
1760 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1762         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1764 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1766         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1767         Also handle SIGINT.  In that case only do the cleanup and then
1768         re-raise the signal.
1769         (main): Install handler for SIGINT.
1771 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1773         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1774         clobber list.
1776 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1778         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1779         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1780         tst-auditmod7b.c.
1781         (tests): Add tst-audit6 tst-audit7.
1782         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1783         tst-auditmod7a tst-auditmod7b.
1784         ($(objpfx)tst-audit6): New.
1785         ($(objpfx)tst-audit6.out): Likewise.
1786         ($(objpfx)tst-audit7): Likewise.
1787         ($(objpfx)tst-audit7.out): Likewise.
1788         (tst-audit6-ENV): Likewise.
1789         (tst-audit7-ENV): Likewise.
1790         (CFLAGS-tst-auditmod6b.c): Likewise.
1791         (CFLAGS-tst-auditmod6c.c): Likewise.
1792         (CFLAGS-tst-auditmod7b.c): Likewise.
1793         * elf/tst-audit6.c: New file.
1794         * elf/tst-audit7.c: New file.
1795         * elf/tst-auditmod6a.c: New file.
1796         * elf/tst-auditmod6b.c: New file.
1797         * elf/tst-auditmod6c.c: New file.
1798         * elf/tst-auditmod7a.c: New file.
1799         * elf/tst-auditmod7b.c: New file.
1800         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1801         saving and restoring SSE/AVX registers to ...
1802         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1804 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1806         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1807         only if SHARED is defined.
1808         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1810 2009-08-03  Jim Meyering  <meyering@redhat.com>
1812         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1814 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1816         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1817         section as the other functions for this architecture.
1818         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1820 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1822         * sysdeps/x86_64/strcmp.S: Add support to compile with
1823         USE_SSSE3.  In this case palignr is used.
1824         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1825         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1826         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1827         Add strcmp-ssse3 and strncmp-ssse3.
1828         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1829         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1831         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1832         warning through fake initialization.
1834 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1836         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1838 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1840         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1841         unique symbols.
1843 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1845         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1846         EBX from EAX = 1.  Handle EAX = 11.
1848 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1850         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1851         inside ''.
1853 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1855         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1856         hidden IFUNC functions.
1857         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1859         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1861         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1862         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1863         strcasestr-c.
1864         (CFLAGS-strcspn-c.c): Define.
1865         (CFLAGS-strpbrk-c.c): Define.
1866         (CFLAGS-strspn-c.c): Define.
1867         (CFLAGS-strstr.c): Define.
1868         (CFLAGS-strcasestr.c): Define.
1869         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1870         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1871         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1872         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1873         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1874         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1875         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1876         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1877         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1878         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1879         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1880         -16L instead of 0xfffffffffffffff0L.
1881         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1883 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1885         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1887 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1889         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1890         another rewrite.  Much smaller and faster.
1891         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1893         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1894         ss_flags from the correct location.
1896 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1898         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1899         * sysdeps/i386/i686/cacheinfo.c: New file.
1900         * sysdeps/i386/i686/multiarch/Makefile: New file.
1901         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1902         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1903         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1904         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1905         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1906         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1907         (__cpuid_count): New. Provide the default.
1908         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1909         (__x86_64_preferred_memory_instruction): Define only if
1910         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1911         (intel_check_word): Use __cpuid.
1912         (handle_intel): Likewise.
1913         (handle_amd): Likewise.
1914         (__cache_sysconf): Likewise.
1915         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1916         (__cache_sysconf): Likewise.
1917         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1918         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1919         (get_common_indeces): Use __cpuid.
1920         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1921         if ENABLE_SSSE3_ON_ATOM is not defined.
1922         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1923         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1924         popcnt instead of popcntq.
1926 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1928         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1930 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1932         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1933         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1934         which always causes a compile error.
1936         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1938         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1939         comes from...
1940         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1941         which always causes a compile error.
1943         * debug/Makefile (tests): Add tst-longjmp_chk2.
1944         * debug/tst-longjmp_chk2.c: New file.
1946         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1947         Remove incorrect use of BP_SYM.
1948         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1949         here now since it is more complex than just a simple check.
1951         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1952         we make no more progress.
1954 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1956         * math/s_fma.c: Don't define alias if __fma is a macro.
1957         * math/s_fmaf.c: Likewise.
1958         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1959         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1960         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1962         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1963         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1964         New macro HAS_FMA.
1965         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1966         function.
1967         * include/libc-symbols.h (libm_ifunc): Define.
1968         * sysdeps/x86_64/multiarch/Versions: New file.
1970         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1972 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1974         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1976 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1978         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1979         call that registers used in calling conventions need to be preserved.
1980         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1981         to preserve register content if necessary.
1982         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1983         (_dl_x86_64_restore_sse): New function.
1984         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1985         is allowed to modify xmm/ymm registers.
1987         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1988         application's perspective.
1989         * stdio-common/scanf17.c: Likewise.
1991 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1993         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1994         size to memsz.
1995         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1996         here.
1997         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1998         two steps to catch bugs.
2000 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2002         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2003         determines which files are used in runtime lookups and only checks
2004         those for SSE use.
2005         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2006         testing.
2007         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2008         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2009         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2010         take a while.
2012         * elf/dl-open.c: Move _dl_scope_free to...
2013         * elf/dl-scope.c: ...here.  New file.
2014         * elf/Makefile (dl-routines): Add scope.
2016         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2017         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2018         RES_USE_DNSSEC.
2019         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2020         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2021         all the places we handled RES_USE_EDNS0 only before.
2022         Patch by Adam Tkac <atkac@redhat.com>.
2024 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2026         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2027         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2028         Update size when reallocating.
2030 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2032         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2033         functions used in ld.so modify xmm/ymm registers.
2034         * sysdeps/x86_64/Makefile:  Hook new test up.
2035         * sysdeps/x86_64/rtld-memchr.c: New file.
2036         * sysdeps/x86_64/rtld-memcmp.c: New file.
2037         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2038         * sysdeps/x86_64/rtld-strchr.S: New file.
2039         * sysdeps/x86_64/rtld-strlen.S: New file.
2040         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2041         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2043 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2045         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2046         strncmp-c.
2047         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2048         (exit): Likewise.
2049         (Byte1): Likewise.
2050         (Byte2): Likewise.
2051         (Byte3): Likewise.
2052         (Byte4): Likewise.
2053         (Byte5): Likewise.
2054         (Byte6): Likewise.
2055         (next_8_bytes): Likewise.
2056         (Byte0): Remove commented out codes.
2057         (unaligned_table): Align jump table at 8 bytes.
2058         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2059         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2060         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2061         * sysdeps/x86_64/strncmp.S: New file.
2063 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2065         [BZ #10422]
2066         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2067         kernels, dropped when eventfd2 support was added.
2068         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2069         kernels, dropped when signalfd4 support was added.
2070         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2071         added, name them.
2073         [BZ #10452]
2074         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2075         replies up.
2077         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2079 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2081         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2082         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2084         [BZ #10448]
2085         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2086         callback we must touch the status to avoid using stale value.
2088         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2089         compiled in.
2091 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2093         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2094         /lib/modules/* headers anymore.  We have sane headers in the standard
2095         place now.
2097 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2099         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2100         "etf3enh" and "highgprs" added.
2101         (_dl_s390_platforms): "z10" added.
2102         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2103         Increased for the new entries.
2104         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2105         HWCAP_S390_HIGH_GPRS added.
2107         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2108         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2109         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2110         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2111         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2113 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2115         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2116         avoid additional cpuid instructions.  Most of the information is
2117         stored somewhere.
2119         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2120         cache descriptors.
2121         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2123         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2124         SSSE3 bit for Atoms.
2125         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2126         here anymore.
2128         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2129         structure before copying it to avoid warning.
2130         * posix/tst-rfc3484-2.c (do_test): Likewise.
2131         * posix/tst-rfc3484-3.c (do_test): Likewise.
2133         [BZ #10416]
2134         * include/unistd.h: Make header file suitable for C++ test cases.
2135         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2137         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2138         stack alignment in the exit code.
2140         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2141         potentially be zero.
2143         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2144         unique symbol definition.
2145         Patch by Jakub Jelinek.
2146         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2147         make sure the object with the definition cannot be unloaded.  Adjust
2148         a few types.
2149         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2150         the unique symbol hash table should not be const.
2152 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2154         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2155         unnecesary variables.  Comment fixes.
2157 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2159         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2160         Use NONASCII_CASE information provided by the locale to determine
2161         whether optimized string load function can be used.  Minor cleanups.
2163 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2165         * string/strcasestr.c (STRCASESTR): New macro.
2166         (__strcasestr): Renamed to ..
2167         (STRCASESTR): ...this.
2168         * string/strstr.c (STRSTR): New macro.
2169         (strstr): Renamed to ..
2170         (STRSTR): ...this.
2171         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2172         strstr-c strcasestr-c
2173         (CFLAGS-strstr.c): New.
2174         (CFLAGS-strcasestr.c): Likewise.
2175         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2176         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2177         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2178         * sysdeps/x86_64/multiarch/strstr.c: New file.
2180 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2182         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2183         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2184         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2185         _NL_CTYPE_NONASCII_CASE.
2186         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2187         field.
2188         (ctype_finish): Check whether there are any 8-bit characters outside
2189         the range ASCII has or whether the mapping isn't the same as for
2190         ASCII (±0x20).  Set nonascii_case appropriately.
2191         (ctype_output): Add output handler for nonascii_case.
2193 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2195         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2196         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2198 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2200         [BZ #10360]
2201         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2202         0xffff in the EDNS0 record.
2204 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2206         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2207         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2208         is written before the list head update.
2209         Patch by Andreas Schwab <aschwab@redhat.com>.
2211 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2212             Jakub Jelinek  <jakub@redhat.com>
2214         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2215         corruption thread-safe.
2217 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2219         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2220         overrides atomic_compare_and_exchange_val_rel, define to
2221         atomic_compare_and_exchange_val_rel by default, otherwise default
2222         to catomic_compare_and_exchange_val_acq.
2223         (catomic_compare_and_exchange_bool_rel): If arch overrides
2224         atomic_compare_and_exchange_bool_rel, define to
2225         atomic_compare_and_exchange_bool_rel by default.
2226         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2227         Use catomic_compare_and_exchange_val_rel instead of
2228         catomic_compare_and_exchange_val_acq.
2230 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2232         * sysdeps/generic/ldsodefs.h: Add prototype for
2233         _dl_higher_prime_number.
2234         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2236         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2237         restoring of ymm registers a bit.
2239 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2241         * sysdeps/x86_64/memcmp.S: New file.
2243 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2245         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2246         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2247         pointers in writable memory.
2249 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2251         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2252         * config.make.in: Add config-cflags-avx entry.
2253         * configure.in: Substitute libc_cv_cc_avx.
2254         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2255         * elf/tst-audit4.c: New file.
2256         * elf/tst-audit5.c: New file.
2257         * elf/tst-auditmod4a.c: New file.
2258         * elf/tst-auditmod4b.c: New file.
2259         * elf/tst-auditmod5a.c: New file.
2260         * elf/tst-auditmod5b.c: New file.
2261         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2262         link-defines.sym.
2263         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2264         (La_x86_64_vector): Likewise.
2265         (La_x86_64_regs): Append lr_vector.
2266         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2267         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2268         saving and restoring SSE registers to ...
2269         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2270         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2271         <link-defines.h>.
2272         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2273         La_x86_64_regs.  Allocate extra space and jump to memory at
2274         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2275         (save_and_restore_vector_sse): New.
2276         (save_and_restore_vector_avx): Likewise.
2277         (check_avx): Likewise.
2278         (save_and_restore_vector): Likewise.
2279         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2280         HAVE_AVX_SUPPORT.
2281         * sysdeps/x86_64/link-defines.sym: New file.
2283 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2285         * elf/do-lookup.h: Removed after folding content into...
2286         * elf/dl-lookup.c: ...here.
2288         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2290 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2292         * configure.in: Check for gnu_unique_symbol symbol type.
2293         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2294         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2295         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2296         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2297         change.
2298         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2299         unique symbol table.
2300         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2301         for first namespace.
2302         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2303         unique symbol hash table.
2304         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2305         * elf/tst-unique1.c: New file.
2306         * elf/tst-unique1mod1.c: New file.
2307         * elf/tst-unique1mod2.c: New file.
2308         * elf/tst-unique2.c: New file.
2309         * elf/tst-unique2mod1.c: New file.
2310         * elf/tst-unique2mod2.c: New file.
2312 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2314         * elf/elf.h (STB_GNU_UNIQUE): Define.
2316         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2317         from...
2318         * include/inline-hashtab.h: ...here.
2319         (htab_expand): Adjust for renamed function.  Correct memory handling.
2321 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2323         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2325 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2327         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2328         (PPC_FEATURE_HAS_VSX): Likewise.
2330 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2332         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2333         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2335         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2336         aligned to 16 byte boundaries.
2337         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2338         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2339         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2341 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2343         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2344         * config.make.in (config-cflags-sse4): New variable.
2345         * configure.in: Substitute libc_cv_cc_sse4.
2346         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2347         HAVE_SSE4_SUPPORT.
2348         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2349         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2350         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2351         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2352         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2353         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2354         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2355         * sysdeps/x86_64/multiarch/strspn.S: New file.
2357 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2359         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2360         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2361         (tests): Add tst-audit3 for x86_64.
2362         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2363         ($(objpfx)tst-audit3): Define.
2364         ($(objpfx)tst-audit3.out): Define.
2365         (tst-audit3-ENV): Define.
2366         * elf/tst-audit3.c: New file.
2367         * elf/tst-auditmod3a.c: New file.
2368         * elf/tst-auditmod3b.c: New file.
2369         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2370         and restore xmm6.
2372         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2373         (__stpncpy): Renamed to ...
2374         (STPNCPY): This.
2375         (stpncpy): Create alias only if STPNCPY is not defined.
2376         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2377         defined.
2378         (strncpy): Renamed to ...
2379         (STRNCPY): This.
2380         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2381          stpncpy-c strncpy-c for string.
2382         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2383         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2384         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2385         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2386         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2387         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2389 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2391         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2392         adding to fast bin list.
2394 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2396         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2397         inet_makeaddr.  This worked only with class-based networks.
2398         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2399         Likewise.
2401         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2402         recognize all types.
2403         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2404         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2405         be in host byte order.
2407 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2409         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2410         (MODEL_OFFSET): Define.
2411         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2412         family and model.
2413         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2414         out common code into new function get_common_indeces. Determine
2415         extended family and model for Intel processors.
2417 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2419         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2420         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2421         option.
2422         * resolv/res_send.c (reopen): New function.  Broken out of...
2423         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2424         fallback mechanism.  If single-request fails switch to
2425         single-request-reopen mode which opens a new socket for the second
2426         request.
2428 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2430         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2431         (CHECK_SP): Use it.
2433 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2435         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2436         for saved registers.
2437         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2438         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2439         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2441 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2443         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2445 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2447         * po/id.po: Update from translation team.
2449         * po/bg.po: Update from translation team.
2451 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2453         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2454         defined.
2455         (strncmp): Renamed to STRNCMP.
2456         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2457         strncmp-c for string.
2458         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2459         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2460         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2461         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2463 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2465         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2466         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2467         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2468         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2469         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2470         ifuncmain7static.c.
2471         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2472         ifuncmain7static, and ifuncmain7picstatic.
2473         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2474         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2475         $(objpfx)ifuncmain7pie.out.
2476         (modules-names): Add ifuncmod5 ifuncmod6
2477         (ifuncmod5.so-no-z-defs): Define.
2478         (ifuncmod6.so-no-z-defs): Define.
2479         (CFLAGS-ifuncmain5pic.c): Define.
2480         (CFLAGS-ifuncmain5picstatic.c): Define.
2481         (CFLAGS-ifuncmain5staticpic.c): Define.
2482         (CFLAGS-ifuncdep5pic.c): Define.
2483         (CFLAGS-ifuncmain7pic.c): Define.
2484         (CFLAGS-ifuncmain7picstatic.c): Define.
2485         (CFLAGS-ifuncmain1staticpie.c): Define.
2486         (CFLAGS-ifuncmain5pie.c): Define.
2487         (CFLAGS-ifuncmain6pie.c): Define.
2488         (CFLAGS-ifuncmain7pie.c): Define.
2489         ($(objpfx)ifuncmain1staticpie.out): Define.
2490         ($(objpfx)ifuncmain1staticpie): Define.
2491         ($(objpfx)ifuncmain5pie.out): Define.
2492         ($(objpfx)ifuncmain5pie): Define.
2493         ($(objpfx)ifuncmain6pie.out): Define.
2494         ($(objpfx)ifuncmain6pie): Define.
2495         ($(objpfx)ifuncmain5): Define.
2496         ($(objpfx)ifuncmain5pic): Define.
2497         ($(objpfx)ifuncmain5static): Define.
2498         ($(objpfx)ifuncmain5staticpic): Define.
2499         ($(objpfx)ifuncmain5picstatic): Define.
2500         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2501         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2502         ifuncmain6pie.out.
2503         * elf/b/elf/ifuncmain1staticpie.c: New file.
2504         * elf/ifuncdep5.c: New file.
2505         * elf/ifuncdep5pic.c: New file.
2506         * elf/ifuncmain5.c: New file.
2507         * elf/ifuncmain5pic.c: New file.
2508         * elf/ifuncmain5picstatic.c: New file.
2509         * elf/ifuncmain5pie.c: New file.
2510         * elf/ifuncmain5static.c: New file.
2511         * elf/ifuncmain5staticpic.c: New file.
2512         * elf/ifuncmain6pie.c: New file.
2513         * elf/ifuncmain7.c: New file.
2514         * elf/ifuncmain7pic.c: New file.
2515         * elf/ifuncmain7picstatic.c: New file.
2516         * elf/ifuncmain7pie.c: New file.
2517         * elf/ifuncmain7static.c: New file.
2518         * elf/ifuncmod5.c: New file.
2519         * elf/ifuncmod6.c: New file.
2521 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2523         [BZ #10085]
2524         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2525         (nss_endgrent): New variable.
2526         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2527         fields. Change type of files to bool and adjust all users.
2528         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2529         (internal_endgrent): Call nss_endgrent if necessary.
2530         (add_group): New function.  Broken out of...
2531         (check_and_add_group): ...here.
2532         (getgrent_next_nss): Remove test that any callback is available.
2533         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2534         callback.  If there is no blacklist we can trust the results returned
2535         by the initgroups_dyn callback.  In case there is a callback and we
2536         find a group entry for the group ID but it doesn't contain the
2537         correct member, switch to the slow mode and use getgrent_r.
2538         (internal_getgrent_r): When we see a +: entry, determine whether
2539         there is any callback and which we can use the initgroups_dyn
2540         callback.
2542 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2544         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2545         (_int_free): Likewise.
2547         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2548         AF_IEEE802154.
2549         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2550         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2551         and ARPHRD_IEEE802154_PHY.
2553         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2554         relative to generic Linux version.
2556 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2558         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2559         ($(objpfx)ifuncmain1vispie): Likewise.
2561 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2563         * login/Makefile: Build pt_chown as PIE.
2565 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2567         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2568         a format string.
2569         * elf/sln.c (usage): Likewise.
2570         * malloc/memusage.sh (do_help): Likewise.
2571         * nss/getent.c (more_help): Likewise.
2572         * posix/getconf.c (main): Likewise.
2573         * sunrpc/rpcinfo.c (usage): Likewise.
2574         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2576 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2578         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2579         those needed.
2580         * login/Makefile: If necessary link pt_chown with -lcap.
2581         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2582         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2584 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2586         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2587         comparisons.
2588         * string/test-memchr.c (do_random_tests): Test very large lengths
2589         as well.
2591 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2593         * Makeconfig (+link-pie): Define.
2594         (+prectorS): Define.
2595         (+postctorS): Define.
2596         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2597         * nscd/Makefile ($(objpfx)nscd): Likewise.
2599 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2601         [BZ #10107]
2602         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2603         with cmplwi.
2604         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2606 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2608         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2609         into ...
2610         * sysdeps/unix/grantpt.c: ...here.
2612 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2614         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2615         chmod if it is necessary.
2617         [BZ #10166]
2618         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2619         when the slave device is in devpts or devfs.
2621         [BZ #10183]
2622         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2624         [BZ #10195]
2625         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2626         of nd_opt_home_agent_info_preference to uint16_t.
2627         Patch by Arnaud Ebalard <arno@natisbad.org>.
2629         [BZ #10207]
2630         * nss/getent.c: Add support for printing gshadow data.
2632         [BZ #10203]
2633         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2634         not just the currently used one and those which follow.
2635         Patch by Joe Landers <jlanders@vmware.com>.
2637         [BZ #10196]
2638         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2639         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2640         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2642         [BZ #10217]
2643         * stdlib/abort.c: Define variable __abort_msg.
2644         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2645         * include/stdlib.h: Declare __abort_msg.
2646         * assert/assert-perr.c: Don't free buffer for message immediately.
2647         Store atomically in __abort_msg and free old buffer if necessary.
2648         * assert/assert.c: Likewise.
2649         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2650         store pointer in __abort_msg, and possibly free old string.
2651         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2653         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2655         [BZ #10211]
2656         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2657         handle leap seconds if they are available.
2658         Patch by Akinori Hattori <hattya@gentoo.org>.
2660         * timezone/tzselect.ksh: Update from tzcode2009i.
2661         * timezone/zdump.c: Likewise.
2662         * timezone/zic.c: Likewise.
2664         * timezone/africa: Update from tzdata2009i.
2665         * timezone/antarctica: Likewise.
2666         * timezone/asia: Likewise.
2667         * timezone/australasia: Likewise.
2668         * timezone/backward: Likewise.
2669         * timezone/etcetera: Likewise.
2670         * timezone/europe: Likewise.
2671         * timezone/factory: Likewise.
2672         * timezone/iso3166.tab: Likewise.
2673         * timezone/leapseconds: Likewise.
2674         * timezone/northamerica: Likewise.
2675         * timezone/pacificnew: Likewise.
2676         * timezone/solar87: Likewise.
2677         * timezone/solar88: Likewise.
2678         * timezone/solar89: Likewise.
2679         * timezone/southamerica: Likewise.
2680         * timezone/systemv: Likewise.
2681         * timezone/yearistype: Likewise.
2682         * timezone/zone.tab: Likewise.
2684 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2686         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2687         STT_GNU_IFUNC symbol or in 8 into type_class.
2689         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2690         instead of Elf64_Addr.
2692 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2694         * po/sv.po: Update from translation team.
2696         [BZ #10229]
2697         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2698         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2699         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2700         the C version.
2702 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2704         * Versions.def: Add GLIBC_2.11 for libpthread.
2706 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2708         * resolv/res_send.c (send_dg): Remember we switched to
2709         single-request mode.
2711 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2713         * dlfcn/dlfcn.h: Remove comma at end of enum.
2714         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2716         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2717         parsing mode string.
2719 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2721         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2723         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2725         * sysdeps/x86_64/multiarch/strlen.S: New file.
2726         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2727         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2728         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2729         content.
2731         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2732         is defined.
2734 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2736         * sysdeps/x86_64/strlen.S: Minor optimizations.
2738 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2740         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2741         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2742         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2743         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2744         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2745         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2746         ifuncmain3.c, ifuncmod3.c,.
2747         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2748         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2749         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2750         ifuncmain4picstatic.
2751         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2752         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2753         ifuncmain3, ifuncmain4.
2754         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2755         $(objpfx)ifuncmain1vispie.out.
2756         (modules-names): Add ifuncmod1 ifuncmod3.
2757         (generated): Add ifuncmain1pie ifuncmain1pie.out
2758         ifuncmain1vispie ifuncmain1vispie.out.
2759         Define rules to build and run the tests.
2760         * elf/ifuncdep1.c: New file.
2761         * elf/ifuncdep1pic.c: New file.
2762         * elf/ifuncdep2.c: New file.
2763         * elf/ifuncdep2pic.c: New file.
2764         * elf/ifuncmain1.c: New file.
2765         * elf/ifuncmain1pic.c: New file.
2766         * elf/ifuncmain1picstatic.c: New file.
2767         * elf/ifuncmain1pie.c: New file.
2768         * elf/ifuncmain1static.c: New file.
2769         * elf/ifuncmain1staticpic.c: New file.
2770         * elf/ifuncmain1vis.c: New file..
2771         * elf/ifuncmain1vispic.c: New file..
2772         * elf/ifuncmain1vispie.c: New file.
2773         * elf/ifuncmain2.c: New file.
2774         * elf/ifuncmain2pic.c: New file.
2775         * elf/ifuncmain2picstatic.c: New file.
2776         * elf/ifuncmain2static.c: New file.
2777         * elf/ifuncmain3.c: New file.
2778         * elf/ifuncmain4.c: New file.
2779         * elf/ifuncmain4picstatic.c: New file.
2780         * elf/ifuncmain4static.c: New file.
2781         * elf/ifuncmod1.c: New file.
2782         * elf/ifuncmod3.c: New file.
2784 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2786         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2788 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2790         [BZ #10221]
2791         * posix/Makefile (routines): Add execvpe.
2792         * posix/Versions: Export execvpe for GLIBC_2.11.
2793         * posix/execvp.c: Now only a wrapper.  Move code to...
2794         * posix/execvpe.c: ...here.  New file.
2795         * posix/unistd.h: Declare execvpe.
2797 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2799         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2800         for STT_GNU_IFUNC handling for efficiency.
2801         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2803         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2804         _exit.
2805         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2807 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2809         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2810         for !SHARED.
2812 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2814         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2815         is not defined.
2816         (__rela_iplt_start): New declaration.
2817         (__rela_iplt_end): Likewise.
2818         (__rel_iplt_start): Likewise.
2819         (__rel_iplt_end): Likewise.
2820         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2821         * elf/elf.h (R_386_IRELATIVE): New macro.
2822         (R_X86_64_IRELATIVE): New macro.
2823         (R_386_NUM): Updated.
2824         (R_X86_64_NUM): Likewise.
2825         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2826         (libc_ifunc_hidden_def): New macro.
2827         * sysdeps/generic/dl-irel.h: New file.
2828         * sysdeps/i386/dl-irel.h: New file.
2829         * sysdeps/x86_64/dl-irel.h: New file.
2830         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2831         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2832         Handle R_386_IRELATIVE.
2833         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2834         (elf_machine_lazy_rela): Likewise.
2835         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2836         R_X86_64_IRELATIVE.
2837         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2839 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2841         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2842         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2843         are no differences.  If an architecture has bits in CPUID index 1
2844         meaning different things the values for the COMMON_CPUID_INDEX_1
2845         index must not be set.
2846         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2847         (HAS_POPCOUNT): ...this.  New macro.
2848         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2849         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2850         to set the value for Intel and AMD architectures.
2851         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2852         INTEL_CPUID_INDEX_1.
2853         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2854         change.
2856 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2858         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2859         and $build.
2861 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2863         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2864         (__expm1l): Set errno to ERANGE on overflow.
2865         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2866         (__tanl): Set errno to EDOM for Â±Inf.
2867         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2868         (__cosl): Set errno to EDOM for Â±Inf.
2869         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2870         (__sinl): Set errno to EDOM for Â±Inf.
2872         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2873         defined, use it.
2874         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2875         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2876         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2878 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2880         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2881         code accessing it.
2882         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2884 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2886         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2887         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2888         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2889         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2891         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2892         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2893         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2894         defined.
2895         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2896         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2898 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2900         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2901         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2902         is, either do nothing at all if __ASSUME_ACCEPT4, or
2903         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2904         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2905         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2906         define.
2907         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2908         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2909         internal_accept4 in socket directory.
2911 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2913         * sysdeps/ia64/configure.in: New file.
2915 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2917         [BZ #10162]
2918         * sysdeps/ia64/memchr.S: Use speculative load.
2920         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2921         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2922         use it.
2924         * sysdeps/i386/__longjmp.S: Add .text.
2925         * sysdeps/x86_64/__longjmp.S: Likewise.
2927 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2929         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2930         __ASSUME_ACCEPT4 for IA-64.
2932 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2934         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2936         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2937         (SOCKOP_accept4): Define.
2939 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2941         Sun approved the change of the license.
2942         * sunrpc/auth_des.c: Replace license text.
2943         * sunrpc/auth_none.c: Likewise.
2944         * sunrpc/auth_unix.c: Likewise.
2945         * sunrpc/authdes_prot.c: Likewise.
2946         * sunrpc/authuxprot.c: Likewise.
2947         * sunrpc/bindrsvprt.c: Likewise.
2948         * sunrpc/clnt_gen.c: Likewise.
2949         * sunrpc/clnt_perr.c: Likewise.
2950         * sunrpc/clnt_raw.c: Likewise.
2951         * sunrpc/clnt_simp.c: Likewise.
2952         * sunrpc/clnt_tcp.c: Likewise.
2953         * sunrpc/clnt_udp.c: Likewise.
2954         * sunrpc/clnt_unix.c: Likewise.
2955         * sunrpc/des_crypt.c: Likewise.
2956         * sunrpc/des_soft.c: Likewise.
2957         * sunrpc/get_myaddr.c: Likewise.
2958         * sunrpc/getrpcport.c: Likewise.
2959         * sunrpc/key_call.c: Likewise.
2960         * sunrpc/key_prot.c: Likewise.
2961         * sunrpc/openchild.c: Likewise.
2962         * sunrpc/pm_getmaps.c: Likewise.
2963         * sunrpc/pm_getport.c: Likewise.
2964         * sunrpc/pmap_clnt.c: Likewise.
2965         * sunrpc/pmap_prot.c: Likewise.
2966         * sunrpc/pmap_prot2.c: Likewise.
2967         * sunrpc/pmap_rmt.c: Likewise.
2968         * sunrpc/rpc/auth.h: Likewise.
2969         * sunrpc/rpc/auth_unix.h: Likewise.
2970         * sunrpc/rpc/clnt.h: Likewise.
2971         * sunrpc/rpc/des_crypt.h: Likewise.
2972         * sunrpc/rpc/key_prot.h: Likewise.
2973         * sunrpc/rpc/netdb.h: Likewise.
2974         * sunrpc/rpc/pmap_clnt.h: Likewise.
2975         * sunrpc/rpc/pmap_prot.h: Likewise.
2976         * sunrpc/rpc/pmap_rmt.h: Likewise.
2977         * sunrpc/rpc/rpc.h: Likewise.
2978         * sunrpc/rpc/rpc_des.h: Likewise.
2979         * sunrpc/rpc/rpc_msg.h: Likewise.
2980         * sunrpc/rpc/svc.h: Likewise.
2981         * sunrpc/rpc/svc_auth.h: Likewise.
2982         * sunrpc/rpc/types.h: Likewise.
2983         * sunrpc/rpc/xdr.h: Likewise.
2984         * sunrpc/rpc_clntout.c: Likewise.
2985         * sunrpc/rpc_cmsg.c: Likewise.
2986         * sunrpc/rpc_common.c: Likewise.
2987         * sunrpc/rpc_cout.c: Likewise.
2988         * sunrpc/rpc_dtable.c: Likewise.
2989         * sunrpc/rpc_hout.c: Likewise.
2990         * sunrpc/rpc_main.c: Likewise.
2991         * sunrpc/rpc_parse.c: Likewise.
2992         * sunrpc/rpc_parse.h: Likewise.
2993         * sunrpc/rpc_prot.c: Likewise.
2994         * sunrpc/rpc_sample.c: Likewise.
2995         * sunrpc/rpc_scan.c: Likewise.
2996         * sunrpc/rpc_scan.h: Likewise.
2997         * sunrpc/rpc_svcout.c: Likewise.
2998         * sunrpc/rpc_tblout.c: Likewise.
2999         * sunrpc/rpc_util.c: Likewise.
3000         * sunrpc/rpc_util.h: Likewise.
3001         * sunrpc/rpcinfo.c: Likewise.
3002         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3003         * sunrpc/rpcsvc/key_prot.x: Likewise.
3004         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3005         * sunrpc/rpcsvc/mount.x: Likewise.
3006         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3007         * sunrpc/rpcsvc/rex.x: Likewise.
3008         * sunrpc/rpcsvc/rstat.x: Likewise.
3009         * sunrpc/rpcsvc/rusers.x: Likewise.
3010         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3011         * sunrpc/rpcsvc/spray.x: Likewise.
3012         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3013         * sunrpc/rtime.c: Likewise.
3014         * sunrpc/svc.c: Likewise.
3015         * sunrpc/svc_auth.c: Likewise.
3016         * sunrpc/svc_authux.c: Likewise.
3017         * sunrpc/svc_raw.c: Likewise.
3018         * sunrpc/svc_run.c: Likewise.
3019         * sunrpc/svc_simple.c: Likewise.
3020         * sunrpc/svc_tcp.c: Likewise.
3021         * sunrpc/svc_udp.c: Likewise.
3022         * sunrpc/svc_unix.c: Likewise.
3023         * sunrpc/svcauth_des.c: Likewise.
3024         * sunrpc/xcrypt.c: Likewise.
3025         * sunrpc/xdr.c: Likewise.
3026         * sunrpc/xdr_array.c: Likewise.
3027         * sunrpc/xdr_float.c: Likewise.
3028         * sunrpc/xdr_mem.c: Likewise.
3029         * sunrpc/xdr_rec.c: Likewise.
3030         * sunrpc/xdr_ref.c: Likewise.
3031         * sunrpc/xdr_sizeof.c: Likewise.
3032         * sunrpc/xdr_stdio.c: Likewise.
3034         * po/da.po: Update from translation team.
3036 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3038         * sysdeps/sh/____longjmp_chk.S: New file.
3039         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3040         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3042 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3043             Ulrich Drepper  <drepper@redhat.com>
3045         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3046         (__nscd_cache_search): Assume each entry in the
3047         hash chain needs one hashentry and half of datahead.  Use
3048         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3050 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3052         * posix/sys/wait.h: Fix typos.  Pretty printing.
3053         * stdlib/stdlib.h: Likewise.  Correct comments.
3055         [BZ #10159]
3056         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3058         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3059         patch.
3061 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3063         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3064         Use it if we absolutely cannot reach any more correct list elements
3065         because that many do not fit into the currently mapped database.
3067 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3069         * nscd/nscd_helper.c: Include stddef.h.
3070         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3071         in a couple of places.  Return NULL if trail is not less than
3072         datasize, don't consider dataheads with length smaller than
3073         offsetof (struct datahead, data) + datalen.
3074         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3075         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3076         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3077         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3078         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3079         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3080         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3082         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3083         Rename ...
3084         (fallocate64): ... to this.
3085         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3086         Rename ...
3087         (fallocate64): ... to this.
3088         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3089         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3090         fallocate64@@GLIBC_2.10.
3091         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3092         fallocate64@@GLIBC_2.11.
3093         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3095         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3096         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3098         * nscd/selinux.c (nscd_avc_destroy): Removed.
3099         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3100         * nscd/nscd.c (termination_handler): Don't call
3101         nscd_avc_destroy.
3103 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3105         * include/atomic.h: Formatting.
3106         (catomic_compare_and_exchange_val_acq): Don't define if already
3107         defined by bits/atomic.h.
3109 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3111         * math/libm-test.inc (expm1_test): Add test for range error.
3113         * Versions.def: Add GLIBC_2.11 for libc.
3114         * debug/Makefile (routines): Add longjmp_chk.
3115         Add rules to build and run tst-longjmp_chk.
3116         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3117         * debug/longjmp_chk.c: New file.
3118         * debug/tst-longjmp_chk.c: New file.
3119         * include/bits/setjmp2.: New file.
3120         * include/stdio.h: Mark __fortify_fail as internal_function.
3121         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3122         * setjmp/bits/setjmp2.h: New file.
3123         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3124         of the aliases.
3125         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3126         defined.
3127         * sysdeps/i386/____longjmp_chk.S: New file.
3128         * sysdeps/x86_64/____longjmp_chk.S: New file.
3129         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3130         * sysdeps/x86_64/__longjmp.S: Likewise.
3132         * version.h: Bump for 2.11 development.
3134         * elf/check-execstack.c: New file.
3135         * elf/Makefile: Add rules to build and run check-execstack.
3137 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3139         * version.h (VERSION): Bump to 2.10.1.
3141         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3142         compatibility functions.
3143         * nss/getXXent_r.c: Likewise.
3144         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3145         * gshadow/getsgnam_r.c: Likewise.
3146         * gshadow/Version: Remove duplicate entries.
3148         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3149         for recent processor.
3150         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3151         Likewise.
3153 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3155         * version.h (VERSION): Bump for 2.10 release.
3156         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3158         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3159         same place we add ASFLAGS-config.
3161 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3163         [BZ #10128]
3164         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3165         or FORMERR and the other NOERROR, don't raise an error.
3167 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3169         [BZ #10118]
3170         * Makeconfig (+asflags): New variable based upon ASFLAG or
3171         asflags-cpu.
3172         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3173         * config.make.in (asflags-cpu): Add variable based upon
3174         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3175         the assembler.
3176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3177         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3178         recognizes power6 instruction set due to passing -mcpu=power6 from
3179         --with-cpu=power6 when compiling .S files.
3180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3181         Likewise.
3182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3183         Likewise.
3184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3185         Likewise.
3187 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3189         * string/stratcliff.c (do_test): Test for zero length
3190         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3191         at the end of the page.
3193 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3195         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3197         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3198         count is zero.
3200         * po/da.po: Update from translation team.
3202 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3204         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3205         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3207 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3209         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3210         and READ_IMPLIES_EXEC.
3212 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3214         * po/da.po: Update from translation team.
3216 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3218         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3219         comment change.
3221 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3223         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3224         to MAP_ANON in PROT_NONE mmap64 call.
3225         (open_archive): Likewise.
3226         (file_data_available_p): Use mmap64 instead of mremap.
3227         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3228         Attempt to reserve address space after mmap64 region.
3230 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3232         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3233         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3234         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3236         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3237         atanh should set ERANGE.
3239         [BZ #10087]
3240         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3241         result of lookup to make call to implement STT_GNU_IFUNC.
3242         (_dl_profile_fixup): Likewise.
3243         Patch by H.J. Lu <hjl.tools@gmail.com>.
3245         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3246         warning.
3248         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3249         from definition.
3251         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3252         label if it is not used.
3254         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3255         of gmon_hist_hdr and gmon_hdr structures and use them.
3256         * elf/sprof.c: Likewise.
3258         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3259         warning.
3261         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3263         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3264         to avoid cast.
3266         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3267         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3268         to avoid warnings.
3269         (iruserok_af): Use ss_family instead of casts.
3271         * gmon/gmon.c (write_hist): Define real-type variant of
3272         gmon_hist_hdr structure and use it.
3273         (write_gmon): Likewise for gmon_hdr.
3275         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3276         function if we are not going to define it.
3277         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3279         * inet/inet6_option.c (option_alloc): Add temporary variable to
3280         avoid warning.
3282         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3283         name of VTable element.
3284         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3285         * libio/iovsscanf.c: Likewise.
3286         * libio/vasprintf.c: Likewise.
3287         * libio/vsnprintf.c: Likewise.
3288         * stdio-common/isoc99_vsscanf.c: Likewise.
3289         * stdlib/strfmon_l.c: Likewise.
3290         * debug/vasprintf_chk.c: Likewise.
3291         * debug/vsnprintf_chk.c: Likewise.
3292         * debug/vsprintf_chk.c: Likewise.
3294         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3295         function pointers.
3297 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3299         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3301 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3303         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3305         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3306         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3307         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3308         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3309         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3310         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3311         * math/libm-test.inc: Add tests for errno after tan calls with
3312         Â±Inf.
3314         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3315         errno value vor pow(+-0,neg).
3316         * math/libm-test.inc (pow_test): Add tests for errno value for
3317         pole errors.
3319         * math/w_fmod.c: Also handle x=±Inf as error.
3320         * math/w_fmodf.c: Likewise.
3321         * math/w_fmodl.c: Likewise.
3322         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3323         x=±Inf or y=0.
3325         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3326         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3327         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3328         * sysdeps/i386/fpu/s_sin.S: Likewise.
3329         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3330         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3331         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3332         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3333         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3334         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3335         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3336         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3337         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3338         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3339         Â±Inf.
3341         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3342         ERANGE for underflows.
3343         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3345         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3346         the 2001 revision.
3348         * libio/tst-widetext.input: Remove surrogates.
3350         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3352         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3353         for lgamma should set errno to ERANGE, not EDOM.
3354         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3356 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3358         [BZ #10093]
3359         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3360         UTF-16 surrogates.
3362         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3363         space when temporarily mapping the whole content of the old file.
3365         [BZ #10100]
3366         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3367         not zero.
3369 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3371         * iconvdata/sjis.c (BODY): Don't advance inptr before
3372         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3373         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3374         two byte chars.
3376 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3378         * locale/locarchive.h (struct locarhandle): Rename len field to
3379         mmaped and add new reserved field.
3380         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3381         (create_archive): Reserve address space and then map file into it.
3382         (open_archive): Likewise.
3383         (file_data_available_p): New function.
3384         (compare_from_file): New function.
3385         (close_archive): Adjust to member name changes.
3386         (add_locale): Before comparing locale data, check it is mapped.
3387         Otherwise fall back to reading from the file.
3389 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3391         * stdio-common/psiginfo.c: Include <errno.h>.
3393 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3395         [BZ #9920]
3396         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3397         to get consistency between 32 and 64 bit architectures.
3399         [BZ #10052]
3400         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3401         directory for dummy syscall rules.
3402         Patch by Chris Steinbroner <hesh@pobox.com>.
3404 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3406         [BZ #10092]
3407         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3408         MNT_EXPIRE.
3410 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3412         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3413         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3415 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3417         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3418         data from vector to temporary buffer and call PWRITEV after it
3419         instead of vice versa.
3420         * sysdeps/posix/preadv.c: Fix up comment.
3421         * misc/preadv.c: Likewise.
3422         * misc/preadv64.c: Likewise.
3423         * misc/pwritev.c: Likewise.
3424         * misc/pwritev64.c: Likewise.
3425         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3427 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3429         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3431         * shadow/Makefile (tests): Add tst-shadow.
3432         * shadow/tst-shadow.c: New file.
3434         [BZ #9955]
3435         * gshadow/Makefile: New file.
3436         * gshadow/Versions: New file.
3437         * gshadow/fgetsgent.c: New file.
3438         * gshadow/fgetsgent_r.c: New file.
3439         * gshadow/getsgent.c: New file.
3440         * gshadow/getsgent_r.c: New file.
3441         * gshadow/getsgnam.c: New file.
3442         * gshadow/getsgnam_r.c: New file.
3443         * gshadow/gshadow.h: New file.
3444         * gshadow/putsgent.c: New file.
3445         * gshadow/sgetsgent.c: New file.
3446         * gshadow/sgetsgent_r.c: New file.
3447         * gshadow/tst-gshadow.c: New file.
3448         * include/gshadow.h: New file.
3449         * Makeconfig (all-subdirs): Add gshadow.
3450         * Makefile (installed-headers): Add gshadow/gshadow.h.
3451         * nss/Makefile (databases): Add sgrp.
3452         * nss/Versions: Add gshadow functions as private exports.
3453         * nss/nsswitch.conf: Add gshadow entry.
3454         * nss/sgrp-lookup.c: New file.
3455         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3456         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3457         * nss/nss_files/files-sgrp.c: New file.
3458         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3459         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3461 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3463         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3464         * stdio-common/reg-modifier.c: Likewise.
3466 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3468         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3469         is no FPU.
3471 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3473         [BZ #10086]
3474         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3475         headers up to 2.6.30.
3477         * po/ca.po: Update from translation team.
3479 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3481         [BZ #10069]
3482         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3483         an object that uses static TLS if the TLS modid is higher than the
3484         reserve we always allocate.  At least for multi-threaded code.
3486 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3488         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3489         Numerically stable check for valid width.
3491         * locale/programs/locarchive.c (open_archive): Map the entire file
3492         and not just the administrative data.
3493         (add_locale): When we find a hash sum match compare the content
3494         to be sure.
3496         * malloc/malloc.c (malloc_info): Output address space information.
3498 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3500         * malloc/malloc.c (malloc_info): Also output system memory information.
3502         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3503         architectures have preadv/pwritev in 2.6.30.
3505         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3506         * sysdeps/posix/readv.c: Likewise.
3507         Reported by Markus Armbruster <armbru@redhat.com>.
3509         * malloc/hooks.c (top_check): Force hook value into register.
3511 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3513         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3514         calls to _dl_relocate_object.
3516 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3518         [BZ #9957]
3519         * malloc/malloc.c (force_reg): Define.
3520         (sYSMALLOc): Load hook variable into variable
3521         before test and force into register.
3522         (sYSTRIm): Likewise.
3523         (public_mALLOc): Force hook value into register.
3524         (public_fREe): Likewise.
3525         (public_rEALLOc): Likewise.
3526         (public_mEMALIGn): Likewise.
3527         (public_vALLOc): Likewise.
3528         (public_pVALLOc): Likewise.
3529         (public_cALLOc): Likewise.
3530         (__posix_memalign): Likewise.
3531         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3532         before test and force into register.
3533         * malloc/hooks.c (top_check): Likewise.
3534         (public_sET_STATe): Pretty printing.
3536         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3537         in case we only receive one reply in single-request mode.
3539 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3541         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3542         are dlopened in statically linked program even for __LM_ID_CALLER.
3544 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3546         * resolv/res_send.c (send_dg): Don't switch into single-request
3547         mode if we already are in it.
3549 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3551         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3552         are always at least 4 bytes in the returned line.
3554 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3556         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3557         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3558         instead of 8K.  Stop searching in /proc/stat after hitting first
3559         line not starting with cpu.
3560         (next_line): Truncate too long
3561         lines at buffer size * 3/4 instead of pretending there were line
3562         breaks inside of large lines.
3564 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3566         * sysdeps/x86_64/mp_clz_tab.c: New file.
3568 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3569             Ulrich Drepper  <drepper@redhat.com>
3571         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3572         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3573         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3575 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3577         * sysdeps/sh/libc-tls.c: New file.
3579         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3581 2009-04-14  Roland McGrath  <roland@redhat.com>
3583         * elf/elf.h: Add various missing ARM constants, to match binutils.
3585 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3587         Optimizations from GMP.
3588         * sysdeps/x86_64/add_n.S: New file.
3589         * sysdeps/x86_64/addmul_1.S: New file.
3590         * sysdeps/x86_64/lshift.S: New file.
3591         * sysdeps/x86_64/mul_1.S: New file.
3592         * sysdeps/x86_64/rshift.S: New file.
3593         * sysdeps/x86_64/sub_n.S: New file.
3594         * sysdeps/x86_64/submul_1.S: New file.
3596 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3598         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3599         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3600         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3601         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3603 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3605         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3606         preadv/pwritev.
3608 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3610         * sysdeps/x86-64/strrchr.S: New file.
3612 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3614         * stdio-common/printf.h (struct printf_info): Add user element.
3615         New types printf_arginfo_size_function, printf_va_arg_function.
3616         Declare register_printf_specifier, register_printf_modifier,
3617         register_printf_type.
3618         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3619         (union printf_arg): Add pa_user element.
3620         Adjust __printf_arginfo_table type.
3621         Add __printf_va_arg_table, __printf_modifier_table,
3622         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3623         declarations.
3624         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3625         If registered arginfo call failed try normal specifier.
3626         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3627         function.
3628         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3629         * stdio-common/Versions: Export register_printf_modifier,
3630         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3631         * stdio-common/reg-modifier.c: New file.
3632         * stdio-common/reg-type.c: New file.
3633         * stdio-common/reg-printf.c (__register_printf_specifier): New
3634         function.  Mostly the old __register_printf_function function but
3635         uses locking and type of third parameter changed.
3636         (__register_printf_function): Implement using
3637         __register_printf_specifier.
3638         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3639         calls to arginfo functions.  Allocate enough memory for user-defined
3640         types.  Call new va_arg functions to get user-defined types.
3641         Try installed handlers even for existing format specifiers first.
3643 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3645         * sysdeps/x86_64/rawmemchr.S: New file.
3647         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3648         Simplified code and possible copy problem fixed.
3650         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3651         function if it is not defined.  Add some necessary casts.
3652         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3654         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3655         have preadv/pwritev in 2.6.30.
3657 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3659         * malloc/malloc.c (malloc_info): New function.
3660         * malloc/malloc.h: Declare it.
3661         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3663         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3664         to avoid PLT slot.
3666         * malloc/malloc.c (_int_realloc): Add parameter with old block
3667         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3668         Adjust all callers.
3669         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3671 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3673         * sysdeps/x86_64/strchrnul.S: New file.
3675         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3676         depending libcrypt on -lfreebl3.
3678         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3679         preadv/pwritev in 2.6.30.
3681         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3682         instead of __strcasecmp.
3684         * string/stratcliff.c (do_test): Add memchr tests..
3685         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3686         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3687         first read quad word.
3689 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3691         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3692         * string/tst-svc.input: Add new test case.
3693         * string/tst-svc.expect: Adjust.
3694         * string/Makefile: Don't ignore tst-svc error.
3696         * sysdeps/x86_64/memchr.S: New file.
3698         * resolv/resolv.h (RES_SNGLKUP): Define.
3699         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3700         * resolv/res_send.c (send_dg): If we sent two requests at once and
3701         only get one reply before timeout switch to mode where we send the
3702         second request only after the first answer has been received.
3704 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3706         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3707         * sysdeps/x86_64/strchr.S: Likewise.
3709 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3711         * configure.in: We need to test for the compiler earlier.
3713         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3714         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3715         GLIBC_2.10.
3716         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3717         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3718         and pwritev.
3719         * misc/preadv.c: New file.
3720         * misc/preadv64.c: New file.
3721         * misc/pwritev.c: New file.
3722         * misc/pwritev64.c: New file.
3723         * sysdeps/posx/preadv.c: New file.
3724         * sysdeps/posx/preadv64.c: New file.
3725         * sysdeps/posx/pwritev.c: New file.
3726         * sysdeps/posx/pwritev64.c: New file.
3727         * sysdeps/unix/sysv/linux/preadv.c: New file.
3728         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3729         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3730         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3731         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3732         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3734         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3735         compatibility code.
3736         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3738         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3739         __ASSUME_COMPLETE_READV_WRITEV.
3740         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3741         with modern kernels.
3742         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3744         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3745         to free a possible malloced buffer in case of cancellation.
3746         * sysdeps/posix/writev.c: Likewise for write.
3748 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3750         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3752         * configure.in: Recognize --enable-nss-crypt.
3753         * config.make.in: Add nss-crypt entry.
3754         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3755         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3756         and include path for NSS directory to compiler for md5-crypt,
3757         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3758         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3759         function implementation, use NSS.  Introduce wrappers around the
3760         hash function calls.  Little code size optimization.
3761         * crypt/sha256-crypt.c: Likewise.
3762         * crypt/sha512-crypt.c: Likewise.
3763         * scripts/check-local-headers.sh: Ignore nss3 directory.
3765         * configure.in: Rename pic_default to libc_cv_pic_default.
3766         * config.make.in: Likewise.
3768 2009-04-01  Roland McGrath  <roland@redhat.com>
3770         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3771         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3772         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3773         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3774         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3775         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3776         (R_SPARC_NUM): Update.
3777         From Dave Miller <davem@davemloft.net>.
3779 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3781         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3783 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3785         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3786         those which are used.
3787         * elf/dl-addr.c: Likewise.
3788         * elf/dl-caller.c: Likewise.
3789         * elf/dl-fini.c: Likewise.
3790         * elf/dl-iteratephdr.c: Likewise.
3791         * elf/dl-libc.c: Likewise.
3792         * elf/dl-load.c: Likewise.
3793         * elf/dl-support.c: Likewise.
3794         * elf/dl-sym.c: Likewise.
3795         * elf/rtld.c: Likewise.
3796         * sysdeps/generic/ldsodefs.h: Likewise.
3798         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3799         * elf/dl-minimal.c: Likewise.
3800         * elf/dl-misc.c: Likewise.
3801         * elf/rtld.c: Likewise.
3802         * sysdeps/generic/ldsodefs.h: Likewise.
3804 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3806         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3807         Avoid reuse of complex expression.
3809         * po/fr.po: Update from translation team.
3811 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3813         * include/dirent.h: Yet more changes to match sort function type
3814         change.
3815         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3816         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3817         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3819 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3821         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3823 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3825         * nscd/connections.c (restart): Try to preserve the process name
3826         by reading the /proc/self/exe symlink and using the return name.
3827         Patch by Jeff Bastian <jbastian@redhat.com>.
3829 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3831         [BZ #9733]
3832         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3833         if we are not loading a new audit library.
3834         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3835         Only use profiling trampoline for auditing if we are not relocating
3836         an audit library.
3837         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3838         * elf/rtld.c: Likewise.
3839         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3841         * elf/rtld.c (dl_main): Extend help message for --audit option.
3843         [BZ #9759]
3844         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3845         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3846         * dirent/alphasort.c: Adjust implementation to type change.
3847         * dirent/alphasort64.c: Likewise.
3848         * dirent/scandir.c: Likewise.
3849         * dirent/versionsort.c: Likewise.
3850         * dirent/versionsort64.c: Likewise.
3851         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3852         declaration.
3853         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3854         declaration.
3856         [BZ #9880]
3857         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3858         correctly.  Set segleft member in output as required.
3859         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3860         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3862         [BZ #9881]
3863         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3864         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3865         * inet/Makefile (tests): Add tst-inet6_rth.
3866         * inet/tst-inet6_rth.c: New file.
3868         [BZ #5807]
3869         * string/strlen.c (strlen): Fix omission in the expression to test
3870         for NUL bytes.
3872 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3874         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3876         * elf/dl-runtime.c (reloc_offset): Define.
3877         (reloc_index): Define.
3878         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3879         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3880         computing index from reloc_offset.
3881         (_dl_call_pltexit): Likewise.
3882         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3883         the relocation index to _dl_fixup.
3884         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3885         _dl_call_pltexit.
3886         * sysdeps/x86_64/dl-runtime.c: New file.
3888         [BZ #9893]
3889         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3890         alignment of La_x86_64_regs.  Store xmm parameters.
3891         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3893         [BZ #9913]
3894         * string/strverscmp.c (__strverscmp): Fix case of different digits
3895         in fractional part of string.
3896         Patch by Jingyu Liu <jyliu@fortinet.com>.
3897         * string/Makefile (tests): Add tst-svc2.
3898         * string/tst-svc2.c: New file.
3900         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3902         * locale/iso-639.def: Add Min Nan.
3904 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3906         [BZ #9948]
3907         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3909 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3911         * elf/dl-sysdep.c (auxvars): Compress data structure.
3913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3914         STT_GNU_IFUNC handling.
3915         (elf_machine_rela): Likewise.
3917 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3919         * config.h.in (USE_MULTIARCH): Define.
3920         * configure.in: Handle --enable-multi-arch.
3921         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3922         (_dl_fixup_profile): Likewise.
3923         * elf/do-lookup.c (dl_lookup_x): Likewise.
3924         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3925         * elf/elf.h (STT_GNU_IFUNC): Define.
3926         * include/libc-symbols.h (libc_ifunc): Define.
3927         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3928         framework in init-arch.h to get CPUID values.
3929         * sysdeps/x86_64/multiarch/Makefile: New file.
3930         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3931         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3932         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3934         * config.make.in (experimental-malloc): Define.
3935         * configure.in: Handle --enable-experimental-malloc.
3936         * malloc/Makefile: Handle experimental-malloc flag.
3937         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3938         * malloc/arena.c: Likewise.
3939         * malloc/hooks.c: Likewise.
3940         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3942 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3944         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3945         prediction.  A few size optimizations.
3947 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3949         * time/tzset.c: Optimize a bit for size.
3951 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3953         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3954         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3956         * elf/sprof.c: Avoid warning about multi-line comment.
3958 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3960         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3961         DST name.
3962         * time/tst-posixtz.c: Add tests for quoted timezone names.
3964 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3966         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3967         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3968         200809L instead of 200112L.
3969         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3970         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3972         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3973         instead of __quick_exit_funcs to __run_exit_handlers.
3974         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3975         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3976         (__cxa_at_quick_exit): Remove attribute_hidden.
3977         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3978         to __run_exit_handlers.
3979         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3980         attribute_hidden.
3982 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3984         * po/id.po: Update from translation team.
3986 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3989         .machine push; .machine "power6" and .machine pop around mtfsf
3990         insns outside of _ARCH_PWR6 define.
3991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3993         Likewise.
3994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3995         Likewise.
3996         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3997         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3998         relax_fenv_state): Likewise.
4000 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4002         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4003         cxa_at_quick_exit.
4004         (static-only-routines): Add at_quick_exit.
4005         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4006         GLIBC_2.10.
4007         * stdlib/quick_exit.c: New file.
4008         * stdlib/at_quick_exit.c: New file.
4009         * stdlib/cxa_at_quick_exit.c: New file.
4010         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4011         it appropriately.
4012         (__internal_atexit): New function.
4013         (__new_exitfn): Now takes parameter to point to the list to use.
4014         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4015         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4016         (exit): ...here.  Just call __run_exit_handlers appropriately.
4017         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4018         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4019         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4020         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4022         * po/id.po: Update from translation team.
4024 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4026         * po/ru.po: Update from translation team.
4028 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4030         * po/nl.po: Update from translation team.
4032 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4034         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4035         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4036         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4037         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4038         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4039         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4040         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4042         * po/pl.po: Update from translation team.
4044 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4046         [BZ #7083]
4047         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4048         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4049         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4050         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4051         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4052         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4053         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4054         for GLIBC_2.10.
4055         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4056         Add fallocate and fallocate64.
4058         * io/fcntl.h: Pretty printing.
4060 2009-03-02  Richard Guenther  <rguenther@suse.de>
4062         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4063         attribute also for non-C99 inline semantics variant.
4065 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4067         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4068         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4069         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4070         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4072         Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4074         Likewise.
4076 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4078         * po/cs.po: Update from translation team.
4080 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4082         * po/bg.po: Update from translation team.
4083         * po/sv.po: Likewise.
4084         * po/fi.po: Likewise.
4085         * po/vi.po: Likewise.
4087 2009-02-27  Roland McGrath  <roland@redhat.com>
4089         * Makeconfig (%.v.i): Depend on Makeconfig.
4090         Exclude % lines from initial #-comment removal.
4092 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4094         * po/ko.po: Update from translation team.
4096 2009-02-26  Roland McGrath  <roland@redhat.com>
4098         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4099         avoids unused warning.
4101 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4102             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4104         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4105         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4106         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4107         and asm/user.h.  Include asm/ptrace.h.
4108         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4109         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4110         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4111         Undefine.
4112         (start_thread): Don't undefine.
4113         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4114         Define.
4116 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4118         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4119         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4120         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4121         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4122         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4123         200112L to 200809L.
4124         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4125         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4126         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4127         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4128         _SC_THREAD_ROBUST_PRIO_PROTECT.
4129         * posix/unistd.h: fexecve is in POSIX 2008.
4130         * time/time.h: strftime_l is in POSIX 2008.
4131         * io/sys/stat.h: futimens is in POSIX 2008.
4132         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4133         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4134         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4135         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4136         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4137         open_memstream, and vdprintf are in POSIX 2008.
4139 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4141         * include/features.h: Define macros for XPG7/POSIX 2008.
4142         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4143         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4144         POSIX 2008.
4145         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4146         * locale/xlocale.h: Define locale_t type.
4147         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4148         in POSIX 2008.  Don't define locale_t here.
4149         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4150         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4151         UTIME_OMIT only with __USE_ATFILE.
4152         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4153         * stdio-common/psiginfo.c: New file.
4154         * stdio-common/psiginfo-data.h: New file.
4155         * stdio-common/psiginfo-define.h: New file.
4156         * stdio-common/Makefile (routines): Add psiginfo.
4157         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4158         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4159         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4160         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4161         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4162         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4163         * io/sys/stat.h: Move mknodat definition into same conditional as
4164         mknod.
4165         * time/sys/time.h: futimesat is not among the functions accepted
4166         into the POSIX standard.
4168         * include/features.h: If no feature selection given and we select
4169         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4170         * posix/Versions: Export __posix_getopt.
4171         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4172         Use it to alternatively initialize __posixly_correct.
4173         (_getopt_internal_r): Take addition parameter.  Pass on to
4174         _getopt_initialize.
4175         (_getopt_internal): Take addition parameter.  Pass on to
4176         _getopt_internal_r.
4177         (getopt): Pass additional zero to _getopt_internal.
4178         (__posix_getopt): New function.
4179         * posix/getopt.h: Add redirection for getopt.
4180         * posix/getopt1.c (getopt_long): Pass additional zero to
4181         _getopt_internal.
4182         (getopt_long_only): Likewise.
4183         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4184         (_getopt_long_only_r): Likewise.
4185         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4186         _getopt_internal_r.
4188 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4190         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4191         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4192         * sysdeps/posix/sysconf.c (__sysconf): Handle
4193         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4194         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4196 2009-02-24  Roland McGrath  <roland@redhat.com>
4198         [BZ #9895]
4199         * README.template: Reworded not to use substituted version number.
4200         Renamed to ...
4201         * README: ... here (no longer generated).
4202         * Makefile (README): Target removed.
4204 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4206         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4207         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4208         instead.
4210         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4212         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4214 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4216         * po/bg.po: Update from translation team.
4218 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4220         * stdlib/monetary.h: Uglify function parameter names.
4221         * sunrpc/rpc/pmap_clnt.h: Likewise.
4222         * sunrpc/rpc/svc.h: Likewise.
4223         * sunrpc/rpc/xdr.h: Likewise.
4224         * sunrpc/rpc/clnt.h: Likewise.
4225         * resolv/netdb.h: Likewise.
4226         * resolv/arpa/nameser.h: Likewise.
4227         * resolv/resolv.h: Likewise.
4228         * argp/argp.h: Likewise.
4229         * locale/langinfo.h: Likewise.
4230         * io/sys/stat.h: Likewise.
4231         * posix/spawn.h: Likewise.
4232         * nis/rpcsvc/nislib.h: Likewise.
4233         * malloc/obstack.h: Likewise.
4234         * sysdeps/ia64/bits/link.h: Likewise.
4235         * sysdeps/i386/bits/link.h: Likewise.
4236         * sysdeps/s390/bits/link.h: Likewise.
4237         * sysdeps/powerpc/bits/link.h: Likewise.
4238         * sysdeps/x86_64/bits/link.h: Likewise.
4239         * sysdeps/sparc/bits/link.h: Likewise.
4240         * sysdeps/sh/bits/link.h: Likewise.
4241         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4242         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4243         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4244         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4246 2008-12-01  Fredrik Unger  <fred@tree.se>
4248         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4249         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4250         _FP_UNPACK_RAW_2, fix up first argument.
4252 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4254         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4255         (GET_NPROCS_PARSER): Change parameters and use next_line.
4256         (__get_nprocs): Rewrite to not use stdio routines.
4257         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4258         Change parameters and use next_line.
4260 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4262         [BZ #5381]
4263         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4264         Change mempool_alloc prototype.
4265         * nscd/mem.c (gc): Don't handle mem_in_flight.
4266         (mempool_alloc): Third parameter now only indicates whether this is the
4267         first call (to allocate data) or not.  If it is, get db rdlock.
4268         Release it on error.  Don't handle mem_in_flight.
4269         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4270         Adjust third parameter of mempool_alloc calls.
4271         Nothing to do here in case mempool_alloc fails.
4272         Avoid local variable shadowing parameter.  No need to get db rdlock
4273         before calling cache_add.
4274         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4275         no mem_in_flight array anymore.
4276         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4277         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4278         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4279         in case mempool_alloc fails. No need to get db rdlock before calling
4280         cache_add.
4281         * nscd/hstcache.c (cache_addhst): Likewise.
4282         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4283         * nscd/servicescache.c (cache_addserv): Likewise.
4284         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4286 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4288         * po/lt.po: Update from translation team.
4290 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4292         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4293         defined, allow additional data to be added using the optional
4294         MORE_ELF_HEADER_DATA macro.
4295         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4296         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4298 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4300         * include/atomic.h: Define catomic_and if not already defined.
4301         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4302         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4304 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4306         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4307         Change all callers.
4308         (_int_realloc): Likewise.  Third argument is now padded size
4309         All _int_* functions are now static.
4311         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4312         * malloc/arena.c: Likewise.
4313         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4314         functions.
4316         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4317         easily.
4319         * malloc/malloc.c: Add branch prediction for use of the hooks.
4321         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4323 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4325         [BZ #7095]
4326         * bits/confname.h: Add SUSv7 macros for getconf environments.
4327         * bits/environments.h: Likewise.
4328         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4329         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4330         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4331         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4332         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4333         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4334         * posix/getconf.c: Likewise.
4335         * posix/sysconf.c: Likewise.
4336         * sysdeps/posix/sysconf.c: Likewise.
4337         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4338         environments.
4340 2009-01-16  Petr Baudis  <pasky@suse.cz>
4342         [BZ #9753]
4343         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4344         even if we currently have zero nscount.
4346 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4348         [BZ #9781]
4349         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4350         the input line is too long.
4352         * po/Makefile (libc.pot): Add f_print as function taking c-format
4353         parameter.
4355         * debug/xtrace.sh: Unify translatable messages.
4356         * elf/ldd.bash.in: Likewise.
4357         * elf/sprof.c: Likewise.
4358         * locale/programs/locale.c: Likewise.
4359         * malloc/memusage.sh: Likewise.
4360         * nss/getent.c: Likewise.
4362 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4364         * debug/pcprofiledump.c (print_version,
4365         argp_program_version_hook): New function.
4366         * elf/ldconfig.c (more_help): New function.
4367         (argp): Use it.
4368         * elf/sln.c (usage): New function.
4369         (main): Support --help and --version.
4370         * malloc/memusagestat.c (print_version): New function.
4371         (argp_program_version_hook): New variable.
4372         * nscd/nscd.c (more_help): New function.
4373         (argp): Use it.
4374         * posix/getconf.c (main): Send --version output to stdout.
4375         Support --help.
4376         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4377         arguments.  All callers changed.
4378         (print_version): New function.
4379         (parseargs): Support --help and --version.
4380         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4381         changed.
4382         (print_version): New function.
4383         (main): Use getopt_long.  Support --help and --version.
4384         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4385         --version.
4387 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4389         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4390         (update_data): Fix handling of wrapping back
4391         to the beginning of the buffer.
4393         [BZ #9823]
4394         * stdio-common/psignal.c (psignal): Fix test for empty string.
4396 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4398         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4399         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4400         move _null_auth to .rodata.
4402         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4403         value of 24.
4405         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4407         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4408         today than when the original code was written.  Use larger
4409         buffers.  This also makes it unnecessary to have stat information,
4410         if this causes extra efforts.
4411         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4412         __alloc_dir.
4414 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4416         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4417         is set.
4418         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4419         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4420         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4421         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4422         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4423         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4425 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4427         * po/ru.po: Update from translation team.
4429 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4431         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4432         Add _tid slot to maintain consistency with kernel.
4434 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4436         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4437         incomplete characters at end of input buffer.
4438         * libio/Makefile (tests): Add tst-fgetwc.
4439         * libio/tst-fgetwc.c: New file.
4440         * libio/tst-fgetwc.input: New file.
4442 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4444         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4446 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4448         [BZ #9793]
4449         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4450         *OUTBUFSTART unless the whole output fit into the buffer.
4451         * iconv/Makefile (tests): Add tst-iconv4.
4452         * iconv/tst-iconv4.c: New file.
4454 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4456         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4457         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4459 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4461         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4462         newer linker scripts.
4464 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4466         [BZ #7040]
4467         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4468         inotify_rm_watch should have type int.
4470 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4472         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4473         Make aligned_restore_vmx a local symbol.
4474         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4475         Likewise.
4477 2009-01-30  Andreas Jaeger  <aj@suse.de>
4479         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4480         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4481         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4482         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4483         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4484         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4485         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4487 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4489         [BZ #9726]
4490         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4491         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4493 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4495         [BZ #9726]
4496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4497         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4499         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4501 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4503         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4504         memcpy instead of memcmp.
4505         (_dl_setup_pointer_guard): Likewise.
4507 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4509         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4510         manipulated brk, use malloc_printerr.
4511         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4512         requests.
4514 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4516         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4517         rindex): For C++ add inlines so that they can be recognized as
4518         builtins.
4519         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4521 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4522             Jakub Jelinek  <jakub@redhat.com>
4524         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4525         * wcsmbs/wchar.h: Likewise.
4527 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4529         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4530         (stackinfo_sub_sp): Define.
4532 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4534         [BZ #9750]
4535         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4536         * include/alloca.h (alloca_account): Define.
4537         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4538         (stackinfo_sub_sp): Define.
4540         * nscd/connections.c (nscd_init): If database file access fails
4541         check whether this is due to permission problems and bail in that
4542         case.
4544         [BZ #9741]
4545         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4546         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4548 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4550         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4551         Add "t" to clobber list.
4552         (INTERNAL_SYSCALL_NCS): Likewise.
4554 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4556         * nss/getent.c (print_networks): Don't print comma between aliases.
4558 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4560         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4562         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4563         the hash table.
4564         * misc/Makefile (tests): Add bug-hsearch1.
4565         * misc/bug-hsearch1.c: New file.
4567 2009-01-22  Roland McGrath  <roland@redhat.com>
4569         * Makeconfig (%.v.i): Strip trailing # comments,
4570         not only whole-line comments.
4572 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4574         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4575         one parameter.  If non-NULL use it to initialize return value.
4576         (_dl_setup_pointer_guard): New function.
4577         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4578         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4579         * elf/rtld.c (security_init): Pass _dl_random to
4580         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4581         pointer_chk_guard.
4582         * elf/dl-sysdep.c (_dl_random): New variable.
4583         (_dl_sysdep_start): Handle AT_RANDOM.
4584         (_dl_show_auxv): Likewise.
4585         * elf/dl-support.c (_dl_random): New variable.
4586         (_dl_aux_init): Handle AT_RANDOM.
4587         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4588         to _dl_setup_stack_chk_guard.
4590         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4592 2009-01-10  Roland McGrath  <roland@redhat.com>
4594         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4596 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4598         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4600         [BZ #9706]
4601         * nss/nss_files/files-parse.c (strtou32): New function.
4602         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4603         across 32-bit and 64-bit platforms.
4604         (INT_FIELD_MAYBE_NULL): Likewise.
4606 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4608         [BZ #9720]
4609         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4610         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4611         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4612         Likewise.
4614 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4616         [BZ #697]
4617         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4618         being NULL also if there are no backreferences.
4619         * posix/rxspencer/tests: Add testcases.
4621 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4623         [BZ #9697]
4624         * posix/bug-regex17.c: Add testcases.
4625         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4626         handling.
4628 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4630         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4631         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4632         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4633         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4634         for elf subdir.
4635         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4636         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4637         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4638         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4640         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4642 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4644         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4645         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4646         re_string_skip_chars, re_string_reconstruct): Likewise.
4647         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4649 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4651         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4652         adjust the buffer alignment.
4654 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4656         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4657         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4658         net/route.h.
4660         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4661         flavor to description only when flavor is not NULL.
4663         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4664         mutex after SIGIO/SIGURG lookup loop.
4666 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4668         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4670 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4672         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4673         handling.
4675 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4677         * sysdeps/unix/sysv/linux/kernel-features.h
4678         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4680         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4681         if no output is written.
4683         * version.h: Bump to 2.10 development.
4685         * posix/getconf.c: Update copyright year.
4686         * nss/getent.c: Likewise.
4687         * iconv/iconvconfig.c: Likewise.
4688         * iconv/iconv_prog.c: Likewise.
4689         * elf/ldconfig.c: Likewise.
4690         * catgets/gencat.c: Likewise.
4691         * csu/version.c: Likewise.
4692         * elf/ldd.bash.in: Likewise.
4693         * elf/sprof.c (print_version): Likewise.
4694         * locale/programs/locale.c: Likewise.
4695         * locale/programs/localedef.c: Likewise.
4696         * nscd/nscd.c (print_version): Likewise.
4697         * debug/xtrace.sh: Likewise.
4698         * malloc/memusage.sh: Likewise.
4699         * malloc/mtrace.pl: Likewise.
4700         * debug/catchsegv.sh: Likewise.
4702 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4704         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4705         script.
4707 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4709         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4710         gethostbyname4_r function call succeeded, just leave the loop.
4712         [BZ #9694]
4713         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4714         very end.
4715         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4716         * wctype/Makefile (tests): Add bug-wctypeh.
4717         * wctype/bug-wctypeh.c: New file.
4719         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4720         LOCALDOMAIN is defined.
4721         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4723         * sysdeps/x86_64/bits/select.h: New file.
4725         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4727 2008-12-21  Bruno Haible  <bruno@clisp.org>
4729         [BZ #9677]
4730         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4731         if no output is written.
4733 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4735         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4736         libc internal symbol __dup2 to avoid access through the PLT.
4738 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4740         [BZ #6545]
4741         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4742         available only for __USE_GNU.
4744         * inet/Makefile (tests): Add tst-getni2.
4745         * inet/tst-getni2.c: New file.
4747         [BZ #7080]
4748         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4749         NULL when NI_NAMEREQD is set.
4750         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4751         * inet/Makefile (tests): Add tst-getni1.
4752         * inet/tst-getni1.c: New file.
4754 2008-12-03  Petr Baudis  <pasky@suse.cz>
4756         [BZ #7067]
4757         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4758         instead of prune_lock.
4759         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4760         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4762 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4764         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4765         use.
4767         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4768         handling.
4770         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4771         after reading name server list.
4773         [BZ #7058]
4774         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4775         handling for host name aliases.
4777 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4779         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4780         instead of doing things manually.
4782 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4784         * posix/regex_internal.h (build_wcs_upper_buffer):
4785         Return type is reg_error_t.
4787 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4789         * posix/globtest.sh: Use mktemp to create temporary file and
4790         directory.
4792         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4793         sets correctly.
4794         (__CPU_CLR_S): Likewise.
4795         (__CPU_ISSET_S): Likewise.
4797 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4798             Ulrich Drepper  <drepper@redhat.com>
4800         * scripts/firstversion.awk: Use custom comparison function to compare
4801         version numbers.
4802         * scripts/versions.awk: Use sort invocation which can handle
4803         multi-digit sub-version numbers.
4805 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4807         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4808         * locale/iso-639.def: Add Chhattisgarhi entry.
4810 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4812         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4813         ESRCH return value.
4814         (_nss_dns_gethostbyname4_r): Likewise.
4815         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4816         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4817         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4818         the no_data variable.
4820         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4821         information at the correct index.
4823         * socket/sys/socket.h: Declare accept4.
4824         * socket/accept4.c: New file.
4825         * sysdeps/unix/sysv/linux/accept4.c: New file.
4826         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4827         * socket/Makefile (routines): Add accept4.
4828         * socket/Versions: Export accept4 with version GLIBC_2.10.
4829         * socket/paccept.c: Removed.
4830         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4831         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4832         * Versions.def: Define GLIBC_2.10 for libc.
4833         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4835         * nscd/connections.c: Use accept4.
4837         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4839 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4841         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4842         flag already set.
4844         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4845         not exist.
4846         * stdlib/Makefile (tests): Add tst-unsetenv1.
4847         * stdlib/tst-unsetenv1.c: New file.
4849 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4851         * login/utmp_file.c (file_writable): New variable.
4852         (setutent_file): Don't try to open file for writing.
4853         (pututline_file): Before writing, make descriptor writable if
4854         necessary.
4856 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4858         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4859         to IPv4 or IPv6 if an interface has been found.
4861 2008-11-26  Roland McGrath  <roland@redhat.com>
4863         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4864         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4866         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4867         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4868         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4870         * elf/elf.h (NT_386_IOPERM): New macro.
4871         (NT_PPC_VSX): New macro.
4873 2008-11-25  Roland McGrath  <roland@redhat.com>
4875         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4876         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4877         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4878         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4879         Subdirectories moved to ports repository.
4880         * configure.in (base_machine): Remove alpha case.
4882 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4884         * sysdeps/mach/strerror_l.c: New file.
4886 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4888         [BZ #6411]
4889         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4890         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4891         magic numbers.
4892         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4893         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4894         (relax_fenv_state): Same as above.
4895         (FPSCR_29): Reserve bit in ISA 2.05.
4896         (FPSCR_NI): Provide define for compat.
4897         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4898         magic numbers.
4899         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4900         magic numbers.
4901         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4902         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4903         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4904         access to hwcap to account for hwcap size increase to uint64_t.
4905         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4906         Likewise.
4907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4908         (*setcontext): Likewise.
4909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4910         New file.
4911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4912         New file.
4913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4914         (*setcontext): dynamically select mtfsf insn based on
4915         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4916         increase to uint64_t.
4917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4918         (*swapcontext): dynamically select mtfsf insn based on
4919         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4920         increase to uint64_t.
4921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4922         New file.
4923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4924         New file.
4925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4926         (*setcontext): dynamically select mtfsf insn based on
4927         PPC_FEATURE_HAS_DFP.
4928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4929         (*swapcontext): dynamically select mtfsf insn based on
4930         PPC_FEATURE_HAS_DFP.
4932 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4934         * version.h: Bump for 2.9 release.
4935         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4937         [BZ #7029]
4938         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4939         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4940         all the rounding.
4942 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4944         [BZ #7009]
4945         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4946         unknown request types for now.
4948 2008-11-11  Roland McGrath  <roland@redhat.com>
4950         * sysdeps/x86_64/configure: New file.
4952         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4953         * configure: Regenerated.
4955 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4957         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4958         correct instruction to remove the stack frame.
4960 2008-11-03  Michael Matz  <matz@suse.de>
4962         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4963         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4965 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4967         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4968         Remove.
4970         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4971         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4972         of the thread variable instead of void *.
4973         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4974         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4975         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4976         __libc_tsd_define arguments.
4977         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4978         __libc_tsd_address arguments.  Remove union hack.
4979         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4980         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4981         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4982         Adjust __libc_tsd_{set,get} arguments.
4983         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4984         __libc_tsd_define arguments.
4985         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4986         arguments.
4987         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4988         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4989         (LOCALE): Adjust __libc_tsd_define arguments.
4990         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4991         arguments.
4992         (LOCALE): Adjust __libc_tsd_define arguments.
4993         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4994         arguments.
4995         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4996         arguments.
4998 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5000         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5001         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5003 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5005         [BZ #6966]
5006         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5008 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5009             Ulrich Drepper  <drepper@redhat.com>
5011         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5012         definition for GCC 3.1 and later.
5014 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5016         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5017         refetch dtv, as it might have changed.
5018         * elf/Makefile: Add rules to build and run tst-tls18.
5019         * elf/tst-tls18.c: New test.
5020         * elf/tst-tlsmod18a.c: New file.
5022 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5024         [BZ #6875]
5025         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5027 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5029         [BZ #6867]
5030         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5032         [BZ #6919]
5033         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5034         Fix length of copy operation.
5036 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5038         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5039         and fix its calling convention.
5041 2008-10-07  Andreas Schwab  <schwab@suse.de>
5043         [BZ #6942]
5044         * resolv/res_send.c (send_vc): Fix last change.
5045         (send_dg): Align here as well.
5047 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5049         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5050         return value in case rlimit is RLIM_INFINITY.
5052         [BZ #6947]
5053         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5054         for UL_SETFSIZE.
5055         * resource/Makefile (tests): Add bug-ulimit1.
5056         * resource/bug-ulimit1.c: New file.
5058         [BZ #6974]
5059         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5060         without dot.  Properly terminate the string with a null byte.
5061         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5063         [BZ #6980]
5064         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5065         negative sizees.
5066         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5067         negative __size.
5069         [BZ #6995]
5070         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5072 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5074         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5075         abort if there is no initgroups_dyn function.
5077         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5078         result if any of the queries really provided an answer.
5080 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5082         * po/lt.po: Update from translation team.
5084 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5086         * po/id.po: Update from translation team.
5088 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5090         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5091         Fix tests for existence of second reply.
5093 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5095         * po/id.po: New file.
5096         Contributed by the Indonesian translation team.
5098 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5100         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5101         initialization.
5103 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5105         * elf/Makefile: Add rules to build and run tst-tls17.
5106         * elf/tst-tls17.c: New test.
5107         * elf/tst-tlsmod17a.c: New file.
5108         * elf/tst-tlsmod17b.c: Likewise.
5110 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5112         * stdlib/divmod_1.c: Use correct type for dummy variable.
5113         * stdlib/mod_1.c: Likewise.
5115 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5117         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5119 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5121         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5122         __nonnull order for C++.
5123         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5124         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5126 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5128         * stdlib/longlong.h: Update from GCC.
5130 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5131             David S. Miller  <davem@davemloft.net>
5133         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5134         make sure any registers used with 64-bit 'branch-on-register'
5135         instructions have their top 32-bits clear.
5136         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5137         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5139 2008-09-18  Andreas Schwab  <schwab@suse.de>
5141         [BZ #6942]
5142         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5143         Properly handle partial reads.
5145 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5147         * elf/elf.h (STO_MIPS_PLT): New.
5148         (R_MIPS_COPY): New.
5149         (R_MIPS_JUMP_SLOT): New.
5150         (R_MIPS_NUM): Redefine to 128.
5151         (DT_MIPS_PLTGOT): New.
5152         (DT_MIPS_RWPLT): New.
5153         (DT_MIPS_NUM): Redefine to 0x35.
5155 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5157         * timezone/africa: Update from tzdata2008f.
5158         * timezone/asia: Likewise.
5159         * timezone/australasia: Likewise.
5160         * timezone/europe: Likewise.
5161         * timezone/leapseconds: Likewise.
5162         * timezone/northamerica: Likewise.
5163         * timezone/southamerica: Likewise.
5164         * timezone/zone.tab: Likewise.
5166 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5168         * nscd/connections.c: Disable use of paccept for now.
5170 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5172         * socket/Versions: Remove paccept export for GLIBC_2.9.
5173         * socket/Makefile (routines): Remove paccept.
5174         * socket/sys/socket.h: Remove paccept declaration.
5176         * po/sv.po: Update from translation team.
5178 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5180         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5181         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5183 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5185         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5186         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5188 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5190         * sunrpc/rpc/svc.h: Declare svcfd_create.
5191         Patch by Michael Solberg <msolberg@redhat.com>.
5193 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5194             Ulrich Drepper  <drepper@redhat.com>
5196         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5197         _int_valloc fails.
5198         (public_pVALLOc): Likewise.
5200 2008-09-02  Andreas Jaeger  <aj@suse.de>
5202         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5203         commit.
5205 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5207         [BZ #6860]
5208         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5210 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5212         * Makefile (check-data): Check data directory in add-ons.
5213         * elf/Makefile (check-data): Likewise.
5215 2008-08-18  Roland McGrath  <roland@redhat.com>
5217         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5218         * configure: Regenerated.
5219         * config.make.in (cflags-cpu): New substituted variable.
5220         (with-cpu): Variable removed.
5221         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5223 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5225         [BZ #6845]
5226         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5227         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5228         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5229         redundant.  Functions which call floating point assembler operations
5230         should go into a sysdeps powerpc/fpu directory.
5232 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5234         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5235         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5237 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5239         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5241         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5242         change related to AT_EXECFN.  We cannot use that string.
5243         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5244         _dl_execfn member.
5245         * elf/dl-support.c: Remove _dl_execfn variable.
5246         (_dl_aux_init): Remove handling of AT_EXECFN.
5247         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5248         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5250 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5252         [BZ #6544]
5253         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5254         byte gets added to writes and seeks from the end use the length of
5255         the buffer and not the currently terminating NUL byte.
5257         [BZ #6634]
5258         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5259         Set to true if locking failed.
5260         (getutid_r_file): Adjust caller.
5261         (pututline_file): Likewise.  Return NULL in this case.
5262         Patch mostly by halesh.s@gmail.com.
5264 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5266         [BZ #6589]
5267         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5268         Define.
5269         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5271 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5273         [BZ #6839]
5274         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5275         macro since it is now available in elf/dynamic-link.h.
5277 2008-08-12  Roland McGrath  <roland@frob.com>
5279         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5280         in case used outside of libc.
5281         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5283 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5285         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5286         directly instead of going through dn_comp.
5288 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5290         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5291         Fix asm constraints.
5293 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5295         [BZ #6790]
5296         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5297         (IPV6_PMTUDISC_PROBE): Likewise.
5299 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5301         [BZ #6791]
5302         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5304 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5305             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5307         [BZ #6817]
5308         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5309         Added the members 'vsx' and 'arch_2_06'.
5310         (_dl_powerpc_platforms): Add the member 'power7'.
5311         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5312         to reflect the changes required by VSX and ISA 2.06.
5313         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5314         'power7'.
5315         Defined PPC_PLATFORM_POWER7.
5316         (_dl_string_platform): Add support for POWER7.
5317         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5318         capability and ISA 2.06.
5320 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5322         [BZ #6824]
5323         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5324         macro to detect use of 128 bit long double.
5325         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5327 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5329         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5331         [BZ #5794]
5332         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5333         parameters.
5334         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5335         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5337 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5339         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5340         guaranteed to be large enough to read inotify event.  Ignore
5341         EAGAIN error.  Better error message.  Add branch predicition.
5342         (main_loop_epoll): Likewise.
5344 2008-08-02  Roland McGrath  <roland@frob.com>
5346         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5347         Add memory clobbers.
5349 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5351         * manual/arith.texi: Avoid @strong{Note:}.
5352         * manual/creature.texi: Likewise.
5353         * manual/filesys.texi: Likewise.
5354         * manual/math.texi: Likewise.
5355         * manual/memory.texi: Likewise.
5356         * manual/resource.texi: Likewise.
5357         * manual/syslog.texi: Likewise.
5358         * manual/time.texi: Likewise.
5360         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5361         to prevent warning.
5363 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5365         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5366         new epoll_create1 interface.
5367         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5368         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5369         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5371         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5372         (NS_GET32): Likewise.
5374         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5375         syscalls, too.
5377         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5378         use the AT_EXECFN value if it is no absolute path.
5379         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5380         __ASSUME_AT_EXECFN.
5382         * Versions.def: Add GLIBC_2.9 to libresolv.
5383         * include/resolv.h: Remove hidden proto declarations for __ns_*
5384         functions.  Add them for __dn_count_labels and __p_secstodate.
5385         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5386         Define ns_msg_getflags macro here.
5387         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5388         and __p_secstodate.
5389         * resolv/Versions: Export functions from <arpa/nameser.h> from
5390         libresolv in version GLIBC_2.9.
5391         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5392         hidden definitions.
5393         * resolv/ns_netint.c: Likewise.
5394         * resolv/ns_parse.c: Likewise.
5395         * resolv/ns_print.c: Likewise.
5396         * resolv/ns_samedomain.c: Likewise.
5397         * resolv/ns_ttl.c: Likewise.
5398         * resolv/arpa/nameser_compat.h: Likewise.
5399         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5400         function calls.
5401         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5402         instead of ns_get16.
5403         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5404         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5405         (gaih_getanswer_slice): Likewise.
5406         * resolv/Makefile (libresolv-routines): Add ns_date.
5407         * resolv/ns_date.c: New file.
5409         * elf/Makefile (check-localplt.out): Also check libresolv and
5410         libcrypt.
5412 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5414         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5415         __ASSUME_O_CLOEXEC.
5417 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5419         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5420         buffer passed to NSS functions.
5422         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5424         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5425         Define.
5427         * misc/syslog.c (openlog_internal): Fix compile problem.
5429 2008-07-28  Roland McGrath  <roland@redhat.com>
5431         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5433 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5435         * io/ftw.c (add_object): Remove inline to avoid warning.
5437         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5439         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5440         Use it instead of locally defined resplen2 variable.
5441         (res_nsend): Adjust for __libc_res_nsend interface change.
5442         (send_vc): Initialize *resplen2 if necessary.  Read length of
5443         package into an appropriately aligned variable.  Store converted length
5444         in new variable and use it appropriately.
5445         Add branch prediction help.
5446         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5447         and pass it on to __libc_res_nsend.  Adjust all callers.
5448         (__libc_res_nsearch): Likewise.
5449         (__libc_res_nqeurydomain): Likewise.
5450         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5451         change.
5452         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5453         Define resplen2 variable and pass it to __libc_res_nsearch and then
5454         to gaih_getanswer.
5455         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5456         Add branch prediction.
5457         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5458         (gaih_getanswer): Don't decode second slice if first one failed due
5459         to a too small buffer.  Don't let not found status of second
5460         decoder shadow results of the first.
5461         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5462         and __libc_res_nquery interface changes
5463         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5464         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5465         __libc_res_nsearch, and __libc_res_nsend.
5466         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5467         change.
5468         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5469         __libc_res_nsearch interface changes.
5471 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5473         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5475         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5476         file descriptors with close-on-exec set.
5477         (exec_comm_child): Fix the case where the write end of the pipe is
5478         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5480         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5481         * io/pipe2.c: Likewise.
5482         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5483         instead of __ASSUME_PACCEPT.
5484         * include/unistd.h: Declare __have_pipe2.
5485         * libio/iopopen.c: Implement "e" flag.
5486         * libio/Makefile (tests): Add tst-popen1.
5487         * libio/tst-popen1.c: New file.
5489         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5490         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5492 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5494         [BZ #6771]
5495         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5496         success call of _IO_SEEKOFF or calls which failed because the
5497         descriptor is for a pipe.
5499         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5500         magic number.
5502         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5504         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5505         F_SETFD use if we know fopen set the flag.
5507         * login/utmp_file.c (setutent_file): Minor optimization in case
5508         O_CLOEXEC is available.
5510 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5512         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5513         * elf/Makefile: Use pie-ccflag variable.
5514         * nscd/Makefile: Likewise.
5515         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5517 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5519         [BZ #6724]
5520         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5521         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5522         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5523         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5524         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5525         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5526         utmp32, utmpx32 and login32.
5527         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5528         versions of struct utmp functions to libc and libutil.
5529         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5530         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5531         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5532         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5533         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5534         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5535         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5536         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5537         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5538         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5539         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5540         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5541         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5542         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5543         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5544         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5545         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5546         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5547         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5548         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5549         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5550         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5552 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5554         * scripts/gen-as-const.awk: Generate more widely usable code by
5555         using 64-bit arithmetic.
5557         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5558         the same treatment as narrow output code in last patch.
5560         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5562         [BZ #6763]
5563         * elf/dl-load.c (local_strdup): Remove inline.
5564         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5565         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5566         part of the object.
5568         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5570 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5572         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5573         the new syscalls, too.
5575         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5576         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5578         [BZ #6698]
5579         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5580         parameter for end of buffer.  If temporary copy is too large use
5581         malloc.
5582         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5583         interface change.
5584         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5585         string rewrite when allocating buffer.
5587         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5588         syscalls, too.
5590         * nscd/connections.c (nscd_init): Clean up fcntl call.
5592         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5593         SOCK_NONBLOCK if possible.
5595         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5596         SOCK_CLOEXEC if available.
5598         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5599         __libc_clntudp_bufcreate_internal.
5600         * include/sys/socket.h: Declare __have_sock_cloexec.
5601         * socket/Makefile (aux): Add have_sock_cloexec.
5602         * socket/have_sock_cloexec.c: New file.
5603         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5604         __libc_clntudp_bufcreate.
5605         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5606         which takes an additional parameter.  Create socket with non-blocking
5607         mode and close-on-exec flag set, if wanted.
5608         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5609         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5610         instead of clntudp_create.  The socket has already the close-on-exec
5611         flag set if SOCK_CLOEXEC is defined.
5613 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5615         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5616         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5617         appropriate.
5618         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5619         non-blocking mode by using socket, paccept, and inotify_init1.
5621         * Versions.def (glibc): Add GLIBC_2.9.
5622         * io/Makefile (routines): Add dup3 and pipe2.
5623         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5624         * io/dup3.c: New file.
5625         * io/pipe2.c: New file.
5626         * posix/unistd.h: Declare dup3 and pipe2.
5627         * socket/Makefile (routines): Add paccept.
5628         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5629         * socket/paccept.c: New file.
5630         * socket/sys/socket.h: Declare paccept.
5631         * sysdeps/unix/syscalls.list: Add entry for dup3.
5632         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5633         epoll_create2 and inotify_init1.
5634         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5635         * sysdeps/unix/sysv/linux/paccept.c: New file.
5636         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5637         possible.
5638         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5639         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5640         inotify_init1, and pipe2 entries.
5641         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5642         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5643         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5644         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5645         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5646         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5647         SOCK_NONBLOCK.
5648         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5649         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5650         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5651         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5652         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5653         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5655         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5656         EPOLL_NONBLOCK.  Declare epoll_create2.
5657         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5658         EFD_NONBLOCK.
5659         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5660         IN_NONBLOCK.  Declare inotify_init1.
5661         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5662         SFD_NONBLOCK.
5663         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5664         TFD_NONBLOCK.
5666         * elf/elf.h: Define AT_EXECFN.
5667         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5668         LD_ORIGIN_PATH.
5669         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5670         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5671         if __ASSUME_AT_EXECFN is defined.
5672         (_dl_aux_init): Handle AT_EXECFN.
5673         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5674         for 2.6.27 and up.
5675         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5676         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5677         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5678         _dl_execfn if available and avoid compatibility code if
5679         __ASSUME_AT_EXECFN is defined.
5681         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5682         _dl_discover_osversion only for older kernels.
5684 2008-07-22  Roland McGrath  <roland@frob.com>
5686         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5688 2008-07-21  Roland McGrath  <roland@frob.com>
5690         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5691         returned too much data out of line.
5693 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5695         * locale/setlocale.c (setname): Remove inline to avoid compiler
5696         warning.
5698         [BZ #6712]
5699         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5701 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5703         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5704         doesn't manage to write anything, fail.
5706         * malloc/hooks.c (__malloc_check_init): Remove printf.
5708 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5710         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5712 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5714         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5715         from inotify.
5716         (main_loop_epoll): Likewise.
5718 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5720         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5722         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5723         if DEBUG is defined.
5725         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5726         query.  Adjust buffer size computation for padding.
5728 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5730         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5731         * stdio-common/tst-setvbuf1.c: New file.
5732         * stdio-common/tst-setvbuf1.expect: New file.
5734         [BZ #6719]
5735         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5736         when selecting fully-buffered stream.
5737         Patch by Wang Xin <wxinee@gmail.com>.
5739 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5741         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5742         (__open_2): New function.
5743         (__open64_2): New alias to __open_2.
5744         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5745         (__openat_2): New function.
5746         (__openat64_2): New alias to __openat_2.
5748 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5750         [BZ #6723]
5751         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5753 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5755         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5756         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5757         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5758         __hurd_dfail.
5759         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5760         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5761         * sysdeps/mach/hurd/send.c (__send): Likewise.
5762         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5763         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5765 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5767         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5768         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5769         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5770         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5771         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5772         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5774 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5776         [BZ #6657]
5777         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5778         of %EY.
5779         Patch by Petr Baudis.
5781 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5783         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5784         Patch by Peter Jones <pjones@redhat.com>.
5786 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5788         [BZ #6654]
5789         * stdlib/canonicalize.c (__realpath): readlink can write too much
5790         into the buffer on platforms without PATH_MAX.
5792 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5794         [BZ #6653]
5795         * posix/tst-regex.c (main): Rename to...
5796         (do_test): ... this. Remove cmdline option processing.
5797         (TIMEOUT): Define.
5798         (TEST_FUNCTION): Define.
5799         (CMDLINE_OPTIONS): Define.
5801 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5803         [BZ #5210]
5804         * configure.in: Add -Werror to -fstack-protector test to catch
5805         unsupported architectures.
5806         Patch by Gilles Esponasse <g.esp@free.fr>.
5808 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5810         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5811         getcontext returns ENOSYS.
5813 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5815         * nscd/connections.c (main_loop_poll): Fix test for read error.
5816         (main_loop_epoll): Likewise.
5818 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5820         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5821         better place so it is not called when nscd is used.
5823         * nscd/connections.c: Also recognize and handle changes to the
5824         resolver configuration file.
5826 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5828         * time/strftime.c: Pass reference to tzset_called around to handle
5829         recursive calls.
5831         [BZ #6612]
5832         * time/strftime.c (__strftime_internal): Call tzset() only
5833         when printing timezone-dependent values.
5834         Based on a patch by Petr Baudis <pasky@suse.cz>.
5836         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5837         unconditionally use second gaih_getanswer_slice result.
5839         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5840         (getaddrinfo): RES must always be non-NULL.
5842 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5844         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5845         cr[34] registers.
5846         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5847         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5848         Likewise.
5849         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5850         register.
5852 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5854         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5855         fields.
5856         * nscd/connections.c (inotify_fd): New variable.
5857         (nscd_init): Try to open an inotify descriptor.
5858         If successful, watch files for databases using inotify instead of
5859         having prune threads stat the files.
5860         (nscd_run_prune): Recognize clear_cache flag being set and call
5861         prune_cache appropriately.
5862         (main_loop_poll): Add inotify descriptor to wait set and handle the
5863         reported changes.
5864         (main_loop_epoll): Likewise.
5865         * nscd/cache.c (prune_cache): Don't stat files for databases if
5866         inotify is used.
5867         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5868         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5870         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5871         fixed-size portion of the record.
5872         * nscd/servicescache.c (cache_addserv): Likewise.
5873         * nscd/pwdcache.c (cache_addpw): Likewise.
5874         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5876 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5878         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5879         out we don't use uninitialized memory.
5881         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5882         the client.
5884 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5886         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5887         ignore T_DNAME messages.
5888         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5890 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5892         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5893         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5895 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5897         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5898         instead of portstr to nscd_getserv_r.  Patch by
5899         Roman Kagan <rkagan@mail.ru>.
5901 2008-05-26  Jim Meyering  <meyering@redhat.com>
5903         Remove more useless "if" tests before "free".
5904         * include/inline-hashtab.h (htab_delete): Likewise.
5905         * libio/freopen.c (freopen): Likewise.
5906         * libio/freopen64.c (freopen64): Likewise.
5907         * locale/programs/ld-collate.c (collate_read): Likewise.
5908         * misc/fstab.c (libc_freeres_fn): Likewise.
5909         * posix/glob.c (globfree): Likewise.
5911 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5913         * string/Makefile (strop-tests): Add memmem.
5914         * string/test-memmem.c: New file.
5915         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5916         (test_init): Size buf1 according to BUF1PAGES.
5918 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5920         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5921         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5922         (CFLAGS-scanf17.c): New.
5923         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5924         * stdio-common/scanf15.c (main): Likewise.
5925         * stdio-common/scanf16.c: New file.
5926         * stdio-common/scanf17.c: New file.
5928 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5930         * resolv/res_send.c (send_dg): If we already have one of two
5931         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5932         use the one answer insted of failing.
5934 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5936         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5937         being executed on PowerPC as the expected result exceeds IBM
5938         long double 128 __LDBL_MAX__.
5940 2008-05-21  Roland McGrath  <roland@redhat.com>
5942         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5944         * Makefile (check-data): Use $(abi-name) before other guesses.
5945         Look in $(add-ons) dirs before scripts/data/.
5946         * elf/Makefile (check-data): Likewise.
5948         * scripts/soversions.awk: Grok ABI line.
5949         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5950         Emit definition for abi-name variable.
5952 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5954         * string/endian.h: Define new fixed-size hto* and *toh macros only
5955         if [__USE_BSD].
5957         * iconvdata/Depend: Add localedata.
5959 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5961         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5963 2008-05-08  David S. Miller  <davem@davemloft.net>
5965         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5966         HIDDEN_JUMPTARGET.
5967         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5968         (__SYSCALL_CLOBBERS): Remove %g* registers.
5969         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5970         (__SYSCALL_CLOBBERS): Likewise.
5971         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5972         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5974 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5976         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5977         (CALL_ERRNO_LOCATION): Define.
5978         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5979         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5980         (CALL_ERRNO_LOCATION): Define.
5981         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5982         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5983         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5985 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5987         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5988         variable.
5990 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5992         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5993         (FIRST_FRAME_POINTER): Define.
5995 2008-05-09  David S. Miller  <davem@davemloft.net>
5997         * sysdeps/sparc/sparc64/backtrace.c: New file.
5999 2008-05-14  David S. Miller  <davem@davemloft.net>
6001         * sysdeps/sparc/machine-gmon.h: New file.
6002         * sysdeps/sparc/sparc-mcount.S: Likewise.
6003         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6004         sysdep_routines in gmon directory.
6006 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6008         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6010 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6012         * resolv/res_query.c (__libc_res_nquery): In case one of two
6013         answer was too short don't try to read that answer's header.
6015         * resolv/res_send.c (send_dg): In case of timeout and there are
6016         two queries and one has been answered, return value indicating
6017         success.
6019 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6021         * nscd/cache.c (cache_add): Take additional parameter specifying
6022         whether this is in response of a cache refill.  Check alignment
6023         of package data.  Revamp waking of pruning thread.
6024         (prune_cache): Small optimization.
6025         * nscd/nscd.h: Adjust cache_add prototypes.
6026         * nscd/aicache.c: Adjust cache_add calls.
6027         * nscd/grpcache.c: Likewise.
6028         * nscd/hstcache.c: Likewise.
6029         * nscd/initgrcache.c: Likewise.
6030         * nscd/pwdcache.c: Likewise.
6031         * nscd/servicescache.c: Likewise.
6032         * nscd/connections.c (restart): Really disable cache use before
6033         exec attempt.  If it fails, reenable cache.
6034         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6035         time to max to be able to notice concurrent cache additions.  Unlock
6036         prune_lock while performing gc.  Afterwards compute wakeup time with
6037         current wakeup_time value in mind.
6039 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6041         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6043         * nscd/mem.c (gc): Correctly determine highest used array element
6044         in mark.
6046         * nscd/mem.c (markrange): Add assert to check entries are all
6047         aligned.  Small cleanup in bitmap use.
6049         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6050         blockoff of type nscd_ssize_t.
6051         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6052         (mempoll_alloc): Record block offset and not address.
6054         * nscd/mem.c (gc): Fix test for stack overuse.
6056         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6057         more asserts.
6059         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6060         entry is available, believe it.
6062         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6063         no answers return NSS_STATUS_NOTFOUND.
6064         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6065         buffer does not have any content.
6067 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6069         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6071         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6072         lookup, don't assign canon unconditionally.
6074 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6076         * string/Makefile (distribute): Add str-two-way.h.
6078 2008-03-29  Eric Blake  <ebb9@byu.net>
6080         Rewrite string searches to O(n) rather than O(n^2).
6081         * string/str-two-way.h: New file.  For linear fixed-allocation
6082         string searching.
6083         * string/memmem.c: New implementation.
6084         * string/strstr.c: New implementation.
6085         * string/strcasestr.c: New implementation.
6087 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6089         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6090         opr.ctx_type.
6091         (calc_first): Initialize constraint field.
6092         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6093         Use search_duplicated_node to avoid loops.  Fix grammar.
6094         (duplicate_node): Merge constraint field for all node types.
6095         (calc_eclosure_iter): Look at constraint field for all node types.
6096         * posix/regex_internal.c (create_cd_newstate): Don't look at
6097         create_cd_newstate.
6099 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6101         [BZ #6428]
6102         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6104         [BZ #6442]
6105         * string/endian.h: Add macros for fixed-size endian conversion.
6106         * bits/byteswap.h: Allow inclusion from <endian.h>.
6107         * sysdeps/i386/bits/byteswap.h: Likewise.
6108         * sysdeps/ia64/bits/byteswap.h: Likewise.
6109         * sysdeps/s390/bits/byteswap.h: Likewise.
6110         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6111         * string/Makefile (tests): Add tst-endian.
6112         * string/tst-endian.c: New file.
6114         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6115         Patch by Reuben Thomas.
6117 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6119         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6121 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6123         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6125         [BZ #6461]
6126         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6127         Add missing braces.
6128         (BODY for __gconv_transform_internal_ascii): Likewise.
6130         [BZ #6472]
6131         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6132         to be treated like link-local addresses.
6133         (match_prefix): Don't treat IPv4 loopback address special when
6134         converting to v4 mapped addressed.
6136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6137         if necessary.
6138         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6139         * posix/tst-rfc3484-2.c: Likewise.
6140         * posix/tst-rfc3484-3.c: Likewise.
6142         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6143         and SCTP.
6145         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6147         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6149         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6151 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6153         * po/lt.po: New file.  From Lituanian translation team.
6155 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6157         Introduce TLS descriptors for i386 and x86_64.
6158         * include/inline-hashtab.h: New file, copied from 2005's
6159         libiberty, with fix for memory leak imported afterwards by
6160         Glauber de Oliveira Costa.
6161         * elf/tlsdeschtab.h: New file.
6162         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6163         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6164         (CHECK_STATIC_TLS): Move to...
6165         * elf/dynamic-link.h: ... this file.
6166         (TRY_STATIC_TLS): New macro.
6167         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6168         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6169         R_386_TLS_DESC): Define.
6170         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6171         binutils.
6172         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6173         R_X86_64_TLSDESC): Define.
6174         (R_386_NUM, R_X86_64_NUM): Adjust.
6175         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6176         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6177         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6178         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6179         release tlsdesc_table.
6180         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6181         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6182         (elf_machine_rel): Handle R_386_TLS_DESC.
6183         (elf_machine_rela): Likewise.
6184         (elf_machine_lazy_rel): Likewise.
6185         (elf_machine_lazy_rela): Likewise.
6186         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6187         * sysdeps/i386/dl-tlsdesc.S: New file.
6188         * sysdeps/i386/dl-tlsdesc.h: New file.
6189         * sysdeps/i386/tlsdesc.c: New file.
6190         * sysdeps/i386/tlsdesc.sym: New file.
6191         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6192         tlsdesc_table.
6193         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6194         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6195         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6196         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6197         release tlsdesc_table.
6198         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6199         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6200         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6201         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6202         (elf_machine_rela): Likewise.
6203         (elf_machine_lazy_rel): Likewise.
6204         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6205         (__tls_get_addr): Do not declare for non-shared compiles.
6206         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6207         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6208         * sysdeps/x86_64/tlsdesc.c: New file.
6209         * sysdeps/x86_64/tlsdesc.sym: New file.
6210         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6211         tlsdesc_table for both 32- and 64-bit structs.
6213 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6215         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6216         its own function.  This reduces the frame setup costs and more.
6218 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6220         [BZ #3406]
6221         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6222         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6224 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6226         * io/openat.c (__openat_2): Also pass fd to __openat.
6227         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6228         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6230         * string/tester.c (test_memcmp): Add a few more tests.
6231         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6233 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6235         * nscd/cache.c (cache_add): Before returning with failure and this
6236         is the first use of the record, mark it as unusable.
6237         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6238         reporting a failure.
6239         * nscd/grpcache.c: Likewise
6240         * nscd/hstcache.c: Likewise.
6241         * nscd/initgrcache.c: Likewise.
6242         * nscd/pwdcache.c: Likewise.
6243         * nscd/servicescache.c: Likewise.
6245 2008-05-10  Roland McGrath  <roland@redhat.com>
6247         [BZ #6505]
6248         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6250 2008-05-08  David S. Miller  <davem@davemloft.net>
6252         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6254         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6255         (__ieee754_y0l): Likewise.
6256         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6257         (__ieee754_y1l): Likewise.
6258         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6259         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6260         frexpl and ldexpl.  math_private.h provides them and the latter
6261         is not even used.
6262         (__log1pl): Use __frexpl.
6264 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6266         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6267         prototypes.
6268         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6269         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6270         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6271         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6272         af==AF_UNSPEC.
6273         (_nss_nis_gethostbyname4_r): New function.
6274         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6275         Change to also handle af==AF_UNSPEC.
6276         (get_tablename): New function.  Use it to avoid duplication.
6277         (_nss_nisplus_gethostbyname4_r): New function.
6278         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6279         available.
6280         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6281         * nss/nss.h: Define struct gaih_addrtuple.
6282         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6283         af==AF_UNSPEC.
6284         (_nss_files_gethostbyname4_r): New function.
6285         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6286         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6287         calls.
6288         * resolv/res_query.c (__libc_res_nquery): Take two additional
6289         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6290         look up IPv4 and IPv6.
6291         Change all callers.
6292         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6293         for an additional query and answer buffer.  Pass to send_vc and
6294         send_dg.
6295         (send_vc): Send possibly two requests and receive two answers.
6296         (send_dg): Likewise.
6297         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6298         __libc_res_nquery.
6299         (_nss_dns_gethostbyname4_r): New function.
6300         (gaih_getanswer_slice): Likewise.
6301         (gaih_getanswer): Likewise.
6302         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6303         __libc_res_nquery call.
6304         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6305         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6306         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6307         available.
6309 2008-05-05  David S. Miller  <davem@davemloft.net>
6311         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6312         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6314 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6316         Fix termios bit macros.
6317         Move *DLY definitions where they belong, in termios.h.
6318         Add *[0-3] definitions.
6319         Fixes confusion between VT and FF.
6320         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6321         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6322         are already defined to avoid collision with termios.h.
6323         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6324         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6325         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6326         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6327         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6328         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6329         VTDLY, VT0, VT1): New macros.
6330         [__USE_GNU] (OLCUC): Change value of macro.
6331         [__USE_XOPEN] (OFILL): New macro.
6332         [__USE_BSD] (CRTSCTS): Change value.
6333         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6334         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6335         (B7200, B14400, B28800, B76800): New macros.
6337 2008-05-01  David S. Miller  <davem@davemloft.net>
6339         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6340         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6341         (gen-as-const-headers): Add it.
6342         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6343         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6344         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6345         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6347         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6348         six system call parameters.
6349         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6351 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6353         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6354         RUSAGE_LWP.
6355         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6356         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6358 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6360         * stdlib/tst-setcontext.c: Include unistd.h.
6362 2008-04-25  David S. Miller  <davem@davemloft.net>
6364         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6365         Pass "union semun" properly in to sys_ipc, it must be passed
6366         by value, not by reference.
6368 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6370         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6371         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6372         * nscd/connections.c (mem_in_flight): Likewise.
6374         * nscd/nscd.h (dbs): Make hidden.
6376         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6377         Avoid returning -1, return 0 instead.
6379 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6381         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6383 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6385         [BZ #5209]
6386         * sysdeps/unix/sysv/linux/times.c: New file.
6388         [BZ #5381]
6389         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6390         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6391         prototype.
6392         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6393         appropriate mem_in_flight element.
6394         (gc): Take allocations which have not yet been committed to the
6395         database into account.
6396         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6397         Reset mem_in_flight before returning.
6398         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6399         cue it up in mem_in_flight_list.
6400         * nscd/aicache.c: Adjust mempool_alloc call.
6401         * nscd/grpcache.c: Likewise.
6402         * nscd/hstcache.c: Likewise.
6403         * nscd/initgrcache.c: Likewise.
6404         * nscd/pwdcache.c: Likewise.
6405         * nscd/servicescache.c: Likewise.
6406         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6407         of -fpie.
6409         * nscd/connections.c (handle_request): Provide better error message
6410         in case SELinux forbids the service.
6412         * version.h (VERSION): Bump to 2.8.90.
6414 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6416         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6418 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6420         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6421         Also use for 32-bit.
6422         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6423         __nextafter instead of nextafter to avoid local PLT.
6424         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6425         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6427         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6429         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6430         __fe_nomask_env.
6431         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6432         <fenv_libc.h> instead of <fenv.h>.
6433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6436         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6438         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6439         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6440         function from fegetexcept and make old name weak alias.
6441         * include/fenv.h: Declare __fegetexcept.
6442         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6443         fegetexcept.
6444         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6445         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6446         to fetestexcept.
6447         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6448         instead of frexpl to avoid local PLT.
6449         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6450         ilogbl to avoid local PLT.
6451         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6452         instead of ldexpl to avoid local PLT.
6453         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6454         __roundl not roundl to avoid local PLT.
6455         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6456         local PLTs.  Use __sincosl instead of separate sinl and cosl
6457         calls.
6458         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6460         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6461         version for ppc64 to 2.4.21 since without it makecontext will fail.
6463         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6464         to the ABI in use.
6465         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6466         .__tls_get_addr.
6467         [__powerpc64__] (TLS_GD): Likewise.
6469 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6471         [BZ #4997]
6472         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6473         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6474         mantissa.
6475         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6476         Likewise.  Also account for when x is an odd number between 2^52
6477         and 2^53-1.
6478         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6479         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6480         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6481         detect aforementioned erroneous conditions.
6483 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6485         * configure.in: Check for -fno-section-anchors in addition to
6486         -fno-toplevel-reorder.
6488 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6490         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6492         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6493         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6494         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6495         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6496         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6497         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6499 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6501         [BZ #5443]
6502         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6503         * time/alt_digit.c: Likewise.
6504         * wcsmbs/wcsmbsload.c: Likewise.
6506 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6508         * version.h (VERSION): Bump to 2.8.
6510         * timzeone/asia: Update from tzdata2008b.
6511         * timezone/backward: Likewise.
6512         * timezone/europe: Likewise.
6513         * timezone/northamerica: Likewise.
6514         * timezone/southamerica: Likewise.
6515         * timezone/iso3166.tab: Likewise.
6516         * timezone/leapseconds: Likewise.
6517         * timezone/zone.tab: Likewise.
6518         * timezone/private.h: Update from tzcode2008a.
6519         * timezone/zdump.c: Likewise.
6520         * timezone/zic.c: Likewise.
6522 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6524         [BZ #5741]
6525         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6526         Define additonal Data Cache Block instruction macros.
6527         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6528         Replace dcbst with dcbf and sync with sync/isync.
6530 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6532         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6533         Always set ELF_RTYPE_CLASS_PLT.
6534         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6536 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6538         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6539         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6540         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6541         For ISA 2.01 and later replace mftb with mfspr 268.
6543 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6545         [BZ #5768]
6546         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6547         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6549 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6551         [BZ #5768]
6552         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6553         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6554         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6555         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6557 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6559         * stdlib/tst-makecontext.c (othervar): New variable.
6560         (cf): Test sign extending the argument to long.
6562 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6564         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6565         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6566         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6567         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6568         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6569         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6570         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6572 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6574         * elf/Makefile (tests): Substitute tests-vis-yes here.
6575         (tests-vis-yes): Delete.
6576         (modules-name, modules-vis-yes): Similarly.
6578 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6580         [BZ #4407]
6581         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6582         Preserve sign in signgamp when x is zero.
6584 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6586         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6587         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6588         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6589         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6590         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6591         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6593 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6595         [BZ #4314]
6596         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6597         buffers.
6599         [BZ #5209]
6600         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6601         a reserved error value.
6603         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6604         value to check for correct sign extension.
6606         [BZ #5436]
6607         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6608         Copy 64-bit parameter values even though this is not required in
6609         the standard.
6611         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6612         PC save.
6614 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6616         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6617         PC save.
6619 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6621         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6623 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6625         [BZ #5998]
6626         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6627         in line-buffered stream failed.
6628         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6630 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6632         [BZ #6024]
6633         * scripts/abi-versions.awk: If the version specified by
6634         --enable-oldest-abi is older than the first version for this
6635         architecture, use the default version.
6637         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6638         as well when ignoring the whole category.
6640 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6642         [BZ #6042]
6643         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6644         ETHERTYPE_* definitions.
6645         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6647 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6649         * stdlib/mbtowc.c (__no_r_state): Remove.
6650         (mbtowc): New static state variable.  Use it instead of
6651         __no_r_state.
6652         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6653         (__wctomb_state): New hidden variable.
6654         (wctomb): Use __wctomb_state instead of __no_r_state.
6655         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6656         (__wctomb_state): New extern decl.
6657         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6659 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6661         [BZ #5475]
6662         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6664 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6666         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6668 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6670         * po/nl.po: Update from translation team.
6672 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6674         [BZ #6007]
6675         * string/strfry.c: Handle empty strings again.
6677 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6679         [BZ #5443]
6680         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6681         before looking for translation.
6682         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6683         * locale/freelocale.c: Likewise.
6684         * locale/newlocale.c: Likewise.
6685         * locale/setlocale.c: Likewise.
6686         Based partially on a patch by ryo@np.css.fujitsu.com.
6688 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6690         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6691         acquiring wrlock.  Do conv_tab allocation while holding lock.
6692         * intl/Makefile: Add rules to build and run tst-gettext6.
6693         * intl/tst-gettext6.c: New test.
6694         * intl/tst-gettext6.sh: New file.
6696 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6698         * po/nl.po: Update from translation team.
6700         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6701         provided through st_blksize, try the default size before giving up.
6703 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6705         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6707         [BZ #5939]
6708         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6710         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6711         error message.  POSIX today does not require the messages to be in
6712         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6714         [BZ #5979]
6715         * sunrpc/auth_unix.c: Unify printed strings.
6716         * sunrpc/clnt_tcp.c: Likewise.
6717         * sunrpc/clnt_udp.c: Likewise.
6718         * sunrpc/clnt_unix.c: Likewise.
6719         * sunrpc/svc_tcp.c: Likewise.
6720         * sunrpc/svc_udp.c: Likewise.
6721         * sunrpc/svc_unix.c: Likewise.
6722         * sunrpc/xdr.c: Likewise.
6723         * sunrpc/xdr_array.c: Likewise.
6724         * sunrpc/xdr_rec.c: Likewise.
6725         * sunrpc/xdr_ref.c: Likewise.
6726         * locale/programs/ld-time.c (time_finish): Unify messages.
6727         * locale/programs/locfile.c (handle_copy): Fix typo.
6728         * nscd/nscd.c (options): Fix typo.
6730         [BZ #5995]
6731         * stdlib/strtod_l.c: Use correct sign for result in one more
6732         underflow case.
6733         Patch by Eric Blake <ebb9@byu.net>.
6735 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6737         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6738         and creat system calls.
6739         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6740         call.
6741         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6742         system calls.
6743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6744         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6745         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6747 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6749         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6750         <linux/limits.h> has defined it.
6751         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6752         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6753         headers.
6754         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6755         it instead of ARG_MAX.
6757 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6759         * posix/gai.conf: Fix comment for scope nullbits.
6760         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6761         default to 128 bits for v4 mapped addresses.
6763 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6765         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6766         ptrace call to get the ieee_instruction_pointer from the kernel.
6767         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6768         ptrace call to set the ieee_instructtion_pointer.
6769         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6770         Add comment that ieee_instruction_pointer is always 0.
6772 2008-03-09  Andreas Jaeger  <aj@suse.de>
6774         [BZ #5857]
6775         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6776         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6777         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6779         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6780         (rint_test): Likewise.
6782 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6784         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6785         call.
6786         (__nisfind_server): Similar for open readColdStartFile call.
6787         Patch partially by Jim Meyering.
6788         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6789         around internal_setent call.
6791         * po/vi.po: New Vietnamese translation.
6793         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6794         ADJ_OFFSET_SS_READ.
6796         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6797         remove CLONE_STOPPED.
6799 2008-02-10  Jim Meyering  <meyering@redhat.com>
6801         Remove useless "if" before "free":
6802         * elf/ldconfig.c (parse_conf_include): Likewise.
6803         * gmon/gmon.c (weak_alias): Likewise.
6804         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6805         * inet/rcmd.c (__validuser2_sa): Likewise.
6806         * intl/bindtextdom.c (set_binding_values): Likewise.
6807         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6808         * libio/genops.c (save_for_backup): Likewise.
6809         * libio/wgenops.c (save_for_wbackup): Likewise.
6810         * locale/programs/ld-collate.c (collate_read): Likewise.
6811         * locale/programs/linereader.c (get_string): Likewise.
6812         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6813         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6814         * resolv/res_debug.c (do_section): Likewise.
6815         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6816         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6817         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6818         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6819         * time/tzset.c (tzset_internal): Likewise.
6821 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6823         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6824         of ASSEMBLER.
6826 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6828         [BZ #5903]
6829         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6830         not stream for output file.  Open output file here.
6831         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6832         and output file name.
6833         (process_fd): Likewise.
6834         (process_file): Likewise.
6835         (main): Adjust callers of changed functions.
6836         * iconv/iconv_prog.h: Adjust prototype.
6838 2008-03-09  Andreas Jaeger  <aj@suse.de>
6840         [BZ #5753]
6841         * sysdeps/ia64/ieee754.h: Use protected namespace
6842         __BIG_ENDIAN/__LITTLE_ENDIAN.
6843         * sysdeps/ieee754/ieee754.h: Likewise.
6844         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6846 2008-03-08  Roland McGrath  <roland@frob.com>
6848         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6849         ignore a signal that came from a machine exception, treat it as a
6850         fatal core-dump signal instead.
6851         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6853         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6854         Clear DF bit in thread state's eflags.
6855         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6857 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6859         [BZ #5774]
6860         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6861         of NAN(...) sequence.
6862         * stdlib/Makefile (tests): Add tst-strtod6.
6863         * stdlib/tst-strtod6.c: New file.
6865         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6867         [BZ #5762]
6868         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6869         putting offending option character in quotes.  Clean up error
6870         messages.
6871         * po/be.po: Adjust msgstr in translation file.
6872         * po/bg.po: Likewise.
6873         * po/ca.po: Likewise.
6874         * po/cs.po: Likewise.
6875         * po/da.po: Likewise.
6876         * po/de.po: Likewise.
6877         * po/es.po: Likewise.
6878         * po/fr.po: Likewise.
6879         * po/hr.po: Likewise.
6880         * po/ko.po: Likewise.
6881         * po/nl.po: Likewise.
6882         * po/rw.po: Likewise.
6883         * po/sk.po: Likewise.
6884         * po/sv.po: Likewise.
6885         * po/tr.po: Likewise.
6886         * po/zh_CN.po: Likewise.
6887         * po/zh_TW.po: Likewise.
6889         [BZ #5760]
6890         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6891         Patch by Roland Bless <roland@bless.de>.
6893         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6894         .o file.
6895         * elf/Makefile (routines): Add dl-sysdep.
6896         (elide-routines.os): Likewise.
6898 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6900         [BZ #5786]
6901         * elf/dl-sysdep.c: Undefine ROUND after use.
6902         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6903         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6904         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6905         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6906         to ...
6907         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6908         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6909         if necessary.
6910         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6912         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6913         _dl_tls_get_addr_soft element.
6914         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6915         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6916         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6917         GLRO.
6918         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6919         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6920         of internal_function.
6922         * stdlib/Makefile (aux): Add tens_in_limb.
6923         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6924         * stdlib/tens_in_limb.c: ...here.  New file.
6926         [BZ #5778]
6927         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6928         __statfs_chown_restricted.
6929         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6930         for _PC_CHOWN_RESTRICTED.
6931         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6932         Implement __statfs_chown_restricted.
6933         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6934         _POSIX_CHOWN_RESTRICTED value to zero.
6935         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6936         defined to zero.
6938         * sysdeps/x86_64/rtld-memset.c: New file.
6940 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6942         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6944         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6945         Barcelona machine.  Make default fall through branch of
6946         __x86_64_preferred_memory_instruction check as the integer code path.
6948 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6950         * sysdeps/x86_64/cacheinfo.c
6951         (__x86_64_preferred_memory_instruction): New variable.
6952         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6954         * sysdeps/x86_64/memset.S: Rewrite.
6956 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6958         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6959         __obstack_printf_chk): New prototypes.
6960         (__vasprintf_chk, __vdprintf_chk,
6961         __obstack_vprintf_chk): Likewise.
6962         Add libc_hidden_proto.
6963         * libio/obprintf.c
6964         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6965         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6966         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6967         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6968         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6969         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6970         __obstack_vprintf_chk): New prototypes.
6971         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6972         obstack_vprintf): New inlines.
6973         * debug/dprintf_chk.c: New file.
6974         * debug/vdprintf_chk.c: New file.
6975         * debug/asprintf_chk.c: New file.
6976         * debug/vasprintf_chk.c: New file.
6977         * debug/obprintf_chk.c: New file.
6978         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6979         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6980         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6981         @@GLIBC_2.8.
6982         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6983         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6984         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6985         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6986         libc_hidden_proto.
6987         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6988         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6989         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6990         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6991         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6992         @@GLIBC_2.8.
6993         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6994         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6995         obstack_vprintf_chk.
6996         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6997         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6998         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6999         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7000         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7001         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7003 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7005         [BZ #5779]
7006         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7007         Patch by Roy Marples <roy@marples.name>.
7009         [BZ #5736]
7010         * malloc/malloc.c: Fix typo in comment.
7012         [BZ #5627]
7013         * locale/iso-639.def: Add Shuswap.
7015 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7017         [BZ #5790]
7018         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7019         overwrite *h_errnop/*errnop values from getanswer_r in case of
7020         failure.
7022 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7024         [BZ #5818]
7025         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7026         (verify_persistent_db): Remove one unnecessary test and add a new one
7027         for bad configuration.
7028         (nscd_init): Improve error reported when persistent database cannot
7029         be reused.
7030         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7031         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7032         .suggested_module and .max_db_size and case config file says the
7033         values are zero.
7034         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7036         [BZ #5854]
7037         * nis/ypclnt.c (yp_order): Fix handling of return value of
7038         do_ypcall_tr call.
7039         Patch by Jeff Moyer <jmoyer@redhat.com>.
7041         * po/fr.po: Update from translation team.
7043 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7044             Carlos O'Donell <carlos@systemhalted.org>
7046         [BZ #5012]
7047         * FAQ.in: Describe why glibc needs to be compiled with
7048         optimization.
7050 2008-02-19  Roland McGrath  <roland@redhat.com>
7052         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7054 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7056         [BZ #5737]
7057         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7058         __USE_MISC is defined.
7060 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7062         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7063         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7064         sys/timerfd.h.
7065         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7066         timerfd_gettime, timerfd_settime.
7067         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7068         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7070 2008-02-08  Roland McGrath  <roland@redhat.com>
7072         * elf/elf.h (NT_PPC_SPE): New macro.
7074 2008-02-06  Roland McGrath  <roland@redhat.com>
7076         * Makerules ($(common-objpfx)sysd-rules):
7077         Depend on $(sysdep-makeconfigs).
7079 2008-01-31  Roland McGrath  <roland@redhat.com>
7081         [BZ #5442]
7082         * configure.in: Use -print-file-name if it yields a directory,
7083         for each of include and include-fixed.
7084         * configure: Regenerated.
7086         * Makeconfig (sysd-rules-targets): New variable.
7087         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7088         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7090 2008-01-30  Roland McGrath  <roland@redhat.com>
7092         * manual/libc.texinfo: Update back-cover text.
7094         * elf/elf.h (NT_386_TLS): New macro.
7096 2008-01-29  Roland McGrath  <roland@redhat.com>
7098         * Makeconfig (sysd-rules-patterns): New variable.
7099         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7100         (check-inhibit-asm): New canned sequence, replaces ...
7101         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7102         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7103         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7104         (CFLAGS-rtld): Variable removed.
7106 2008-01-24  Roland McGrath  <roland@redhat.com>
7108         * configure.in: Let configure fragments set base_os.
7109         * configure: Regenerated.
7111 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7113         * po/ko.po: Update from translation team.
7115 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7117         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7119 2008-01-12  Andreas Jaeger  <aj@suse.de>
7121         [BZ #5040]
7122         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7123         Add EPOLLRDHUP.
7125 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7127         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7128         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7129         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7131 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7133         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7134         * elf/dl-close.c (_dl_close): Check for it.
7135         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7136         (_dl_allocate_static_tls): Likewise.
7137         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7138         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7139         to it.
7140         * elf/tst-tls16.c: New file.
7141         * elf/tst-tlsmod16a.c: New file.
7142         * elf/tst-tlsmod16b.c: New file.
7143         * elf/Makefile: Add rules to build and run tst-tls16.
7145 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7147         [BZ #5628]
7148         * bits/shm.h: Fix comment describing shmid_ds.
7149         * sysdeps/gnu/bits/shm.h: Likewise.
7150         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7151         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7152         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7153         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7154         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7155         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7156         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7157         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7158         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7160         [BZ #5607]
7161         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7162         prototypes.
7163         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7164         additional suffixes.
7165         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7166         Add optional functions mq_timedreceive and mq_timedsend.
7167         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7168         * conform/data/pthread.h-data: Fix prototype of
7169         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7170         * conform/data/semaphore.h-data: Allow time.h definitions.
7171         * conform/data/signal.h-data: Likewise.
7172         * conform/data/stdio.h-data: getw and putw are not required in v6.
7173         * conform/data/stdlib.h-data: Change setstate prototype.
7174         * conform/data/string.h-data: Fix strerror_r prototype.
7175         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7176         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7177         Fix readlink prototype.
7178         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7179         in6addr_loopback.
7180         * inet/netinet/in.h: Cleanup namespace.
7181         * posix/regex.h: Likewise.
7182         * resolv/netdb.h: Likewise.
7183         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7184         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7185         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7186         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7187         of names of in in6_addr.
7188         (default_precedence): Likewise.
7189         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7190         NULL definition.
7192 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7194         * conform/data/fmtmsg.h-data: Add missing allows.
7195         * conform/data/ftw.h-data: Likewise.
7196         * conform/data/inttypes.h-data: Likewise.
7197         * conform/data/math.h-data: Likewise.
7198         * conform/data/signal.h-data: Likewise.
7199         * conform/data/net/if.h-data: Likewise.
7200         * conform/data/netinet/in.h-data: Likewise.
7201         * conform/data/sys/socket.h-data: Likewise.
7203         [BZ #5614]
7204         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7205         (__strtok_r): Simplify.
7206         * string/tester.c (test_strtok_r): Add test case for futile search
7207         with single-character seach string.
7209 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7211         * po/ko.po: Update from translation team.
7213 2008-01-11  Andreas Jaeger  <aj@suse.de>
7215         [BZ #5600]
7216         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7217         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7218         kernel header.
7220 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7222         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7223         native interface lookup in all the relevant places.
7225 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7226             Ulrich Drepper  <drepper@redhat.com>
7228         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7229         field.  Use sockaddr_in6 for source_addr.
7230         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7231         (match_prefix): Likewise.
7232         (get_label): Likewise.
7233         (get_precedence): Likewise.
7234         (rfc3484_sort): Change to use indirect access to results array.
7235         Adjust to use of sockaddr_in6.  Replace service_order test with
7236         simple index comparison.
7237         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7238         service_order field.  Adjust qsort_t calls.  Access sorted result
7239         array indirectly through order array.
7240         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7241         * posix/tst-rfc3484-2.c: Likewise.
7242         * posix/tst-rfc3484-3.c: Likewise.
7244 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7246         [BZ #5541]
7247         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7248         pollfd structures.
7249         Patch by André Cruz.
7251         [BZ #5545]
7252         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7253         (clnt_spcreateerror): Likewise.
7255         [BZ #5553]
7256         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7257         (public_mEMALIGn): Likewise.
7258         Patch mostly by Daniel Jacobowitz.
7260 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7262         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7263         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7264         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7265         * stdlib/tst-makecontext2.c: New test.
7267 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7269         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7270         defined.
7271         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7272         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7273         transliteration hooks and REINIT_PARAMS afterwards.
7274         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7275         status.
7276         (REINIT_PARAMS): Define.
7277         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7278         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7279         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7280         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7281         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7282         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7283         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7284         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7285         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7286         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7287         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7288         * iconvdata/tst-iconv7.c: New test.
7290 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7292         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7294 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7296         [BZ #5112]
7297         * nscd/connections.c (restart): Fix condition.
7299 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7301         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7302         __ctype_toupper_loc): Add __THROW.
7304 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7306         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7307         recognition of interface family.
7309         * posix/getconf.c: Update copyright year.
7310         * nss/getent.c: Likewise.
7311         * iconv/iconvconfig.c: Likewise.
7312         * iconv/iconv_prog.c: Likewise.
7313         * elf/ldconfig.c: Likewise.
7314         * catgets/gencat.c: Likewise.
7315         * csu/version.c: Likewise.
7316         * elf/ldd.bash.in: Likewise.
7317         * elf/sprof.c (print_version): Likewise.
7318         * locale/programs/locale.c: Likewise.
7319         * locale/programs/localedef.c: Likewise.
7320         * nscd/nscd.c (print_version): Likewise.
7321         * debug/xtrace.sh: Likewise.
7322         * malloc/memusage.sh: Likewise.
7323         * malloc/mtrace.pl: Likewise.
7324         * debug/catchsegv.sh: Likewise.
7326 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7328         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7329         second lookup.
7331 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7333         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7334         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7336 2007-12-17  Roland McGrath  <roland@redhat.com>
7338         * inet/ether_line.c (ether_line): Remove unused variable.
7340 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7342         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7343         and winp.
7344         * login/openpty.c (openpty): Likewise.
7345         * login/pty.h (openpty, forkpty): Likewise.
7346         * manual/terminal.texi (openpty, forkpty): Likewise.
7348 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7350         * malloc/malloc.c (public_cALLOc): For arenas other than
7351         main_arena, count all bytes inside the mprotect_size range of the
7352         heap as uninitialized.
7354 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7356         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7357         executable stacks.
7359         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7360         mTRIm for all of them.
7361         (mTRIm): Additionally iterate over all free blocks and use madvise
7362         to free memory for all those blocks which contain at least one
7363         memory page.
7364         * malloc/tst-trim1.c: New file.
7365         * malloc/Makefile (tests): Add tst-trim1.
7367         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7369 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7371         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7372         First cast argument to long
7373         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7374         Return long.
7375         (__vdso_clock_gettime): Likewise.
7376         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7377         return long.
7379 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7381         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7382         * locale/nl_langinfo_l.c: Real implementation, copied from
7383         nl_langinfo.c.
7384         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7386 2007-12-01  Jim Meyering  <meyering@redhat.com>
7388         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7389         that would inhibit utf8-optimization of a regexp containing line-
7390         or buffer-anchors, e.g., `^', `$'.
7392 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7394         * time/bug-getdate1.c (do_test): Don't use century values which
7395         aren't valid on 32-bit systems.
7397 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7399         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7400         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7401         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7402         __strcat_g, __strncat_g): Add __asm__.
7404 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7406         [BZ #5477]
7407         * io/fchmodat.c: Fix typo in stub_warning use.
7408         Patch by Petr Salinger.
7410 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7412         * iconvdata/hp-thai8.c: New file.
7413         * iconvdata/Makefile: Add rules for hp-thai8.c.
7414         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7415         * iconvdata/gconv-modules: Likewise.
7417         [BZ #5464]
7418         * iconvdata/hp-greek8.c: New file.
7419         * iconvdata/Makefile: Add rules for hp-greek8.c.
7420         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7421         * iconvdata/gconv-modules: Likewise.
7423         [BZ #5463]
7424         * iconvdata/hp-turkish8.c: New file.
7425         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7426         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7427         * iconvdata/gconv-modules: Likewise.
7429         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7430         (shrink_heap): ... this new function.
7431         (heap_trim): Call shrink_heap instead of grow_heap.
7433         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7434         case don't call alloc_perturb.
7436 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7438         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7439         possible.
7440         * sysdeps/unix/sysv/linux/kernel-features.h
7441         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7442         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7444 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7446         [BZ #5424]
7447         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7448         * stdio-common/Makefile (tests): Add bug22.
7449         * stdio-common/bug22.c: New file.
7451         [BZ #5451]
7452         * time/getdate.c: Fix filling in default values.
7453         * time/bug-getdate1.c: New file.
7454         * time/Makefile: Add rules to build and run bug-getdate1.
7456         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7457         * iconvdata/ebcdic-es.c: Likewise.
7458         * iconvdata/ebcdic-es-a.c: Likewise.
7459         * iconvdata/ebcdic-uk.c: Likewise.
7460         * iconvdata/iso8859-16.c: Likewise.
7461         * iconvdata/viscii.c: Likewise.
7462         * iconvdata/iso8859-9e.c: Likewise.
7463         * iconvdata/Makefile: Adjust appropriately.
7465         [BZ #5428]
7466         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7467         __need_wint_t.
7469 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7471         [BZ #5427]
7472         * iconvdata/hp-roman9.c: New file.
7473         * iconvdata/Makefile: Add rules for hp-roman9.c.
7474         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7475         * iconvdata/gconv-modules: Likewise.
7477         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7478         * iconvdata/Makefile: Adjust appropriately.
7480         [BZ #5441]
7481         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7482         structure, it's allocated with alloca.
7483         * stdio-common/Makefile (tests): Add bug21.
7484         * stdio-common/bug21.c: New file.
7486 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7488         [BZ #5452]
7489         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7490         keyword for gcc's braced-groups.
7492 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7494         [BZ #5454]
7495         * inet/ether_line.c: Strip hostname of whitespaces.
7496         * inet/Makefile (tests): Add tst-ether_line.
7497         * inet/tst-ether_line.c: New file.
7499 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7501         [BZ #5439]
7502         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7504         [BZ #5435]
7505         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7507         * stdlib/tst-setcontext.c: Catch the case where the links gets
7508         messed up and we do not reach main again.
7510         * po/ca.po: Update from translation team.
7512 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7514         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7515         * posix/regex.h (REG_ENOSYS): Likewise.
7516         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7518 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7520         * nscd/nscd.h (MAX_STACK_USE): Define.
7521         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7522         (gc): Initialize stack_used based on allocation in prune_cache.
7523         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7524         Clear array before use.
7526         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7527         memory allocation failed.
7528         * nscd/hstcache.c (cache_addhst): Likewise.
7529         * nscd/grpcache.c (cache_addgr): Likewise.
7530         * nscd/servicescache.c (cache_addserv): Likewise.
7531         * nscd/pwdcache.c (cache_addpw): Likewise.
7532         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7534 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7537         and creat system calls.
7539         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7541 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7543         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7544         Add netiucv/iucv.h.
7545         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7546         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7547         protocol.
7548         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7549         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7550         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7552 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7554         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7555         strncat): Define as macros to avoid compile errors.
7557         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7558         creat entries.
7560 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7562         [BZ #5382]
7563         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7564         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7565         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7566         overflow it.
7567         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7569         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7570         Return zero in case the thread library is not NPTL.
7572         [BZ #5375]
7573         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7574         initializing interface list.
7576         [BZ #5378]
7577         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7578         use result of nss_getgrgid_r if nothing was found.  For other
7579         error return with a failure.
7580         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7582         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7583         macro name.
7585 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7587         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7588         (get_scope): For IPv4 scope, use scopes table.
7589         (fini): Free scopes table if necessary.
7590         (free_scopelist): New function.
7591         (scopecmp): New function.
7592         (gaiconf_init): Also handle scopev4 entries.
7593         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7594         * posix/tst-rfc3484-2.c (do_test): Likewise.
7595         * posix/gai.conf: Document scopev4 defaults.
7596         * posix/Makefile (tests): Add tst-rfc3484-3.
7597         * posix/tst-rfc3484-3.c: New file.
7599         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7600         Teredo tunnels.
7601         * posix/gai.conf: Update for current default tables.
7603 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7605         * po/tr.po: Update from translation team.
7607 2007-11-18  Roland McGrath  <roland@frob.com>
7609         * manual/arith.texi (Remainder Functions): Spelling fix.
7610         From Shaun Silk <genix@mysoul.com.au>.
7612         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7614 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7616         * po/zh_CN.po: Update from translation team.
7618         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7619         Add sys/signalfd.h and sys/eventfd.h.
7621 2007-11-15  Bruno Haible  <bruno@clisp.org>
7623         [BZ #5346]
7624         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7625         union.
7626         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7627         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7628         it needs only fixed stack space. Delay the initialization of
7629         msgid_len until it is needed.
7631 2007-11-15  Andreas Jaeger  <aj@suse.de>
7633         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7634         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7636 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7638         * po/ko.po: Update from translation team.
7640 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7642         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7643         significantly.  The device type is also part of the ifinfomsg data.
7645         * po/sv.po: Update from translation team.
7646         * po/nl.po: Likewise.
7648         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7649         to wake up in 24 hours.
7651         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7653 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7655         * po/cs.po: Update from translation team.
7656         * po/pl.po: Likewise.
7658         * include/ifaddrs.h: Remove in6ai_temporary.
7659         (struct in6addrinfo): Add index element.
7660         Declare __check_native.
7661         * inet/Makefile (aux): Add check_native.
7662         * sysdeps/unix/sysv/linux/check_native.c: New file.
7663         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7664         IFA_F_TEMPORARY.  Pass back ifa_index.
7665         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7666         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7667         call __check_native if necessary.
7668         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7669         to sort addresses.  Pass information about the results.
7670         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7671         of rfc3484_sort interface.
7672         * posix/tst-rfc3484-2.c: Likewise.
7674         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7675         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7676         for _quicksort.
7677         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7678         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7679         on as third parameter to compare function and _quicksort.
7680         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7681         to the compare function.
7682         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7683         * Versions.def: Add GLIBC_2.8 for libc.
7685         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7686         * posix/tst-rfc3484-2.c: Likewise.
7688         * include/kernel-features.h: Moved to...
7689         * sysdeps/mach/hurd/kernel-features.h: ...here.
7691 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7693         * sysdeps/i386/i586/memcpy_chk.S: New file.
7694         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7695         * sysdeps/i386/i586/memset_chk.S: Likewise.
7697 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7699         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7700         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7701         list of interfaces.  Also store prefix length.
7702         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7703         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7704         prefix if source and destination address are in the same subnet.
7705         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7706         Always look for matching record in in6ai list.
7707         Correct source_addr_len value for IPv6->IPv4 converted records.
7709 2007-11-11  Roland McGrath  <roland@frob.com>
7711         * include/kernel-features.h: New file.
7713 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7715         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7716         complications for 64-bit platforms.
7718         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7719         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7720         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7721         open64_2.
7722         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7723         entries.
7724         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7725         * sysdeps/wordsize-64/alphasort.c: New file.
7726         * sysdeps/wordsize-64/alphasort64.c: New file.
7727         * sysdeps/wordsize-64/fseeko.c: New file.
7728         * sysdeps/wordsize-64/fseeko64.c: New file.
7729         * sysdeps/wordsize-64/ftello.c: New file.
7730         * sysdeps/wordsize-64/ftello64.c: New file.
7731         * sysdeps/wordsize-64/ftw.c: New file.
7732         * sysdeps/wordsize-64/ftw64.c: New file.
7733         * sysdeps/wordsize-64/iofgetpos.c: New file.
7734         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7735         * sysdeps/wordsize-64/iofopen.c: New file.
7736         * sysdeps/wordsize-64/iofopen64.c: New file.
7737         * sysdeps/wordsize-64/iofsetpos.c: New file.
7738         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7739         * sysdeps/wordsize-64/lockf.c: New file.
7740         * sysdeps/wordsize-64/lockf64.c: New file.
7741         * sysdeps/wordsize-64/mkostemp.c: New file.
7742         * sysdeps/wordsize-64/mkostemp64.c: New file.
7743         * sysdeps/wordsize-64/mkstemp.c: New file.
7744         * sysdeps/wordsize-64/mkstemp64.c: New file.
7745         * sysdeps/wordsize-64/scandir.c: New file.
7746         * sysdeps/wordsize-64/scandir64.c: New file.
7747         * sysdeps/wordsize-64/tmpfile.c: New file.
7748         * sysdeps/wordsize-64/tmpfile64.c: New file.
7749         * sysdeps/wordsize-64/versionsort.c: New file.
7750         * sysdeps/wordsize-64/versionsort64.c: New file.
7751         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7752         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7753         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7754         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7755         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7756         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7757         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7758         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7759         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7760         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7761         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7762         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7764         * crypt/sha256-crypt.c: Fix a comment.
7765         * crypt/sha512-crypt.c: Likewise.
7767 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7769         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7771 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7773         [BZ #5277]
7774         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7775         because output buffer is too small break, don't loop.
7776         * iconvdata/Makefile (tests): Add bug-iconv6.
7777         * iconvdata/bug-iconv6.c: New file.
7779 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7781         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7782         with size_t type.
7783         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7784         size_t.  Add casts where needed.
7786         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7787         old headers, don't call avc_has_perm if we don't have the
7788         permission information.
7790 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7792         * elf/rtld.c (dl_main): Use the page size to find the map start.
7794 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7796         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7797         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7799         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7800         when the lookup call failed.
7802         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7803         Add prune_cond and wakeup_time.
7804         (CACHE_PRUNE_INTERNAL): Define.
7805         Update declarations of prune_cache and setup_thread.
7806         * nscd/connections.c (dbs): Update initializers.
7807         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7808         (nscd_init): Default number of threads is now 4.
7809         (invalidate_cache): Take lock before calling prune_cache.
7810         (handle_request): If SELinux forbids the request, say so.
7811         (readylist_cond): Use static initializer.
7812         (nscd_run_prune): New function.  Used only by pruning threads.
7813         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7814         here.
7815         (fd_ready): Update nscd_run reference.
7816         (start_threads): No need to initialize readylist_cond.
7817         Start pruning threads separately.
7818         * nscd/nscd_setup_thread.c: Change return value type to int and always
7819         return 0.
7820         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7821         to int and return nonzero value if we can use the TID address hack.
7822         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7823         the database is later than the new entry's timeout, update the
7824         wakeup time and wake the cleanup thread.
7825         (prune_cache): Return seconds the next entry in the database is still
7826         valid.  Remove locking for pruning here.
7827         * nscd/nscd.conf: Document default number of threads.
7829 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7831         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7832         stack is properly aligned for the target function.
7833         Correct unwind info.
7835         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7836         when using auditing libraries.
7838 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7840         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7841         _nss_dns_getnetbyaddr2_r.
7842         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7843         extra parameter to getanswer_r.
7844         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7845         _nss_dns_getnetbyaddr2_r.
7847         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7848         gethstbynm3_r.
7849         * nscd/gethstbynm2_r.c: Remove.
7850         * nscd/gethstbynm3_r.c: New file.
7851         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7852         __gethostbyaddr_r.
7853         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7854         __gethostbyaddr_r compatibility wrapper.
7855         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7856         determining timeout of entry.
7857         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7858         __gethostbyaddr2_r.
7859         (addhstbyX): Pass reference to variable for TTL to lookup and
7860         cache_addhst.
7861         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7862         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7863         and __nss_next2.  Remove __nss_services_lookup.
7864         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7865         Add compat wrapper.
7866         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7867         __nss_next2.
7868         * nss/getXXent_r.c: Likewise.
7869         * nss/getnssent_r.c: Likewise.
7870         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7871         does not exist in module, try the optional second name.
7872         (__nss_next2): New function.
7873         (__nss_next): Now wrapper around __nss_next2.
7874         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7875         Declare __nss_next2.
7876         Adjust definition of db_lookup_function type.
7877         * nss/service-lookup.c: Define NO_COMPAT.
7878         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7879         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7880         * inet/ether_ntoh.c: Likewise.
7881         * sunrpc/netname.c: Likewise.
7882         * sunrpc/publickey.c: Likewise.
7883         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7884         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7885         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7886         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7887         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7889         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7891         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7893 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7895         [BZ #5204]
7896         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7897         * crypt/sha512c-test.c: Likewise.
7899         [BZ #5225]
7900         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7901         to keep track of end of %[ format string element.
7902         * stdio-common/Makefile (tests): Add bug20.
7903         * stdio-common/bug20.c: New file.
7905         [BZ #5222]
7906         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7907         path elements in counting mode.
7909 2007-10-27  Andreas Jaeger  <aj@suse.de>
7911         [BZ #5040]
7912         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7914         [BZ #3112]
7915         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7916         (__cleanup): Free shared library when exiting.
7917         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7918         (__cleanup): Free shared library when exiting.
7920 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7922         [BZ #2549]
7923         * math/libm-test.inc (check_float_internal): Support
7924         denormalized return.
7926 2007-10-23  Andreas Jaeger  <aj@suse.de>
7928         [BZ #5208]
7929         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7930         __LONG_LONG_PAIR to handle little endian byte order.
7931         Suggested by abhishekrai@google.com
7933 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7935         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7937 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7939         * nscd/cache.c (prune_cache): Move test for modified file outside
7940         of locking.
7942 2007-10-21  Andreas Jaeger  <aj@suse.de>
7944         * manual/texinfo.tex: Update to latest version.
7946         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7948         * manual/arith.texi (Status bit operations): Fix formatting.
7950         * manual/errno.texi (Error Messages): Fix formatting.
7952         * manual/sysinfo.texi (System Parameters): Fix formatting.
7954         * manual/libc.texinfo: Update VERSION and UPDATED.
7956 2007-10-19  Roland McGrath  <roland@redhat.com>
7958         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7960 2007-10-06  David S. Miller  <davem@davemloft.net>
7962         * configure.in: Add sparcv9v2 and sparc64v2.
7963         * scripts/config.sub: Likewise.
7964         * configure: Regenerate.
7965         * elf/elf.h (HWCAP_SPARC_N2): New.
7966         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7967         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7968         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7969         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7970         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7971         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7972         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7974 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7976         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7977         even if the poll result indicates there is data to read.
7978         Patch by Jeff Moyer <jmoyer@redhat.com>.
7980 2007-10-18  Roland McGrath  <roland@redhat.com>
7982         * elf/elf.h (NT_PPC_VMX): New macro.
7984 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7986         * version.h (VERSION): Set to 2.7.90.
7988 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7990         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7991         weak_alias.
7993 2007-10-17  Roland McGrath  <roland@frob.com>
7995         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7996         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7998 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8000         * version.h (VERSION): Bump to 2.7.
8001         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8003         [BZ #5186]
8004         * time/tzset.c (__tz_convert): Don't force testing for a change of
8005         TZ if not called from localtime.  But then also see whether the
8006         file changed, in case __use_tzfile is set.
8008         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8009         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8010         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8011         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8012         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8013         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8014         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8015         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8017 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8019         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8020         and admin selects to be able to replace the gai.conf file, lock
8021         data structures around the qsort call.
8023 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8025         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8026         new memset.
8027         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8028         too high for the improvements.  Implement bzero unconditionally for
8029         use in libc.
8031 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8032             Jakub Jelinek  <jakub@redhat.com>
8034         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8035         even when time_t is 32-bit.
8036         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8037         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8038         always set after the search.
8040 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8042         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8043         unreachable code on 32-bit machines.
8045 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8047         [BZ #5184]
8048         * time/strftime_l.c: Include stdbool.h.
8049         (my_strftime): New wrapper, old function renamed to...
8050         (__strftime_internal): ... new function.  Add tzset_called
8051         argument, pass it down to recursive calls, don't call tzset ()
8052         if already true, set to true after call to tzset ().
8054 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8056         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8057         into account when copying TZ string.
8059 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8061         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8062         num_transition rather than num_transitions - 1.
8064 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8066         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8067         PIC indirect jump.
8069         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8070         a local label rather than HIDDEN_JUMPTARGET.
8072 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8074         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8075         (init_cacheinfo): Initialize it.
8076         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8077         Always define bzero.
8078         Remove non-glibc code.
8079         * sysdeps/x86_64/bzero.S: Make an empty file.
8081 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8083         * sysdeps/x86_64/cacheinfo.c
8084         (__x86_64_preferred_memory_instruction): New.
8085         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8087         * sysdeps/x86_64/memset.S: Rewrite.
8089 2007-10-15  Roland McGrath  <roland@redhat.com>
8091         * po/libc.pot: Regenerated.
8093 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8095         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8096         pointers.
8098         [BZ #3425]
8099         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8100         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8101         address record to T_A/T_AAAA requests.
8103 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8105         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8107         * posix/glob.c: Add some branch prediction throughout.
8109         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8110         read from nscd.
8112         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8113         service_order.
8114         (rfc3484_sort): Make sure that even if qsort doesn't support
8115         stable sorting out sorting here is stable by comparing service_order.
8116         (getaddrinfo): Initialize service_order.
8117         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8118         service_order field to sorting structure.
8119         * posix/tst-rfc3484-2.c (do_test): Likewise.
8121         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8122         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8123         __tzset_parse_tz and updating of daylight, timezone, tzname into
8124         update_vars.
8125         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8126         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8127         happens in __tz_compute.
8128         * time/tzfile.c (__tzfile_read): Also read TZ string.
8129         (find_transition): Fold into __tzfile_compute.
8130         (__tzfile_compute): For times beyond the last transition try to
8131         use the TZ string.
8132         * timezone/tst-timezone.c: Information in daylight and tzname does
8133         change for Asia/Tokyo timezone with more concrete information.
8134         Remove the test.
8136         * include/stdio.h: Add libc_hidden_proto for ftello.
8137         * libio/ftello.c: Add libc_hidden_def.
8139         [BZ #1140]
8140         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8141         on the specified time and not the last entries in the file.  Move
8142         code to determine tzname[] to...
8143         (find_transition): ...here.  Add ugly guess for times before the
8144         first transition.
8146 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8148         [BZ #3195]
8149         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8150         no entry.
8151         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8152         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8153         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8154         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8156         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8157         read mechanism when there are no group members and avoid no-op
8158         read syscall in this case.
8160         [BZ #3242]
8161         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8162         (__readall): If reading failed due to EAGAIN error wait a bit
8163         and possibly try again.
8164         (__readvall): Likewise.
8166 2007-10-13  Bruno Haible  <bruno@clisp.org>
8168         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8169         when we cannot recode the message.
8171 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8173         [BZ #4359]
8174         * libio/__freading.c (__freading): Don't return true for
8175         write-only streams.  For read/write streams, check whether we
8176         performed a read operation already.
8177         * libio/Makefile (tests): Add tst-ext2.
8178         * libio/tst-ext2.c: New file.
8180 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8182         * locale/programs/repertoire.c (repertoire_read): Always free
8183         memory for repertoire file name [Coverity CID 270].
8185         * elf/cache.c (save_aux_cache): Free memory allocated for
8186         temporary file name [Coverity CID 267].
8188 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8190         * misc/Makefile (headers): Add bits/error.h.
8192 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8194         * posix/fnmatch_loop.c: Take rule index returned as part of
8195         findidx return value into account when accessing weights.
8196         * posix/regcomp.c: Likewise.
8197         * posix/regexec.c: Likewise.
8199         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8200         (skip_to): Fix problems with parameter of elifdef/elifndef.
8202 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8204         * iconv/gconv_simple.c: Add some branch prediction.
8206 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8208         * locale/programs/ld-collate.c (collate_read): If ignore_content
8209         and nowtok is tok_define, eat any tok_eol tokens.
8211 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8213         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8214         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8216         * inet/netinet/in.h: Don't include bits/socket.h.
8217         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8218         macro.
8219         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8221 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8223         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8224         and tok_elifndef.
8225         * locale/programs/locfile-kw.gperf: Likewise.
8226         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8228 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8230         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8231         (__find_specwc): Change into __extern_always_inline function.
8232         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8233         (__parse_one_specmb): Remove ps argument.
8234         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8235         Adjust __find_specmb and __parse_one_specmb callers.
8236         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8237         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8238         Removed.
8239         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8240         caller.
8242 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8244         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8245         with some Pentium Ds.
8247 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8249         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8250         __read not read.
8251         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8252         __write not write.
8254 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8256         [BZ #181]
8257         * locale/C-time.c: Set week_1stday data to 19971201.
8258         * locale/programs/ld-time.c (time_finish): Default for
8259         first_workday is Monday.
8261         [BZ #2633]
8262         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8264         [BZ #5103]
8265         * posix/glob.c (glob): Recognize patterns starting \/.
8266         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8267         (main): Add test for pattern starting \/.
8269         * misc/error.h: Use __const instead of const.
8270         * misc/bits/error.h: Likewise.
8272 2007-10-07  Andreas Jaeger  <aj@suse.de>
8274         * include/bits/error.h: New file.
8276         * misc/bits/error.h (error_at_line): Fix prototype.
8278 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8280         [BZ #3924]
8281         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8282         more little bugs in creating the stack frame when pltexit has to
8283         be called.
8285         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8286         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8288         [BZ #4407]
8289         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8290         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8291         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8292         * math/libm-test.inc: Add test for this case.
8294         [BZ #5010]
8295         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8296         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8297         map service succeeded.
8298         (svc_is_mapped): New function.
8299         (svc_unregister): Use it before trying to unmap service.
8301 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8303         * timezone/zic.c: Update from tzcode2007h.
8305         [BZ #5063]
8306         * timezone/africa: Update from tzdata2007h.
8307         * timezone/antarctica: Likewise.
8308         * timezone/asia: Likewise.
8309         * timezone/australasia: Likewise.
8310         * timezone/europe: Likewise.
8311         * timezone/leapseconds: Likewise.
8312         * timezone/northamerica: Likewise.
8313         * timezone/southamerica: Likewise.
8314         * timzeone/zone.tab: Likewise.
8316         [BZ #5104]
8317         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8319         [BZ #5113]
8320         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8321         avoid warning with -Wconversion.
8322         (__strndup): Likewise.
8323         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8325         [BZ #5112]
8326         * nscd/connections.c (restart): Don't resync if database is
8327         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8329         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8330         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8332         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8333         evetnfd_read, eventfd_write.
8334         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8335         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8336         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8337         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8338         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8339         eventfd_write for GLIBC_2.7.
8341         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8342         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8343         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8344         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8346 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8348         * stdlib/msort.c: Include stdint.h.
8349         (struct msort_param): New type.
8350         (msort_with_tmp): Use struct msort_param pointer for unchanging
8351         parameters.  Add optimized handling for several common sizes
8352         and indirect sorting mode.
8353         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8354         sorting.
8355         Suggested by Belazougui Djamel .
8357         * stdlib/Makefile (tests): Add tst-qsort2.
8358         * stdlib/tst-qsort2.c: New test.
8360 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8362         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8363         for dup2 in case another thread races with the current one.  Retry
8364         in this case.
8366         * misc/error.h: Remove support for use outside of libc.  We have to
8367         include <features.h> now.  Include <bits/error.h> if possible.
8368         * misc/bits/error.h: New file.
8370 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8372         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8373         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8374         __extern_always_inline functions unconditionally, drop macros.
8376         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8377         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8378         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8380         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8381         add __artificial__ attribute.
8383 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8385         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8386         backward to forward direction.
8388         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8390         [BZ #645]
8391         * locale/programs/ld-collate.c (collate_finish): Compare against last
8392         used section which is known to have rules defined.
8393         (collate_read): After order_start, correctly record order of sections
8394         and queue sections up.
8396 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8398         [BZ #5071]
8399         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8400         the same number of pages.
8401         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8403         * locale/programs/ld-collate.c (collate_read): After initial copy
8404         statement, continue in state 0.
8406         * include/stdio_ext.h (__fsetlocking): Define as macro.
8408 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8410         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8411         of section order.
8413         * po/pt_BR.po: Fix typo.
8415 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8417         * iconvdata/Makefile (modules): Add ISO8859-9E.
8418         (distribute): Add iso8859-9e.c.
8419         (gen-8bit-gap-modules): Add iso8859-9e.
8420         * iconvdata/iso8859-9e.c: New file.
8421         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8422         * iconvdata/TESTS: Likewise.
8423         * iconvdata/tst-tables.sh: Likewise.
8425         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8427         * locale/iso-639.def: Add several new entries.
8429 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8431         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8432         void * pointers instead of struct link_map **.
8433         (_dl_scope_free): Change argument type to void *.
8434         * include/link.h (struct link_map): Change type of l_reldeps
8435         to struct link_map_reldeps, move l_reldepsact into that
8436         struct too.
8437         * elf/dl-deps.c: Include atomic.h.
8438         (_dl_map_object_deps): Only change l->l_initfini when it is
8439         fully populated, use _dl_scope_free for freeing it.  Optimize
8440         removal of libs from reldeps by using l_reserved flag, when
8441         some removal is needed, allocate a new list instead of
8442         reallocating and free the old with _dl_scope_free.  Adjust
8443         for l_reldeps and l_reldepsact changes.
8444         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8445         searching in l_initfini and l_reldeps without holding dl_load_lock.
8446         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8447         l_reldepsact changes.
8448         * elf/dl-close.c (_dl_close_worker): Likewise.
8449         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8451 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8453         * iconvdata/Makefile (modules): Add KOI8-RU.
8454         (distribute): Add koi8-ru.c.
8455         (gen-8bit-gap-modules): Add koi8-ru.
8456         * iconvdata/koi8-ru.c: New file.
8457         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8458         * iconvdata/TESTS: Likewise.
8459         * iconvdata/tst-tables.sh: Likewise.
8461         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8463 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8465         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8466         with __warning__/__error__ attributes.
8467         (__warnattr): Define.
8468         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8469         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8470         __warnattr.
8471         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8472         of __*_chk if compile time detectable overflow is found.
8473         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8474         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8475         with __warnattr.
8476         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8477         instead of __*_chk if compile time detectable overflow is found.
8478         (__gets_alias): Rename to...
8479         (__gets_warn): ... this.  Add __warnattr.
8480         (gets): Call __gets_warn instead of __gets_alias.
8481         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8482         aliases with __warnattr.
8483         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8484         time detectable overflow is found.
8485         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8486         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8487         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8488         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8489         __getdomainname_chk_warn): New aliases with __warnattr.
8490         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8491         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8492         __*_chk_warn instead of __*_chk if compile time detectable overflow
8493         is found.
8494         (__getgroups_chk): Rename argument to __listlen from listlen.
8495         (__getwd_alias): Rename to...
8496         (__getwd_warn): ... this.  Add __warnattr.
8497         (getwd): Call __getwd_warn instead of __getwd_alias.
8498         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8499         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8500         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8501         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8502         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8503         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8504         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8505         compile time detectable overflow is found.
8506         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8507         to use __*_chk or not.
8508         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8509         in comparisons which function should be called and in __*_chk*
8510         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8511         detectable overflow is found.
8512         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8513         __*_chk argument.
8514         * debug/tst-chk1.c (do_test): Add a few more tests.
8516 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8518         [BZ #5058]
8519         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8520         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8521         (_nl_unload_domain): Finalize conversions_lock.
8522         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8523         handling table of known conversions.
8525 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8527         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8528         close_not_cancel_no_status instead of close.
8530 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8532         [BZ #5028]
8533         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8534         nrules != 0 for multibyte chars.
8536 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8538         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8539         Provide better error message in case the type is unknown.
8541         [BZ #4963]
8542         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8543         * string/stratcliff.c: Make usable to test wide char functions.
8544         * wcsmbs/wcsatcliff.c: New file.
8545         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8547         [BZ #4972]
8548         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8549         (distribute): Add mac-centraleurope.c.
8550         (gen-8bit-gap-modules): Add mac-centraleurope.
8551         * iconvdata/mac-centraleurope.c: New file.
8552         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8553         * iconvdata/TESTS: Likewise.
8554         * iconvdata/tst-tables.sh: Likewise.
8556         [BZ #5043]
8557         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8559 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8561         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8562         from __x86_64_core_cache_size_half.
8563         (init_cacheinfo): Compute shared cache size for AMD processors with
8564         shared L3 correctly.
8565         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8566         name change.
8567         Patch in large parts by Evandro Menezes.
8569 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8571         * elf/dl-lookup.c (add_dependency): Handle failing memory
8572         allocation for dependency list.  Remove unnecessary check.
8574         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8575         open/close when determining source addresses.
8577         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8578         sha512-crypt, and sha512.
8579         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8580         (distribute): Add sha256.h and sha512.h.
8581         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8582         and call the appropriate code.
8583         * crypt/sha256-crypt.c: New file.
8584         * crypt/sha256.c: New file.
8585         * crypt/sha256.h: New file.
8586         * crypt/sha256c-test.c: New file.
8587         * crypt/sha256test.c: New file.
8588         * crypt/sha512-crypt.c: New file.
8589         * crypt/sha512.c: New file.
8590         * crypt/sha512.h: New file.
8591         * crypt/sha512c-test.c: New file.
8592         * crypt/sha512test.c: New file.
8594 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8596         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8597         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8598         __syslog_chk.
8600 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8602         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8603         %as in fscanf format strings.
8605         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8606         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8607         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8608         Likewise.
8609         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8610         Likewise.
8612         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8613         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8614         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8615         * elf/dl-sym.c (do_sym): Likewise.
8616         * include/link.h (struct link_map): Add l_serial field.
8617         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8618         * elf/dl-lookup.c (add_dependency): Add flags argument.
8619         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8620         flags, use THREAD_GSCOPE_RESET_FLAG before and
8621         THREAD_GSCOPE_SET_FLAG after
8622         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8623         Don't dereference map until it has been found on some list.
8624         If map->l_serial changed, return -1.
8626 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8628         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8629         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8630         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8631         libc_hidden_proto.
8632         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8633         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8634         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8635         add libc_hidden_proto.
8636         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8637         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8638         conformance requested.
8639         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8640         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8641         conformance requested.
8642         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8643         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8644         conformance requested.
8645         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8646         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8647         ISO C99 or POSIX conformance requested.
8648         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8649         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8650         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8651         and __isoc99_vsscanf@@GLIBC_2.7.
8652         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8653         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8654         (tests): Add scanf14.
8655         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8656         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8657         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8658         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8659         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8660         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8661         from using internal headers.
8662         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8663         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8664         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8665         and __isoc99_vswscanf@@GLIBC_2.7.
8666         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8667         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8668         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8669         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8670         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8671         * stdio-common/isoc99_scanf.c: New file.
8672         * stdio-common/isoc99_vsscanf.c: New file.
8673         * stdio-common/isoc99_vscanf.c: New file.
8674         * stdio-common/isoc99_vfscanf.c: New file.
8675         * stdio-common/isoc99_fscanf.c: New file.
8676         * stdio-common/isoc99_sscanf.c: New file.
8677         * wcsmbs/isoc99_fwscanf.c: New file.
8678         * wcsmbs/isoc99_vswscanf.c: New file.
8679         * wcsmbs/isoc99_swscanf.c: New file.
8680         * wcsmbs/isoc99_wscanf.c: New file.
8681         * wcsmbs/isoc99_vwscanf.c: New file.
8682         * wcsmbs/isoc99_vfwscanf.c: New file.
8683         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8684         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8685         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8686         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8687         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8688         * stdio-common/scanf14.c: New test.
8689         * stdio-common/scanf15.c: New test.
8690         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8691         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8692         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8693         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8694         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8695         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8696         __nldbl___isoc99_scanf@@GLIBC_2.7,
8697         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8698         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8699         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8700         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8701         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8702         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8703         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8704         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8705         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8706         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8707         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8708         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8709         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8710         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8711         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8712         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8713         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8714         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8715         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8716         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8717         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8718         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8719         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8720         functions.
8721         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8722         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8723         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8724         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8725         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8726         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8727         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8728         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8729         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8730         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8731         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8732         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8734         * stdio-common/Makefile (tests): Add scanf13.
8735         (scanf13-ENV): New.
8736         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8737         m modifier followed by l.
8738         (STRING_ARG): Add width argument.
8739         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8740         <case L_('C')>: Handle %mlc and %mC.
8741         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8742         arguments.
8743         * stdio-common/scanf13.c: New test.
8745         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8746         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8748 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8750         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8751         type and __THROW marker of splice, vmsplice, and tee.
8752         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8753         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8754         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8756         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8757         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8758         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8759         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8760         as cancellation points.
8762 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8764         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8765         parse more than three parts of the version number.
8767 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8769         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8770         modifier.  Patch by Jakub Jelinek.
8772 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8774         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8775         call_fallocate in misc subdir.
8776         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8777         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8778         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8779         instead of __fallocate64.
8780         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8782 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8784         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8785         * rt/Makefile (headers): Add bits/mqueue2.h.
8786         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8787         optimizing with GCC and __va_arg_pack_len is defined.
8788         * rt/bits/mqueue2.h: New file.
8789         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8790         (mq_open): New strong_alias.
8791         (__mq_open_2): New function.
8792         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8793         (mq_open): New strong_alias.
8794         (__mq_open_2): New function.
8795         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8796         * Versions.def (librt): Add GLIBC_2.7 version.
8797         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8798         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8800         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8801         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8802         is defined rather than when not C++.
8803         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8804         __openat64_alias): New redirects.
8805         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8806         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8807         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8808         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8809         functions instead of function-like macros.
8811 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8813         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8814         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8815         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8817 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8819         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8820         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8822 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8824         * inet/tst-network.c: Increment ERRORS for failing tests.
8826 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8828         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8829         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8830         implement as __extern_always_inline function.
8831         (vsyslog): Define as __extern_always_inline function unconditionally.
8832         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8833         When __va_arg_pack is defined, implement as __extern_always_inline
8834         functions.
8835         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8836         __extern_always_inline functions unconditionally.
8837         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8838         bits/stdio2.h will be included.
8839         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8840         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8841         implement as __extern_always_inline functions.
8842         (vswprintf, vwprintf, vfwprintf): Define as
8843         __extern_always_inline functions unconditionally.
8844         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8846 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8848         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8849         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8850         attribute.
8851         * include/features.h (__USE_EXTERN_INLINES): Define only when
8852         __extern_inline is defined.
8853         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8854         is defined instead of when not __cplusplus.
8855         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8856         is defined instead of when not __cplusplus.
8857         * socket/sys/socket.h: Include bits/socket2.h when
8858         __extern_always_inline is defined instead of when not __cplusplus.
8859         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8860         is defined instead of when not __cplusplus.
8861         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8862         is defined instead of when not __cplusplus.
8863         * string/string.h: Include bits/string3.h when __extern_always_inline
8864         is defined instead of when not __cplusplus.
8865         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8866         is defined instead of when not __cplusplus.
8867         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8868         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8869         is not defined.
8870         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8871         defined __extern_always_inline instead of !defined __cplusplus.
8872         * libio/bits/stdio-ldbl.h: Likewise.
8873         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8874         * misc/bits/syslog.h (syslog): Don't define for C++.
8875         (vsyslog): Use __extern_always_inline function for C++ instead of
8876         a macro.
8877         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8878         whenever that macro is defined.
8879         (vprintf): Don't provide the inline for C++.
8880         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8881         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8882         define the macros for C++.
8883         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8884         __extern_always_inline functions for C++.
8885         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8886         stat64, lstat64, fstat64, fstatat64): Don't define if not
8887         __USE_EXTERN_INLINES.
8888         * wcsmbs/bits/wchar2.h: Fix #error message.
8889         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8890         (vswprintf, vwprintf, vfwprintf): Define using
8891         __extern_always_inline functions for C++.
8892         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8893         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8894         strncpy, strcat, strncat): Define as __extern_always_inline
8895         functions instead of macros for C++.
8896         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8897         defined __extern_inline.
8898         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8899         to __extern_inline whenever that macro is defined.
8900         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8901         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8902         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8903         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8904         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8905         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8906         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8907         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8908         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8909         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8910         prototypes.  Only provide __extern_inline routines if
8911         __USE_EXTERN_INLINES.
8912         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8913         tests.
8914         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8915         For now avoid some *printf tests in C++.  Skip all testing
8916         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8917         is not.
8918         * debug/tst-chk4.cc: New file.
8919         * debug/tst-chk5.cc: New file.
8920         * debug/tst-chk6.cc: New file.
8921         * debug/tst-lfschk4.cc: New file.
8922         * debug/tst-lfschk5.cc: New file.
8923         * debug/tst-lfschk6.cc: New file.
8924         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8925         prototypes in C++.
8926         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8927         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8928         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8930 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8932         * po/cs.po: Update from translation team.
8934 2007-09-11  Roland McGrath  <roland@redhat.com>
8936         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8937         compiling.
8939 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8941         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8943 2007-09-05  Roland McGrath  <roland@redhat.com>
8945         * manual/signal.texi (Signaling Another Process): Typo fix.
8946         From Karl Berry <karl@freefriends.org>.
8948 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8950         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8951         zero if not defined.
8952         (make_request): Recognize optimistic addresses and treat them like
8953         deprecated addresses.
8954         Reported by Neil Horman <nhorman@redhat.com>.
8956 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8958         * nscd/connections.c (send_ro_fd): Also transfer file size.
8959         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8960         file size don't call fstat.
8962         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8963         ahead and map the file.  This should always be correct and we can
8964         catch problems later.
8966 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8968         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8969         prototypes.
8970         (__fread_alias, __fread_unlocked_alias): New aliases.
8971         (fread): New extern inline.
8972         (fread_unlocked): Likewise.  Undef macro before definition of
8973         the inline function.
8974         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8975         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8976         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8977         and __fread_unlocked_chk@@GLIBC_2.7.
8978         * debug/fread_chk.c: New file.
8979         * debug/fread_u_chk.c: New file.
8980         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8982 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8984         * sysdeps/unix/sysv/linux/syscalls.list
8985         (personality): Change caller to EXTRA.
8987 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8989         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8990         to keep gcc quiet.
8991         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8993         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8994         NDEBUG is defined.
8996         * Makerules: Use -p option with mkdir.
8998         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8999         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9000         (_xdr_directory_obj): Likewise.
9001         (xdr_entry_obj): Likewise.
9002         (xdr_group_obj): Likewise.
9003         (xdr_link_obj): Likewise.
9004         (xdr_table_obj): Likewise.
9005         (_xdr_nis_result): Likewise.
9006         (_xdr_ns_request): Likewise.
9007         (_xdr_ib_request): Likewise.
9008         (_xdr_nis_taglist): Likewise.
9009         (xdr_cback_data): Likewise.
9010         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9011         (xdr_ypresp_maplist): Likewise.
9013         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9015         * posix/regex_internal.h: Prevent some declarations and definitions
9016         to be seen when used in tests.
9018         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9019         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9021         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9023         * config.make.in (datarootdir): Add to shut up configure.
9025         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9026         associativity for fully-associative caches.
9028         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9029         requests.  Fill on more associativity values for L2.
9030         Patch mostly by Evandro Menezes.
9032 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9034         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9035         (_libc_vdso_platform_setup): Avoid using exported variable by using
9036         alias.
9038         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9040         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9041         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9042         defined.
9044 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9046         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9047         align stack for call if pltexit is to be used.
9049         [BZ #3924]
9050         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9051         align for function call in case pltexit has to be called later.
9053         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9054         implicit atomic operation when storing function pointer.
9055         (_dl_runtime_profile): Likewise.
9057 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9059         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9060         NIS_NOTFOUND.
9062 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9064         [BZ #4566]
9065         * string/strtok.c: Fix typo in comment.
9067         [BZ #4582]
9068         * debug/segfault.c: Fix typos in comments.
9070         [BZ #4588]
9071         * stdio-common/tempnam.c: Fix comment, it is not checked that
9072         TMPDIR points to a writable directory.
9074         [BZ #4726]
9075         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9076         memory allocated for the name server address.
9078         [BZ #4946]
9079         * nscd/connections.c (handle_request): Using sendfile always
9080         requires that mmap is used for the database.
9081         Patch by Petr Baudis <pasky@suse.cz>.
9083         [BZ #4905]
9084         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9085         suddenly has two or more addresses, ignore it and remove the old
9086         entry.
9088         [BZ #4814]
9089         * resolv/res_hconf.c: Prepare for compiling outside libc.
9090         * nscd/res_hconf.c: New file.
9091         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9092         the new file.
9093         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9094         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9096         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9098         [BZ #4925]
9099         * debug/pcprofiledump.c: Turn on internationalization by calling
9100         setlocale.  Patch mostly by Benno Schulenberg.
9102         [BZ #4936]
9103         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9104         the state.
9105         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9106         * iconvdata/bug-iconv5.c: New file.
9108 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9110         [BZ #4896]
9111         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9112         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9113         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9114         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9115         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9116         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9117         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9118         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9120 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9122         [BZ #4937]
9123         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9124         lookup loop.  Suggested by John Reiser.
9126 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9128         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9130 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9132         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9133         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9134         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9135         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9136         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9137         to...
9138         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9140 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9142         * po/nl.po: Update from translation team.
9144 2007-08-16  Andreas Jaeger  <aj@suse.de>
9146         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9147         Reported by Peter Festner <peter.festner@ewetel.net>.
9149 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9151         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9153 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9155         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9156         to check for undefined symbols.
9158         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9159         If the syscall fails, set errno to the actual returned error number
9160         rather than EINVAL.
9161         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9162         arguments are incorrect, set errno to EINVAL, if the syscall
9163         fails, set errno to the actual returned error number.
9165         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9166         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9168         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9169         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9170         file.
9171         (ASI_PNF, ASI_BLK_P): Don't define.
9172         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9173         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9174         file.
9175         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9176         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9177         file.
9179 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9181         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9182         FE_UNDERFLOW on Niagara CPUs.
9184         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9185         exceptions.
9187 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9189         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9190         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9191         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9192         flush should be used or not inside of the function.
9193         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9195         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9196         __thread_start): Use HIDDEN_JUMPTARGET.
9197         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9198         __thread_start): Likewise.
9199         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9201         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9202         Add libc_hidden_proto.
9203         (STRTOF): Add libc_hidden_proto.
9204         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9205         (strtold_l, wcstold_l): Use them as second argument for
9206         long_double_symbol.
9208 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9210         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9212 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9214         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9216 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9218         * po/bg.po: New file.  From the translation team.
9220 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9222         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9223         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9224         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9225         when each feature was introduced.
9227         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9228         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9229         (CHECK_HASH): New macro.
9230         (PREPARE_VERSION): Use it.
9232         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9233         prototype if not __ASSUME_PSELECT.
9234         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9235         prototype if not __ASSUME_PPOLL.
9237         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9239         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9240         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9241         is defined.
9243 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9245         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9246         (_libc_vdso_platform_setup): If vDSO is not available point
9247         __vdso_gettimeofday to the vsyscall.
9248         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9249         __vdso_gettimeofday instead of vsyscall.
9251 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9253         * nscd/servicescache.c: Include kernel-features.h.
9254         * nscd/gai.c: Likewise.
9255         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9256         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9257         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9258         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9259         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9260         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9261         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9262         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9263         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9265 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9267         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9268         and _dl_get_origin defines anymore.
9270         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9271         Build fix for systems which might lack POSIX timer support.
9273         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9274         (_libc_vdso_platform_setup): Mangle function pointers before storing
9275         them.
9276         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9277         Demangle vdso pointer before use.
9278         (INTERNAL_VSYSCALL): Likewise.
9280         * elf/cache.c (primes): Mark as const.
9281         Noted by Roland McGrath.
9283 2007-08-01  Andreas Jaeger  <aj@suse.de>
9284             Jakub Jelinek  <jakub@redhat.com>
9286         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9287         (options): Add option.
9288         (parse_opt): Handle option.
9289         (manual_link): Adjust process_file caller.  Call implicit_soname.
9290         (search_dir): Formatting.  Use and populate auxiliary cache.
9291         (main): Load and save auxiliary cache.
9292         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9293         stat64 from fstat64 to caller.
9294         (implicit_soname): New function.
9295         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9296         leave *soname as NULL.
9297         * elf/cache.c: Include libgen.h.
9298         (print_entry, print_cache, compare, save_cache, add_to_cache):
9299         Formatting and cleanups.
9300         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9301         aux_cache_file): New structures.
9302         (AUX_CACHEMAGIC): Define.
9303         (primes): New array.
9304         (aux_hash_size, aux_hash): New variables.
9305         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9306         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9307         load_aux_cache, save_aux_cache): New functions.
9308         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9309         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9310         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9311         (process_file): Adjust prototype.
9313 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9315         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9316         with __need_size_t.
9318 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9320         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9321         r_found_version structure as second parameter.
9322         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9323         (_dl_vdso_vsym): Change type of second parameter accordingly.
9324         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9325         (_libc_vdso_platform_setup): Adjust.
9326         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9327         (_libc_vdso_platform_setup): Likewise.
9329         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9330         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9331         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9332         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9333         * csu/libc-start.c: Pretty printing.
9334         Use VDSO_SETUP if defined.
9335         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9336         and let generic code call into _libc_vdso_platform_setup.
9337         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9338         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9339         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9340         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9341         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9342         for GLIBC_PRIVATE.
9343         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9344         (sysdep_rountines): Add dl-vdso.
9346         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9347         of routines.
9349         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9350         attribute_hidden to __vdso_gettimeofday prototype.
9352 2007-08-12  Roland McGrath  <roland@redhat.com>
9354         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9355         From: Karl Berry <karl@freefriends.org>.
9357 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9359         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9360         an atime update for the files we read.
9362 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9364         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9366         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9367         instead of mkstemp.
9369         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9370         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9371         * misc/mkostemp.c: New file.
9372         * misc/mkostemp64.c: New file.
9373         * stdlib/stdlib.h: Declare the new functions.
9374         * sysdeps/posix/tempname.c: Add new parameter which is added to
9375         the flags for open.  Remove __GT_BIGFILE handling.
9376         * stdio-common/tempname.c: Likewise.
9377         * include/stdio.h: Adjust __gen_tempname prototype.
9378         Renumber __GT_* constants.
9379         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9380         * misc/mkdtemp.c: Likewise.
9381         * misc/mkstemp.c: Likewise.
9382         * misc/mkstemp64.c: Likewise.
9383         * misc/mktemp.c: Likewise.
9384         * stdio-common/tempnam.c: Likewise.
9385         * stdio-common/tmpfile.c: Likewise.
9386         * stdio-common/tmpfile64.c: Likewise.
9387         * stdio-common/tmpnam.c: Likewise.
9388         * stdio-common/tmpnam_r.c: Likewise.
9390 2007-08-10  Roland McGrath  <roland@frob.com>
9392         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9393         New macros.
9394         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9395         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9397 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9399         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9400         possible.
9401         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9402         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9403         * nss/nss_files/files-have_o_cloexec.c: New file.
9405         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9406         available.
9408 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9410         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9411         ___new_wcstold_l): New weak aliases.
9412         (strtold_l, wcstold_l): Use them as second argument for
9413         long_double_symbol.
9415 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9417         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9418         register in test for error.
9420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9421         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9423         * po/sv.po: Update from translation team.
9425 2007-08-06  Roland McGrath  <roland@redhat.com>
9427         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9428         Remove __strto*_l inlines.
9429         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9430         * stdlib/strtod.c: Add libc_hidden_def.
9431         * stdlib/strtod_l.c: Likewise.
9432         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9433         for __new_strtold and __new_wcstold.
9434         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9435         __STRTOF, STRTOF.
9436         * stdlib/strtol.c: Add libc_hidden_def.
9437         * stdlib/strtol_l.c: Likewise.
9438         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9439         strtoq.
9441         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9443         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9444         * scripts/data/localplt-generic.data: ... here.
9445         * elf/Makefile (check-data): Get generic file if no other.
9446         ($(objpfx)check-localplt.out): Make target unconditional.
9448         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9449         Use ElfW(Nhdr).
9451 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9453         * po/zh_CN.po: Updated translation from translation team.
9455 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9458         Don't use CGOTSETUP and CGOTRESTORE macros.
9460 2007-08-04  Roland McGrath  <roland@redhat.com>
9462         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9464 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9466         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9467         __extension__ around the whole statement expression.
9469 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9471         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9472         elements during initialization.
9474         * po/pl.po: Updated translation from translation team.
9475         * po/tr.po: Likewise.
9476         * po/nl.po: Likewise.
9478 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9480         * rt/aio.h: Add __nonnull attributes.
9482 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9484         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9485         * stdlib/Makefile (tests): Add tst-strtod5.
9486         (tst-strtod5-ENV): New.
9487         * stdlib/tst-strtod5.c: New file.
9489         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9490         failed.
9491         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9492         on failure.
9494         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9495         allocated.
9497 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9499         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9500         numbers.
9502 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9504         * io/Makefile (aux): Add have_o_cloexec.
9505         * include/fcntl.h: Declare __have_o_cloexec.
9506         * io/have_o_cloexec.c: New file.
9507         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9508         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9509         fcntl call if not necessary.
9510         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9511         of local variable.
9513         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9514         Avoid memset, add explicit initialization.
9515         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9516         to the end and change into zero-sized array.
9517         Move lock member to fill a hole on 64-bit platforms.
9519         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9520         inline functions.
9521         * include/stdlib.h: Add __strto*_internal prototypes here.
9522         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9523         inline functions.
9524         * include/wchar.h: Add __wcsto*_internal prototypes.
9525         * sysdeps/generic/inttypes.h: No need to protect the declaration
9526         of the __strto*_internal and __wcsto*_internal members here.
9528         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9530 2007-08-02  Roland McGrath  <roland@redhat.com>
9532         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9533         $(inst_bindir)/getconf if possible.
9535         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9536         (generated): Add it.
9537         ($(inst_libexecdir)/getconf): Use it.
9539 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9541         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9542         /proc is faster and sufficient.  /sys is still needed for
9543         __get_nprocs_conf.
9545 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9547         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9548         syscall as __fallocate64.
9549         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9550         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9552 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9554         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9555         value.
9557         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9558         if off_t is different rank from size_t.
9560         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9561         uw_frame_state_for): Avoid type punning warnings.
9562         * sysdeps/generic/unwind-dw2-fde-glibc.c
9563         (_Unwind_IteratePhdrCallback): Likewise.
9564         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9565         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9566         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9567         pointers.
9569 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9571         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9572         total processors using sysfs.
9573         (__get_nprocs): Use sysfs to determine which processors are online.
9575 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9577         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9578         syscall arguments count.
9580         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9582 2007-07-30  Roland McGrath  <roland@redhat.com>
9584         * manual/libc.texinfo: Update copyrights, formatting magic, and
9585         @dircategory.  From Karl Berry <karl@freefriends.org>.
9587 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9589         [BZ #4860]
9590         * io/Makefile (headers): Add bits/fcntl2.h.
9592         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9593         using gcc builtin.
9594         (__CPU_EQUAL_S): Likewise.
9596         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9597         (tests): Add tst-cpuset.
9598         * posix/sched_cpualloc.c: New file.
9599         * posix/sched_cpufree.c: New file.
9600         * posix/tst-cpuset.c: New file.
9601         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9602         GLIBC_2.7.
9603         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9604         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9605         macros.  Define CPU_*_S macros.
9607 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9609         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9610         entry.
9612         [BZ #4858]
9613         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9614         #.0g and value rounded to 1.0.
9615         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9617 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9619         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9620         for int_frac_digits and frac_digits.
9622         * login/logout.c (logout): Avoid aliasing violation.
9623         * login/logwtmp.c (logwtmp): Likewise.
9625         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9627         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9628         to avoid warning.
9629         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9630         warning.
9631         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9632         warning.
9633         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9634         to avoid warnings.
9636         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9637         void **.
9638         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9640         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9641         char * to avoid warning.
9642         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9644         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9646         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9647         allocate_arrays): Cast second argument to charmap_find_symbol
9648         to char * to avoid warnings.
9650         * locale/programs/repertoire.c (repertoire_new_char): Change
9651         from_nr, to_nr and cnt to unsigned long, adjust printf format
9652         string.
9654         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9655         Cast second argument to new_element to char * to avoid warnings.
9657         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9659         * intl/gettextP.h (struct loaded_domain): Change plural to const
9660         struct expression *.
9661         * intl/plural-eval.c (plural_eval): Change first argument to
9662         const struct expression *.
9663         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9664         argument to const struct expression **.
9665         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9666         prototypes.
9667         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9668         in call to __gettext_free_exp.
9670         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9671         unitialized wstring/wpattern var warnings.
9673         * posix/runtests.c (struct a_test): Make data field const char *.
9675         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9676         vars if not LDBL_MANT_DIG >= 106.
9678         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9680         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9681         __find_specmb to avoid warning.
9683         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9685         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9686         to avoid warnings.
9688         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9689         initializer.
9691         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9692         tv var when it will be actually used.
9694         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9695         to avoid warnings.
9697         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9698         char array resp. pointer.
9699         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9700         char array.
9701         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9702         to const unsigned char **.
9703         (ucs4_to_cns11643): Change second argument to unsigned char *.
9704         * iconvdata/euc-tw.c (BODY): Change endp type to
9705         const unsigned char *.
9706         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9707         to unsigned char *.
9708         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9709         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9710         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9711         types to unsigned char pointers/arrays instead of char.
9712         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9713         to unsigned char *.
9714         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9715         * iconvdata/jis0212.h: Include assert.h.
9716         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9717         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9718         of trying to handle that.
9719         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9720         shut up a warning.
9721         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9722         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9723         two dimensional const unsigned char arrays.
9724         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9725         Initialize endp to inptr to shut up a warning.
9727 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9729         [BZ #4772]
9730         * time/strptime_l.c (__strptime_internal): Silently ignore
9731         strftime modifiers and field width in recursive calls.
9733         * include/time.h (enum ptime_locale_status): Remove.
9734         (__strptime_internal): Remove decided and era_cnt arguments,
9735         add statep argument.
9736         * time/strptime_l.c (__strptime_internal): Remove decided
9737         and era_cnt arguments, add statep argument.  Don't recompute
9738         any fields in recursive calls, only update caller's tm
9739         and state, if recursive call fails, don't change tm nor
9740         any state.
9741         (get_alt_number): Adjust.
9742         (recursive): Adjust caller.
9743         (strptime): Likewise.
9744         * time/strptime.c (strptime): Likewise.
9746 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9748         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9749         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9750         if from and to charsets are the same.
9751         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9752         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9753         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9755 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9757         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9758         Don't define wint_t when __need_mbstate_t unless it
9759         is necessary.
9760         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9761         in the typedef if possible.
9762         * wctype/wctype.h (wint_t): Define by including
9763         wchar.h with __need_wint_t instead of including stddef.h
9764         with __need_wint_t and as fallback definining it ourselves.
9765         * iconv/gconv.h (__need_wint_t): Define before including
9766         wchar.h.
9767         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9768         or _GLIBCPP_USE_WCHAR_T.
9769         (__need_wchar_t): Don't define
9770         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9771         (__need_wint_t): Don't define before including stddef.h,
9772         define before including wchar.h only if _LIBC or
9773         _GLIBCPP_USE_WCHAR_T.
9774         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9775         * sysdeps/mach/hurd/_G_config.h: Likewise.
9776         * sysdeps/generic/_G_config.h: Likewise.
9777         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9778         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9779         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9780         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9782 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9784         * sysdeps/posix/posix_fallocate64.c: Undefine
9785         __posix_fallocate64_l64 before alias handling.
9786         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9787         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9788         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9789         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9791         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9793 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9795         * locale/programs/ld-collate.c (atwc): New variable.
9796         (add_to_tablewc): New toplevel function, moved from collate_output.
9797         (collate_output): Remove add_to_tablewc nested function.
9799         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9800         (name_insert): New function.
9801         (write_output): Remove hash_table and hash_size vars and name_insert
9802         nested function.
9804 2007-07-24  Roland McGrath  <roland@redhat.com>
9806         * Makerules (install-others-programs-nosubdir): New target.
9807         (install-no-libc.a-nosubdir): Depend on it.
9809         * iconv/Makefile (install-others-programs): Set this instead of
9810         install-others.
9811         * login/Makefile (install-others-programs): Likewise.
9812         * posix/Makefile (install-others-programs): Likewise.
9814         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9815         dependencies.
9817 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9819         * io/Makefile (tests): Add tst-posix_fallocate.
9820         * io/tst-posix_fallocate.c: New file.
9822         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9823         __ASSUME_FALLOCATE.
9825 2007-07-22  Roland McGrath  <roland@frob.com>
9827         * hurd/getdport.c: Add missing copyright year update.
9829         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9830         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9832 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9834         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9836         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9837         O_CLOEXEC is needed.
9838         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9839         Avoid additional fcntl to set O_CLOEXEC if not needed.
9840         * nis/nss_compat/compat-initgroups.c: Likewise.
9841         * nis/nss_compat/compat-pwd.c: Likewise.
9842         * nis/nss_compat/compat-spwd.c: Likewise.
9844 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9846         [BZ #3665]
9847         * manual/errno.texi: Change ECANCELED value to 119.
9849         [BZ #4610]
9850         * mach/lock-intern.h: Include <sys/cdefs.h>.
9852         [BZ #4178]
9853         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9854         reading A.
9856         [BZ #4126]
9857         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9858         to __sigsuspend.
9860         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9862 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9864         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9865         `__ASSEMBLER__'.
9866         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9868 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9870         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9871         descriptor received from nscd.
9873         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9875         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9876         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9877         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9878         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9879         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9880         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9882 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9884         [BZ #4816]
9885         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9887         [BZ #4813]
9888         * login/forkpty.c (forkpty): Close master and slave fds on
9889         fork failure.  Patch by
9890         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9892 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9894         * include/features.h (__USE_ISOC95): New define.
9895         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9896         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9897         for -std=iso9899:199409.
9898         * CONFORMANCE: Remove comments about unsupported AMD1.
9900 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9902         * sysdeps/ia64/sched_cpucount.c: New file.
9903         * sysdeps/powerpc/sched_cpucount.c: New file.
9905         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9906         __BEGIN_DECLS/__END_DECLS around the prototype.
9907         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9908         pointer to const cpu_set_t.
9910         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9911         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9912         __need_size_t and include stddef.h.
9913         * sysvipc/sys/msg.h: Likewise.
9914         * posix/sched.h: Likewise.
9915         * hurd/hurd/signal.h (__need_size_t): Define.
9917         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9918         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9919         no longer defines wint_t or wchar_t.
9921         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9922         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9923         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9924         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9925         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9926         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9927         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9928         * debug/printf_chk.c (__printf_chk): Likewise.
9929         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9930         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9932         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9933         Define.
9935         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9936         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9938 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9940         [BZ #4792]
9941         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9942         * malloc/malloc.h (realloc): Likewise.
9944         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9945         if one of proc_file_chain streams has that fileno.
9946         * stdio-common/Makefile (tests): Add tst-popen2.
9947         * stdio-common/tst-popen2.c: New test.
9949 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9951         * elf/ldconfig.c: Allow GPLv2 or any later version.
9952         * elf/readlib.c: Likewise.
9953         * elf/chroot_canon.c: Likewise.
9954         * elf/cache.c: Likewise.
9955         * nscd/mem.c: Likewise.
9956         * nscd/getpwuid_r.c: Likewise.
9957         * nscd/grpcache.c: Likewise.
9958         * nscd/aicache.c: Likewise.
9959         * nscd/getsrvbynm_r.c: Likewise.
9960         * nscd/nscd.c: Likewise.
9961         * nscd/servicescache.c: Likewise.
9962         * nscd/getsrvbypt_r.c: Likewise.
9963         * nscd/initgrcache.c: Likewise.
9964         * nscd/gethstbyad_r.c: Likewise.
9965         * nscd/gethstbynm2_r.c: Likewise.
9966         * nscd/getgrnam_r.c: Likewise.
9967         * nscd/nscd_setup_thread.c: Likewise.
9968         * nscd/getpwnam_r.c: Likewise.
9969         * nscd/gai.c: Likewise.
9970         * nscd/connections.c: Likewise.
9971         * nscd/dbg_log.c: Likewise.
9972         * nscd/cache.c: Likewise.
9973         * nscd/hstcache.c: Likewise.
9974         * nscd/nscd_conf.c: Likewise.
9975         * nscd/getgrgid_r.c: Likewise.
9976         * nscd/pwdcache.c: Likewise.
9977         * catgets/gencat.c: Likewise.
9978         * locale/programs/linereader.h: Likewise.
9979         * locale/programs/locarchive.c: Likewise.
9980         * locale/programs/ld-paper.c: Likewise.
9981         * locale/programs/locfile-kw.h: Likewise.
9982         * locale/programs/ld-address.c: Likewise.
9983         * locale/programs/xmalloc.c: Likewise.
9984         * locale/programs/ld-time.c: Likewise.
9985         * locale/programs/localedef.c: Likewise.
9986         * locale/programs/simple-hash.c: Likewise.
9987         * locale/programs/xstrdup.c: Likewise.
9988         * locale/programs/ld-numeric.c: Likewise.
9989         * locale/programs/locfile-kw.gperf: Likewise.
9990         * locale/programs/ld-collate.c: Likewise.
9991         * locale/programs/charmap-kw.gperf: Likewise.
9992         * locale/programs/charmap.h: Likewise.
9993         * locale/programs/charmap-kw.h: Likewise.
9994         * locale/programs/config.h: Likewise.
9995         * locale/programs/locfile.c: Likewise.
9996         * locale/programs/ld-ctype.c: Likewise.
9997         * locale/programs/charmap.c: Likewise.
9998         * locale/programs/ld-messages.c: Likewise.
9999         * locale/programs/repertoire.h: Likewise.
10000         * locale/programs/locale.c: Likewise.
10001         * locale/programs/ld-name.c: Likewise.
10002         * locale/programs/linereader.c: Likewise.
10003         * locale/programs/locfile.h: Likewise.
10004         * locale/programs/3level.h: Likewise.
10005         * locale/programs/ld-monetary.c: Likewise.
10006         * locale/programs/ld-measurement.c: Likewise.
10007         * locale/programs/charmap-dir.c: Likewise.
10008         * locale/programs/ld-identification.c: Likewise.
10009         * locale/programs/localedef.h: Likewise.
10010         * locale/programs/charmap-dir.h: Likewise.
10011         * locale/programs/repertoire.c: Likewise.
10012         * locale/programs/simple-hash.h: Likewise.
10013         * locale/programs/ld-telephone.c: Likewise.
10014         * locale/programs/locale-spec.c: Likewise.
10015         * locale/programs/locfile-token.h: Likewise.
10016         * posix/getconf.c: Likewise.
10017         * iconv/dummy-repertoire.c: Likewise.
10018         * iconv/iconv_charmap.c: Likewise.
10019         * iconv/iconvconfig.c: Likewise.
10020         * iconv/iconv_prog.c: Likewise.
10021         * malloc/memusagestat.c: Likewise.
10022         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10024 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10026         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10027         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10028         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10029         check for the first argument.
10031 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10033         [BZ #4775]
10034         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10035         (__tgmath_real_type): Fix if expr is const int or other const
10036         qualified integral type.
10037         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10038         expressions and handle const qualified arguments.
10039         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10040         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10041         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10042         statement expressions.
10043         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10044         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10045         (__TGMATH_UNARY_IMAG): Define.
10046         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10047         * math/Makefile (tests): Add test-tgmath2.
10048         (CFLAGS-test-tgmath2.c): Add.
10049         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10050         count_cfloat, count_cldouble): New variables.
10051         (NCCALLS): Define.
10052         (main): Check number of complex calls as well.
10053         (F(compile_test)): Add complex tests and tests with const qualified
10054         arguments.
10055         (y, z, ccount): Define.
10056         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10057         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10058         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10059         F(cproj)): New functions.
10060         * math/test-tgmath2.c: New test.
10062 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10064         [BZ #4776]
10065         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10066         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10067         instead output ".".
10068         * dlfcn/Makefile (distribute): Add glreflib3.c.
10069         (module-names): Add glreflib3.
10070         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10071         glreflib1.so.
10072         (LDFLAGS_glreflib3.so): New.
10073         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10074         glreflib1.so.
10075         * dlfcn/glreflib3.c: New file.
10077         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10078         returned -1, return NULL.
10079         * intl/explodename.c (_nl_explode_name): Return -1 if
10080         _nl_normalize_codeset failed.
10082 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10084         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10085         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10086         and avoid branch misspredicts for > 31 bytes memset case.
10087         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10088         Remove toc ref to __cache_line_size.
10090         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10091         to get ISA-V2.0 branch hints.
10092         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10093         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10094         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10095         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10096         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10097         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10098         Remove toc ref to __cache_line_size.
10100         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10101         Include math_ldbl_opt.h.
10103 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10105         [BZ #4773]
10106         * time/strptime_l.c (__strptime_internal): Implement greedy
10107         matching of weekday and month names.
10109 2007-07-09  Roland McGrath  <roland@redhat.com>
10111         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10112         (ELF_NOTE_ABI): Use it.
10113         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10115 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10117         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10118         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10120 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10122         [BZ #4745]
10123         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10124         in loop to look for conversion specifier to avoid testing of
10125         wrong errno value.
10126         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10127         * stdio-common/bug18.c: New file.
10128         * stdio-common/bug18a.c: New file.
10129         * stdio-common/bug19.c: New file.
10130         * stdio-common/bug19a.c: New file.
10132 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10134         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10135         running awk script.
10137 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10139         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10140         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10141         Return NULL if mmap failed instead of asserting it does not.
10142         (calloc): Check for integer overflow.
10144         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10145         than LONG_MAX / 10.
10147 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10149         [BZ #4702]
10150         * nis/nss-default.c: Include errno.h.
10151         (init): Preserve errno.
10153 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10155         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10157 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10159         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10161 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10163         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10165 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10167         * sysdeps/s390/dl-procinfo.c: New file.
10168         * sysdeps/s390/dl-procinfo.h: New file.
10169         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10171 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10173         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10174         in PT_NOTE segments with multiple notes.
10175         * elf/readelflib.c (process_elf_file): Likewise.
10177 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10179         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10180         ISO C compliant.
10182 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10184         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10186 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10188         * include/link.h: Don't include rtld-lowlevel.h.
10189         (struct link_map): Remove l_scope_lock.
10190         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10191         (_dl_scope_free_list): New field (variable) in _rtld_global.
10192         (DL_LOOKUP_SCOPE_LOCK): Remove.
10193         (_dl_scope_free): New prototype.
10194         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10195         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10196         (_dl_profile_fixup): Likewise.
10197         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10198         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10199         THREAD_GSCOPE_RESET_FLAG around it.
10200         * elf/dl-close.c (_dl_close_worker): Don't use
10201         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10202         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10203         scopes were queued or if l_scope_mem has been abandoned.
10204         * elf/dl-open.c (_dl_scope_free): New function.
10205         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10206         * elf/dl-support.c (_dl_scope_free_list): New variable.
10207         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10208         Remove DL_LOOKUP_SCOPE_LOCK handling.
10209         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10210         handling.
10211         * elf/dl-object.c (_dl_new_object): Don't use
10212         __rtld_mrlock_initialize.
10214 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10216         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10217         to fill in holes
10218         (rtld_global_ro): Likewise.
10220 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10222         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10223         Move PT_LOAD checking to...
10224         (_dl_addr_inside_object): ... here, new function.
10225         * elf/dl-sym.c (do_sym): If not l_contiguous,
10226         call _dl_addr_inside_object.
10227         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10228         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10229         * elf/dl-open.c (dl_open_worker): Likewise.
10230         (_dl_addr_inside_object): New function if IS_IN_rtld.
10231         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10232         holes are present or are PROT_NONE protected.
10233         * include/link.h (struct link_map): Add l_contiguous field.
10234         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10236 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10237             Tomas Janousek  <tjanouse@redhat.com>
10238             Ulrich Drepper  <drepper@redhat.com>
10240         [BZ #4647]
10241         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10242         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10243         socket.
10244         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10245         unused member a bitmap.
10246         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10247         servers are configured.
10249 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10251         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10253 2007-06-17  Andreas Schwab  <schwab@suse.de>
10255         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10257 2007-06-16  Andreas Jaeger  <aj@suse.de>
10259         [BZ #4125]
10260         * sysdeps/unix/sysv/linux/sys/ptrace.h
10261         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10262         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10263         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10264         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10265         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10266         Define.
10267         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10268         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10269         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10270         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10272 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10274         [BZ #4599]
10275         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10276         determining whether there are IPv4/IPv6 addresses, ignore loopback
10277         addresses.
10279 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10281         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10282         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10283         as the return type.  Change type of "r" variable to CMPtype.
10284         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10285         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10286         * soft-fp/gedf2.c (__gedf2): Likewise.
10287         * soft-fp/gesf2.c (__gesf2): Likewise.
10288         * soft-fp/getf2.c (__getf2): Likewise.
10289         * soft-fp/ledf2.c (__ledf2): Likewise.
10290         * soft-fp/lesf2.c (__lesf2): Likewise.
10291         * soft-fp/letf2.c (__letf2): Likewise.
10292         * soft-fp/unorddf2 (__unorddf2): Likewise.
10293         * soft-fp/unordsf2 (__unordsf2): Likewise.
10294         * soft-fp/unordtf2 (__unordtf2): Likewise.
10296 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10298         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10299         make sure gcc doesn't mess around with this.
10301 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10303         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10305 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10307         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10308         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10309         at most once per _dl_close_worker.
10311 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10313         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10314         __sched_cpucount as const.
10315         * posix/sched_cpucount.c: Adjust.
10317         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10318         instruction for counting bits.
10319         * sysdeps/x86_64/sched_cpucount.c: New file.
10321 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10323         * configure.in: Avoid variable named BASH.
10324         * config.make.in: Likewise.
10325         Patch in part by Mike Frysinger.
10327 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10329         [BZ #4586]
10330         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10331         pseudo-zeros as zero.
10332         * sysdeps/x86_64/ldbl2mpn.c: New file.
10333         * sysdeps/ia64/ldbl2mpn.c: New file.
10335 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10337         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10338         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10339         Remove unreachable code at the end.
10341 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10343         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10344         ldbl-128ibm in comment.
10345         (fpclassifyl): Correct classification of denormals.
10346         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10347         return value for MIN denormal. Rewrite using long double math too
10348         correctly handle denormals and canonicalize the results.
10350 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10352         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10353         (__mpn_construct_long_double): Fix conversion where result ought
10354         to be smaller than __LDBL_MIN__, or the low double should be
10355         denormal.  Fix decision where to negate low double - honor round
10356         to even rules.
10357         * stdio-common/tst-sprintf2.c: Include string.h.
10358         (COMPARE_LDBL): Define.
10359         (TEST): Also test whether a string hexadecimal float representation
10360         can be parsed back to the number.
10361         (main): Add a couple of further tests.
10363 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10365         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10366         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10367         is non-zero, but smaller than 2 * __DBL_MIN__.
10368         * stdio-common/tst-sprintf2.c: New test.
10369         * stdio-common/Makefile (tests): Add tst-sprintf2.
10371         * math/test-misc.c (main): Don't run last batch of tests with
10372         IBM long double format.
10374 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10376         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10377         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10378         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10379         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10380         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10381         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10382         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10383         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10384         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10385         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10388         New file.
10389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10390         New file.
10391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10392         New file.
10393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10394         New file.
10395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10396         New file.
10397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10399         New file.
10400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10401         New file.
10402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10403         New file.
10404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10405         New file.
10406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10407         New file.
10409 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10411         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10412         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10413         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10414         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10415         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10416         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10417         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10418         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10420 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10422         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10423         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10424         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10425         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10426         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10427         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10428         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10429         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10431 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10433         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10434         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10435         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10436         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10438 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10440         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10441         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10443 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10445         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10446         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10447         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10448         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10450 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10452         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10453         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10455 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10457         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10458         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10460         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10461         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10462         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10463         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10465 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10467         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10468         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10469         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10470         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10472 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10474         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10475         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10476         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10477         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10478         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10479         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10481 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10483         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10484         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10485         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10486         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10488 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10490         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10491         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10492         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10493         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10494         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10495         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10496         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10497         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10498         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10499         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10500         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10501         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10502         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10503         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10504         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10505         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10507 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10509         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10510         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10512 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10514         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10515         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10517 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10519         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10520         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10521         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10522         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10523         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10524         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10525         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10526         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10527         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10528         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10530 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10532         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10534 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10536         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10537         branch miss-predicts. Ensure that cache line crossing does not impact
10538         dispatch grouping.
10540 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10542         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10543         "../../powerpc32/power4/memcopy.h".
10544         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10545         "../../powerpc32/power4/wordcopy.c".
10547 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10549         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10550         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10551         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10552         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10553         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10554         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10556 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10558         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10560 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10562         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10563         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10564         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10565         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10566         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10567         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10568         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10569         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10571 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10573         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10575 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10577         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10578         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10579         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10580         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10581         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10582         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10583         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10585 2007-05-29  Roland McGrath  <roland@redhat.com>
10587         * po/Makefile (po-sed-cmd): New variable.
10588         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10590 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10592         * crypt/md5-crypt.c: Fix comment.
10594         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10595         of crashing.  When this is the case or if the reply is malformed,
10596         don't try to close the new file descriptor since it does not
10597         exist.
10598         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10600 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10602         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10603         if __NR_utimensat is not defined.
10605 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10607         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10609 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10611         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10612         (open): Fix comment typos.  Don't call __open_2 if flags
10613         is a compile time constant without O_CREAT.
10614         (__open64_2): Add nonnull attribute.
10615         (open64): Fix comment typos.  Don't call __open64_2 if flags
10616         is a compile time constant without O_CREAT.
10617         (__openat_2): Add nonnull attribute, fix nonnull attribute
10618         on redirect.
10619         (openat): Fix comment typos.  Don't call __openat_2 if flags
10620         is a compile time constant without O_CREAT.
10621         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10622         on redirect.
10623         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10624         is a compile time constant without O_CREAT.
10626 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10628         * Makerules (sysd-rules): Define PTW for ptw-* files.
10629         * Versions: Define GLIBC_2.7 for libc.
10630         * include/stdio.h: Declare __fortify_fail.
10631         * debug/fortify_fail.c: New file.
10632         * debug/Makefile (routines): Add fortify_fail.
10633         * debug/chk_fail.c: Use __fortify_fail.
10634         * debug/stack_chk_fail.c: Likewise.
10635         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10636         __openat64_2 for GLIBC_2.7.
10637         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10638         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10639         and fails if necessary.
10640         * io/open64.c: Likewise.
10641         * io/openat.c: Likewise.
10642         * io/openat64.c: Likewise.
10643         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10644         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10645         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10646         * io/bits/fcntl2.h: New file.
10647         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10648         __openat64_2.
10649         * include/bits/fcntl2.h: New file.
10650         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10651         Add open_2.
10652         * sysdeps/unix/sysv/linux/open_2.c: New file.
10654 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10656         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10657         as second parameter to handle_intel.
10659         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10660         the entry.
10662         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10663         handling to ...
10664         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10665         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10666         cacheinfo.
10667         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10668         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10669         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10671         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10673 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10675         [BZ #4525]
10676         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10677         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10678         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10680         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10682         [BZ #4514]
10683         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10684         reinitialize workend at the start of each do_positional format spec
10685         loop, free workstart before do_positional loops.
10686         (printf_unknown): Fix size of work_buffer.
10687         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10689         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10690         (public_sET_STATe): If ms->version < 3, put all chunks into
10691         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10692         chunks.
10694         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10695         * malloc/hooks.c: Likewise.
10696         * malloc/arena.c: Likewise.
10697         * malloc/malloc.c (do_check_malloc_state): Don't assert
10698         n_mmaps is not greater than n_mmaps_max.  This removes the need
10699         for the previous change.
10701         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10702         2007-05-07 commit.
10704 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10706         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10707         Define for kernel >= 2.6.22.
10709 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10711         * elf/dl-close.c (_dl_close_worker): When removing object from
10712         global scope, wait for all lookups to finish afterwards.
10713         * elf/dl-open.c (add_to_global): When global scope array must
10714         grow, allocate a new one and free old array only after all
10715         lookups finish.
10716         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10717         (_dl_lookup_symbol_x): Likewise.
10718         * elf/dl-support.c: Define _dl_wait_lookup_done.
10719         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10720         _dl_wait_lookup_done.
10722         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10723         not overlapping with arena.
10725         * malloc/mcheck.c (reallochook): If size==0, free the block.
10727         * rt/tst-shm.c: Use fstat64 instead of fstat.
10729         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10730         __NR_sync_file_range is not defined.
10732 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10734         Dummy files to prevent stub versions from being used.
10735         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10736         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10737         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10738         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10740         * version.h (VERSION): Set to 2.6.90.
10742 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10744         * version.h (VERSION): Define to 2.6.
10745         * include/features.h (__GLIBC_MINOR__): Define to 6.
10747         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10749         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10750         sizes.
10752 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10754         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10755         number of mmaps.  n_mmaps_max is the target.
10756         * malloc/hooks.c: Likewise.
10757         * malloc/arena.c: Likewise.
10759 2007-05-12  Andreas Jaeger  <aj@suse.de>
10761         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10762         getpid.
10764 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10766         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10767         adding new variables.
10769         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10770         optimize.  Completely extend global scope array before making the
10771         new entries visible.
10773 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10775         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10776         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10777         tst-getcpu.
10779         * include/link.h: Move l_version and l_nversion members around to
10780         fill gaps.
10782         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10784         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10785         (__sched_setaffinity_new): If syscall was successful and
10786         RESET_VGETCPU_CACHE is defined, use it before returning.
10787         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10789         * io/sys/stat.h: Make sure struct timespec is defined for
10790         __USE_ATFILE.
10792         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10793         UTIME_OMIT.
10794         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10795         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10796         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10797         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10798         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10799         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10800         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10801         * io/sys/stat.h: Declare utimensat, futimens.
10802         * io/utimensat.c: New file.
10803         * io/futimens.c: New file.
10804         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10805         * sysdeps/unix/sysv/linux/futimens.c: New file.
10806         * io/Makefile (routines): Add utimensat, futimens.
10807         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10808         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10809         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10810         available.
10812         * include/sys/cdefs.h: Redefine __nonnull so that test for
10813         incorrect parameters in the libc code itself are not omitted.
10815 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10817         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10818         exception in addition to inexact when asked to raise only FE_INEXACT.
10820         [BZ #3427]
10821         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10822         in *envp.
10824 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10826         [BZ #4403]
10827         * string/strfry.c (strfry): Make result more random.
10829 2007-05-07  Richard Henderson  <rth@redhat.com>
10831         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10832         if __NO_LONG_DOUBLE_MATH.
10833         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10834         available in the compiler, add .arch directive to the assembly.
10836 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10838         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10839         compat_symbol to GLIBC_2_1.
10840         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10841         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10842         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10843         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10844         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10845         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10846         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10847         libc, not libm.
10848         (__isnanl): New compat_symbol.
10850 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10851             Jakub Jelinek  <jakub@redhat.com>
10853         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10854         (new_heap): Initialize mprotect_size.
10855         (grow_heap): When growing, only mprotect from mprotect_size till
10856         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10857         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10859 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10860             Peter Bergner  <bergner@us.ibm.com>
10862         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10863         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10864         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10865         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10866         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10867         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10868         Call __fe_mask_env() if all FP exceptions disabled.
10869         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10870         from old FPSCR to new fenv to propagate DFP rounding modes.
10871         Call __fe_mask_env() if FP exceptions previously enabled.
10872         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10873         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10874         transitioning from all exceptions disabled to any exception enabled
10875         or visa versa.
10876         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10877         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10878         when transitioning from all exceptions disabled to any exception
10879         enabled or visa versa.
10880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10887 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10889         [BZ #4465]
10890         * posix/unistd.h: Remove __THROW from fdatasync.
10892 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10894         [BZ #4465]
10895         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10897 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10899         * stdio-common/vfprintf.c (process_string_arg): Optimize
10900         ridiculous precision in wide char code printing multi-byte string.
10901         Reported by Jim Meyering <jim@meyering.net>.
10903         [BZ #4131]
10904         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10905         boundaries to work around systems with overlapping binary loading.
10906         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10908 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10910         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10911         __mbsnrtowcs after last change.
10913         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10914         (get_ident): Likewise.
10916 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10918         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10919         with setting the sticky bit.
10920         * math/test-misc.c (main): Add more truncation tests.
10922 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10924         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10925         double in the function declaration.
10926         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10927         double in the function declaration.
10928         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10929         float in the function declaration.
10930         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10931         float in the function declaration.
10933         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10934         denormal operands.  Do not generate FP_EX_DENORM exception.
10935         (FP_UNPACK_RAW_EP): Ditto.
10936         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10937         undefined _FP_UNPACK_RAW_E.
10938         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10939         undefined _FP_UNPACK_RAW_EP.
10940         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10941         undefined _FP_PACK_RAW_E.
10942         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10943         undefined _FP_PACK_RAW_EP.
10945         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10946         _FP_FRAC_COPY_2.
10947         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10948         _FP_FRAC_COPY_4.
10950 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10951             Jakub Jelinek  <jakub@redhat.com>
10953         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10954         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10955         this case.
10956         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10958 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10960         * math/test-misc.c (main): Add tests for rounding long double
10961         values close to smallest double denormalized value to double.
10963 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10965         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10966         condition for truncating to 0.  Set sticky bit for such
10967         truncation.
10969 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10971         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10972         fixed length array for ignore.
10974 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10976         [BZ #4438]
10977         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10978         stack for large precisions.
10979         * stdio-common/test-vfprintf.c (main): Add test for large
10980         precision.
10982 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10984         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10985         for exponent 0.
10986         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10988         [BZ #4439]
10989         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10990         account in the size check.
10991         * resolv/tst-inet_ntop.c: New test.
10992         * resolv/Makefile (tests): Add tst-inet_ntop.
10994 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10995             Jakub Jelinek  <jakub@redhat.com>
10997         [BZ #4349]
10998         * malloc/malloc.c: Keep separate list for first blocks on the bin
10999         lists with a given size.  This helps skipping over list elements
11000         we know won't fit in two places.
11001         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11003 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11005         [BZ #4102]
11006         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11007         label to Teredo tunnel addresses 2001://32.
11009 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11011         * locale/programs/ld-collate.c (collate_read): Allow order_start
11012         after copy.
11014         * locale/programs/ld-collate.c (collate_read): Fix printing of
11015         error message.
11017         [BZ #3213]
11018         * locale/C-translit.h.in: Add entry for U2044.
11020         [BZ #4342]
11021         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11022         hexa-decimal floats without exponent.
11023         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11025 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11027         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11028         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11029         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11030         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11031         GLIBC_2.6.
11032         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11033         Add sched_getcpu.
11035 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11037         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11038         of 0 after the out_fail label.
11040 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11042         [BZ #4406]
11043         * iconv/gconv_charset.h (strip): Allow ':'.
11044         * iconv/iconv_open.c (iconv_open): Adjust comment.
11046 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11048         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11049         version.
11051 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11053         [BZ #4381]
11054         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11055         alignment of buffer and tmp_buffer.
11056         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11057         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11058         alignment of buffer.
11059         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11060         bigger than INT_MAX.
11061         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11062         h_errnop arguments.  Fail if buflen is too small.
11063         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11065 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11067         [BZ #4405]
11068         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11069         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11071 2007-04-22  Roland McGrath  <roland@redhat.com>
11073         * elf/elf.h (NT_PRXFPREG): New macro.
11075 2007-04-19  Andreas Jaeger  <aj@suse.de>
11077         [BZ #3905]
11078         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11079         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11080         Added.
11082 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11084         * include/sys/mman.h: Mark madvise hidden.
11085         * misc/madvise.c: Add libc_hidden_def.
11087 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11089         * nis/nis_domain_of.c (__nis_domain_of): New function.
11090         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11091         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11092         * nis/nis_call.c (rec_dirsearch): Likewise.
11093         (first_shoot): Likewise.  Remove search_parent_first argument.
11094         (struct nis_server_cache): Rename search_parent_first field
11095         to search_parent.
11096         (nis_server_cache_search, nis_server_cache_add): Rename
11097         search_parent_first argument to search_parent.
11098         (__nisfind_server): Likewise.  If search_parent, call
11099         __nis_domain_of.
11101 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11103         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11105 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11107         [BZ #4368]
11108         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11110 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11112         [BZ #4364]
11113         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11115 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11117         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11118         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11119         current number of locales in SUPPORTED.
11120         (create_archive): Initialize serial.
11121         (enlarge_archive): Preserve aliases rather than duplicating
11122         their locrecs.
11124 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11126         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11127         after _IO_un_link, not before it.
11129         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11130         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11131         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11133 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11135         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11136         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11137         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11138         Remove __THROW.
11139         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11140         _IO_file_xsgetn_maybe_mmap): Likewise.
11141         * libio/oldfileops.c (old_do_write): Likewise.
11142         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11143         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11144         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11145         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11146         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11147         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11148         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11149         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11150         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11151         _IO_file_underflow, _IO_file_underflow_mmap,
11152         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11153         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11154         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11155         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11156         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11157         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11158         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11159         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11160         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11161         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11162         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11163         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11164         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11165         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11166         _IO_adjust_column_internal, _IO_default_uflow_internal,
11167         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11168         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11169         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11170         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11171         _IO_file_close_it_internal, _IO_file_underflow_internal,
11172         _IO_file_overflow_internal, _IO_file_attach_internal,
11173         _IO_file_fopen_internal, _IO_file_sync_internal,
11174         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11175         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11176         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11177         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11178         _IO_seekpos_unlocked): Likewise.
11179         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11180         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11182 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11184         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11185         argument in xmalloc size computation.
11187 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11189         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11190         math_opt_barrier and math_force_eval macros.
11192 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11194         [BZ #3306]
11195         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11196         * sysdeps/i386/fpu/math_private.h: New file.
11197         * sysdeps/x86_64/fpu/math_private.h: New file.
11198         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11199         math_force_eval macros.  Use "+m" constraint on asm rather than
11200         "=m" and "m".
11201         * math/s_nextafter.c (__nextafter): Likewise.
11202         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11203         Likewise.
11204         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11205         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11206         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11207         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11208         math_opt_barrier and math_force_eval macros.
11209         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11210         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11211         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11212         (__nexttoward): Use math_opt_barrier and
11213         math_force_eval macros.  Use "+m" constraint on asm rather than
11214         "=m" and "m".  Only use asm to force double result if
11215         FLT_EVAL_METHOD is 2.
11216         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11217         (__nexttowardf): Use math_opt_barrier and
11218         math_force_eval macros.  Use "+m" constraint on asm rather than
11219         "=m" and "m".  Only use asm to force double result if
11220         FLT_EVAL_METHOD is not 0.
11221         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11222         (__nexttowardf): Use math_opt_barrier and
11223         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11224         x to float using asm.
11225         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11226         (__nldbl_nexttowardf): Use math_opt_barrier and
11227         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11228         x to float using asm.
11229         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11230         (__nexttowardf): Use math_opt_barrier and math_force_eval
11231         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11232         * math/bug-nextafter.c (zero, inf): New variables.
11233         (main): Add new tests.
11234         * math/bug-nexttoward.c (zero, inf): New variables.
11235         (main): Add new tests.
11237 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11239         [BZ #3427]
11240         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11241         exceptions both in SW and MXCSR.
11242         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11243         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11244         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11245         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11246         in MXCSR if SSE is available.
11247         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11248         and ldsodefs.h.
11249         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11250         Fix comment typo.
11251         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11252         Return 0 rather than 1.
11253         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11254         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11255         * math/test-fenv.c (feholdexcept_tests): New function.
11256         (main): Call it.
11258 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11260         [BZ #3427]
11261         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11262         in SW.
11264 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11266         [BZ #4344]
11267         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11268         Reported by David Anderson <davea42@earthlink.net>.
11270 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11272         * posix/sys/wait.h: Remove unnecessary forward declaration.
11274 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11276         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11277         with obj->do_servers after first_shoot.
11279 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11281         * posix/Makefile (routines): Add sched_cpucount.
11282         (tests): Add tst-cpucount.
11283         * posix/sched_cpucount.c: New file.
11284         * posix/tst-cpucount.c: New file.
11285         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11286         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11287         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11288         * posix/sched.h: Define CPU_COUNT.
11290 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11292         * posix/fnmatch.c (STRUCT): Define.
11293         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11294         * posix/fnmatch_loop.c (struct STRUCT): New type.
11295         (FCT): Add ends argument.  If ends != NULL and normal * is
11296         seen in the pattern, store current pattern and string pointers
11297         and return.  Adjust recursive calls.
11298         (EXT): Adjust FCT callers.
11299         (STRUCT): Undef at the end of the file.
11300         * posix/Makefile (tests): Add tst-fnmatch2.
11301         * posix/tst-fnmatch2.c: New test.
11303 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11305         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11306         and 1 on failure.
11308         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11309         Change last argument to unsigned int.
11311 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11313         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11315 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11317         * config.h.in (HAVE_LIBCAP): Add.
11318         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11319         sys/capabilities.h.
11320         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11321         free_caps.  Cast away const from 4th cap_set_flag argument.
11323 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11325         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11326         GLIBC_2.6.
11327         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11328         Add sync_file_range.
11329         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11331 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11333         * sysdeps/powerpc/bits/atomic.h
11334         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11335         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11336         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11337         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11338         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11339         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11340         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11341         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11342         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11343         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11344         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11345         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11346         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11347         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11348         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11349         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11350         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11351         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11352         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11353         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11355 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11357         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11358         (__cache_line_size): Define the variable here.  Add
11359         attribute_hidden, remove weak_extern.
11360         (__libc_start_main): Set __cache_line_size
11361         unconditionally.
11362         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11363         (__cache_line_size): Define the variable here.  Add
11364         attribute_hidden, remove weak_extern.
11365         (DL_PLATFORM_AUXV): Set __cache_line_size
11366         unconditionally.
11367         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11368         weak_extern, add attribute_hidden.
11369         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11370         defined in ld.so.
11371         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11372         definition.
11373         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11375 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11377         [BZ #4276]
11378         * timezone/africa: Update from tzdata2007d.
11379         * timezone/asia: Likewise.
11380         * timezone/australasia: Likewise.
11381         * timezone/backward: Likewise.
11382         * timezone/europe: Likewise.
11383         * timezone/iso3166.tab: Likewise.
11384         * timezone/leapseconds: Likewise.
11385         * timezone/northamerica: Likewise.
11386         * timezone/southamerica: Likewise.
11387         * timezone/zone.tab: Likewise.
11389         * timezone/private.h: Update from tzcode2007d.
11390         * timezone/zdump.c: Likewise.
11391         * timezone/zic.c: Likewise.
11393 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11395         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11396         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11397         variables.
11398         (nis_server_cache_search, nis_server_cache_add): New functions.
11399         (__nisfind_server): Use them.  Add dbp and flags argument, if
11400         call __nisbind_create.
11401         (__nisbind_create): Add server_used and current_ep arguments,
11402         only call __nis_findfastest if server_used is ~0.
11403         (__do_niscall2, __prepare_niscall): Adjust callers.
11404         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11405         ckey_cache_euid, ckey_cache_lock): New variables.
11406         (get_ckey): New function.
11407         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11408         __pmap_getnisport.  Save __pmap_getnisport result in
11409         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11410         key.
11411         * nis/nis_lookup.c (nis_lookup): Likewise.
11412         * nis/nis_table.c (nis_list): Likewise.
11413         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11414         prototypes.
11416         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11417         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11418         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11419         _nss_nisplus_getservbyport_r): Likewise.
11420         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11421         _nss_nisplus_getnetbyaddr_r): Likewise.
11422         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11423         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11424         _nss_nisplus_getntohost_r): Likewise.
11425         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11426         _nss_nisplus_getrpcbynumber_r): Likewise.
11428 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11430         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11431         * configure: Rebuilt.
11433         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11434         bit-fields.
11435         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11437 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11439         [BZ #2831]
11440         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11441         bit-fields.
11443 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11445         * nscd/gai.c: Include alloca.h.
11446         (__libc_use_alloca): Define.
11448 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11450         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11451         smaller scopes.
11452         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11453         (DL_DST_REQUIRED): Adjust user.
11455         * include/dlfcn.h (struct link_map): New forward decl.
11457         * inet/getnameinfo.c: Include stddef.h.
11458         (getnameinfo): Use offsetof.
11460         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11462         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11464         * string/strerror_l.c: Include stdlib.h.
11466         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11467         * config.make.in (gnu89-inline-CFLAGS): New variable.
11468         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11469         -std=gnu99.
11470         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11471         * argp/argp.h: Use it.
11472         * bits/mathinline.h: Likewise.
11473         * bits/sigset.h: Likewise.
11474         * bits/string.h: Likewise.
11475         * ctype/ctype.h: Likewise.
11476         * hurd/hurd.h: Likewise.
11477         * hurd/hurd/fd.h: Likewise.
11478         * hurd/hurd/port.h: Likewise.
11479         * hurd/hurd/signal.h: Likewise.
11480         * hurd/hurd/threadvar.h: Likewise.
11481         * hurd/hurd/userlink.h: Likewise.
11482         * io/sys/stat.h: Likewise.
11483         * libio/bits/stdio.h: Likewise.
11484         * libio/bits/stdio2.h: Likewise.
11485         * mach/lock-intern.h: Likewise.
11486         * mach/mach/mig_support.h: Likewise.
11487         * math/bits/cmathcalls.h: Likewise.
11488         * posix/bits/unistd.h: Likewise.
11489         * socket/bits/socket2.h: Likewise.
11490         * stdlib/bits/stdlib.h: Likewise.
11491         * stdlib/stdlib.h: Likewise.
11492         * string/argz.h: Likewise.
11493         * string/bits/string2.h: Likewise.
11494         * string/bits/string3.h: Likewise.
11495         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11496         * sysdeps/generic/inttypes.h: Likewise.
11497         * sysdeps/generic/machine-lock.h: Likewise.
11498         * sysdeps/generic/machine-sp.h: Likewise.
11499         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11500         * sysdeps/i386/i486/bits/string.h: Likewise.
11501         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11502         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11503         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11504         * sysdeps/mach/i386/machine-lock.h: Likewise.
11505         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11506         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11507         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11508         * sysdeps/s390/bits/string.h: Likewise.
11509         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11510         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11511         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11512         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11513         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11514         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11515         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11516         * wcsmbs/bits/wchar2.h: Likewise.
11517         * wcsmbs/wchar.h: Likewise.
11518         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11519         __extern_inline definition.
11521 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11523         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11524         NULL.
11526         [BZ #3919]
11527         * math/libm-test.inc (log_test): Test -Inf and NaN.
11528         (log10_test, log1p_test, log2_test): Test -Inf.
11529         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11530         FE_INVALID when argument is qNaN.
11531         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11532         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11533         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11534         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11535         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11536         testb $4, %ah and jump if non-zero.
11537         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11538         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11540         [BZ #4101]
11541         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11542         ancestors with the same depths.
11543         Patch by Niels Moeller <nisse@lysator.liu.se>.
11544         (filter_doc): Don't crash if argp is NULL.
11545         * argp/Makefile (tests): Add tst-argp2.
11546         * argp/tst-argp2.c: New test.
11548         [BZ #4130]
11549         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11550         open_not_cancel_2.
11551         (updwtmp_file): Likewise.
11553         [BZ #4181]
11554         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11555         (inet6_opt_append): Don't check extlen is big enough if extbuf
11556         is NULL.
11557         (inet6_opt_finish): Likewise.
11558         * inet/Makefile (tests): Add test-inet6_opt.
11559         * inet/test-inet6_opt.c: New test.
11561         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11562         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11563         NLMSG_ERR.  Instead use a page sized buffer.
11564         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11565         buffer.
11567 2007-03-14  Richard Henderson  <rth@redhat.com>
11569         * sysdeps/alpha/fpu/s_llround.c: New file.
11570         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11571         * sysdeps/alpha/fpu/s_lround.c: New file.
11572         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11573         * sysdeps/alpha/fpu/s_round.c: New file.
11574         * sysdeps/alpha/fpu/s_roundf.c: New file.
11575         * sysdeps/alpha/fpu/s_trunc.c: New file.
11576         * sysdeps/alpha/fpu/s_truncf.c: New file.
11578         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11579         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11580         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11581         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11582         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11583         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11585         * sysdeps/alpha/fpu/s_fmax.S: New file.
11586         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11587         * sysdeps/alpha/fpu/s_fmin.S: New file.
11588         * sysdeps/alpha/fpu/s_fminf.S: New file.
11589         * sysdeps/alpha/fpu/s_isnan.c: New file.
11590         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11591         * sysdeps/alpha/fpu/s_llrint.c: New file.
11592         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11593         * sysdeps/alpha/fpu/s_lrint.c: New file.
11594         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11595         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11596         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11598         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11599         (__fdimf, fdimf, __fdim, fdim): Remove.
11600         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11601         (__isnanf, __isnan, __isnanl): New.
11603 2007-03-13  Richard Henderson  <rth@redhat.com>
11605         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11607 2007-03-13  Richard Henderson  <rth@redhat.com>
11609         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11610         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11611         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11612         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11613         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11614         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11616 2007-03-13  Richard Henderson  <rth@redhat.com>
11618         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11619         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11620         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11621         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11622         Move to dl-auxv.h; initialize instead of extern weak.
11623         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11624         weak symbol.
11625         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11626         Extern instead of initialized.
11628 2007-03-13  Richard Henderson  <rth@redhat.com>
11630         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11631         __sigsuspend_nocancel.
11633 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11635         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11636         172.16/12 address range.
11638 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11640         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11641         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11642         message.
11644 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11646         [BZ #4069]
11647         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11648         earlier.
11649         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11651         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11652         for x qNaN and y either +-inf or non-integer value.
11653         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11654         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11655         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11657 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11659         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11660         from sysdep_headers.
11662 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11664         * time/tzfile.c (find_transition): Instead of a linear search try to
11665         guess the transition index, use a linear search if the result is at
11666         most 10 transitions away from the guess or binary search otherwise.
11668 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11670         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11671         memory reallocation.
11673 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11675         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11676         and fix some typos.
11677         Optimize use of TOLOWER.
11679         [BZ #3325]
11680         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11681         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11682         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11684         [BZ #3458]
11685         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11686         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11688         [BZ #4076]
11689         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11690         (open_dir_stream): Likewise.
11691         * io/Makefile (tests): Add bug-ftw5.
11692         * io/bug-ftw5.c: New file.
11694         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11695         * nscd/servicescache.c (cache_addserv): Likewise.
11697         * nscd/grpcache.c (cache_addgr): In case a record changed on
11698         refresh, adjust key_copy.
11700         [BZ #4074]
11701         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11702         refresh, adjust key_copy.
11704         [BZ #4070]
11705         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11706         special cases.
11707         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11709 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11711         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11712         optimization.
11714         * stdio-common/vfscanf.c: Small cleanups throughout.
11716 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11718         [BZ #3325]
11719         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11720         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11721         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11722         Patch by Jared Casper <jaredcasper@gmail.com>.
11724         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11725         * sysdeps/unix/opendir.c: Likewise.
11726         * sysdeps/unix/readdir.c: Likewise.
11728         [BZ #2211]
11729         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11730         point numbers.
11731         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11733         * stdio-common/vfscanf.c: Fix problems in width accounting.
11734         * stdio-common/tst-sscanf.c (double_tests): New tests.
11735         (main): Hook them up.
11737         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11738         More simplifications of floating-point reader.
11740         * stdio-common/Makefile (tests): Add tst-swscanf.
11741         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11742         testing.
11743         * stdio-common/tst-swscanf.c: New file.
11745 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11747         [BZ #2633]
11748         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11749         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11750         Remove using for __jmp_buf_tag.
11751         * locale/locale.h (struct lconv): Also define in std namespace.
11752         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11754         [BZ #3842]
11755         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11756         using __libc_enable_secure.
11758         [BZ #3818]
11759         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11761         [BZ #3745]
11762         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11763         of names for ellipsises.
11765         [BZ #3348]
11766         * malloc/memusage.sh: Cleanups.
11767         * debug/xtrace.sh: Quoting and trap changes.
11769 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11771         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11773         * locale/iso-3166.def: Update entry for Serbia.
11774         * locale/iso-4217.def: Define RSD, remove CSD.
11776         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11777         and 64-bit operations.
11779         [BZ #4040]
11780         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11781         16-bit operations.
11783         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11784         of writev.
11786 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11788         [BZ #3991]
11789         * assert/assert.h (assert): Simplify.
11790         (assert_perror): Likewise.
11791         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11793         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11794         reqdata.
11796         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11797         change: don't pass NULL in place of an integer.
11799 2007-02-02  Bruno Haible  <bruno@clisp.org>
11801         [BZ #3954]
11802         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11803         Add mapping for U+327E.
11804         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11805         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11806         mapping of 0xD9 0xE8.
11807         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11808         mapping of U+327E.
11809         Reported by Jungshik Shin <jungshik@google.com>.
11811         [BZ #3955]
11812         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11813         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11814         Reported by Jungshik Shin <jungshik@google.com>.
11816 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11818         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11819         byte variants.
11821         [BZ #4040]
11822         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11823         byte variants.  Patch mostly be tom@tommay.net.
11825 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11827         [BZ #3996]
11828         * posix/glob.c (attribute_hidden): Define if not defined.
11829         (glob): Unescape dirname, filename or username when needed and not
11830         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11831         is NULL.  Handle unescaped [ in pattern without closing ].
11832         Don't pass GLOB_CHECK down to recursive glob for directories.
11833         (__glob_pattern_type): New function.
11834         (__glob_pattern_p): Implement using __glob_pattern_type.
11835         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11836         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11837         Remove unreachable code.
11838         * posix/globtest.sh: Add a couple of new tests.
11840 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11842         * po/ru.po: Update from translation team.
11844 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11846         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11847         to the list of i486+ CPUs.
11848         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11850 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11852         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11853         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11854         references.
11856 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11858         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11860         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11861         * resolv/res_mkquery.c: Define __res_nopt.
11862         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11863         try adding EDNS0 record.
11864         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11865         EDNS0 record was send make sure we don't try it again.
11866         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11867         * include/resolv.h: Declare __res_nopt.
11869 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11871         [BZ #3944]
11872         * time/strptime_l.c (__strptime_internal): Set have_mon for
11873         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11874         have been computed from tm_yday and tm_year.  Don't crash
11875         in day_of_the_week or day_of_the_year if not have_mon
11876         and tm_mon contains bogus value.
11877         * time/Makefile (tests): Add tst-strptime3.
11878         * time/tst-strptime3.c: New test.
11880 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11882         [BZ #3957]
11883         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11884         bit for RE_HAT_LISTS_NOT_NEWLINE.
11885         (build_charclass_op): Remove bogus comment.
11886         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11887         * posix/bug-regex27.c: New test.
11888         * posix/bug-regex28.c: New test.
11890 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11892         * po/sv.po: Update from translation team.
11894 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11896         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11898 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11900         * include/locale.h (__uselocale): Add libc_hidden_proto.
11901         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11903         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11904         gettimeofday.
11906 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11908         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11909         returning.
11910         (PTR_DEMANGLE): Real definition now that it's not the same as
11911         PRT_MANGLE anymore.
11912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11914         * string/strerror_l.c: New file.
11915         * string/Makefile (routines): Add strerror_l.
11916         * string/string.h: Declare strerror_l.
11917         * string/Versions: Export strerror_l for GLIBC_2.6.
11919 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11921         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11922         as parameter.  Construct request record.  Try sending request
11923         before the first poll use, it usually succeeds.  Adjust all
11924         callers.
11925         * nscd/nscd-client.h: Define MAXKEYLEN.
11926         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11928 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11930         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11931         from return value.
11932         * nscd/nscd_helper.c: Include string.h.
11933         (__nscd_cache_search): Remove const qualifier from return value.
11934         On strict alignment architectures check hash entry and data head
11935         alignment.
11936         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11937         mmapped data during GC cycle contains garbage.  If
11938         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11939         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11940         dropped to 0.
11941         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11942         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11943         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11944         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11945         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11947 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11949         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11951 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11953         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11954         names not numbers in cfi_*.
11956 2007-01-26  Andreas Jaeger  <aj@suse.de>
11958         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11959         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11960         Correct values of PER_HPUX and PER_OSF4.
11962 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11964         * elf/dl-minimal.c: Undefine _itoa first.
11965         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11966         * malloc/mtrace.c: Revert last change.
11967         * posix/wordexp.c: Likewise.
11969 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11971         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11972         and __geode__ to the list of i486+ CPUs.
11973         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11975 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11977         * stdio-common/_itoa.c: Include <limits.h>.
11978         * stdio-common/_itowa.c: Likewise.
11980 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11982         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11983         platforms.
11984         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11985         64-bit platforms.
11986         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11987         possible.
11988         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11989         if possible.
11991         [BZ #3902]
11992         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11993         * stdio-common/Makefile (tests): Add bug17.
11994         * stdio-common/bug17.c: New file.
11996 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11998         * iconvdata/brf.c: New file.
11999         * iconvdata/testdata/BRF: New file.
12000         * iconvdata/testdata/BRF..UTF8: New file.
12001         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12002         * iconvdata/Makefile: Add rules to build BRF.
12003         * iconvdata/TESTS: Add BRF entry.
12004         * iconvdata/gconv-modules: Likewise.
12005         * iconvdata/tst-tables.sh: Likewise.
12007 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12009         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12010         type `long long int', not `long int'.
12011         (wcstoq): Likewise.
12013 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12015         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12016         of values on 64-bit platforms which are too large.
12018 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12019             Joe Kerian  <jkerian@us.us.ibm.com>
12021         [BZ #2749]
12022         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12023         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12024         (__copysignl): Use signbit() for comparison.
12025         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12026         SET_LDOUBLE_WORDS64.
12028         [BZ #2423, #2749]
12029         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12030         (__ceill): Remove calls to fegetround(), fesetround().
12031         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12032         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12033         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12035 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12037         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12039         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12041 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12043         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12044         demangle pointer.
12045         * csu/libc-start.c: Likewise.
12047 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12049         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12050         really work anyway.
12052 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12054         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12055         users.
12056         (handle_request): Remove unnecessary tests.
12058         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12060 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12062         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12063         workbits in semi-raw fraction.
12065         * math/test-misc.c: Add new tests.
12067 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12069         * math/basic-test.c: Include test-skeleton.c.
12070         (TEST_TRUNC): Define.
12071         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12072         (main): Rename to ...
12073         (do_test): ...this.  Run new tests.
12074         (TEST_FUNCTION): Define.
12076 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12077             Joe Kerian  <jkerian@us.us.ibm.com>
12079         [BZ #2749]
12080         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12081         handling for high words.
12082         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12083         and overflow for infinity.
12085 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12087         * nscd/connections.c (handle_request): Add a __builtin_expect.
12089         * nscd/connections.c (serv2db): Change type into structure which
12090         also says whether this is a request for data.  Renamed to
12091         servinfo.  All users changed.
12092         (handle_request): Much simpler test whether we should search the cache.
12094         * nscd/connections.c (handle_request): Fix thinko in selinux test
12095         invocation.
12097         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12098         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12099         it before getting dl_load_lock and then relock.
12100         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12101         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12102         case we unlocked the scope.
12103         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12104         _dl_lookup_symbol_x in case we locked the scope.
12105         (_dl_profile_fixup): Likewise.
12106         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12107         set DL_LOOKUP_SCOPE_LOCK.
12109 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12111         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12112         CFLAGS-getsrvbynpt_r.c.
12113         * nscd/getsrvbynm_r.c: New file.
12114         * nscd/getsrvbypt_r.c: New file.
12115         * nscd/nscd_getserv_r.c: New file.
12116         * nscd/servicescache.c: New file.
12117         * nscd/Makefile (routines): Add nscd_getserv_r.
12118         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12119         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12120         CFLAGS-getsrvbypt_r.c.
12121         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12122         table.  Add entries for services database.
12123         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12124         services database.
12125         (dbs): Add .reset_res and servdb initialization.
12126         (serv2db): Add entries for services database.
12127         (verify_persistent_db): Accept dbnr == servdb.
12128         (invalidate_cache): Rewrite database name recognition to use a table.
12129         Call res_init() if .reset_res is set for database.
12130         (handle_request): Add code to handle services database.
12131         * nscd/gai.c: Don't define __getservbyname_r.
12132         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12133         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12134         (serv_response_header): Define.
12135         (struct datahead): Add serv_response_header member.
12136         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12137         using table.
12138         * nscd/nscd.conf: Add entries for services database.
12139         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12140         Declare serv_iov_disabled.
12141         Declare addservbyname, readdservbyname, addservbyport, and
12142         readdservbyport.
12143         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12144         (find_db): Fix error message.
12145         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12146         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12147         * nscd/selinux.c (perms): Add entries for services database.
12148         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12149         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12151         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12152         * nscd/hstcache.c: Likewise.
12153         * nscd/pwdcache.c: Likewise.
12155         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12156         computation of keylen.
12158         * include/string.h: Only redefine strndupa if this is really for
12159         libc code.
12161 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12163         * nscd/nscd_gethst_r.c: Minor cleanups.
12165         * nscd/connections.c (handle_request): Check selinux permissions
12166         for all non-admin commands.
12168         * sysdeps/i386/i486/bits/atomic.h: Define
12169         atomic_compare_and_exchange_val_acq,
12170         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12171         using __sync_* built-ins for gcc >= 4.1.
12172         * sysdeps/x86_64/bits/atomic.h: Likewise.
12174         [BZ #3840]
12175         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12176         and .oS.d files.
12178 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12180         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12181         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12182         (do_test): Check errno and exit(0) if ENOSYS.
12184 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12186         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12187         thousands separators.
12188         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12189         * stdlib/tst-strtod4.c: New test.
12191         [BZ #3855]
12192         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12193         hexadecimal digit should accept just the initial 0.
12194         * stdlib/tst-strtod2.c (tests): New variable.
12195         (do_test): Run several tests rather than just one.
12197 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12199         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12200         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12202 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12204         * io/fts.c: Make sure fts_cur is always valid after return from
12205         fts_read.
12206         Patch by Miloslav Trmac <mitr@redhat.com>.
12208 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12210         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12211         (R_MIPS_NUM): Bump by 1.
12213 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12215         * posix/execvp.c: Include alloca.h.
12216         (allocate_scripts_argv): Renamed to...
12217         (scripts_argv): ... this.  Don't allocate buffer here nor count
12218         arguments.
12219         (execvp): Use alloca if possible.
12220         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12221         * posix/tst-vfork3.c: New test.
12223 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12225         * string/Makefile (tst-strxfrm2-ENV): Define.
12226         * stdlib/Makefile (tst-strtod3-ENV): Define.
12228 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12230         * posix/getconf.c: Update copyright year.
12231         * nss/getent.c: Likewise.
12232         * iconv/iconvconfig.c: Likewise.
12233         * iconv/iconv_prog.c: Likewise.
12234         * elf/ldconfig.c: Likewise.
12235         * catgets/gencat.c: Likewise.
12236         * csu/version.c: Likewise.
12237         * elf/ldd.bash.in: Likewise.
12238         * elf/sprof.c (print_version): Likewise.
12239         * locale/programs/locale.c: Likewise.
12240         * locale/programs/localedef.c: Likewise.
12241         * nscd/nscd.c (print_version): Likewise.
12242         * debug/xtrace.sh: Likewise.
12243         * malloc/memusage.sh: Likewise.
12244         * malloc/mtrace.pl: Likewise.
12245         * debug/catchsegv.sh: Likewise.
12247 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12249         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12250         attempts.
12252 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12254         * posix/wordexp.c: Remove some unnecessary tests.
12256 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12258         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12259         blacklist the group till after we look it up.
12261 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12263         * include/atomic.h (atomic_forced_read): New macro.
12265 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12267         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12269 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12271         * nss/getXXbyYY_r.c: Include atomic.h.
12272         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12273         add atomic_write_barrier () in between.
12275         * stdlib/Makefile (tests): Add tst-makecontext.
12276         * stdlib/tst-makecontext.c: New test.
12278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12279         (__makecontext): Don't realign uc_mcontext.uc_regs.
12281 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12283         * elf/dl-support.c: Include dl-procinfo.h.
12284         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12285         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12286         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12287         Define.
12288         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12289         hardcoded constants.
12290         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12291         PPC_PLATFORM_* macros for array designators.
12293 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12295         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12296         names to the beginning.
12297         (_dl_powerpc_platforms): Add "power6x".
12298         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12299         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12300         (_DL_PLATFORMS_COUNT): Increase.
12301         (_dl_string_platform): Handle power6x case.
12302         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12303         PPC_FEATURE_POWER6_EXT): Define.
12304         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12306 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12308         [BZ #3747]
12309         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12310         [-2^31 .. 2^31) range.
12311         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12312         targets.
12313         * stdlib/tst-rand48-2.c: New test.
12314         * stdlib/Makefile (tests): Add tst-rand48-2.
12316 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12318         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12320 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12322         * misc/tst-pselect.c (do_test): Make sure the helper process is
12323         terminating when the test is aborted.
12325 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12327         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12328         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12329         Handle relatime mount option.
12331         [BZ #2337]
12332         * libio/Makefile (tests): Add tst-setvbuf1.
12333         * libio/tst-setvbuf1.c: New file.
12335 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12337         [BZ #2337]
12338         * libio/genops.c (__uflow): Fix a typo.
12339         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12340         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12341         the narrow buffer size.
12343 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12345         [BZ #2337]
12346         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12347         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12348         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12349         in _flags.
12350         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12351         _IO_wstr_finish): Likewise.
12352         * libio/wmemstream.c (open_wmemstream): Likewise.
12353         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12354         even for wide streams.
12356 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12359         kernel-features.h.
12361 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12363         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12364         separators also if no non-zero digits found.
12365         * stdlib/Makefile (tests): Add tst-strtod3.
12367 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12369         [BZ #3632]
12370         * include/features.h: Fix comment about default value for
12371         _POSIX_C_SOURCE.
12373         [BZ #3664]
12374         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12375         empty parsed strings.
12376         * stdlib/Makefile (tests): Add tst-strtod2.
12377         * stdlib/tst-strtod2.c: New file.
12379         [BZ #3673]
12380         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12381         computation.
12382         * stdlib/Makefile (tests): Add tst-atof2.
12383         * stdlib/tst-atof2.c: New file.
12385         [BZ #3674]
12386         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12387         correctly if removing trailing zero of hex-float.
12388         * stdlib/Makefile (tests): Add tst-atof1.
12389         * stdlib/tst-atof1.c: New file.
12391 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12393         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12394         Start searching for next comma at p rather than rest.
12395         * misc/Makefile (tests): Add tst-mntent2.
12396         * misc/tst-mntent2.c: New test.
12398         * misc/getusershell.c (initshells): Check for integer overflows.
12399         Make strings buffer one bigger as fgets always succeeds when second
12400         argument is 1.  Don't use calloc for shells array.  Disallow
12401         / as shell.
12403 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12405         * malloc/memusage.c: Handle realloc with new size of zero and
12406         non-NULL pointer correctly.
12407         (me): Really write first record twice.
12408         (struct entry): Make format bi-arch safe.
12409         (dest): Write out more realloc statistics.
12410         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12412 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12414         * nis/nis_subr.c (nis_getnames): Revert last change.
12416 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12418         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12419         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12420         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12421         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12422         ENOTTY.
12423         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12424         * io/tst-ttyname_r.c: New test.
12426 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12428         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12430 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12432         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12433         jump table entries.
12435 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12437         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12438         `clone' function to ensure proper unwinding stop of gdb.
12439         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12441 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12443         * nscd/nscd.init: Remove obsolete and commented-out -S option
12444         handling.
12446 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12448         [BZ #3514]
12449         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12451         [BZ #3515]
12452         * manual/string.texi (strtok): Remove duplicate paragraph.
12454 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12456         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12457         libgcc not supporting `rflags' unwinding (register # >= 17).
12459 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12461         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12462         succeeded.
12464 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12465             Jakub Jelinek  <jakub@redhat.com>
12466             Jan Kratochvil  <jan.kratochvil@redhat.com>
12468         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12469         unwind information.
12470         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12471         'restore_rt' even in the 'signal' directory.
12472         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12474 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12476         [BZ #3559]
12477         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12478         malloc crashed.  Don't allocate memory unnecessarily in each
12479         loop.
12481 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12483         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12485 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12487         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12489 2006-11-18  Bruno Haible  <bruno@clisp.org>
12491         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12492         __sysconf only after having tried to call getgroups32.
12494 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12496         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12497         addresses for IPv4 queries if they can be mapped.
12499 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12501         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12502         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12503         (signmask): Add .size directive.
12504         (othermask): Add .type directive.
12506 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12508         * po/nl.po: Update from translation team.
12510         * timezone/zdump.c: Redo fix for BZ #3137.
12512 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12514         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12515         to first_unused after parsing :include: file.
12517 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12519         * timezone/africa: Update from tzdata2006o.
12520         * timezone/antarctica: Likewise.
12521         * timezone/asia: Likewise.
12522         * timezone/australasia: Likewise.
12523         * timezone/backward: Likewise.
12524         * timezone/europe: Likewise.
12525         * timezone/iso3166.tab: Likewise.
12526         * timezone/northamerica: Likewise.
12527         * timezone/southamerica: Likewise.
12528         * timezone/zone.tab: Likewise.
12530         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12531         on machines with 64-bit time_t.
12533         * timezone/checktab.awk: Update from tzcode2006o.
12534         * timezone/ialloc.c: Likewise.
12535         * timezone/private.h: Likewise.
12536         * timezone/scheck.c: Likewise.
12537         * timezone/tzfile.h: Likewise.
12538         * timezone/tzselect.ksh: Likewise.
12539         * timezone/zdump.c: Likewise.
12540         * timezone/zic.c: Likewise.
12542         [BZ #3483]
12543         * elf/ldconfig.c (main): Call setlocale and textdomain.
12544         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12546         [BZ #3480]
12547         * manual/argp.texi: Fix typos.
12548         * manual/charset.texi: Likewise.
12549         * manual/errno.texi: Likewise.
12550         * manual/filesys.texi: Likewise.
12551         * manual/lang.texi: Likewise.
12552         * manual/maint.texi: Likewise.
12553         * manual/memory.texi: Likewise.
12554         * manual/message.texi: Likewise.
12555         * manual/resource.texi: Likewise.
12556         * manual/search.texi: Likewise.
12557         * manual/signal.texi: Likewise.
12558         * manual/startup.texi: Likewise.
12559         * manual/stdio.texi: Likewise.
12560         * manual/sysinfo.texi: Likewise.
12561         * manual/syslog.texi: Likewise.
12562         * manual/time.texi: Likewise.
12563         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12565         [BZ #3465]
12566         * sunrpc/clnt_raw.c: Minimal message improvements.
12567         * sunrpc/pm_getmaps.c: Likewise.
12568         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12569         * nis/nis_print_group_entry.c: Likewise.
12570         * locale/programs/repertoire.c: Likewise.
12571         * locale/programs/charmap.c: Likewise.
12572         * malloc/memusage.sh: Likewise.
12573         * elf/dl-deps.c: Likewise.
12574         * locale/programs/ld-collate.c: Likewise.
12575         * libio/vswprintf.c: Likewise.
12576         * malloc/memusagestat.c: Likewise.
12577         * sunrpc/auth_unix.c: Likewise.
12578         * sunrpc/rpc_main.c: Likewise.
12579         * nscd/cache.c: Likewise.
12580         * locale/programs/repertoire.c: Unify output messages.
12581         * locale/programs/charmap.c: Likewise.
12582         * locale/programs/ld-ctype.c: Likewise.
12583         * locale/programs/ld-monetary.c: Likewise.
12584         * locale/programs/ld-numeric.c: Likewise.
12585         * locale/programs/ld-time.c: Likewise.
12586         * elf/ldconfig.c: Likewise.
12587         * nscd/selinux.c: Likewise.
12588         * elf/cache.c: Likewise.
12589         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12591         [BZ #3451]
12592         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12593         change atomic.
12594         (ceil): Likewise.
12596 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12598         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12599         if N is one bigger than return value.
12600         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12601         and l1 last arguments, if buf is defined, verify the return value
12602         equals to strlen (buf) and verify no byte beyond passed length
12603         is modified.
12605 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12607         * po/sv.po: Update from translation team.
12609 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12611         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12612         noinline attribute.
12614 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12616         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12617         noinline attribute.
12619         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12620         Use __new_sys_siglist instead of _sys_siglist_internal as
12621         second macro argument.
12622         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12623         strong_alias.
12625 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12627         [BZ #3493]
12628         * posix/unistd.h (sysconf): Remove const attribute.
12630         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12631         temporary or deprecated addresses.
12632         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12634         * string/Makefile (tests): Add tst-strxfrm2.
12635         * string/tst-strxfrm2.c: New file.
12637 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12639         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12640         rather than r->r_brk.
12642 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12644         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12645         optimization even if needed > n.
12647         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12648         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12649         return false, otherwise return true.
12650         (cache_rpath): Return decompose_rpath return value.
12652 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12654         * include/libc-symbols.h (declare_symbol): Rename to...
12655         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12656         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12657         .size directive.
12658         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12659         changes.
12660         * sysdeps/gnu/siglist.c: Likewise.
12662 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12664         * sysdeps/powerpc/fpu/bits/mathinline.h
12665         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12666         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12668 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12670         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12671         Update handling of cache descriptor 0x49 for new models.
12672         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12673         Likewise.
12675 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12677         * malloc/memusage.c (dest): Reset not_me back to false after
12678         printing statistics.
12680 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12682         * configure.in: Work around ld --help change and avoid -z relro
12683         test completely if the architecture doesn't care about security.
12685 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12687         * po/sv.po: Update from translation team.
12689 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12691         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12692         generate compatibility version.
12694 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12696         * configure.in: Relax -z relro requirement a bit.
12698         * po/sv.po: Update from translation team.
12700 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12702         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12703         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12704         * elf/dl-close.c (_dl_close_worker): Likewise.
12705         * elf/dl-open.c (_dl_open_worker): Likewise.
12706         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12708 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12710         * configure.in: Require assembler support for visibility, compiler
12711         support for visibility and aliases, linker support for various -z
12712         options.
12713         * Makeconfig: Remove conditional code which now is unnecessary.
12714         * config.h.in: Likewise.
12715         * config.make.in: Likewise.
12716         * dlfcn/Makefile: Likewise.
12717         * elf/Makefile: Likewise.
12718         * elf/dl-load.c: Likewise.
12719         * elf/rtld.c: Likewise.
12720         * include/libc-symbols.h: Likewise.
12721         * include/stdio.h: Likewise.
12722         * io/Makefile: Likewise.
12723         * io/fstat.c: Likewise.
12724         * io/fstat64.c: Likewise.
12725         * io/fstatat.c: Likewise.
12726         * io/fstatat64.c: Likewise.
12727         * io/lstat.c: Likewise.
12728         * io/lstat64.c: Likewise.
12729         * io/mknod.c: Likewise.
12730         * io/mknodat.c: Likewise.
12731         * io/stat.c: Likewise.
12732         * io/stat64.c: Likewise.
12733         * libio/stdio.c: Likewise.
12734         * nscd/Makefile: Likewise.
12735         * stdlib/Makefile: Likewise.
12736         * stdlib/atexit.c: Likewise.
12737         * sysdeps/generic/ldsodefs.h: Likewise.
12738         * sysdeps/i386/dl-machine.h: Likewise.
12739         * sysdeps/i386/sysdep.h: Likewise.
12740         * sysdeps/i386/i686/memcmp.S: Likewise.
12741         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12742         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12743         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12745         * Makerules: USE_TLS support is now default.
12746         * tls.make.c: Likewise.
12747         * csu/Versions: Likewise.
12748         * csu/libc-start.c: Likewise.
12749         * csu/libc-tls.c: Likewise.
12750         * csu/version.c: Likewise.
12751         * dlfcn/dlinfo.c: Likewise.
12752         * elf/dl-addr.c: Likewise.
12753         * elf/dl-cache.c: Likewise.
12754         * elf/dl-close.c: Likewise.
12755         * elf/dl-iteratephdr.c: Likewise.
12756         * elf/dl-load.c: Likewise.
12757         * elf/dl-lookup.c: Likewise.
12758         * elf/dl-object.c: Likewise.
12759         * elf/dl-open.c: Likewise.
12760         * elf/dl-reloc.c: Likewise.
12761         * elf/dl-support.c: Likewise.
12762         * elf/dl-sym.c: Likewise.
12763         * elf/dl-sysdep.c: Likewise.
12764         * elf/dl-tls.c: Likewise.
12765         * elf/ldconfig.c: Likewise.
12766         * elf/rtld.c: Likewise.
12767         * elf/tst-tls-dlinfo.c: Likewise.
12768         * elf/tst-tls1.c: Likewise.
12769         * elf/tst-tls10.h: Likewise.
12770         * elf/tst-tls14.c: Likewise.
12771         * elf/tst-tls2.c: Likewise.
12772         * elf/tst-tls3.c: Likewise.
12773         * elf/tst-tls4.c: Likewise.
12774         * elf/tst-tls5.c: Likewise.
12775         * elf/tst-tls6.c: Likewise.
12776         * elf/tst-tls7.c: Likewise.
12777         * elf/tst-tls8.c: Likewise.
12778         * elf/tst-tls9.c: Likewise.
12779         * elf/tst-tlsmod1.c: Likewise.
12780         * elf/tst-tlsmod13.c: Likewise.
12781         * elf/tst-tlsmod13a.c: Likewise.
12782         * elf/tst-tlsmod14a.c: Likewise.
12783         * elf/tst-tlsmod2.c: Likewise.
12784         * elf/tst-tlsmod3.c: Likewise.
12785         * elf/tst-tlsmod4.c: Likewise.
12786         * elf/tst-tlsmod5.c: Likewise.
12787         * elf/tst-tlsmod6.c: Likewise.
12788         * include/errno.h: Likewise.
12789         * include/link.h: Likewise.
12790         * include/tls.h: Likewise.
12791         * locale/global-locale.c: Likewise.
12792         * locale/localeinfo.h: Likewise.
12793         * malloc/arena.c: Likewise.
12794         * malloc/hooks.c: Likewise.
12795         * malloc/malloc.c: Likewise.
12796         * resolv/Versions: Likewise.
12797         * sysdeps/alpha/dl-machine.h: Likewise.
12798         * sysdeps/alpha/libc-tls.c: Likewise.
12799         * sysdeps/generic/ldsodefs.h: Likewise.
12800         * sysdeps/generic/tls.h: Likewise.
12801         * sysdeps/i386/dl-machine.h: Likewise.
12802         * sysdeps/ia64/dl-machine.h: Likewise.
12803         * sysdeps/ia64/libc-tls.c: Likewise.
12804         * sysdeps/mach/hurd/fork.c: Likewise.
12805         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12806         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12807         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12808         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12809         * sysdeps/s390/libc-tls.c: Likewise.
12810         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12811         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12812         * sysdeps/sh/dl-machine.h: Likewise.
12813         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12814         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12815         * sysdeps/x86_64/dl-machine.h: Likewise.
12817         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12818         split out locking and parameter checking.
12819         (_dl_close): Call _dl_close_worker after locking and checking.
12820         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12821         _dl_close.
12822         * elf/Makefile: Add rules to build and run tst-thrlock.
12823         * elf/tst-thrlock.c:  New file.
12825         [BZ #3426]
12826         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12827         reality.
12829         [BZ #3429]
12830         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12831         we are sure we do not need it anymore for _dl_close.  Also move
12832         the asserts inside the lock region.
12833         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12835 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12837         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12838         argument.
12839         (_dl_lookup_symbol_x): Adjust caller.
12841         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12842         _ns_global_scope.
12843         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12845         * elf/dl-libc.c: Revert l_scope name changes.
12846         * elf/dl-load.c: Likewise.
12847         * elf/dl-object.c: Likewise.
12848         * elf/rtld.c: Likewise.
12849         * elf/dl-close.c (_dl_close): Likewise.
12850         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12851         always use __rtld_mrlock_{change,done}.  Always free old scope list
12852         here if not l_scope_mem.
12853         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12854         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12855         the lookup and __rtld_mrlock_unlock it after the lookup.
12856         * elf/dl-sym.c: Likewise.
12857         * include/link.h (struct r_scoperec): Remove.
12858         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12859         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12861 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12863         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12865 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12867         * configure.in: Disable building profile libraries by default.
12869 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12871         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12872         as signed longs, check for x_base + pos overflow.
12873         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12874         * sunrpc/tst-xdrmem2.c: New test.
12876 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12878         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12879         _dl_lookup_symbol_x code.
12881 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12883         * elf/dl-runtime.c: Include sysdep-cancel.h.
12884         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12885         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12886         instead of catomic_* macros.
12887         * elf/dl-sym.c: Include sysdep-cancel.h.
12888         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12889         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12890         * elf/dl-close.c: Include sysdep-cancel.h.
12891         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12892         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12893         * elf/dl-open.c: Include sysdep-cancel.h.
12894         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12895         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12897 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12899         [BZ #3313]
12900         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12901         fastbin rather than end of fastbin array.
12903 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12905         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12906         body macro.
12907         * sysdeps/x86_64/bits/atomic.h
12908         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12909         (catomic_decrement): Use correct body macro.
12911 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12913         * include/atomic.h: Add a unique prefix to all local variables
12914         in macros.
12915         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12917 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12919         [BZ #3369]
12920         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12921         and 7.
12923 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12925         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12927 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12929         [BZ #3313]
12930         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12931         determine highest fast bin to consolidate, always look into all of
12932         them.
12933         (do_check_malloc_state): Only require for empty bins for large
12934         sizes in main arena.
12936         * libio/stdio.h: Add more __wur attributes.
12938         * elf/dl-minimal.c (realloc): Optimize last patch.
12940 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12942         [BZ #3352]
12943         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12944         and use memcpy() if it does.
12946 2006-11-12  Andreas Jaeger  <aj@suse.de>
12948         [BZ #2510]
12949         * manual/search.texi (Hash Search Function): Clarify.
12950         (Array Search Function): Clarify.
12952 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12954         [BZ #2830]
12955         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12956         shifting.
12957         * math/atest-exp2.c (read_mpn_hex): Likewise.
12958         * math/atest-sincos.c (main): Likewise.
12960 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12962         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12963         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12964         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12965         version GLIBC_2.6.
12966         * Versions.def: Add GLIBC_2.6 for libc.
12968         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12970         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12972 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12974         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12976         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12978         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12979         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12981 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12983         * include/atomic.c: Define catomic_* operations.
12984         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12985         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12986         * malloc/memusage.c: Likewise.
12987         * gmon/mcount.c: Likewise.
12988         * elf/dl-close.c: Likewise.
12989         * elf/dl-open.c: Likewise.
12990         * elf/dl-profile.c: Likewise.
12991         * elf/dl-sym.c: Likewise.
12992         * elf/dl-runtime.c: Likewise.
12993         * elf/dl-fptr.c: Likewise.
12994         * resolv/res_libc.c: Likewise.
12996 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12998         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12999         components which lack them.
13001         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13002         at least one entry consisting of the parameter concatenated with
13003         the domain.
13005 2006-10-10  Roland McGrath  <roland@frob.com>
13007         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13008         * sysdeps/mach/hurd/futimes.c: Likewise.
13009         * sysdeps/mach/hurd/lutimes.c: Likewise.
13011 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13012             Jakub Jelinek  <jakub@redhat.com>
13014         Implement reference counting of scope records.
13015         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13016         from the list in objects which remain.  Always allocate new scope
13017         record.
13018         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13019         don't resize, allocate a new one.
13020         * elf/dl-runtime.c: Update reference counters before using a scope
13021         array.
13022         * elf/dl-sym.c: Likewise.
13023         * elf/dl-libc.c: Adjust for l_scope name change.
13024         * elf/dl-load.c: Likewise.
13025         * elf/dl-object.c: Likewise.
13026         * elf/rtld.c: Likewise.
13027         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13028         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13029         Add l_scoperec_lock.
13030         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13031         * sysdeps/generic/rtld-lowlevel.h: New file.
13033         * include/atomic.h: Rename atomic_and to atomic_and_val and
13034         atomic_or to atomic_or_val.  Define new macros atomic_and and
13035         atomic_or which do not return values.
13036         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13037         Various cleanups.
13038         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13040         * po/sv.po: Update from translation team.
13042 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13044         * Versions.def: Add GLIBC_2.6 to libpthread.
13046         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13047         (versioned_symbol): Likewise.
13048         (compat_symbol): Likewise.
13050         * po/tr.po: Update from translation team.
13052 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13054         * nis/Banner: Removed.  It's been integral part forever and the
13055         author info is incomplete anyway.
13056         * libio/Banner: Likewise.
13058         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13059         code, make sure the nis_freeresult call doesn't crash and that the
13060         result is reported correctly.
13062 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13064         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13065         when callback is NULL.
13067         * nis/Versions (libnss_nisplus): Add
13068         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13069         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13070         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13071         _nss_create_tablename): Rename to...
13072         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13073         ... these.  No longer static.
13074         (internal_setgrent): Adjust users.
13075         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13076         Don't use locking around _nss_grp_create_tablename call.
13077         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13079 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13081         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13083 2006-10-06  Andreas Jaeger  <aj@suse.de>
13085         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13087 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13089         * po/pl.po: Update from translation team.
13091         * nscd/nscd.c (main): Fix typo in message.
13092         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13094 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13096         [BZ #3291]
13097         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13098         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13099         (__sigprocmask): Define.
13101 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13103         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13104         used.
13106 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13108         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13109         in oldtotal and newtotal calculation.
13110         * nscd/nscd-client.h (struct mapped_database): Add datasize
13111         field.
13112         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13113         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13114         increased.
13115         (__nscd_cache_search): Add checks to make sure we never reference
13116         data beyond the current mapping.
13118 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13120         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13121         variables const to avoid compiler warnings.
13123         * io/fts.c (fts_close): Remove redundant checks.
13124         (fts_build): Likewise.
13125         (fts_palloc): Likewise.
13127         * manual/message.texi (Advanced gettext functions,
13128         Using gettextized software): Fix typos.
13130 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13132         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13133         explain why there are no leaks.
13135 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13137         * libio/wmemstream.c: Include <wchar.h>.
13138         * libio/bug-wmemstream1.c: Likewise.
13139         * libio/tst-wmemstream1.c: Likewise.
13140         * libio/tst-wmemstream2.c: Likewise.
13142         * version.h (RELEASE): Bump to 2.5.
13143         * README: Regenerated.
13145         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13147         [BZ #3273]
13148         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13149         found no group members.
13150         Patch by Petr Baudis.
13152 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13154         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13155         assert bootstrap_map.l_tls_modid is zero.
13156         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13157         if USE___THREAD.
13159 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13161         * libio/stdio.h: Move open_wmemstream prototype to ...
13162         * wcsmbs/wchar.h: ... here.
13164 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13166         [BZ #3252]
13167         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13168         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13169         __{,l}chown to handle the rest.
13170         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13171         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13172         __{,l}chown to handle the rest.
13173         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13174         i386/fchownat.c.
13175         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13176         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13178         [BZ #3253]
13179         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13180         time, rather allocate increasingly bigger arrays of pointers, if
13181         possible with alloca, if too large with malloc.
13183 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13185         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13187         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13189 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13191         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13192         home addresses.
13193         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13194         IFA_F_HOMEADDRESS flag for interfaces.
13195         * include/ifaddrs.h (struct in6addrinfo): Define
13196         in6ai_homeaddress.
13198 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13200         [BZ #3225]
13201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13202         PTR_DEMANGLE3): Define.
13203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13204         PTR_DEMANGLE3): Likewise.
13205         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13206         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13207         Likewise.
13208         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13210 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13212         * po/libc.pot: Regenerated.
13213         * po/be.po: Updated.
13214         * po/ca.po: Likewise.
13215         * po/cs.po: Likewise.
13216         * po/da.po: Likewise.
13217         * po/de.po: Likewise.
13218         * po/el.po: Likewise.
13219         * po/en_GB.po: Likewise.
13220         * po/es.po: Likewise.
13221         * po/fi.po: Likewise.
13222         * po/fr.po: Likewise.
13223         * po/gl.po: Likewise.
13224         * po/hr.po: Likewise.
13225         * po/hu.po: Likewise.
13226         * po/ja.po: Likewise.
13227         * po/ko.po: Likewise.
13228         * po/nb.po: Likewise.
13229         * po/nl.po: Likewise.
13230         * po/pl.po: Likewise.
13231         * po/pt_BR.po: Likewise.
13232         * po/ru.po: Likewise.
13233         * po/rw.po: Likewise.
13234         * po/sk.po: Likewise.
13235         * po/sv.po: Likewise.
13236         * po/tr.po: Likewise.
13237         * po/zh_CN.po: Likewise.
13238         * po/zh_TW.po: Likewise.
13240         [BZ #3137]
13241         * iconv/iconv_prog.c (main): Fix spelling in error message.
13242         * iconv/iconvconfig.c (main): Likewise.
13243         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13244         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13245         * locale/programs/localedef.c (main): Likewise.
13246         * locale/programs/repertoire.c (repertoire_read): Likewise.
13247         * timezone/zdump.c (main): Likewise.
13248         * nscd/connections.c (handle_request): Fix spelling in log message.
13249         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13251 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13253         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13254         interfaces.
13256 2006-09-20  Andreas Jaeger  <aj@suse.de>
13258         * math/libm-test.inc (lrint_test_upward): Fix typo.
13260 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13262         [BZ #2592]
13263         * math/libm-test.inc (lrint_test_tonearest): New function.
13264         (lrint_test_towardzero): New function.
13265         (lrint_test_downward): New function.
13266         (lrint_test_upward): New function.
13267         (main): Run these new tests.
13268         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13269         of values near to 0.
13270         (two52): Use double not long double.
13271         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13272         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13273         (two23): Use float not double.
13274         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13275         (two23): Use float not double.
13276         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13277         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13278         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13279         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13281 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13283         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13284         Cast sp to unsigned long to avoid compiler warning.
13285         Use __makecontext_ret function instead of a trampoline on the stack.
13286         (__makecontext_ret): New function.
13287         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13289 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13291         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13292         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13293         bits.
13295 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13297         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13298         sure no reference to the unloaded map's search list remains in the
13299         dependency's scope.
13301 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13303         * elf/Makefile: Add rules to build and run unload7 test.
13304         * elf/unload7.c: New test.
13305         * elf/unload7mod1.c: New file.
13306         * elf/unload7mod2.c: New file.
13308 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13310         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13311         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13312         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13313         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13314         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13315         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13316         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13317         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13318         PTRACE_GETEVENTMSG): Likewise.
13319         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13320         values.
13322 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13324         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13325         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13326         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13327         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13329 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13331         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13332         write '\0' to the fd.
13333         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13334         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13335         Change regs to unsigned long pointer from unsigned int, fix fscr
13336         offset.
13338 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13340         * io/Makefile (CFLAGS-fstatat.c): Set.
13341         (CFLAGS-fstatat64.c): Likewise.
13342         (CFLAGS-mknodat.c): Likewise.
13344         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13345         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13346         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13347         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13349 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13350             Steven Munroe  <sjmunroe@us.ibm.com>
13352         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13353         names to the beginning.  Rename "cell" to "cellbe".
13354         (_dl_powerpc_platforms): New.
13355         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13356         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13357         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13358         (_DL_HWCAP_PLATFORM): Define to new mask.
13359         (_dl_platform_string, _dl_string_platform): New functions.
13360         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13361         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13363 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13365         [BZ #2526]
13366         * README.libm: Fix a thinko in sqrt algorithm description.
13368         [BZ #3143]
13369         * manual/string.texi (argz_delete): Fix prototype.
13370         Patch by <alpt@freaknet.org>.
13372 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13374         [BZ #3138]
13375         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13376         * io/tst-fcntl.c (do_prepare): Likewise.
13377         * posix/tst-exec.c (do_prepare): Likewise.
13378         * posix/tst-preadwrite.c (do_prepare): Likewise.
13379         * posix/tst-spawn.c (do_prepare): Likewise.
13380         * posix/tst-truncate.c (do_prepare): Likewise.
13381         * rt/tst-aio.c (do_prepare): Likewise.
13382         * rt/tst-aio64.c (do_prepare): Likewise.
13383         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13384         size_t.
13386 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13388         [BZ #2821]
13389         * time/mktime.c (guess_time_tm): Fix overflow detection.
13390         * time/Makefile (tests): Add bug-mktime1.
13391         * time/bug-mktime1.c: New file.
13393         [BZ #3189, #3188]
13394         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13395         (mremap): Likewise.
13397 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13399         [BZ #1006]
13400         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13401         Ensure relocation doesn't clobber any bits outside of the
13402         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13403         R_SPARC_HI22 and R_SPARC_H44.
13405         [BZ #2775]
13406         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13407         (long) (MINSIZE + nb - old_size) is positive.
13409         * malloc/arena.c (grow_heap): When growing bail even if new_size
13410         is negative.
13412         [BZ #3155]
13413         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13414         stack below r1.
13416 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13418         * posix/regex_internal.c (re_string_reconstruct): Handle
13419         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13420         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13421         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13422         re_string_context_at.
13423         * posix/Makefile: Add rules to build and run bug-regex26 test.
13424         * posix/bug-regex26.c: New test.
13426         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13427         rather than col_sym_free.  Move seqp declaration earlier.
13429         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13431 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13433         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13434         decl before first goto out.
13436 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13438         * Makerules (shlib.lds): If have-hash-style, put .hash section
13439         at the end of the RO segment.
13441 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13443         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13444         style hash table format is used.
13446 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13448         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13449         randomization rather than before.
13450         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13452 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13454         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13456         * malloc/malloc.c (_int_malloc): Use full list insert and not
13457         shortcut which assumes the list is empty for large requests
13458         too.
13460         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13462 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13464         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13465         and offout arguments to the prototype.
13466         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13467         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13469         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13470         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13471         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13472         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13473         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13475 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13477         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13479         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13480         dlopen parameters.
13482 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13484         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13485         only if herrno is NETDB_INTERNAL.  Handle errors other than
13486         ERANGE outside of the loops, handle TRY_AGAIN.
13488         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13489         if other's ctype category was missing.
13490         * locale/programs/ld-collate.c (collate_read): Return if
13491         copy_locale's collate category is missing.
13493 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13495         [BZ #2684]
13496         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13497         arenas if allocation failed.
13498         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13500 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13502         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13503         waste bins[0..1].
13504         (malloc_state): Reduce bins size by 2.
13505         (_int_malloc): Fix test for large enough buffer for early termination.
13506         When no unsorted block matches perfectly and an exiting block has
13507         to be split, use full list insert and not shortcut which assumes
13508         the list is empty.
13510         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13511         failure.
13513 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13515         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13516         do anything.
13518         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13519         symbol require exact match (these are PLTs).
13520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13521         (_dl_ppc64_addr_sym_match): Likewise.
13523         [BZ #2683]
13524         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13525         If symbol has a value use it.
13526         * elf/tst-dladdr1.c: New file.
13527         * elf/Makefile: Add rules to build and run tst-addr1.
13529 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13531         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13532         keeps failing and heap growth or new heap creation isn't
13533         successful either.
13534         * malloc/tst-malloc.c (main): Add new tests.
13536 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13538         [BZ #2734]
13539         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13540         as in the x86-64 code to use bswap.
13542 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13544         [BZ #2680]
13545         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13546         __USE_UNIX98.
13547         * posix/bits/unistd.h: Likewise.
13549 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13551         [BZ #2751]
13552         * string/strchr.c: Add cast to avoid warning.
13554 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13556         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13557         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13558         limit is needed to avoid the exploding of the address space
13559         requirement for secondary heaps.
13560         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13561         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13563 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13565         [BZ #3018]
13566         * Makerules (depfiles): Handle extra-test-objs the same as
13567         extra-objs.
13568         (common-mostlyclean): Likewise.
13569         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13570         instead.
13571         * elf/Makefile (extra-objs): Likewise.
13572         * stdlib/Makefile (extra-objs): Likewise.
13574 2006-08-14  Eric Blake  <ebb9@byu.net>
13576         [BZ #3044]
13577         * misc/error.h: Assume C89 or better.
13578         * misc/error.c: Likewise.
13580 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13582         [BZ #3040]
13583         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13584         __ASSUME_ATFCTS is defined.
13586 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13588         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13589         to sort in each call.
13591         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13592         is empty simply return and use next service.
13593         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13595         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13596         tells us when not finding a charmap file is an error.
13597         * locale/programs/charmap.h: Adjust charmap_read prototype.
13598         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13599         cannot find a charmap.
13600         * locale/programs/localedef.c (main): Adjust charmap_read call.
13602 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13604         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13605         sysdeps/posix/pause.c implementation instead.
13607 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13609         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13610         to EPERM.
13612 2006-08-13  Andreas Schwab  <schwab@suse.de>
13614         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13615         Don't clobber caller's LRSAVE.
13616         (_dl_prof_resolve): Likewise.
13618 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13620         [BZ #1996]
13621         * libio/memstream.c (open_memstream): Allocate initial buffer with
13622         calloc.
13623         * libio/wmemstream.c (open_wmemstream): Likewise.
13624         * libio/strops.c: Pretty printing.
13625         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13626         (enlarge_userbuf): New function.
13627         (_IO_str_seekoff): Call it if seek position is larger than current
13628         buffer.
13629         * libio/wstrops.c: Likewise.
13630         * libio/vasprintf.c: Add comment as to why we do not have to use
13631         calloc instead of malloc to allocate initial buffer.
13632         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13633         * libio/bug-memstream1.c: New file.
13634         * libio/bug-wmemstream1.c: New file.
13636 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13638         * libio/wstrops.c: Remove dead macro definitions and comments.
13639         * libio/strops.c: Likewise.
13641         [BZ #2764]
13642         * login/utmpname.c (__utmpname): Remove unnecessary test.
13644 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13646         [BZ #2832]
13647         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13648         0s from integers.
13650 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13652         [BZ #2987]
13653         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13654         for CPU clocks.
13655         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13656         setting of CPU clocks.
13658 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13660         [BZ #2841]
13661         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13662         since C99 requires the result to promote to 'int' when uint_least8_t
13663         and uint_least16_t promote to 'int'.
13665 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13667         [BZ #3013]
13668         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13669         lenght of one output field, correct bitmask creation.
13670         * locale/programs/ld-time.c: Add alignment.
13672         [BZ #2997]
13673         * misc/error.c: Add space between program name and message if file
13674         name is missing.
13676 2006-08-03  Eric Blake  <ebb9@byu.net>
13678         [BZ #2998]
13679         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13681 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13683         * malloc/memusagestat.c: Silence warnings.
13685         * malloc/malloc.c: Dynamically size mmap treshold if the program
13686         frees mmaped blocks.
13687         Patch by Valerie Henson and Arjan van de Ven.
13689 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13691         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13692         __USE_GNU.
13694         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13695         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13696         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13697         Only provide var definitions in strtol_l (or for *ull*
13698         in strtoll_l).
13700         * stdio-common/bug16.c (tests): New array.
13701         (do_tests): Allow the first hexadecimal digit
13702         to be 1, 2, 4 or 8.  Do 3 additional tests.
13704         * sysdeps/s390/fpu/libm-test-ulps: Update.
13706         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13707         fchownat syscall if available.
13708         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13709         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13710         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13712 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13714         * nis/nis_xdr.c: Avoid some function calls.
13716 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13717             Ulrich Drepper  <drepper@redhat.com>
13719         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13720         short cut if only one name component is stripped away.
13722 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13724         * nis/nis_call.c: Minor cleanups throughout.
13725         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13726         (first_shoot): Add search_parent_first parameter.  Only if it is set
13727         search parent server first.
13728         If directory for table found through cold start cache is not the same
13729         as referenced in the cache, don't use it.
13730         (__nisfind_server): Take additional parameter.  Pass it on to
13731         first_shoot.
13732         (__prepare_niscall): Adjust __nisfind_server call.
13733         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13734         * nis/nis_table.c: Adjust __nisfind_server call.
13735         * nis/nis_lookup.c: Likewise.
13736         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13738 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13740         [BZ #2182]
13741         * math/s_cacosh.c: Return values from positive branch.
13742         * math/s_cacoshf.c: Likewise.
13743         * math/s_cacoshl.c: Likewise.
13745         [BZ #2883]
13746         * sysvipc/sys/msg.h: Change return value to ssize_t.
13747         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13748         * sysvipc/msgrcv.c: Likewise.
13749         * include/sys/msg.h: Likewise.
13751         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13752         test introduced in patch for bz #661.
13753         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13754         element for NEWGROUPS.
13756         [BZ #2908]
13757         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13758         'f', use '1' as leading digit not '\1'.
13759         * stdio-common/Makefile (tests): Add bug16.
13760         * stdio-common/bug16.c: New file.
13762         [BZ #2914]
13763         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13764         and don't try to open it.  The patch introducing the macro
13765         contained a bug and used the same file name as the new file
13766         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13767         this out completely.
13769         [BZ #2926]
13770         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13771         Patch by Jerry James <Jerry.James@usu.edu>.
13773         * rt/Makefile (tests): Add tst-clock2.
13774         * rt/tst-clock2.c: New file.
13776         [BZ #2978]
13777         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13778         function and its parameters and pass it to new thread.
13779         (__gai_notify): Add support for alternative waiting for completion.
13780         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13781         waiting for completion.
13782         * resolv/getaddrinfo_a.c: Likewise.
13783         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13784         waiting for completion is used.
13785         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13786         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13787         * resolv/gai_error.c: Likewise.
13788         * resolv/gai_sigqueue.c: Likewise.
13790 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13792         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13793         errno to EBADF and return MACH_PORT_NULL.
13795 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13797         [BZ #2980]
13798         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13800 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13802         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13803         walk them instead of the symbol table.
13805 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13807         [BZ #2098]
13808         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13809         status of NSS calls, not the number of returned entries.
13811         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13812         request_key, keyctl.
13814 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13816         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13818 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13820         * elf/tst-auditmod1.c: Fix typo in #error.
13822 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13824         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13826         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13828 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13830         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13831         that the directory is empty even on non-POSIX filesystems.
13833 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13835         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13837         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13838         the backend NSS module.  If backend setgrent call failed, don't have
13839         internal_setgrent fail.  Just remember this until it is needed.
13840         * nis/nss_compat/compat-pwd.c: Likewise.
13841         * nis/nss_compat/compat-spwd.c: Likewise.
13843 2006-07-30  Roland McGrath  <roland@redhat.com>
13845         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13846         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13847         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13848         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13850         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13851         (nanosleep_not_cancel): New macro.
13852         (sigsuspend_not_cancel): new macro.
13853         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13854         (do_sigsuspend): Define as inline.
13855         (__sigsuspend): Always use do_sigsuspend.
13856         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13857         * include/signal.h: Declare __sigsuspend_nocancel.
13858         * sysdeps/posix/pause.c
13859         [! NO_CANCELLATION] (__pause_nocancel): New function.
13861         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13862         * include/time.h (__nanosleep_nocancel): Likewise.
13864 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13866         * locale/programs/localedef.c (add_to_readlist): Rename local
13867         variables to avoid confusion.
13869         * locale/programs/charmap.c (charmap_read): Emit error message if
13870         charmap couldn't be found or read.
13872 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13874         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13875         __ASSUME_FUTEX_LOCK_PI.
13876         * include/time.h: Declare __nanosleep_nocancel.
13877         * include/unistd.h: Declare __pause_nocancel.
13879         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13880         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13881         get the __stack_chk_fail_local definition when it's needed.
13883 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13885         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13886         * dlfcn/bug-atexit3.c: New file.
13887         * dlfcn/bug-atexit3-lib.cc: New file.
13889         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13890         used when the namespace is not the base namespace.
13892 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13894         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13895         (__new_exitfn): Bump it in every successful call.
13896         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13897         more exit handlers, call them right away.
13898         * stdlib/exit.h: Declare __new_exitfn_called.
13900 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13902         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13903         calling registered handler.
13905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13906         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13907         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13908         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13910         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13911         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13912         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13914 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13916         * elf/dl-lookup.c (dl_new_hash): New functions.
13917         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13918         value here.  Compute new-style hash value.  Pass new hash value
13919         and reference to variable with the old value to do_lookup_x.
13920         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13921         old-style hash table.
13922         (_dl_debug_bindings): Pass new hash value and reference to variable
13923         with the old value to do_lookup_x.
13924         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13925         new-style hash value and change old-style hash value parameter to
13926         be a reference.  Reoganize functions to determine whether
13927         new-style hash table is available.  Only fall back on old-style
13928         table.  If old-style hash value is needed, compute it here.
13929         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13930         entry.
13931         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13932         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13933         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13934         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13935         * Makeconfig: If linker supports --hash-style option add it to all
13936         linker command lines to build DSOs.
13937         * config.make.in: Define have-hash-style.
13938         * configure.in: Test whether linker supports --hash-style option.
13940         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13941         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13943 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13945         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13946         auditing.
13948         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13949         RPATH of main map twice.
13951 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13953         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13954         look further, return original strings.
13955         (_nl_find_msg): Do not return found translation if the conversion
13956         failed.  Either signal the string is unusable or that something went
13957         wrong and the original should be used.
13959 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13961         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13963 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13965         [BZ #2766]
13966         * misc/insremque.c (insque): Handle prev == NULL.
13967         * misc/Makefile (tests): Add tst-insremque.
13968         * misc/tst-insremque.c: New test.
13970 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13972         [BZ #2792]
13973         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13974         conflict with DL_DST_REQUIRED.
13976 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13978         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13979         match what Solaris does.
13981 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13983         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13984         local_setegid instead of seteuid and setegid.
13985         * sysdeps/generic/local-setxid.h: New file.
13986         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13988         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13990         * string/Makefile (tests): Add bug-envz1.
13991         * string/bug-envz1.c: New file.
13993 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13995         * posix/regex_internal.c (re_string_skip_chars): If no character has
13996         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13997         to the byte which couldn't be converted.
13998         (re_string_reconstruct): Don't clear valid_raw_len before calling
13999         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14000         tip_context using re_string_context_at.
14001         * posix/Makefile: Add rules to build and run bug-regex25 test.
14002         * posix/bug-regex25.c: New test.
14004 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14006         [BZ #2703]
14007         * string/envz.c (envz_strip): Correct erroneously reversed src
14008         and dest parameters to memmove() invocation.
14010 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14012         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14013         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14014         to make sure the database has been already invalidated.
14015         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14016         after the cache has been invalidated.  Use pthread_mutex_lock rather
14017         than pthread_mutex_trylock if fd != -1.
14018         * nscd/connections.c (invalidate_cache): Add fd argument, write
14019         response to fd if not calling prune_cache, pass fd to prune_cache.
14020         (handle_request): Adjust invalidate_cache caller.
14021         (nscd_run): Pass -1 as fd to prune_cache.
14023 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14025         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14026         the correct place.
14028 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14030         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14031         * nscd/cache.c (prune_cache): Take prunelock before starting the
14032         work.  Just return in case it is already taken.
14033         * nscd/connections.c (dbs): Initialize .prunelock.
14035 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14037         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14038         copying.  No need to allocate new array for group members.  Just
14039         move the pointers and update the size.
14041         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14042         Avoid memory leak in case realloc fails.  Simplification for
14043         better code generation.
14045         Avoid deprecation warning because of libc_hidden_proto for
14046         inet6_option_alloc.
14047         * inet/inet6_option.c (option_alloc): Renamed from
14048         inet6_option_alloc.  Made static.
14049         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14050         (inet6_option_append): Call option_alloc.
14051         * include/netinet/in.h: Remove libc_hidden_proto for
14052         inet6_option_alloc.
14054         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14055         for cleanup when cb!=NULL [Coverity CID 233].
14057 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14059         [BZ #2693]
14060         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14061         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14062         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14063         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14064         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14065         and inet6_rth_getaddr.
14066         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14067         array.
14068         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14069         Mark inet6_option_* interfaces as deprecated.
14070         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14071         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14072         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14073         inet6_rth_segments, and inet6_rth_getaddr.
14074         * inet/inet6_opt.c: New file.
14075         * inet/inet6_rth.c: New file.
14077         * inet/netinet/icmp6.h: Pretty printing.
14079         [BZ #2683]
14080         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14082 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14084         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14085         doing it all here.  When server does not know the answer do not
14086         fail immediate, try parent first.
14088         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14089         overflow test.
14091 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14093         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14094         from __do_niscall.
14095         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14096         and exported.
14097         (__follow_path): New function.  Split out from nis_list.
14098         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14099         _xdr_nis_result.
14100         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14101         _xdr_nis_result.
14102         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14103         and __follow_path.
14104         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14105         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14106         from libnsl for version GLIBC_PRIVATE.
14107         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14108         Remove entry parameter from _nss_nisplus_parse_pwent and
14109         _nss_nisplus_parse_grent.
14110         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14111         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14112         again.  Rewrite getpwent handling to not use nis_first_entry and
14113         nis_next_entry.  Roll out own niscall handling.
14114         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14116         * sunrpc/xdr_rec.c: Fix typo in comment.
14118 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14120         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14121         handling.
14123         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14124         to allocate memory for my_pollfd.  Better initialization of
14125         cb_is_running.  Use TEMP_FAILURE_RETRY.
14127         * malloc/memusage.sh (memusageso): Add quotes.
14128         (memusagestat): Likewise.
14129         * debug/xtrace.sh (pcprofileso): Likewise.
14130         (pcprofiledump): Likewise.
14131         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14132         replacement.
14133         * malloc/Makefile ($(objpfx)memusage): Likewise.
14135         * nis/nis_callback.c (__nis_create_callback): Calls to
14136         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14137         asprintf call fails.
14139         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14140         no uninitialized memory is passed to sendto.
14142 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14144         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14145         of snprintf+strdup.  Handle OOM.
14146         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14147         cb->serv together.  Remove now obsolete free calls.
14148         (__nis_destroy_callback): Remove now obsolete free call.
14150 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14152         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14153         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14154         and ULA respectively). Set precedence for IPv4 address to 10 as
14155         defined in RFC3484 for preferring IPv6.
14156         * posix/gai.conf: Update to match the new default tables.
14158 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14160         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14161         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14162         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14163         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14165         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14166         Removed.
14167         (init_nss_interface): Remove initialization of these variables.
14169 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14171         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14172         nis_free_directory forward to avoid duplication.
14174 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14176         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14177         rec_dirsearch returning NULL.
14178         (first_shoot): Handle __nis_finddirectory returning NULL.
14179         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14181         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14182         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14184 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14186         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14187         pid changed.
14189 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14191         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14193         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14194         * nscd/nscd_getgr_r.c: Likewise.
14196         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14198         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14199         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14201         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14203         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14205         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14207         * include/rpc/auth.h: Mark xdr_des_block_internal and
14208         xdr_opaque_auth_internal as hidden.
14210         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14211         hidden.
14213         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14215         * misc/getusershell.c (okshells): Don't use static initializers,
14216         do it dynamically.
14218         * stdlib/fmtmsg.c (keywords): Change type of len element to
14219         uint32_t to not waste space on 64bit machines.
14221         * locale/setlocale.c: Change _nl_category_names into a string.
14222         Add new _nl_category_name_idxs.  Change all users.
14223         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14224         Declare _nl_category_name_idxs.
14225         * locale/findlocale.c: Adjust for _nl_category_names change.
14226         * locale/loadlocale.c: Likewise.
14227         * locale/newlocale.c: Likewise.
14228         * intl/dcigettext.c: Likewise.
14230         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14231         (add_alias2): ...here.  New function.
14232         (__gconv_read_conf): Simplify builtin alias handling.
14233         (builtin_aliases): Convert to string to avoid relocations.
14234         * iconv/gconv_builtin.h: Add comment about correct formatting.
14236 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14238         * resolv/res_debug.c (loc_ntoa): Make error const.
14240 2006-05-14  Andreas Schwab  <schwab@suse.de>
14242         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14244 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14246         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14247         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14248         sizeof (cpu_set_t).
14250 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14252         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14254         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14256         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14257         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14259         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14260         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14262         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14263         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14264         xdr_cback_data.
14266         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14267         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14268         xdr_ypupdate_args.
14270         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14271         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14273         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14274         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14276         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14277         * include/rpcsvc/nis_callback.h: New file.
14279         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14280         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14282         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14283         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14285         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14286         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14288         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14289         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14291         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14292         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14293         xdr_ypdelete_args.
14295         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14296         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14298         * nis/nis_error.c: Remove table of strings.  Use position
14299         independent mechanism.
14300         * nis/nis_error.h: New file.
14302 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14304         * locale/programs/ld-time.c (time_finish): If wide era name or
14305         format aren't provided, set both wname and wformat to L"".
14307 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14309         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14310         results if the call was succesful.
14312         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14314         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14315         as hidden.
14317 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14319         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14321 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14323         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14324         caller makes sure this is not the case.
14325         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14327 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14329         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14330         calls.
14332         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14333         [Coverity CID 229, 230]
14335         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14336         DGETTEXT calls.
14337         (hol_help): Likewise.  [Coverity CID 226, 227]
14339         * string/argz-replace.c (__argz_replace): Unconditionally call
14340         free on SRC.  [Coverity CID 225]
14342         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14343         the return value of __nis_default_owner and __nis_default_group,
14344         it has been especially allocated.  [Coverity CID 224]
14346         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14347         searchgroup and searchowner.  Significantly simplified.
14348         (__nis_default_owner): Remove duplication.  Do not locally copy the
14349         string before duplicating it.
14350         (__nis_default_group): Likewise.
14352         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14353         we must clear the variable before calling __nisfind_server.
14355         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14356         nis_getnames.  [Coverity CID 223]
14358         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14359         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14361         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14362         allocate memory for the input to add_bytes.  [Coverity CID 221]
14364         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14365         was allocated here.  [Coverity CID 219, 220]
14367         * posix/getconf.c (print_all): Free confstr data after printing.
14368         [Coverity CID 218]
14370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14371         list allocation fails.  [Coverity CID 215]
14373         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14374         [Coverity CID 213]
14376         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14377         string is NULL.  [Coverity CID 212]
14378         * argp/Makefile: Add rules to build and run bug-argp1.
14379         * argp/bug-argp1.c: New file.
14381         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14382         end of string.
14383         * stdlib/canonicalize.c (__realpath): Likewise.
14385         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14386         pointer.  [Coverity CID 206]
14388         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14389         in statically linked code.
14390         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14391         statically built code, be prepared to have no link map.
14392         [Coverity CID 205]
14394         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14395         dgettext calls. [Coverity CID 204]
14397         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14398         the one user.
14399         (uparam_names): Reduce size.  Avoid relative relocations.
14400         Moved to read-only segment.
14401         (fill_in_uparams): Update for new layout.
14403         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14404         assumed to always be != NULL. [Coverity CID 202]
14406         * argp/argp-help.c (hol_entry_help): Remove some dead code
14407         [Coverity CID 200].
14409         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14410         away a few more unconditional yperr2nss calls.
14411         (_nss_nis_getservbyname_r): Likewise.
14413 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14415         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14416         architectures.
14418         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14419         that unused memory passed to sendto is nevertheless initialized.
14421         [BZ #2499]
14422         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14423         possibly unaligned memory accesses.
14425         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14426         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14427         and __putlong respectively.  Correct buffer overflow check for
14428         NS_NOTIFY_OP.
14430         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14432         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14433         (send_dg): Rewrite error handling to be more compact and avoid
14434         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14436         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14438         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14439         instead of ns_get16.
14440         (res_queriesmatch): Likewise.  Minor optimization.
14442         [BZ #2499]
14443         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14444         __libc_res_nsend might reallocate the buffer for the answer.  In
14445         this case we have to reload the HP pointer.
14447 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14449         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14450         some branch prediction hints.
14452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14453         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14454         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14455         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14456         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14457         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14458         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14459         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14461 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14463         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14464         by a GOT relocation to make Scrt1.o position independent.
14465         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14467         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14468         six system call parameters.
14469         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14471 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14473         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14474         malloc&bzero.
14476         * sunrpc/svc_udp.c (BZERO): Remove definition.
14477         (CALLOC): Define.
14478         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14480         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14481         (des_SPtrans): Use uint32_t type.
14482         (des_skb): Likewise.
14484         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14486 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14488         [BZ #2509]
14489         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14490         on 32-bit arches.
14492 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14494         * locale/programs/ld-address.c (address_finish): Fix one more
14495         place where the iso639 array might be accessed beyond the limits.
14497 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14499         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14500         filling it for the first time.
14502         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14503         Adjust all callers.
14504         Free res object content before returning.
14506         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14508         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14509         client->cl_auth.
14511         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14512         cleanup for initial thread, just the free call on TVP.
14514         * nscd/gai.c (__getline): Define.
14517 See ChangeLog.16 for earlier changes.