* configure.in: Check for -fno-section-anchors in addition to
[glibc.git] / ChangeLog
blobdc385f2d8d6fe3bcb3663ea3f38d8659f68684a4
1 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3         * configure.in: Check for -fno-section-anchors in addition to
4         -fno-toplevel-reorder.
6 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
8         * include/features.h (__GLIBC_MINOR__): Bump to 8.
10         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
11         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
12         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
13         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
14         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
15         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
17 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
19         [BZ #5443]
20         * time/era.c: Transform __libc_setlocale_lock into rwlock.
21         * time/alt_digit.c: Likewise.
22         * wcsmbs/wcsmbsload.c: Likewise.
24 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
26         * version.h (VERSION): Bump to 2.8.
28         * timzeone/asia: Update from tzdata2008b.
29         * timezone/backward: Likewise.
30         * timezone/europe: Likewise.
31         * timezone/northamerica: Likewise.
32         * timezone/southamerica: Likewise.
33         * timezone/iso3166.tab: Likewise.
34         * timezone/leapseconds: Likewise.
35         * timezone/zone.tab: Likewise.
36         * timezone/private.h: Update from tzcode2008a.
37         * timezone/zdump.c: Likewise.
38         * timezone/zic.c: Likewise.
40 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
42         [BZ #5741]
43         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
44         Define additonal Data Cache Block instruction macros.
45         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
46         Replace dcbst with dcbf and sync with sync/isync.
48 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
50         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
51         Always set ELF_RTYPE_CLASS_PLT.
52         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
54 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
56         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
57         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
58         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
59         For ISA 2.01 and later replace mftb with mfspr 268.
61 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
63         [BZ #5768]
64         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
65         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
67 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
69         [BZ #5768]
70         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
71         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
72         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
73         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
75 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
77         * stdlib/tst-makecontext.c (othervar): New variable.
78         (cf): Test sign extending the argument to long.
80 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
82         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
83         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
84         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
85         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
86         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
87         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
88         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
90 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
92         * elf/Makefile (tests): Substitute tests-vis-yes here.
93         (tests-vis-yes): Delete.
94         (modules-name, modules-vis-yes): Similarly.
96 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
98         [BZ #4407]
99         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
100         Preserve sign in signgamp when x is zero.
102 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
104         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
105         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
106         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
107         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
108         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
109         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
111 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
113         [BZ #4314]
114         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
115         buffers.
117         [BZ #5209]
118         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
119         a reserved error value.
121         * stdlib/tst-makecontext.c: Change parameter to cf to negative
122         value to check for correct sign extension.
124         [BZ #5436]
125         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
126         Copy 64-bit parameter values even though this is not required in
127         the standard.
129         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
130         PC save.
132 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
134         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
135         PC save.
137 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
139         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
141 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
143         [BZ #5998]
144         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
145         in line-buffered stream failed.
146         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
148 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
150         [BZ #6024]
151         * scripts/abi-versions.awk: If the version specified by
152         --enable-oldest-abi is older than the first version for this
153         architecture, use the default version.
155         * locale/programs/ld-collate.c (collate_read): Ignore script lines
156         as well when ignoring the whole category.
158 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
160         [BZ #6042]
161         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
162         ETHERTYPE_* definitions.
163         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
165 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
167         * stdlib/mbtowc.c (__no_r_state): Remove.
168         (mbtowc): New static state variable.  Use it instead of
169         __no_r_state.
170         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
171         (__wctomb_state): New hidden variable.
172         (wctomb): Use __wctomb_state instead of __no_r_state.
173         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
174         (__wctomb_state): New extern decl.
175         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
177 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
179         [BZ #5475]
180         * resolv/res_init.c: Handle scope IDs in resolv.conf.
182 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
184         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
186 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
188         * po/nl.po: Update from translation team.
190 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
192         [BZ #6007]
193         * string/strfry.c: Handle empty strings again.
195 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
197         [BZ #5443]
198         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
199         before looking for translation.
200         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
201         * locale/freelocale.c: Likewise.
202         * locale/newlocale.c: Likewise.
203         * locale/setlocale.c: Likewise.
204         Based partially on a patch by ryo@np.css.fujitsu.com.
206 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
208         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
209         acquiring wrlock.  Do conv_tab allocation while holding lock.
210         * intl/Makefile: Add rules to build and run tst-gettext6.
211         * intl/tst-gettext6.c: New test.
212         * intl/tst-gettext6.sh: New file.
214 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
216         * po/nl.po: Update from translation team.
218         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
219         provided through st_blksize, try the default size before giving up.
221 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
223         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
225         [BZ #5939]
226         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
228         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
229         error message.  POSIX today does not require the messages to be in
230         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
232         [BZ #5979]
233         * sunrpc/auth_unix.c: Unify printed strings.
234         * sunrpc/clnt_tcp.c: Likewise.
235         * sunrpc/clnt_udp.c: Likewise.
236         * sunrpc/clnt_unix.c: Likewise.
237         * sunrpc/svc_tcp.c: Likewise.
238         * sunrpc/svc_udp.c: Likewise.
239         * sunrpc/svc_unix.c: Likewise.
240         * sunrpc/xdr.c: Likewise.
241         * sunrpc/xdr_array.c: Likewise.
242         * sunrpc/xdr_rec.c: Likewise.
243         * sunrpc/xdr_ref.c: Likewise.
244         * locale/programs/ld-time.c (time_finish): Unify messages.
245         * locale/programs/locfile.c (handle_copy): Fix typo.
246         * nscd/nscd.c (options): Fix typo.
248         [BZ #5995]
249         * stdlib/strtod_l.c: Use correct sign for result in one more
250         underflow case.
251         Patch by Eric Blake <ebb9@byu.net>.
253 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
255         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
256         and creat system calls.
257         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
258         call.
259         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
260         system calls.
261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
262         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
263         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
265 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
267         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
268         <linux/limits.h> has defined it.
269         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
270         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
271         headers.
272         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
273         it instead of ARG_MAX.
275 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
277         * posix/gai.conf: Fix comment for scope nullbits.
278         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
279         default to 128 bits for v4 mapped addresses.
281 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
283         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
284         ptrace call to get the ieee_instruction_pointer from the kernel.
285         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
286         ptrace call to set the ieee_instructtion_pointer.
287         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
288         Add comment that ieee_instruction_pointer is always 0.
290 2008-03-09  Andreas Jaeger  <aj@suse.de>
292         [BZ #5857]
293         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
294         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
295         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
297         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
298         (rint_test): Likewise.
300 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
302         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
303         call.
304         (__nisfind_server): Similar for open readColdStartFile call.
305         Patch partially by Jim Meyering.
306         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
307         around internal_setent call.
309         * po/vi.po: New Vietnamese translation.
311         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
312         ADJ_OFFSET_SS_READ.
314         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
315         remove CLONE_STOPPED.
317 2008-02-10  Jim Meyering  <meyering@redhat.com>
319         Remove useless "if" before "free":
320         * elf/ldconfig.c (parse_conf_include): Likewise.
321         * gmon/gmon.c (weak_alias): Likewise.
322         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
323         * inet/rcmd.c (__validuser2_sa): Likewise.
324         * intl/bindtextdom.c (set_binding_values): Likewise.
325         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
326         * libio/genops.c (save_for_backup): Likewise.
327         * libio/wgenops.c (save_for_wbackup): Likewise.
328         * locale/programs/ld-collate.c (collate_read): Likewise.
329         * locale/programs/linereader.c (get_string): Likewise.
330         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
331         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
332         * resolv/res_debug.c (do_section): Likewise.
333         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
334         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
335         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
336         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
337         * time/tzset.c (tzset_internal): Likewise.
339 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
341         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
342         of ASSEMBLER.
344 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
346         [BZ #5903]
347         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
348         not stream for output file.  Open output file here.
349         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
350         and output file name.
351         (process_fd): Likewise.
352         (process_file): Likewise.
353         (main): Adjust callers of changed functions.
354         * iconv/iconv_prog.h: Adjust prototype.
356 2008-03-09  Andreas Jaeger  <aj@suse.de>
358         [BZ #5753]
359         * sysdeps/ia64/ieee754.h: Use protected namespace
360         __BIG_ENDIAN/__LITTLE_ENDIAN.
361         * sysdeps/ieee754/ieee754.h: Likewise.
362         Patch by Aurelien Jarno <aurelien@aurel32.net>.
364 2008-03-08  Roland McGrath  <roland@frob.com>
366         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
367         ignore a signal that came from a machine exception, treat it as a
368         fatal core-dump signal instead.
369         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
371         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
372         Clear DF bit in thread state's eflags.
373         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
375 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
377         [BZ #5774]
378         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
379         of NAN(...) sequence.
380         * stdlib/Makefile (tests): Add tst-strtod6.
381         * stdlib/tst-strtod6.c: New file.
383         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
385         [BZ #5762]
386         * posix/getopt.c (_getopt_internal_r): Clarify error message by
387         putting offending option character in quotes.  Clean up error
388         messages.
389         * po/be.po: Adjust msgstr in translation file.
390         * po/bg.po: Likewise.
391         * po/ca.po: Likewise.
392         * po/cs.po: Likewise.
393         * po/da.po: Likewise.
394         * po/de.po: Likewise.
395         * po/es.po: Likewise.
396         * po/fr.po: Likewise.
397         * po/hr.po: Likewise.
398         * po/ko.po: Likewise.
399         * po/nl.po: Likewise.
400         * po/rw.po: Likewise.
401         * po/sk.po: Likewise.
402         * po/sv.po: Likewise.
403         * po/tr.po: Likewise.
404         * po/zh_CN.po: Likewise.
405         * po/zh_TW.po: Likewise.
407         [BZ #5760]
408         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
409         Patch by Roland Bless <roland@bless.de>.
411         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
412         .o file.
413         * elf/Makefile (routines): Add dl-sysdep.
414         (elide-routines.os): Likewise.
416 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
418         [BZ #5786]
419         * elf/dl-sysdep.c: Undefine ROUND after use.
420         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
421         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
422         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
423         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
424         to ...
425         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
426         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
427         if necessary.
428         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
430         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
431         _dl_tls_get_addr_soft element.
432         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
433         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
434         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
435         GLRO.
436         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
437         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
438         of internal_function.
440         * stdlib/Makefile (aux): Add tens_in_limb.
441         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
442         * stdlib/tens_in_limb.c: ...here.  New file.
444         [BZ #5778]
445         * sysdeps/unix/sysv/linux/pathconf.h: Declare
446         __statfs_chown_restricted.
447         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
448         for _PC_CHOWN_RESTRICTED.
449         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
450         Implement __statfs_chown_restricted.
451         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
452         _POSIX_CHOWN_RESTRICTED value to zero.
453         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
454         defined to zero.
456         * sysdeps/x86_64/rtld-memset.c: New file.
458 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
460         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
462         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
463         Barcelona machine.  Make default fall through branch of
464         __x86_64_preferred_memory_instruction check as the integer code path.
466 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
468         * sysdeps/x86_64/cacheinfo.c
469         (__x86_64_preferred_memory_instruction): New variable.
470         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
472         * sysdeps/x86_64/memset.S: Rewrite.
474 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
476         * include/stdio.h (__asprintf_chk, __dprintf_chk,
477         __obstack_printf_chk): New prototypes.
478         (__vasprintf_chk, __vdprintf_chk,
479         __obstack_vprintf_chk): Likewise.
480         Add libc_hidden_proto.
481         * libio/obprintf.c
482         (_IO_obstack_jumps): No longer static, add attribute_hidden.
483         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
484         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
485         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
486         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
487         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
488         __obstack_vprintf_chk): New prototypes.
489         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
490         obstack_vprintf): New inlines.
491         * debug/dprintf_chk.c: New file.
492         * debug/vdprintf_chk.c: New file.
493         * debug/asprintf_chk.c: New file.
494         * debug/vasprintf_chk.c: New file.
495         * debug/obprintf_chk.c: New file.
496         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
497         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
498         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
499         @@GLIBC_2.8.
500         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
501         vdprintf_chk and obprintf_chk, set CFLAGS for them.
502         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
503         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
504         libc_hidden_proto.
505         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
506         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
507         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
508         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
509         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
510         @@GLIBC_2.8.
511         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
512         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
513         obstack_vprintf_chk.
514         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
515         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
516         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
517         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
518         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
519         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
521 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
523         [BZ #5779]
524         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
525         Patch by Roy Marples <roy@marples.name>.
527         [BZ #5736]
528         * malloc/malloc.c: Fix typo in comment.
530         [BZ #5627]
531         * locale/iso-639.def: Add Shuswap.
533 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
535         [BZ #5790]
536         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
537         overwrite *h_errnop/*errnop values from getanswer_r in case of
538         failure.
540 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
542         [BZ #5818]
543         * nscd/connections.c (dbs): Add initializers for .suggested_module.
544         (verify_persistent_db): Remove one unnecessary test and add a new one
545         for bad configuration.
546         (nscd_init): Improve error reported when persistent database cannot
547         be reused.
548         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
549         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
550         .suggested_module and .max_db_size and case config file says the
551         values are zero.
552         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
554         [BZ #5854]
555         * nis/ypclnt.c (yp_order): Fix handling of return value of
556         do_ypcall_tr call.
557         Patch by Jeff Moyer <jmoyer@redhat.com>.
559         * po/fr.po: Update from translation team.
561 2008-02-22  Andreas Jaeger  <aj@suse.de>,
562             Carlos O'Donell <carlos@systemhalted.org>
564         [BZ #5012]
565         * FAQ.in: Describe why glibc needs to be compiled with
566         optimization.
568 2008-02-19  Roland McGrath  <roland@redhat.com>
570         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
572 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
574         [BZ #5737]
575         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
576         __USE_MISC is defined.
578 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
580         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
581         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
582         sys/timerfd.h.
583         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
584         timerfd_gettime, timerfd_settime.
585         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
586         timerfd_gettime, timerfd_settime for GLIBC_2.8.
588 2008-02-08  Roland McGrath  <roland@redhat.com>
590         * elf/elf.h (NT_PPC_SPE): New macro.
592 2008-02-06  Roland McGrath  <roland@redhat.com>
594         * Makerules ($(common-objpfx)sysd-rules):
595         Depend on $(sysdep-makeconfigs).
597 2008-01-31  Roland McGrath  <roland@redhat.com>
599         [BZ #5442]
600         * configure.in: Use -print-file-name if it yields a directory,
601         for each of include and include-fixed.
602         * configure: Regenerated.
604         * Makeconfig (sysd-rules-targets): New variable.
605         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
606         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
608 2008-01-30  Roland McGrath  <roland@redhat.com>
610         * manual/libc.texinfo: Update back-cover text.
612         * elf/elf.h (NT_386_TLS): New macro.
614 2008-01-29  Roland McGrath  <roland@redhat.com>
616         * Makeconfig (sysd-rules-patterns): New variable.
617         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
618         (check-inhibit-asm): New canned sequence, replaces ...
619         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
620         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
621         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
622         (CFLAGS-rtld): Variable removed.
624 2008-01-24  Roland McGrath  <roland@redhat.com>
626         * configure.in: Let configure fragments set base_os.
627         * configure: Regenerated.
629 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
631         * po/ko.po: Update from translation team.
633 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
635         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
637 2008-01-12  Andreas Jaeger  <aj@suse.de>
639         [BZ #5040]
640         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
641         Add EPOLLRDHUP.
643 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
645         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
646         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
647         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
649 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
651         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
652         * elf/dl-close.c (_dl_close): Check for it.
653         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
654         (_dl_allocate_static_tls): Likewise.
655         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
656         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
657         to it.
658         * elf/tst-tls16.c: New file.
659         * elf/tst-tlsmod16a.c: New file.
660         * elf/tst-tlsmod16b.c: New file.
661         * elf/Makefile: Add rules to build and run tst-tls16.
663 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
665         [BZ #5628]
666         * bits/shm.h: Fix comment describing shmid_ds.
667         * sysdeps/gnu/bits/shm.h: Likewise.
668         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
669         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
670         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
671         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
672         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
673         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
674         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
675         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
676         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
678         [BZ #5607]
679         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
680         prototypes.
681         * conform/data/limits.h-data: Adjust limits changed in v6 and add
682         additional suffixes.
683         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
684         Add optional functions mq_timedreceive and mq_timedsend.
685         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
686         * conform/data/pthread.h-data: Fix prototype of
687         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
688         * conform/data/semaphore.h-data: Allow time.h definitions.
689         * conform/data/signal.h-data: Likewise.
690         * conform/data/stdio.h-data: getw and putw are not required in v6.
691         * conform/data/stdlib.h-data: Change setstate prototype.
692         * conform/data/string.h-data: Fix strerror_r prototype.
693         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
694         * conform/data/unistd.h-data: pthread_atfork not required in v6.
695         Fix readlink prototype.
696         * conform/data/netinet/in.h-data: Add const to in6addr_any and
697         in6addr_loopback.
698         * inet/netinet/in.h: Cleanup namespace.
699         * posix/regex.h: Likewise.
700         * resolv/netdb.h: Likewise.
701         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
702         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
703         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
704         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
705         of names of in in6_addr.
706         (default_precedence): Likewise.
707         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
708         NULL definition.
710 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
712         * conform/data/fmtmsg.h-data: Add missing allows.
713         * conform/data/ftw.h-data: Likewise.
714         * conform/data/inttypes.h-data: Likewise.
715         * conform/data/math.h-data: Likewise.
716         * conform/data/signal.h-data: Likewise.
717         * conform/data/net/if.h-data: Likewise.
718         * conform/data/netinet/in.h-data: Likewise.
719         * conform/data/sys/socket.h-data: Likewise.
721         [BZ #5614]
722         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
723         (__strtok_r): Simplify.
724         * string/tester.c (test_strtok_r): Add test case for futile search
725         with single-character seach string.
727 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
729         * po/ko.po: Update from translation team.
731 2008-01-11  Andreas Jaeger  <aj@suse.de>
733         [BZ #5600]
734         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
735         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
736         kernel header.
738 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
740         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
741         native interface lookup in all the relevant places.
743 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
744             Ulrich Drepper  <drepper@redhat.com>
746         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
747         field.  Use sockaddr_in6 for source_addr.
748         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
749         (match_prefix): Likewise.
750         (get_label): Likewise.
751         (get_precedence): Likewise.
752         (rfc3484_sort): Change to use indirect access to results array.
753         Adjust to use of sockaddr_in6.  Replace service_order test with
754         simple index comparison.
755         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
756         service_order field.  Adjust qsort_t calls.  Access sorted result
757         array indirectly through order array.
758         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
759         * posix/tst-rfc3484-2.c: Likewise.
760         * posix/tst-rfc3484-3.c: Likewise.
762 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
764         [BZ #5541]
765         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
766         pollfd structures.
767         Patch by André Cruz.
769         [BZ #5545]
770         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
771         (clnt_spcreateerror): Likewise.
773         [BZ #5553]
774         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
775         (public_mEMALIGn): Likewise.
776         Patch mostly by Daniel Jacobowitz.
778 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
780         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
781         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
782         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
783         * stdlib/tst-makecontext2.c: New test.
785 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
787         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
788         defined.
789         (REINIT_PARAMS): Likewise.  Undefine before end of file.
790         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
791         transliteration hooks and REINIT_PARAMS afterwards.
792         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
793         status.
794         (REINIT_PARAMS): Define.
795         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
796         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
797         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
798         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
799         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
800         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
801         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
802         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
803         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
804         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
805         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
806         * iconvdata/tst-iconv7.c: New test.
808 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
810         * libio/stdio.h (vscanf): Fix definition for loser compilers.
812 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
814         [BZ #5112]
815         * nscd/connections.c (restart): Fix condition.
817 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
819         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
820         __ctype_toupper_loc): Add __THROW.
822 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
824         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
825         recognition of interface family.
827         * posix/getconf.c: Update copyright year.
828         * nss/getent.c: Likewise.
829         * iconv/iconvconfig.c: Likewise.
830         * iconv/iconv_prog.c: Likewise.
831         * elf/ldconfig.c: Likewise.
832         * catgets/gencat.c: Likewise.
833         * csu/version.c: Likewise.
834         * elf/ldd.bash.in: Likewise.
835         * elf/sprof.c (print_version): Likewise.
836         * locale/programs/locale.c: Likewise.
837         * locale/programs/localedef.c: Likewise.
838         * nscd/nscd.c (print_version): Likewise.
839         * debug/xtrace.sh: Likewise.
840         * malloc/memusage.sh: Likewise.
841         * malloc/mtrace.pl: Likewise.
842         * debug/catchsegv.sh: Likewise.
844 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
846         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
847         second lookup.
849 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
851         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
852         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
854 2007-12-17  Roland McGrath  <roland@redhat.com>
856         * inet/ether_line.c (ether_line): Remove unused variable.
858 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
860         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
861         and winp.
862         * login/openpty.c (openpty): Likewise.
863         * login/pty.h (openpty, forkpty): Likewise.
864         * manual/terminal.texi (openpty, forkpty): Likewise.
866 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
868         * malloc/malloc.c (public_cALLOc): For arenas other than
869         main_arena, count all bytes inside the mprotect_size range of the
870         heap as uninitialized.
872 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
874         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
875         executable stacks.
877         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
878         mTRIm for all of them.
879         (mTRIm): Additionally iterate over all free blocks and use madvise
880         to free memory for all those blocks which contain at least one
881         memory page.
882         * malloc/tst-trim1.c: New file.
883         * malloc/Makefile (tests): Add tst-trim1.
885         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
887 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
889         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
890         First cast argument to long
891         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
892         Return long.
893         (__vdso_clock_gettime): Likewise.
894         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
895         return long.
897 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
899         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
900         * locale/nl_langinfo_l.c: Real implementation, copied from
901         nl_langinfo.c.
902         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
904 2007-12-01  Jim Meyering  <meyering@redhat.com>
906         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
907         that would inhibit utf8-optimization of a regexp containing line-
908         or buffer-anchors, e.g., `^', `$'.
910 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
912         * time/bug-getdate1.c (do_test): Don't use century values which
913         aren't valid on 32-bit systems.
915 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
917         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
918         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
919         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
920         __strcat_g, __strncat_g): Add __asm__.
922 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
924         [BZ #5477]
925         * io/fchmodat.c: Fix typo in stub_warning use.
926         Patch by Petr Salinger.
928 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
930         * iconvdata/hp-thai8.c: New file.
931         * iconvdata/Makefile: Add rules for hp-thai8.c.
932         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
933         * iconvdata/gconv-modules: Likewise.
935         [BZ #5464]
936         * iconvdata/hp-greek8.c: New file.
937         * iconvdata/Makefile: Add rules for hp-greek8.c.
938         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
939         * iconvdata/gconv-modules: Likewise.
941         [BZ #5463]
942         * iconvdata/hp-turkish8.c: New file.
943         * iconvdata/Makefile: Add rules for hp-turkish8.c.
944         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
945         * iconvdata/gconv-modules: Likewise.
947         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
948         (shrink_heap): ... this new function.
949         (heap_trim): Call shrink_heap instead of grow_heap.
951         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
952         case don't call alloc_perturb.
954 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
956         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
957         possible.
958         * sysdeps/unix/sysv/linux/kernel-features.h
959         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
960         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
962 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
964         [BZ #5424]
965         * stdio-common/vfprintf.c: Do not overflow when adding to done.
966         * stdio-common/Makefile (tests): Add bug22.
967         * stdio-common/bug22.c: New file.
969         [BZ #5451]
970         * time/getdate.c: Fix filling in default values.
971         * time/bug-getdate1.c: New file.
972         * time/Makefile: Add rules to build and run bug-getdate1.
974         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
975         * iconvdata/ebcdic-es.c: Likewise.
976         * iconvdata/ebcdic-es-a.c: Likewise.
977         * iconvdata/ebcdic-uk.c: Likewise.
978         * iconvdata/iso8859-16.c: Likewise.
979         * iconvdata/viscii.c: Likewise.
980         * iconvdata/iso8859-9e.c: Likewise.
981         * iconvdata/Makefile: Adjust appropriately.
983         [BZ #5428]
984         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
985         __need_wint_t.
987 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
989         [BZ #5427]
990         * iconvdata/hp-roman9.c: New file.
991         * iconvdata/Makefile: Add rules for hp-roman9.c.
992         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
993         * iconvdata/gconv-modules: Likewise.
995         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
996         * iconvdata/Makefile: Adjust appropriately.
998         [BZ #5441]
999         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
1000         structure, it's allocated with alloca.
1001         * stdio-common/Makefile (tests): Add bug21.
1002         * stdio-common/bug21.c: New file.
1004 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
1006         [BZ #5452]
1007         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
1008         keyword for gcc's braced-groups.
1010 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
1012         [BZ #5454]
1013         * inet/ether_line.c: Strip hostname of whitespaces.
1014         * inet/Makefile (tests): Add tst-ether_line.
1015         * inet/tst-ether_line.c: New file.
1017 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
1019         [BZ #5439]
1020         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
1022         [BZ #5435]
1023         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
1025         * stdlib/tst-setcontext.c: Catch the case where the links gets
1026         messed up and we do not reach main again.
1028         * po/ca.po: Update from translation team.
1030 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
1032         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
1033         * posix/regex.h (REG_ENOSYS): Likewise.
1034         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
1036 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
1038         * nscd/nscd.h (MAX_STACK_USE): Define.
1039         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
1040         (gc): Initialize stack_used based on allocation in prune_cache.
1041         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
1042         Clear array before use.
1044         * nscd/aicache.c (addhstaiX): Update statistics counter in case
1045         memory allocation failed.
1046         * nscd/hstcache.c (cache_addhst): Likewise.
1047         * nscd/grpcache.c (cache_addgr): Likewise.
1048         * nscd/servicescache.c (cache_addserv): Likewise.
1049         * nscd/pwdcache.c (cache_addpw): Likewise.
1050         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1052 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
1054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
1055         and creat system calls.
1057         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
1059 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1061         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
1062         Add netiucv/iucv.h.
1063         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
1064         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
1065         protocol.
1066         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
1067         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
1068         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
1070 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1072         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
1073         strncat): Define as macros to avoid compile errors.
1075         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
1076         creat entries.
1078 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
1080         [BZ #5382]
1081         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
1082         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
1083         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
1084         overflow it.
1085         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
1087         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
1088         Return zero in case the thread library is not NPTL.
1090         [BZ #5375]
1091         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
1092         initializing interface list.
1094         [BZ #5378]
1095         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1096         use result of nss_getgrgid_r if nothing was found.  For other
1097         error return with a failure.
1098         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
1100         * locale/programs/ld-collate.c (collate_read): Fix loop to match
1101         macro name.
1103 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
1105         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
1106         (get_scope): For IPv4 scope, use scopes table.
1107         (fini): Free scopes table if necessary.
1108         (free_scopelist): New function.
1109         (scopecmp): New function.
1110         (gaiconf_init): Also handle scopev4 entries.
1111         * posix/tst-rfc3484.c (do_test): Initialize scopes.
1112         * posix/tst-rfc3484-2.c (do_test): Likewise.
1113         * posix/gai.conf: Document scopev4 defaults.
1114         * posix/Makefile (tests): Add tst-rfc3484-3.
1115         * posix/tst-rfc3484-3.c: New file.
1117         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
1118         Teredo tunnels.
1119         * posix/gai.conf: Update for current default tables.
1121 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
1123         * po/tr.po: Update from translation team.
1125 2007-11-18  Roland McGrath  <roland@frob.com>
1127         * manual/arith.texi (Remainder Functions): Spelling fix.
1128         From Shaun Silk <genix@mysoul.com.au>.
1130         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
1132 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
1134         * po/zh_CN.po: Update from translation team.
1136         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1137         Add sys/signalfd.h and sys/eventfd.h.
1139 2007-11-15  Bruno Haible  <bruno@clisp.org>
1141         [BZ #5346]
1142         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
1143         union.
1144         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
1145         (DCIGETTEXT): Change the allocation of the 'search' variable so that
1146         it needs only fixed stack space. Delay the initialization of
1147         msgid_len until it is needed.
1149 2007-11-15  Andreas Jaeger  <aj@suse.de>
1151         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
1152         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
1154 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
1156         * po/ko.po: Update from translation team.
1158 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
1160         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
1161         significantly.  The device type is also part of the ifinfomsg data.
1163         * po/sv.po: Update from translation team.
1164         * po/nl.po: Likewise.
1166         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
1167         to wake up in 24 hours.
1169         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
1171 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
1173         * po/cs.po: Update from translation team.
1174         * po/pl.po: Likewise.
1176         * include/ifaddrs.h: Remove in6ai_temporary.
1177         (struct in6addrinfo): Add index element.
1178         Declare __check_native.
1179         * inet/Makefile (aux): Add check_native.
1180         * sysdeps/unix/sysv/linux/check_native.c: New file.
1181         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
1182         IFA_F_TEMPORARY.  Pass back ifa_index.
1183         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
1184         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
1185         call __check_native if necessary.
1186         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
1187         to sort addresses.  Pass information about the results.
1188         * posix/tst-rfc3484.c: Adjust for addition of index field and change
1189         of rfc3484_sort interface.
1190         * posix/tst-rfc3484-2.c: Likewise.
1192         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
1193         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
1194         for _quicksort.
1195         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
1196         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
1197         on as third parameter to compare function and _quicksort.
1198         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
1199         to the compare function.
1200         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
1201         * Versions.def: Add GLIBC_2.8 for libc.
1203         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
1204         * posix/tst-rfc3484-2.c: Likewise.
1206         * include/kernel-features.h: Moved to...
1207         * sysdeps/mach/hurd/kernel-features.h: ...here.
1209 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1211         * sysdeps/i386/i586/memcpy_chk.S: New file.
1212         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
1213         * sysdeps/i386/i586/memset_chk.S: Likewise.
1215 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
1217         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
1218         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
1219         list of interfaces.  Also store prefix length.
1220         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
1221         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
1222         prefix if source and destination address are in the same subnet.
1223         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
1224         Always look for matching record in in6ai list.
1225         Correct source_addr_len value for IPv6->IPv4 converted records.
1227 2007-11-11  Roland McGrath  <roland@frob.com>
1229         * include/kernel-features.h: New file.
1231 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
1233         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
1234         complications for 64-bit platforms.
1236         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
1237         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
1238         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
1239         open64_2.
1240         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
1241         entries.
1242         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1243         * sysdeps/wordsize-64/alphasort.c: New file.
1244         * sysdeps/wordsize-64/alphasort64.c: New file.
1245         * sysdeps/wordsize-64/fseeko.c: New file.
1246         * sysdeps/wordsize-64/fseeko64.c: New file.
1247         * sysdeps/wordsize-64/ftello.c: New file.
1248         * sysdeps/wordsize-64/ftello64.c: New file.
1249         * sysdeps/wordsize-64/ftw.c: New file.
1250         * sysdeps/wordsize-64/ftw64.c: New file.
1251         * sysdeps/wordsize-64/iofgetpos.c: New file.
1252         * sysdeps/wordsize-64/iofgetpos64.c: New file.
1253         * sysdeps/wordsize-64/iofopen.c: New file.
1254         * sysdeps/wordsize-64/iofopen64.c: New file.
1255         * sysdeps/wordsize-64/iofsetpos.c: New file.
1256         * sysdeps/wordsize-64/iofsetpos64.c: New file.
1257         * sysdeps/wordsize-64/lockf.c: New file.
1258         * sysdeps/wordsize-64/lockf64.c: New file.
1259         * sysdeps/wordsize-64/mkostemp.c: New file.
1260         * sysdeps/wordsize-64/mkostemp64.c: New file.
1261         * sysdeps/wordsize-64/mkstemp.c: New file.
1262         * sysdeps/wordsize-64/mkstemp64.c: New file.
1263         * sysdeps/wordsize-64/scandir.c: New file.
1264         * sysdeps/wordsize-64/scandir64.c: New file.
1265         * sysdeps/wordsize-64/tmpfile.c: New file.
1266         * sysdeps/wordsize-64/tmpfile64.c: New file.
1267         * sysdeps/wordsize-64/versionsort.c: New file.
1268         * sysdeps/wordsize-64/versionsort64.c: New file.
1269         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
1270         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
1271         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
1272         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
1273         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
1274         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
1275         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
1276         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
1277         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
1278         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
1279         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
1280         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
1282         * crypt/sha256-crypt.c: Fix a comment.
1283         * crypt/sha512-crypt.c: Likewise.
1285 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1287         * sysdeps/x86_64/memset.S: Add sfence after movnti.
1289 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
1291         [BZ #5277]
1292         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
1293         because output buffer is too small break, don't loop.
1294         * iconvdata/Makefile (tests): Add bug-iconv6.
1295         * iconvdata/bug-iconv6.c: New file.
1297 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
1299         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
1300         with size_t type.
1301         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
1302         size_t.  Add casts where needed.
1304         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
1305         old headers, don't call avc_has_perm if we don't have the
1306         permission information.
1308 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
1310         * elf/rtld.c (dl_main): Use the page size to find the map start.
1312 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
1314         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
1315         Patch by Szymon Siwek <sls@poczta.wp.pl>.
1317         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
1318         when the lookup call failed.
1320         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
1321         Add prune_cond and wakeup_time.
1322         (CACHE_PRUNE_INTERNAL): Define.
1323         Update declarations of prune_cache and setup_thread.
1324         * nscd/connections.c (dbs): Update initializers.
1325         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
1326         (nscd_init): Default number of threads is now 4.
1327         (invalidate_cache): Take lock before calling prune_cache.
1328         (handle_request): If SELinux forbids the request, say so.
1329         (readylist_cond): Use static initializer.
1330         (nscd_run_prune): New function.  Used only by pruning threads.
1331         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
1332         here.
1333         (fd_ready): Update nscd_run reference.
1334         (start_threads): No need to initialize readylist_cond.
1335         Start pruning threads separately.
1336         * nscd/nscd_setup_thread.c: Change return value type to int and always
1337         return 0.
1338         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
1339         to int and return nonzero value if we can use the TID address hack.
1340         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
1341         the database is later than the new entry's timeout, update the
1342         wakeup time and wake the cleanup thread.
1343         (prune_cache): Return seconds the next entry in the database is still
1344         valid.  Remove locking for pruning here.
1345         * nscd/nscd.conf: Document default number of threads.
1347 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
1349         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
1350         stack is properly aligned for the target function.
1351         Correct unwind info.
1353         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
1354         when using auditing libraries.
1356 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
1358         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
1359         _nss_dns_getnetbyaddr2_r.
1360         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
1361         extra parameter to getanswer_r.
1362         (_nss_dns_getnetbyaddr_r): Now a wrapper around
1363         _nss_dns_getnetbyaddr2_r.
1365         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
1366         gethstbynm3_r.
1367         * nscd/gethstbynm2_r.c: Remove.
1368         * nscd/gethstbynm3_r.c: New file.
1369         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
1370         __gethostbyaddr_r.
1371         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
1372         __gethostbyaddr_r compatibility wrapper.
1373         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
1374         determining timeout of entry.
1375         (lookup): Take new parameter and pass it to __gethostbyname3_r and
1376         __gethostbyaddr2_r.
1377         (addhstbyX): Pass reference to variable for TTL to lookup and
1378         cache_addhst.
1379         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
1380         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
1381         and __nss_next2.  Remove __nss_services_lookup.
1382         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
1383         Add compat wrapper.
1384         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
1385         __nss_next2.
1386         * nss/getXXent_r.c: Likewise.
1387         * nss/getnssent_r.c: Likewise.
1388         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
1389         does not exist in module, try the optional second name.
1390         (__nss_next2): New function.
1391         (__nss_next): Now wrapper around __nss_next2.
1392         * nss/nsswitch.h: Adjust __nss_lookup prototype.
1393         Declare __nss_next2.
1394         Adjust definition of db_lookup_function type.
1395         * nss/service-lookup.c: Define NO_COMPAT.
1396         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
1397         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
1398         * inet/ether_ntoh.c: Likewise.
1399         * sunrpc/netname.c: Likewise.
1400         * sunrpc/publickey.c: Likewise.
1401         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
1402         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
1403         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1404         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1405         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1407         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
1409         * inet/getnetgrent.c (setup): Encrypt static pointer.
1411 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
1413         [BZ #5204]
1414         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
1415         * crypt/sha512c-test.c: Likewise.
1417         [BZ #5225]
1418         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
1419         to keep track of end of %[ format string element.
1420         * stdio-common/Makefile (tests): Add bug20.
1421         * stdio-common/bug20.c: New file.
1423         [BZ #5222]
1424         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
1425         path elements in counting mode.
1427 2007-10-27  Andreas Jaeger  <aj@suse.de>
1429         [BZ #5040]
1430         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
1432         [BZ #3112]
1433         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
1434         (__cleanup): Free shared library when exiting.
1435         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
1436         (__cleanup): Free shared library when exiting.
1438 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1440         [BZ #2549]
1441         * math/libm-test.inc (check_float_internal): Support
1442         denormalized return.
1444 2007-10-23  Andreas Jaeger  <aj@suse.de>
1446         [BZ #5208]
1447         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
1448         __LONG_LONG_PAIR to handle little endian byte order.
1449         Suggested by abhishekrai@google.com
1451 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
1453         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
1455 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
1457         * nscd/cache.c (prune_cache): Move test for modified file outside
1458         of locking.
1460 2007-10-21  Andreas Jaeger  <aj@suse.de>
1462         * manual/texinfo.tex: Update to latest version.
1464         * manual/sysinfo.texi (System Parameters): Fix Formatting.
1466         * manual/arith.texi (Status bit operations): Fix formatting.
1468         * manual/errno.texi (Error Messages): Fix formatting.
1470         * manual/sysinfo.texi (System Parameters): Fix formatting.
1472         * manual/libc.texinfo: Update VERSION and UPDATED.
1474 2007-10-19  Roland McGrath  <roland@redhat.com>
1476         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
1478 2007-10-06  David S. Miller  <davem@davemloft.net>
1480         * configure.in: Add sparcv9v2 and sparc64v2.
1481         * scripts/config.sub: Likewise.
1482         * configure: Regenerate.
1483         * elf/elf.h (HWCAP_SPARC_N2): New.
1484         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
1485         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
1486         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
1487         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
1488         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
1489         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
1490         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
1492 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
1494         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
1495         even if the poll result indicates there is data to read.
1496         Patch by Jeff Moyer <jmoyer@redhat.com>.
1498 2007-10-18  Roland McGrath  <roland@redhat.com>
1500         * elf/elf.h (NT_PPC_VMX): New macro.
1502 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
1504         * version.h (VERSION): Set to 2.7.90.
1506 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
1508         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
1509         weak_alias.
1511 2007-10-17  Roland McGrath  <roland@frob.com>
1513         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
1514         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
1516 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
1518         * version.h (VERSION): Bump to 2.7.
1519         * include/features.h (__GLIBC_MINOR__): Bump to 7.
1521         [BZ #5186]
1522         * time/tzset.c (__tz_convert): Don't force testing for a change of
1523         TZ if not called from localtime.  But then also see whether the
1524         file changed, in case __use_tzfile is set.
1526         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
1527         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1528         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1529         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1530         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1531         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1532         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
1533         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1535 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
1537         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
1538         and admin selects to be able to replace the gai.conf file, lock
1539         data structures around the qsort call.
1541 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
1543         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
1544         new memset.
1545         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
1546         too high for the improvements.  Implement bzero unconditionally for
1547         use in libc.
1549 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
1550             Jakub Jelinek  <jakub@redhat.com>
1552         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
1553         even when time_t is 32-bit.
1554         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
1555         timezone data read by __tzfile_default.  Ensure __tzname[0] is
1556         always set after the search.
1558 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
1560         * time/tzfile.c (__tzfile_read): Help the compiler recognize
1561         unreachable code on 32-bit machines.
1563 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
1565         [BZ #5184]
1566         * time/strftime_l.c: Include stdbool.h.
1567         (my_strftime): New wrapper, old function renamed to...
1568         (__strftime_internal): ... new function.  Add tzset_called
1569         argument, pass it down to recursive calls, don't call tzset ()
1570         if already true, set to true after call to tzset ().
1572 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
1574         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
1575         into account when copying TZ string.
1577 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
1579         * time/tzfile.c (__tzfile_compute): For use_last case set i to
1580         num_transition rather than num_transitions - 1.
1582 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
1584         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
1585         PIC indirect jump.
1587         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
1588         a local label rather than HIDDEN_JUMPTARGET.
1590 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
1592         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
1593         (init_cacheinfo): Initialize it.
1594         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
1595         Always define bzero.
1596         Remove non-glibc code.
1597         * sysdeps/x86_64/bzero.S: Make an empty file.
1599 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1601         * sysdeps/x86_64/cacheinfo.c
1602         (__x86_64_preferred_memory_instruction): New.
1603         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1605         * sysdeps/x86_64/memset.S: Rewrite.
1607 2007-10-15  Roland McGrath  <roland@redhat.com>
1609         * po/libc.pot: Regenerated.
1611 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
1613         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
1614         pointers.
1616         [BZ #3425]
1617         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
1618         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
1619         address record to T_A/T_AAAA requests.
1621 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
1623         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
1625         * posix/glob.c: Add some branch prediction throughout.
1627         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
1628         read from nscd.
1630         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
1631         service_order.
1632         (rfc3484_sort): Make sure that even if qsort doesn't support
1633         stable sorting out sorting here is stable by comparing service_order.
1634         (getaddrinfo): Initialize service_order.
1635         * posix/tst-rfc3484.c (do_test): Adjust for addition of
1636         service_order field to sorting structure.
1637         * posix/tst-rfc3484-2.c (do_test): Likewise.
1639         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
1640         * time/tzset.c (tzset_internal): Break TZ string parsing out into
1641         __tzset_parse_tz and updating of daylight, timezone, tzname into
1642         update_vars.
1643         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
1644         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
1645         happens in __tz_compute.
1646         * time/tzfile.c (__tzfile_read): Also read TZ string.
1647         (find_transition): Fold into __tzfile_compute.
1648         (__tzfile_compute): For times beyond the last transition try to
1649         use the TZ string.
1650         * timezone/tst-timezone.c: Information in daylight and tzname does
1651         change for Asia/Tokyo timezone with more concrete information.
1652         Remove the test.
1654         * include/stdio.h: Add libc_hidden_proto for ftello.
1655         * libio/ftello.c: Add libc_hidden_def.
1657         [BZ #1140]
1658         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
1659         on the specified time and not the last entries in the file.  Move
1660         code to determine tzname[] to...
1661         (find_transition): ...here.  Add ugly guess for times before the
1662         first transition.
1664 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
1666         [BZ #3195]
1667         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
1668         no entry.
1669         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
1670         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1671         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1672         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1674         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
1675         read mechanism when there are no group members and avoid no-op
1676         read syscall in this case.
1678         [BZ #3242]
1679         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
1680         (__readall): If reading failed due to EAGAIN error wait a bit
1681         and possibly try again.
1682         (__readvall): Likewise.
1684 2007-10-13  Bruno Haible  <bruno@clisp.org>
1686         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
1687         when we cannot recode the message.
1689 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
1691         [BZ #4359]
1692         * libio/__freading.c (__freading): Don't return true for
1693         write-only streams.  For read/write streams, check whether we
1694         performed a read operation already.
1695         * libio/Makefile (tests): Add tst-ext2.
1696         * libio/tst-ext2.c: New file.
1698 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
1700         * locale/programs/repertoire.c (repertoire_read): Always free
1701         memory for repertoire file name [Coverity CID 270].
1703         * elf/cache.c (save_aux_cache): Free memory allocated for
1704         temporary file name [Coverity CID 267].
1706 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
1708         * misc/Makefile (headers): Add bits/error.h.
1710 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
1712         * posix/fnmatch_loop.c: Take rule index returned as part of
1713         findidx return value into account when accessing weights.
1714         * posix/regcomp.c: Likewise.
1715         * posix/regexec.c: Likewise.
1717         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
1718         (skip_to): Fix problems with parameter of elifdef/elifndef.
1720 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
1722         * iconv/gconv_simple.c: Add some branch prediction.
1724 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
1726         * locale/programs/ld-collate.c (collate_read): If ignore_content
1727         and nowtok is tok_define, eat any tok_eol tokens.
1729 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
1731         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
1732         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
1734         * inet/netinet/in.h: Don't include bits/socket.h.
1735         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
1736         macro.
1737         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1739 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
1741         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
1742         and tok_elifndef.
1743         * locale/programs/locfile-kw.gperf: Likewise.
1744         * locale/programs/ld-collate.c: Implement primitive preprocessor.
1746 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
1748         * stdio-common/printf-parse.h: Include string.h and wchar.h.
1749         (__find_specwc): Change into __extern_always_inline function.
1750         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
1751         (__parse_one_specmb): Remove ps argument.
1752         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
1753         Adjust __find_specmb and __parse_one_specmb callers.
1754         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
1755         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
1756         Removed.
1757         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
1758         caller.
1760 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
1762         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
1763         with some Pentium Ds.
1765 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
1767         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
1768         __read not read.
1769         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
1770         __write not write.
1772 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
1774         [BZ #181]
1775         * locale/C-time.c: Set week_1stday data to 19971201.
1776         * locale/programs/ld-time.c (time_finish): Default for
1777         first_workday is Monday.
1779         [BZ #2633]
1780         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
1782         [BZ #5103]
1783         * posix/glob.c (glob): Recognize patterns starting \/.
1784         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
1785         (main): Add test for pattern starting \/.
1787         * misc/error.h: Use __const instead of const.
1788         * misc/bits/error.h: Likewise.
1790 2007-10-07  Andreas Jaeger  <aj@suse.de>
1792         * include/bits/error.h: New file.
1794         * misc/bits/error.h (error_at_line): Fix prototype.
1796 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
1798         [BZ #3924]
1799         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
1800         more little bugs in creating the stack frame when pltexit has to
1801         be called.
1803         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
1804         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
1806         [BZ #4407]
1807         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
1808         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1809         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1810         * math/libm-test.inc: Add test for this case.
1812         [BZ #5010]
1813         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
1814         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
1815         map service succeeded.
1816         (svc_is_mapped): New function.
1817         (svc_unregister): Use it before trying to unmap service.
1819 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
1821         * timezone/zic.c: Update from tzcode2007h.
1823         [BZ #5063]
1824         * timezone/africa: Update from tzdata2007h.
1825         * timezone/antarctica: Likewise.
1826         * timezone/asia: Likewise.
1827         * timezone/australasia: Likewise.
1828         * timezone/europe: Likewise.
1829         * timezone/leapseconds: Likewise.
1830         * timezone/northamerica: Likewise.
1831         * timezone/southamerica: Likewise.
1832         * timzeone/zone.tab: Likewise.
1834         [BZ #5104]
1835         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
1837         [BZ #5113]
1838         * string/bits/string2.h (__strdup): Cast parameters to calloc to
1839         avoid warning with -Wconversion.
1840         (__strndup): Likewise.
1841         Half the patch by Christian Iseli <christian.iseli@licr.org>.
1843         [BZ #5112]
1844         * nscd/connections.c (restart): Don't resync if database is
1845         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
1847         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
1848         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
1850         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
1851         evetnfd_read, eventfd_write.
1852         * sysdeps/unix/sysv/linux/eventfd.c: New file.
1853         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
1854         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
1855         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
1856         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
1857         eventfd_write for GLIBC_2.7.
1859         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
1860         * sysdeps/unix/sysv/linux/signalfd.c: New file.
1861         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
1862         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
1864 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
1866         * stdlib/msort.c: Include stdint.h.
1867         (struct msort_param): New type.
1868         (msort_with_tmp): Use struct msort_param pointer for unchanging
1869         parameters.  Add optimized handling for several common sizes
1870         and indirect sorting mode.
1871         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
1872         sorting.
1873         Suggested by Belazougui Djamel .
1875         * stdlib/Makefile (tests): Add tst-qsort2.
1876         * stdlib/tst-qsort2.c: New test.
1878 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
1880         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
1881         for dup2 in case another thread races with the current one.  Retry
1882         in this case.
1884         * misc/error.h: Remove support for use outside of libc.  We have to
1885         include <features.h> now.  Include <bits/error.h> if possible.
1886         * misc/bits/error.h: New file.
1888 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
1890         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
1891         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
1892         __extern_always_inline functions unconditionally, drop macros.
1894         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
1895         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
1896         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
1898         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
1899         add __artificial__ attribute.
1901 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
1903         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
1904         backward to forward direction.
1906         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
1908         [BZ #645]
1909         * locale/programs/ld-collate.c (collate_finish): Compare against last
1910         used section which is known to have rules defined.
1911         (collate_read): After order_start, correctly record order of sections
1912         and queue sections up.
1914 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
1916         [BZ #5071]
1917         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
1918         the same number of pages.
1919         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
1921         * locale/programs/ld-collate.c (collate_read): After initial copy
1922         statement, continue in state 0.
1924         * include/stdio_ext.h (__fsetlocking): Define as macro.
1926 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
1928         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
1929         of section order.
1931         * po/pt_BR.po: Fix typo.
1933 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
1935         * iconvdata/Makefile (modules): Add ISO8859-9E.
1936         (distribute): Add iso8859-9e.c.
1937         (gen-8bit-gap-modules): Add iso8859-9e.
1938         * iconvdata/iso8859-9e.c: New file.
1939         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
1940         * iconvdata/TESTS: Likewise.
1941         * iconvdata/tst-tables.sh: Likewise.
1943         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1945         * locale/iso-639.def: Add several new entries.
1947 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
1949         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
1950         void * pointers instead of struct link_map **.
1951         (_dl_scope_free): Change argument type to void *.
1952         * include/link.h (struct link_map): Change type of l_reldeps
1953         to struct link_map_reldeps, move l_reldepsact into that
1954         struct too.
1955         * elf/dl-deps.c: Include atomic.h.
1956         (_dl_map_object_deps): Only change l->l_initfini when it is
1957         fully populated, use _dl_scope_free for freeing it.  Optimize
1958         removal of libs from reldeps by using l_reserved flag, when
1959         some removal is needed, allocate a new list instead of
1960         reallocating and free the old with _dl_scope_free.  Adjust
1961         for l_reldeps and l_reldepsact changes.
1962         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
1963         searching in l_initfini and l_reldeps without holding dl_load_lock.
1964         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
1965         l_reldepsact changes.
1966         * elf/dl-close.c (_dl_close_worker): Likewise.
1967         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
1969 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
1971         * iconvdata/Makefile (modules): Add KOI8-RU.
1972         (distribute): Add koi8-ru.c.
1973         (gen-8bit-gap-modules): Add koi8-ru.
1974         * iconvdata/koi8-ru.c: New file.
1975         * iconvdata/gconv-modules: Add entries for KOI8-RU.
1976         * iconvdata/TESTS: Likewise.
1977         * iconvdata/tst-tables.sh: Likewise.
1979         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1981 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
1983         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
1984         with __warning__/__error__ attributes.
1985         (__warnattr): Define.
1986         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
1987         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
1988         __warnattr.
1989         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
1990         of __*_chk if compile time detectable overflow is found.
1991         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
1992         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
1993         with __warnattr.
1994         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
1995         instead of __*_chk if compile time detectable overflow is found.
1996         (__gets_alias): Rename to...
1997         (__gets_warn): ... this.  Add __warnattr.
1998         (gets): Call __gets_warn instead of __gets_alias.
1999         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
2000         aliases with __warnattr.
2001         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
2002         time detectable overflow is found.
2003         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
2004         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
2005         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
2006         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
2007         __getdomainname_chk_warn): New aliases with __warnattr.
2008         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
2009         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
2010         __*_chk_warn instead of __*_chk if compile time detectable overflow
2011         is found.
2012         (__getgroups_chk): Rename argument to __listlen from listlen.
2013         (__getwd_alias): Rename to...
2014         (__getwd_warn): ... this.  Add __warnattr.
2015         (getwd): Call __getwd_warn instead of __getwd_alias.
2016         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
2017         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
2018         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
2019         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
2020         __wcsnrtombs_chk_warn): New aliases with __warnattr.
2021         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
2022         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
2023         compile time detectable overflow is found.
2024         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
2025         to use __*_chk or not.
2026         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
2027         in comparisons which function should be called and in __*_chk*
2028         arguments.  Call __*_chk_warn instead of __*_chk if compile time
2029         detectable overflow is found.
2030         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
2031         __*_chk argument.
2032         * debug/tst-chk1.c (do_test): Add a few more tests.
2034 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
2036         [BZ #5058]
2037         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
2038         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
2039         (_nl_unload_domain): Finalize conversions_lock.
2040         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
2041         handling table of known conversions.
2043 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
2045         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
2046         close_not_cancel_no_status instead of close.
2048 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
2050         [BZ #5028]
2051         * posix/regcomp.c (lookup_collation_sequence_value): Check that
2052         nrules != 0 for multibyte chars.
2054 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
2056         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
2057         Provide better error message in case the type is unknown.
2059         [BZ #4963]
2060         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
2061         * string/stratcliff.c: Make usable to test wide char functions.
2062         * wcsmbs/wcsatcliff.c: New file.
2063         * wcsmbs/Makefiel (tests): Add wcsatcliff.
2065         [BZ #4972]
2066         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
2067         (distribute): Add mac-centraleurope.c.
2068         (gen-8bit-gap-modules): Add mac-centraleurope.
2069         * iconvdata/mac-centraleurope.c: New file.
2070         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
2071         * iconvdata/TESTS: Likewise.
2072         * iconvdata/tst-tables.sh: Likewise.
2074         [BZ #5043]
2075         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
2077 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
2079         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
2080         from __x86_64_core_cache_size_half.
2081         (init_cacheinfo): Compute shared cache size for AMD processors with
2082         shared L3 correctly.
2083         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
2084         name change.
2085         Patch in large parts by Evandro Menezes.
2087 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
2089         * elf/dl-lookup.c (add_dependency): Handle failing memory
2090         allocation for dependency list.  Remove unnecessary check.
2092         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
2093         open/close when determining source addresses.
2095         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
2096         sha512-crypt, and sha512.
2097         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
2098         (distribute): Add sha256.h and sha512.h.
2099         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
2100         and call the appropriate code.
2101         * crypt/sha256-crypt.c: New file.
2102         * crypt/sha256.c: New file.
2103         * crypt/sha256.h: New file.
2104         * crypt/sha256c-test.c: New file.
2105         * crypt/sha256test.c: New file.
2106         * crypt/sha512-crypt.c: New file.
2107         * crypt/sha512.c: New file.
2108         * crypt/sha512.h: New file.
2109         * crypt/sha512c-test.c: New file.
2110         * crypt/sha512test.c: New file.
2112 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
2114         * misc/bits/syslog.h (syslog): Remove extraneous argument from
2115         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
2116         __syslog_chk.
2118 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
2120         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
2121         %as in fscanf format strings.
2123         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
2124         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2125         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
2126         Likewise.
2127         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
2128         Likewise.
2130         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
2131         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
2132         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
2133         * elf/dl-sym.c (do_sym): Likewise.
2134         * include/link.h (struct link_map): Add l_serial field.
2135         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
2136         * elf/dl-lookup.c (add_dependency): Add flags argument.
2137         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
2138         flags, use THREAD_GSCOPE_RESET_FLAG before and
2139         THREAD_GSCOPE_SET_FLAG after
2140         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
2141         Don't dereference map until it has been found on some list.
2142         If map->l_serial changed, return -1.
2144 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
2146         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
2147         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
2148         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
2149         libc_hidden_proto.
2150         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
2151         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
2152         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
2153         add libc_hidden_proto.
2154         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2155         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2156         conformance requested.
2157         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
2158         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2159         conformance requested.
2160         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2161         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
2162         conformance requested.
2163         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
2164         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
2165         ISO C99 or POSIX conformance requested.
2166         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
2167         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
2168         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
2169         and __isoc99_vsscanf@@GLIBC_2.7.
2170         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
2171         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
2172         (tests): Add scanf14.
2173         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
2174         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
2175         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
2176         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
2177         CFLAGS-isoc99_scanf.c): Add $(exceptions).
2178         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
2179         from using internal headers.
2180         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
2181         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
2182         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
2183         and __isoc99_vswscanf@@GLIBC_2.7.
2184         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
2185         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
2186         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
2187         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
2188         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
2189         * stdio-common/isoc99_scanf.c: New file.
2190         * stdio-common/isoc99_vsscanf.c: New file.
2191         * stdio-common/isoc99_vscanf.c: New file.
2192         * stdio-common/isoc99_vfscanf.c: New file.
2193         * stdio-common/isoc99_fscanf.c: New file.
2194         * stdio-common/isoc99_sscanf.c: New file.
2195         * wcsmbs/isoc99_fwscanf.c: New file.
2196         * wcsmbs/isoc99_vswscanf.c: New file.
2197         * wcsmbs/isoc99_swscanf.c: New file.
2198         * wcsmbs/isoc99_wscanf.c: New file.
2199         * wcsmbs/isoc99_vwscanf.c: New file.
2200         * wcsmbs/isoc99_vfwscanf.c: New file.
2201         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
2202         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
2203         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
2204         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
2205         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
2206         * stdio-common/scanf14.c: New test.
2207         * stdio-common/scanf15.c: New test.
2208         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2209         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
2210         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
2211         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
2212         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
2213         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
2214         __nldbl___isoc99_scanf@@GLIBC_2.7,
2215         __nldbl___isoc99_fscanf@@GLIBC_2.7,
2216         __nldbl___isoc99_sscanf@@GLIBC_2.7,
2217         __nldbl___isoc99_vscanf@@GLIBC_2.7,
2218         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
2219         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
2220         __nldbl___isoc99_wscanf@@GLIBC_2.7,
2221         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
2222         __nldbl___isoc99_swscanf@@GLIBC_2.7,
2223         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
2224         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
2225         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
2226         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
2227         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
2228         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
2229         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
2230         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
2231         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2232         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
2233         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
2234         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
2235         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
2236         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
2237         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
2238         functions.
2239         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
2240         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
2241         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
2242         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
2243         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
2244         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
2245         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
2246         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
2247         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
2248         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
2249         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
2250         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
2252         * stdio-common/Makefile (tests): Add scanf13.
2253         (scanf13-ENV): New.
2254         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
2255         m modifier followed by l.
2256         (STRING_ARG): Add width argument.
2257         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
2258         <case L_('C')>: Handle %mlc and %mC.
2259         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
2260         arguments.
2261         * stdio-common/scanf13.c: New test.
2263         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
2264         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
2266 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
2268         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
2269         type and __THROW marker of splice, vmsplice, and tee.
2270         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2271         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2272         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2273         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2274         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2275         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2276         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2277         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
2278         as cancellation points.
2280 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
2282         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
2283         parse more than three parts of the version number.
2285 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
2287         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
2288         modifier.  Patch by Jakub Jelinek.
2290 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
2292         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
2293         call_fallocate in misc subdir.
2294         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
2295         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
2296         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
2297         instead of __fallocate64.
2298         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
2300 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
2302         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
2303         * rt/Makefile (headers): Add bits/mqueue2.h.
2304         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
2305         optimizing with GCC and __va_arg_pack_len is defined.
2306         * rt/bits/mqueue2.h: New file.
2307         * rt/mq_open.c (__mq_open): Renamed from mq_open.
2308         (mq_open): New strong_alias.
2309         (__mq_open_2): New function.
2310         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
2311         (mq_open): New strong_alias.
2312         (__mq_open_2): New function.
2313         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
2314         * Versions.def (librt): Add GLIBC_2.7 version.
2315         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
2316         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
2318         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
2319         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
2320         is defined rather than when not C++.
2321         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
2322         __openat64_alias): New redirects.
2323         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
2324         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
2325         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
2326         (open, open64, openat, openat64): Rewrite as __extern_always_inline
2327         functions instead of function-like macros.
2329 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2331         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
2332         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
2333         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
2335 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
2337         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
2338         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
2340 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
2342         * inet/tst-network.c: Increment ERRORS for failing tests.
2344 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
2346         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
2347         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
2348         implement as __extern_always_inline function.
2349         (vsyslog): Define as __extern_always_inline function unconditionally.
2350         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
2351         When __va_arg_pack is defined, implement as __extern_always_inline
2352         functions.
2353         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2354         __extern_always_inline functions unconditionally.
2355         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
2356         bits/stdio2.h will be included.
2357         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
2358         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
2359         implement as __extern_always_inline functions.
2360         (vswprintf, vwprintf, vfwprintf): Define as
2361         __extern_always_inline functions unconditionally.
2362         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
2364 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
2366         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
2367         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
2368         attribute.
2369         * include/features.h (__USE_EXTERN_INLINES): Define only when
2370         __extern_inline is defined.
2371         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
2372         is defined instead of when not __cplusplus.
2373         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
2374         is defined instead of when not __cplusplus.
2375         * socket/sys/socket.h: Include bits/socket2.h when
2376         __extern_always_inline is defined instead of when not __cplusplus.
2377         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
2378         is defined instead of when not __cplusplus.
2379         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
2380         is defined instead of when not __cplusplus.
2381         * string/string.h: Include bits/string3.h when __extern_always_inline
2382         is defined instead of when not __cplusplus.
2383         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
2384         is defined instead of when not __cplusplus.
2385         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
2386         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
2387         is not defined.
2388         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
2389         defined __extern_always_inline instead of !defined __cplusplus.
2390         * libio/bits/stdio-ldbl.h: Likewise.
2391         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2392         * misc/bits/syslog.h (syslog): Don't define for C++.
2393         (vsyslog): Use __extern_always_inline function for C++ instead of
2394         a macro.
2395         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
2396         whenever that macro is defined.
2397         (vprintf): Don't provide the inline for C++.
2398         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
2399         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
2400         define the macros for C++.
2401         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2402         __extern_always_inline functions for C++.
2403         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
2404         stat64, lstat64, fstat64, fstatat64): Don't define if not
2405         __USE_EXTERN_INLINES.
2406         * wcsmbs/bits/wchar2.h: Fix #error message.
2407         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
2408         (vswprintf, vwprintf, vfwprintf): Define using
2409         __extern_always_inline functions for C++.
2410         * string/bits/string3.h: Don't #undef macros if __cplusplus.
2411         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
2412         strncpy, strcat, strncat): Define as __extern_always_inline
2413         functions instead of macros for C++.
2414         * math/bits/cmathcalls.h: Guard __extern_inline routines with
2415         defined __extern_inline.
2416         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
2417         to __extern_inline whenever that macro is defined.
2418         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2419         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2420         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
2421         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
2422         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2423         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2424         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2425         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2426         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
2427         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
2428         prototypes.  Only provide __extern_inline routines if
2429         __USE_EXTERN_INLINES.
2430         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
2431         tests.
2432         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
2433         For now avoid some *printf tests in C++.  Skip all testing
2434         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
2435         is not.
2436         * debug/tst-chk4.cc: New file.
2437         * debug/tst-chk5.cc: New file.
2438         * debug/tst-chk6.cc: New file.
2439         * debug/tst-lfschk4.cc: New file.
2440         * debug/tst-lfschk5.cc: New file.
2441         * debug/tst-lfschk6.cc: New file.
2442         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
2443         prototypes in C++.
2444         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
2445         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
2446         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
2448 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
2450         * po/cs.po: Update from translation team.
2452 2007-09-11  Roland McGrath  <roland@redhat.com>
2454         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
2455         compiling.
2457 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2459         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
2461 2007-09-05  Roland McGrath  <roland@redhat.com>
2463         * manual/signal.texi (Signaling Another Process): Typo fix.
2464         From Karl Berry <karl@freefriends.org>.
2466 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
2468         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
2469         zero if not defined.
2470         (make_request): Recognize optimistic addresses and treat them like
2471         deprecated addresses.
2472         Reported by Neil Horman <nhorman@redhat.com>.
2474 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
2476         * nscd/connections.c (send_ro_fd): Also transfer file size.
2477         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
2478         file size don't call fstat.
2480         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
2481         ahead and map the file.  This should always be correct and we can
2482         catch problems later.
2484 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
2486         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
2487         prototypes.
2488         (__fread_alias, __fread_unlocked_alias): New aliases.
2489         (fread): New extern inline.
2490         (fread_unlocked): Likewise.  Undef macro before definition of
2491         the inline function.
2492         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
2493         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
2494         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
2495         and __fread_unlocked_chk@@GLIBC_2.7.
2496         * debug/fread_chk.c: New file.
2497         * debug/fread_u_chk.c: New file.
2498         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
2500 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
2502         * sysdeps/unix/sysv/linux/syscalls.list
2503         (personality): Change caller to EXTRA.
2505 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
2507         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
2508         to keep gcc quiet.
2509         * iconvdata/iso-2022-cn.c (BODY): Likewise.
2511         * locale/programs/ld-collate.c (collate_output): Avoid warning if
2512         NDEBUG is defined.
2514         * Makerules: Use -p option with mkdir.
2516         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
2517         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
2518         (_xdr_directory_obj): Likewise.
2519         (xdr_entry_obj): Likewise.
2520         (xdr_group_obj): Likewise.
2521         (xdr_link_obj): Likewise.
2522         (xdr_table_obj): Likewise.
2523         (_xdr_nis_result): Likewise.
2524         (_xdr_ns_request): Likewise.
2525         (_xdr_ib_request): Likewise.
2526         (_xdr_nis_taglist): Likewise.
2527         (xdr_cback_data): Likewise.
2528         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
2529         (xdr_ypresp_maplist): Likewise.
2531         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
2533         * posix/regex_internal.h: Prevent some declarations and definitions
2534         to be seen when used in tests.
2536         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
2537         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
2539         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
2541         * config.make.in (datarootdir): Add to shut up configure.
2543         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
2544         associativity for fully-associative caches.
2546         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
2547         requests.  Fill on more associativity values for L2.
2548         Patch mostly by Evandro Menezes.
2550 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
2552         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2553         (_libc_vdso_platform_setup): Avoid using exported variable by using
2554         alias.
2556         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
2558         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
2559         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
2560         defined.
2562 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
2564         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
2565         align stack for call if pltexit is to be used.
2567         [BZ #3924]
2568         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
2569         align for function call in case pltexit has to be called later.
2571         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
2572         implicit atomic operation when storing function pointer.
2573         (_dl_runtime_profile): Likewise.
2575 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
2577         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
2578         NIS_NOTFOUND.
2580 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
2582         [BZ #4566]
2583         * string/strtok.c: Fix typo in comment.
2585         [BZ #4582]
2586         * debug/segfault.c: Fix typos in comments.
2588         [BZ #4588]
2589         * stdio-common/tempnam.c: Fix comment, it is not checked that
2590         TMPDIR points to a writable directory.
2592         [BZ #4726]
2593         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
2594         memory allocated for the name server address.
2596         [BZ #4946]
2597         * nscd/connections.c (handle_request): Using sendfile always
2598         requires that mmap is used for the database.
2599         Patch by Petr Baudis <pasky@suse.cz>.
2601         [BZ #4905]
2602         * nscd/hstcache.c (cache_addhst): When reloading an entry which
2603         suddenly has two or more addresses, ignore it and remove the old
2604         entry.
2606         [BZ #4814]
2607         * resolv/res_hconf.c: Prepare for compiling outside libc.
2608         * nscd/res_hconf.c: New file.
2609         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
2610         the new file.
2611         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
2612         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
2614         * nscd/hstcache.c (cache_addhst): Minimal optimization.
2616         [BZ #4925]
2617         * debug/pcprofiledump.c: Turn on internationalization by calling
2618         setlocale.  Patch mostly by Benno Schulenberg.
2620         [BZ #4936]
2621         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
2622         the state.
2623         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
2624         * iconvdata/bug-iconv5.c: New file.
2626 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
2628         [BZ #4896]
2629         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
2630         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
2631         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
2632         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
2633         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
2634         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
2635         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
2636         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
2638 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
2640         [BZ #4937]
2641         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
2642         lookup loop.  Suggested by John Reiser.
2644 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
2646         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
2648 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
2650         * csu/libc-start.c: Don't handle VDSO_SETUP here.
2651         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
2652         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
2653         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
2654         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
2655         to...
2656         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
2658 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
2660         * po/nl.po: Update from translation team.
2662 2007-08-16  Andreas Jaeger  <aj@suse.de>
2664         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
2665         Reported by Peter Festner <peter.festner@ewetel.net>.
2667 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
2669         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
2671 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
2673         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
2674         to check for undefined symbols.
2676         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
2677         If the syscall fails, set errno to the actual returned error number
2678         rather than EINVAL.
2679         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
2680         arguments are incorrect, set errno to EINVAL, if the syscall
2681         fails, set errno to the actual returned error number.
2683         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
2684         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
2686         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
2687         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
2688         file.
2689         (ASI_PNF, ASI_BLK_P): Don't define.
2690         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
2691         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
2692         file.
2693         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
2694         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
2695         file.
2697 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
2699         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
2700         FE_UNDERFLOW on Niagara CPUs.
2702         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
2703         exceptions.
2705 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
2707         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
2708         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
2709         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
2710         flush should be used or not inside of the function.
2711         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
2713         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
2714         __thread_start): Use HIDDEN_JUMPTARGET.
2715         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
2716         __thread_start): Likewise.
2717         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
2719         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
2720         Add libc_hidden_proto.
2721         (STRTOF): Add libc_hidden_proto.
2722         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
2723         (strtold_l, wcstold_l): Use them as second argument for
2724         long_double_symbol.
2726 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
2728         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
2730 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2732         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
2734 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
2736         * po/bg.po: New file.  From the translation team.
2738 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
2740         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
2741         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
2742         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
2743         when each feature was introduced.
2745         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
2746         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
2747         (CHECK_HASH): New macro.
2748         (PREPARE_VERSION): Use it.
2750         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
2751         prototype if not __ASSUME_PSELECT.
2752         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
2753         prototype if not __ASSUME_PPOLL.
2755         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
2757         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
2758         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
2759         is defined.
2761 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
2763         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2764         (_libc_vdso_platform_setup): If vDSO is not available point
2765         __vdso_gettimeofday to the vsyscall.
2766         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
2767         __vdso_gettimeofday instead of vsyscall.
2769 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
2771         * nscd/servicescache.c: Include kernel-features.h.
2772         * nscd/gai.c: Likewise.
2773         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
2774         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
2775         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
2776         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
2777         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
2778         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2779         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2780         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
2781         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2783 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
2785         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
2786         and _dl_get_origin defines anymore.
2788         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
2789         Build fix for systems which might lack POSIX timer support.
2791         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2792         (_libc_vdso_platform_setup): Mangle function pointers before storing
2793         them.
2794         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
2795         Demangle vdso pointer before use.
2796         (INTERNAL_VSYSCALL): Likewise.
2798         * elf/cache.c (primes): Mark as const.
2799         Noted by Roland McGrath.
2801 2007-08-01  Andreas Jaeger  <aj@suse.de>
2802             Jakub Jelinek  <jakub@redhat.com>
2804         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
2805         (options): Add option.
2806         (parse_opt): Handle option.
2807         (manual_link): Adjust process_file caller.  Call implicit_soname.
2808         (search_dir): Formatting.  Use and populate auxiliary cache.
2809         (main): Load and save auxiliary cache.
2810         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
2811         stat64 from fstat64 to caller.
2812         (implicit_soname): New function.
2813         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
2814         leave *soname as NULL.
2815         * elf/cache.c: Include libgen.h.
2816         (print_entry, print_cache, compare, save_cache, add_to_cache):
2817         Formatting and cleanups.
2818         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
2819         aux_cache_file): New structures.
2820         (AUX_CACHEMAGIC): Define.
2821         (primes): New array.
2822         (aux_hash_size, aux_hash): New variables.
2823         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
2824         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
2825         load_aux_cache, save_aux_cache): New functions.
2826         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
2827         (init_aux_cache, search_aux_cache, add_to_aux_cache,
2828         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
2829         (process_file): Adjust prototype.
2831 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
2833         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
2834         with __need_size_t.
2836 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
2838         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
2839         r_found_version structure as second parameter.
2840         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
2841         (_dl_vdso_vsym): Change type of second parameter accordingly.
2842         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
2843         (_libc_vdso_platform_setup): Adjust.
2844         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
2845         (_libc_vdso_platform_setup): Likewise.
2847         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
2848         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
2849         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
2850         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
2851         * csu/libc-start.c: Pretty printing.
2852         Use VDSO_SETUP if defined.
2853         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
2854         and let generic code call into _libc_vdso_platform_setup.
2855         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
2856         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
2857         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
2858         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
2859         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
2860         for GLIBC_PRIVATE.
2861         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
2862         (sysdep_rountines): Add dl-vdso.
2864         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
2865         of routines.
2867         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
2868         attribute_hidden to __vdso_gettimeofday prototype.
2870 2007-08-12  Roland McGrath  <roland@redhat.com>
2872         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
2873         From: Karl Berry <karl@freefriends.org>.
2875 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
2877         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
2878         an atime update for the files we read.
2880 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
2882         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
2884         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
2885         instead of mkstemp.
2887         * misc/Makefile (routines): Add mkostemp and mkostemp64.
2888         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
2889         * misc/mkostemp.c: New file.
2890         * misc/mkostemp64.c: New file.
2891         * stdlib/stdlib.h: Declare the new functions.
2892         * sysdeps/posix/tempname.c: Add new parameter which is added to
2893         the flags for open.  Remove __GT_BIGFILE handling.
2894         * stdio-common/tempname.c: Likewise.
2895         * include/stdio.h: Adjust __gen_tempname prototype.
2896         Renumber __GT_* constants.
2897         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
2898         * misc/mkdtemp.c: Likewise.
2899         * misc/mkstemp.c: Likewise.
2900         * misc/mkstemp64.c: Likewise.
2901         * misc/mktemp.c: Likewise.
2902         * stdio-common/tempnam.c: Likewise.
2903         * stdio-common/tmpfile.c: Likewise.
2904         * stdio-common/tmpfile64.c: Likewise.
2905         * stdio-common/tmpnam.c: Likewise.
2906         * stdio-common/tmpnam_r.c: Likewise.
2908 2007-08-10  Roland McGrath  <roland@frob.com>
2910         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
2911         New macros.
2912         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
2913         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2915 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
2917         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
2918         possible.
2919         * nss/nss_files/files-alias.c (internal_setent): Likewise.
2920         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
2921         * nss/nss_files/files-have_o_cloexec.c: New file.
2923         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
2924         available.
2926 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
2928         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
2929         ___new_wcstold_l): New weak aliases.
2930         (strtold_l, wcstold_l): Use them as second argument for
2931         long_double_symbol.
2933 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
2935         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
2936         register in test for error.
2938         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
2939         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
2941         * po/sv.po: Update from translation team.
2943 2007-08-06  Roland McGrath  <roland@redhat.com>
2945         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
2946         Remove __strto*_l inlines.
2947         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
2948         * stdlib/strtod.c: Add libc_hidden_def.
2949         * stdlib/strtod_l.c: Likewise.
2950         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
2951         for __new_strtold and __new_wcstold.
2952         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
2953         __STRTOF, STRTOF.
2954         * stdlib/strtol.c: Add libc_hidden_def.
2955         * stdlib/strtol_l.c: Likewise.
2956         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
2957         strtoq.
2959         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
2961         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
2962         * scripts/data/localplt-generic.data: ... here.
2963         * elf/Makefile (check-data): Get generic file if no other.
2964         ($(objpfx)check-localplt.out): Make target unconditional.
2966         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
2967         Use ElfW(Nhdr).
2969 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
2971         * po/zh_CN.po: Updated translation from translation team.
2973 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
2975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
2976         Don't use CGOTSETUP and CGOTRESTORE macros.
2978 2007-08-04  Roland McGrath  <roland@redhat.com>
2980         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
2982 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
2984         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
2985         __extension__ around the whole statement expression.
2987 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
2989         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
2990         elements during initialization.
2992         * po/pl.po: Updated translation from translation team.
2993         * po/tr.po: Likewise.
2994         * po/nl.po: Likewise.
2996 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
2998         * rt/aio.h: Add __nonnull attributes.
3000 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
3002         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
3003         * stdlib/Makefile (tests): Add tst-strtod5.
3004         (tst-strtod5-ENV): New.
3005         * stdlib/tst-strtod5.c: New file.
3007         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
3008         failed.
3009         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
3010         on failure.
3012         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
3013         allocated.
3015 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
3017         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
3018         numbers.
3020 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
3022         * io/Makefile (aux): Add have_o_cloexec.
3023         * include/fcntl.h: Declare __have_o_cloexec.
3024         * io/have_o_cloexec.c: New file.
3025         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
3026         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
3027         fcntl call if not necessary.
3028         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
3029         of local variable.
3031         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
3032         Avoid memset, add explicit initialization.
3033         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
3034         to the end and change into zero-sized array.
3035         Move lock member to fill a hole on 64-bit platforms.
3037         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
3038         inline functions.
3039         * include/stdlib.h: Add __strto*_internal prototypes here.
3040         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
3041         inline functions.
3042         * include/wchar.h: Add __wcsto*_internal prototypes.
3043         * sysdeps/generic/inttypes.h: No need to protect the declaration
3044         of the __strto*_internal and __wcsto*_internal members here.
3046         * rt/mqueue.h: Change const to __const and add nonnull attributes.
3048 2007-08-02  Roland McGrath  <roland@redhat.com>
3050         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
3051         $(inst_bindir)/getconf if possible.
3053         * posix/Makefile ($(objpfx)getconf.speclist): New target.
3054         (generated): Add it.
3055         ($(inst_libexecdir)/getconf): Use it.
3057 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
3059         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
3060         /proc is faster and sufficient.  /sys is still needed for
3061         __get_nprocs_conf.
3063 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
3065         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
3066         syscall as __fallocate64.
3067         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
3068         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
3070 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
3072         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
3073         value.
3075         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
3076         if off_t is different rank from size_t.
3078         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
3079         uw_frame_state_for): Avoid type punning warnings.
3080         * sysdeps/generic/unwind-dw2-fde-glibc.c
3081         (_Unwind_IteratePhdrCallback): Likewise.
3082         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
3083         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
3084         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
3085         pointers.
3087 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
3089         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
3090         total processors using sysfs.
3091         (__get_nprocs): Use sysfs to determine which processors are online.
3093 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
3095         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
3096         syscall arguments count.
3098         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
3100 2007-07-30  Roland McGrath  <roland@redhat.com>
3102         * manual/libc.texinfo: Update copyrights, formatting magic, and
3103         @dircategory.  From Karl Berry <karl@freefriends.org>.
3105 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
3107         [BZ #4860]
3108         * io/Makefile (headers): Add bits/fcntl2.h.
3110         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
3111         using gcc builtin.
3112         (__CPU_EQUAL_S): Likewise.
3114         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
3115         (tests): Add tst-cpuset.
3116         * posix/sched_cpualloc.c: New file.
3117         * posix/sched_cpufree.c: New file.
3118         * posix/tst-cpuset.c: New file.
3119         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
3120         GLIBC_2.7.
3121         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
3122         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
3123         macros.  Define CPU_*_S macros.
3125 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
3127         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
3128         entry.
3130         [BZ #4858]
3131         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
3132         #.0g and value rounded to 1.0.
3133         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
3135 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
3137         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
3138         for int_frac_digits and frac_digits.
3140         * login/logout.c (logout): Avoid aliasing violation.
3141         * login/logwtmp.c (logwtmp): Likewise.
3143         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
3145         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
3146         to avoid warning.
3147         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
3148         warning.
3149         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
3150         warning.
3151         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
3152         to avoid warnings.
3154         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
3155         void **.
3156         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
3158         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
3159         char * to avoid warning.
3160         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
3162         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
3164         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
3165         allocate_arrays): Cast second argument to charmap_find_symbol
3166         to char * to avoid warnings.
3168         * locale/programs/repertoire.c (repertoire_new_char): Change
3169         from_nr, to_nr and cnt to unsigned long, adjust printf format
3170         string.
3172         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
3173         Cast second argument to new_element to char * to avoid warnings.
3175         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
3177         * intl/gettextP.h (struct loaded_domain): Change plural to const
3178         struct expression *.
3179         * intl/plural-eval.c (plural_eval): Change first argument to
3180         const struct expression *.
3181         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
3182         argument to const struct expression **.
3183         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
3184         prototypes.
3185         * intl/loadmsgcat (_nl_unload_domain): Cast away const
3186         in call to __gettext_free_exp.
3188         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
3189         unitialized wstring/wpattern var warnings.
3191         * posix/runtests.c (struct a_test): Make data field const char *.
3193         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
3194         vars if not LDBL_MANT_DIG >= 106.
3196         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
3198         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
3199         __find_specmb to avoid warning.
3201         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
3203         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
3204         to avoid warnings.
3206         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
3207         initializer.
3209         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
3210         tv var when it will be actually used.
3212         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
3213         to avoid warnings.
3215         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
3216         char array resp. pointer.
3217         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
3218         char array.
3219         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
3220         to const unsigned char **.
3221         (ucs4_to_cns11643): Change second argument to unsigned char *.
3222         * iconvdata/euc-tw.c (BODY): Change endp type to
3223         const unsigned char *.
3224         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
3225         to unsigned char *.
3226         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
3227         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
3228         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
3229         types to unsigned char pointers/arrays instead of char.
3230         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
3231         to unsigned char *.
3232         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
3233         * iconvdata/jis0212.h: Include assert.h.
3234         (ucs4_to_jisx0212): Change second argument to unsigned char *.
3235         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
3236         of trying to handle that.
3237         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
3238         shut up a warning.
3239         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
3240         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
3241         two dimensional const unsigned char arrays.
3242         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
3243         Initialize endp to inptr to shut up a warning.
3245 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
3247         [BZ #4772]
3248         * time/strptime_l.c (__strptime_internal): Silently ignore
3249         strftime modifiers and field width in recursive calls.
3251         * include/time.h (enum ptime_locale_status): Remove.
3252         (__strptime_internal): Remove decided and era_cnt arguments,
3253         add statep argument.
3254         * time/strptime_l.c (__strptime_internal): Remove decided
3255         and era_cnt arguments, add statep argument.  Don't recompute
3256         any fields in recursive calls, only update caller's tm
3257         and state, if recursive call fails, don't change tm nor
3258         any state.
3259         (get_alt_number): Adjust.
3260         (recursive): Adjust caller.
3261         (strptime): Likewise.
3262         * time/strptime.c (strptime): Likewise.
3264 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
3266         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
3267         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
3268         if from and to charsets are the same.
3269         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
3270         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
3271         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
3273 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
3275         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
3276         Don't define wint_t when __need_mbstate_t unless it
3277         is necessary.
3278         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
3279         in the typedef if possible.
3280         * wctype/wctype.h (wint_t): Define by including
3281         wchar.h with __need_wint_t instead of including stddef.h
3282         with __need_wint_t and as fallback definining it ourselves.
3283         * iconv/gconv.h (__need_wint_t): Define before including
3284         wchar.h.
3285         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
3286         or _GLIBCPP_USE_WCHAR_T.
3287         (__need_wchar_t): Don't define
3288         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3289         (__need_wint_t): Don't define before including stddef.h,
3290         define before including wchar.h only if _LIBC or
3291         _GLIBCPP_USE_WCHAR_T.
3292         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3293         * sysdeps/mach/hurd/_G_config.h: Likewise.
3294         * sysdeps/generic/_G_config.h: Likewise.
3295         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
3296         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
3297         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
3298         if _LIBC or _GLIBCPP_USE_WCHAR_T.
3300 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
3302         * sysdeps/posix/posix_fallocate64.c: Undefine
3303         __posix_fallocate64_l64 before alias handling.
3304         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
3305         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
3306         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
3307         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
3309         * io/tst-posix_fallocate.c: Include <fcntl.h>.
3311 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
3313         * locale/programs/ld-collate.c (atwc): New variable.
3314         (add_to_tablewc): New toplevel function, moved from collate_output.
3315         (collate_output): Remove add_to_tablewc nested function.
3317         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
3318         (name_insert): New function.
3319         (write_output): Remove hash_table and hash_size vars and name_insert
3320         nested function.
3322 2007-07-24  Roland McGrath  <roland@redhat.com>
3324         * Makerules (install-others-programs-nosubdir): New target.
3325         (install-no-libc.a-nosubdir): Depend on it.
3327         * iconv/Makefile (install-others-programs): Set this instead of
3328         install-others.
3329         * login/Makefile (install-others-programs): Likewise.
3330         * posix/Makefile (install-others-programs): Likewise.
3332         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
3333         dependencies.
3335 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
3337         * io/Makefile (tests): Add tst-posix_fallocate.
3338         * io/tst-posix_fallocate.c: New file.
3340         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3341         __ASSUME_FALLOCATE.
3343 2007-07-22  Roland McGrath  <roland@frob.com>
3345         * hurd/getdport.c: Add missing copyright year update.
3347         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
3348         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
3350 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
3352         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
3354         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
3355         O_CLOEXEC is needed.
3356         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
3357         Avoid additional fcntl to set O_CLOEXEC if not needed.
3358         * nis/nss_compat/compat-initgroups.c: Likewise.
3359         * nis/nss_compat/compat-pwd.c: Likewise.
3360         * nis/nss_compat/compat-spwd.c: Likewise.
3362 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3364         [BZ #3665]
3365         * manual/errno.texi: Change ECANCELED value to 119.
3367         [BZ #4610]
3368         * mach/lock-intern.h: Include <sys/cdefs.h>.
3370         [BZ #4178]
3371         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
3372         reading A.
3374         [BZ #4126]
3375         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
3376         to __sigsuspend.
3378         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
3380 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
3382         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
3383         `__ASSEMBLER__'.
3384         * sysdeps/mach/hurd/i386/tls.h: Likewise.
3386 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
3388         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
3389         descriptor received from nscd.
3391         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
3393         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
3394         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3395         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3396         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3397         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3400 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
3402         [BZ #4816]
3403         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
3405         [BZ #4813]
3406         * login/forkpty.c (forkpty): Close master and slave fds on
3407         fork failure.  Patch by
3408         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
3410 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
3412         * include/features.h (__USE_ISOC95): New define.
3413         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
3414         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
3415         for -std=iso9899:199409.
3416         * CONFORMANCE: Remove comments about unsupported AMD1.
3418 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
3420         * sysdeps/ia64/sched_cpucount.c: New file.
3421         * sysdeps/powerpc/sched_cpucount.c: New file.
3423         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
3424         __BEGIN_DECLS/__END_DECLS around the prototype.
3425         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
3426         pointer to const cpu_set_t.
3428         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
3429         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
3430         __need_size_t and include stddef.h.
3431         * sysvipc/sys/msg.h: Likewise.
3432         * posix/sched.h: Likewise.
3433         * hurd/hurd/signal.h (__need_size_t): Define.
3435         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
3436         neither does signal.h in pedantic ISO C namespaces.  stdio.h
3437         no longer defines wint_t or wchar_t.
3439         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
3440         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
3441         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
3442         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
3443         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
3444         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
3445         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
3446         * debug/printf_chk.c (__printf_chk): Likewise.
3447         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
3448         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
3450         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3451         Define.
3453         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
3454         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
3456 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
3458         [BZ #4792]
3459         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
3460         * malloc/malloc.h (realloc): Likewise.
3462         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
3463         if one of proc_file_chain streams has that fileno.
3464         * stdio-common/Makefile (tests): Add tst-popen2.
3465         * stdio-common/tst-popen2.c: New test.
3467 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
3469         * elf/ldconfig.c: Allow GPLv2 or any later version.
3470         * elf/readlib.c: Likewise.
3471         * elf/chroot_canon.c: Likewise.
3472         * elf/cache.c: Likewise.
3473         * nscd/mem.c: Likewise.
3474         * nscd/getpwuid_r.c: Likewise.
3475         * nscd/grpcache.c: Likewise.
3476         * nscd/aicache.c: Likewise.
3477         * nscd/getsrvbynm_r.c: Likewise.
3478         * nscd/nscd.c: Likewise.
3479         * nscd/servicescache.c: Likewise.
3480         * nscd/getsrvbypt_r.c: Likewise.
3481         * nscd/initgrcache.c: Likewise.
3482         * nscd/gethstbyad_r.c: Likewise.
3483         * nscd/gethstbynm2_r.c: Likewise.
3484         * nscd/getgrnam_r.c: Likewise.
3485         * nscd/nscd_setup_thread.c: Likewise.
3486         * nscd/getpwnam_r.c: Likewise.
3487         * nscd/gai.c: Likewise.
3488         * nscd/connections.c: Likewise.
3489         * nscd/dbg_log.c: Likewise.
3490         * nscd/cache.c: Likewise.
3491         * nscd/hstcache.c: Likewise.
3492         * nscd/nscd_conf.c: Likewise.
3493         * nscd/getgrgid_r.c: Likewise.
3494         * nscd/pwdcache.c: Likewise.
3495         * catgets/gencat.c: Likewise.
3496         * locale/programs/linereader.h: Likewise.
3497         * locale/programs/locarchive.c: Likewise.
3498         * locale/programs/ld-paper.c: Likewise.
3499         * locale/programs/locfile-kw.h: Likewise.
3500         * locale/programs/ld-address.c: Likewise.
3501         * locale/programs/xmalloc.c: Likewise.
3502         * locale/programs/ld-time.c: Likewise.
3503         * locale/programs/localedef.c: Likewise.
3504         * locale/programs/simple-hash.c: Likewise.
3505         * locale/programs/xstrdup.c: Likewise.
3506         * locale/programs/ld-numeric.c: Likewise.
3507         * locale/programs/locfile-kw.gperf: Likewise.
3508         * locale/programs/ld-collate.c: Likewise.
3509         * locale/programs/charmap-kw.gperf: Likewise.
3510         * locale/programs/charmap.h: Likewise.
3511         * locale/programs/charmap-kw.h: Likewise.
3512         * locale/programs/config.h: Likewise.
3513         * locale/programs/locfile.c: Likewise.
3514         * locale/programs/ld-ctype.c: Likewise.
3515         * locale/programs/charmap.c: Likewise.
3516         * locale/programs/ld-messages.c: Likewise.
3517         * locale/programs/repertoire.h: Likewise.
3518         * locale/programs/locale.c: Likewise.
3519         * locale/programs/ld-name.c: Likewise.
3520         * locale/programs/linereader.c: Likewise.
3521         * locale/programs/locfile.h: Likewise.
3522         * locale/programs/3level.h: Likewise.
3523         * locale/programs/ld-monetary.c: Likewise.
3524         * locale/programs/ld-measurement.c: Likewise.
3525         * locale/programs/charmap-dir.c: Likewise.
3526         * locale/programs/ld-identification.c: Likewise.
3527         * locale/programs/localedef.h: Likewise.
3528         * locale/programs/charmap-dir.h: Likewise.
3529         * locale/programs/repertoire.c: Likewise.
3530         * locale/programs/simple-hash.h: Likewise.
3531         * locale/programs/ld-telephone.c: Likewise.
3532         * locale/programs/locale-spec.c: Likewise.
3533         * locale/programs/locfile-token.h: Likewise.
3534         * posix/getconf.c: Likewise.
3535         * iconv/dummy-repertoire.c: Likewise.
3536         * iconv/iconv_charmap.c: Likewise.
3537         * iconv/iconvconfig.c: Likewise.
3538         * iconv/iconv_prog.c: Likewise.
3539         * malloc/memusagestat.c: Likewise.
3540         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
3542 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3544         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
3545         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
3546         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
3547         check for the first argument.
3549 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
3551         [BZ #4775]
3552         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
3553         (__tgmath_real_type): Fix if expr is const int or other const
3554         qualified integral type.
3555         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
3556         expressions and handle const qualified arguments.
3557         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
3558         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3559         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
3560         statement expressions.
3561         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
3562         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
3563         (__TGMATH_UNARY_IMAG): Define.
3564         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
3565         * math/Makefile (tests): Add test-tgmath2.
3566         (CFLAGS-test-tgmath2.c): Add.
3567         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
3568         count_cfloat, count_cldouble): New variables.
3569         (NCCALLS): Define.
3570         (main): Check number of complex calls as well.
3571         (F(compile_test)): Add complex tests and tests with const qualified
3572         arguments.
3573         (y, z, ccount): Define.
3574         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
3575         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
3576         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
3577         F(cproj)): New functions.
3578         * math/test-tgmath2.c: New test.
3580 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
3582         [BZ #4776]
3583         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
3584         RPATH etc. as "/" rather than "", don't segfault on empty paths,
3585         instead output ".".
3586         * dlfcn/Makefile (distribute): Add glreflib3.c.
3587         (module-names): Add glreflib3.
3588         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
3589         glreflib1.so.
3590         (LDFLAGS_glreflib3.so): New.
3591         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
3592         glreflib1.so.
3593         * dlfcn/glreflib3.c: New file.
3595         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
3596         returned -1, return NULL.
3597         * intl/explodename.c (_nl_explode_name): Return -1 if
3598         _nl_normalize_codeset failed.
3600 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
3602         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
3603         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
3604         and avoid branch misspredicts for > 31 bytes memset case.
3605         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3606         Remove toc ref to __cache_line_size.
3608         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
3609         to get ISA-V2.0 branch hints.
3610         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
3611         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
3612         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3613         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3614         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3615         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3616         Remove toc ref to __cache_line_size.
3618         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
3619         Include math_ldbl_opt.h.
3621 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
3623         [BZ #4773]
3624         * time/strptime_l.c (__strptime_internal): Implement greedy
3625         matching of weekday and month names.
3627 2007-07-09  Roland McGrath  <roland@redhat.com>
3629         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
3630         (ELF_NOTE_ABI): Use it.
3631         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
3633 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
3635         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
3636         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3638 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
3640         [BZ #4745]
3641         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
3642         in loop to look for conversion specifier to avoid testing of
3643         wrong errno value.
3644         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
3645         * stdio-common/bug18.c: New file.
3646         * stdio-common/bug18a.c: New file.
3647         * stdio-common/bug19.c: New file.
3648         * stdio-common/bug19a.c: New file.
3650 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
3652         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
3653         running awk script.
3655 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
3657         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
3658         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
3659         Return NULL if mmap failed instead of asserting it does not.
3660         (calloc): Check for integer overflow.
3662         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
3663         than LONG_MAX / 10.
3665 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
3667         [BZ #4702]
3668         * nis/nss-default.c: Include errno.h.
3669         (init): Preserve errno.
3671 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
3673         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
3675 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
3677         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
3679 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3681         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
3683 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3685         * sysdeps/s390/dl-procinfo.c: New file.
3686         * sysdeps/s390/dl-procinfo.h: New file.
3687         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
3689 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
3691         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
3692         in PT_NOTE segments with multiple notes.
3693         * elf/readelflib.c (process_elf_file): Likewise.
3695 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
3697         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
3698         ISO C compliant.
3700 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
3702         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
3704 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
3706         * include/link.h: Don't include rtld-lowlevel.h.
3707         (struct link_map): Remove l_scope_lock.
3708         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
3709         (_dl_scope_free_list): New field (variable) in _rtld_global.
3710         (DL_LOOKUP_SCOPE_LOCK): Remove.
3711         (_dl_scope_free): New prototype.
3712         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
3713         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
3714         (_dl_profile_fixup): Likewise.
3715         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
3716         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
3717         THREAD_GSCOPE_RESET_FLAG around it.
3718         * elf/dl-close.c (_dl_close_worker): Don't use
3719         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
3720         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
3721         scopes were queued or if l_scope_mem has been abandoned.
3722         * elf/dl-open.c (_dl_scope_free): New function.
3723         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
3724         * elf/dl-support.c (_dl_scope_free_list): New variable.
3725         * elf/dl-lookup.c (add_dependency): Remove flags argument.
3726         Remove DL_LOOKUP_SCOPE_LOCK handling.
3727         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
3728         handling.
3729         * elf/dl-object.c (_dl_new_object): Don't use
3730         __rtld_mrlock_initialize.
3732 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
3734         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
3735         to fill in holes
3736         (rtld_global_ro): Likewise.
3738 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
3740         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
3741         Move PT_LOAD checking to...
3742         (_dl_addr_inside_object): ... here, new function.
3743         * elf/dl-sym.c (do_sym): If not l_contiguous,
3744         call _dl_addr_inside_object.
3745         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3746         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
3747         * elf/dl-open.c (dl_open_worker): Likewise.
3748         (_dl_addr_inside_object): New function if IS_IN_rtld.
3749         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
3750         holes are present or are PROT_NONE protected.
3751         * include/link.h (struct link_map): Add l_contiguous field.
3752         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
3754 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
3755             Tomas Janousek  <tjanouse@redhat.com>
3756             Ulrich Drepper  <drepper@redhat.com>
3758         [BZ #4647]
3759         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
3760         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
3761         socket.
3762         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
3763         unused member a bitmap.
3764         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
3765         servers are configured.
3767 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
3769         * elf/rtld.c (dl_main): Don't call init_tls more than once.
3771 2007-06-17  Andreas Schwab  <schwab@suse.de>
3773         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
3775 2007-06-16  Andreas Jaeger  <aj@suse.de>
3777         [BZ #4125]
3778         * sysdeps/unix/sysv/linux/sys/ptrace.h
3779         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
3780         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
3781         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
3782         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
3783         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
3784         Define.
3785         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3786         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3787         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3788         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3790 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
3792         [BZ #4599]
3793         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
3794         determining whether there are IPv4/IPv6 addresses, ignore loopback
3795         addresses.
3797 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
3799         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
3800         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
3801         as the return type.  Change type of "r" variable to CMPtype.
3802         * soft-fp/eqsf2.c (__eqsf2): Likewise.
3803         * soft-fp/eqtf2.c (__eqtf2): Likewise.
3804         * soft-fp/gedf2.c (__gedf2): Likewise.
3805         * soft-fp/gesf2.c (__gesf2): Likewise.
3806         * soft-fp/getf2.c (__getf2): Likewise.
3807         * soft-fp/ledf2.c (__ledf2): Likewise.
3808         * soft-fp/lesf2.c (__lesf2): Likewise.
3809         * soft-fp/letf2.c (__letf2): Likewise.
3810         * soft-fp/unorddf2 (__unorddf2): Likewise.
3811         * soft-fp/unordsf2 (__unordsf2): Likewise.
3812         * soft-fp/unordtf2 (__unordtf2): Likewise.
3814 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
3816         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
3817         make sure gcc doesn't mess around with this.
3819 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
3821         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
3823 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
3825         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
3826         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
3827         at most once per _dl_close_worker.
3829 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
3831         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
3832         __sched_cpucount as const.
3833         * posix/sched_cpucount.c: Adjust.
3835         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
3836         instruction for counting bits.
3837         * sysdeps/x86_64/sched_cpucount.c: New file.
3839 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
3841         * configure.in: Avoid variable named BASH.
3842         * config.make.in: Likewise.
3843         Patch in part by Mike Frysinger.
3845 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
3847         [BZ #4586]
3848         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
3849         pseudo-zeros as zero.
3850         * sysdeps/x86_64/ldbl2mpn.c: New file.
3851         * sysdeps/ia64/ldbl2mpn.c: New file.
3853 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
3855         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
3856         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
3857         Remove unreachable code at the end.
3859 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
3861         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
3862         ldbl-128ibm in comment.
3863         (fpclassifyl): Correct classification of denormals.
3864         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
3865         return value for MIN denormal. Rewrite using long double math too
3866         correctly handle denormals and canonicalize the results.
3868 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
3870         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
3871         (__mpn_construct_long_double): Fix conversion where result ought
3872         to be smaller than __LDBL_MIN__, or the low double should be
3873         denormal.  Fix decision where to negate low double - honor round
3874         to even rules.
3875         * stdio-common/tst-sprintf2.c: Include string.h.
3876         (COMPARE_LDBL): Define.
3877         (TEST): Also test whether a string hexadecimal float representation
3878         can be parsed back to the number.
3879         (main): Add a couple of further tests.
3881 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
3883         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
3884         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
3885         is non-zero, but smaller than 2 * __DBL_MIN__.
3886         * stdio-common/tst-sprintf2.c: New test.
3887         * stdio-common/Makefile (tests): Add tst-sprintf2.
3889         * math/test-misc.c (main): Don't run last batch of tests with
3890         IBM long double format.
3892 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
3894         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
3895         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
3896         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
3897         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
3898         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3899         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
3900         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
3901         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
3902         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
3903         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
3905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
3906         New file.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
3908         New file.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
3910         New file.
3911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
3912         New file.
3913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
3914         New file.
3915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
3916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
3917         New file.
3918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
3919         New file.
3920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
3921         New file.
3922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
3923         New file.
3924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
3925         New file.
3927 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
3929         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
3930         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
3931         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
3932         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
3933         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
3934         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
3935         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
3936         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
3938 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
3940         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
3941         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3942         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
3943         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3944         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
3945         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3946         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
3947         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3949 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
3951         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
3952         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
3953         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
3954         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
3956 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
3958         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
3959         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
3961 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
3963         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
3964         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
3965         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
3966         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
3968 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
3970         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
3971         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
3973 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
3975         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
3976         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
3978         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
3979         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
3980         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
3981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3983 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
3985         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
3986         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
3987         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
3988         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
3990 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
3992         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
3993         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
3994         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
3995         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3996         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
3997         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3999 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
4001         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
4002         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
4003         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
4004         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
4006 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
4008         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
4009         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
4010         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
4011         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
4012         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
4013         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
4014         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
4015         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
4016         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
4017         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
4018         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
4019         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
4020         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
4021         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
4022         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
4023         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
4025 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
4027         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
4028         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
4030 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
4032         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
4033         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
4035 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
4037         * sysdeps/powerpc/powerpc32/970/Implies: New file.
4038         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
4039         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
4040         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
4041         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
4042         * sysdeps/powerpc/powerpc64/970/Implies: New file.
4043         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
4044         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
4045         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
4046         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
4048 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
4050         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
4052 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
4054         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
4055         branch miss-predicts. Ensure that cache line crossing does not impact
4056         dispatch grouping.
4058 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
4060         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
4061         "../../powerpc32/power4/memcopy.h".
4062         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
4063         "../../powerpc32/power4/wordcopy.c".
4065 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
4067         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
4068         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
4069         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
4070         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
4071         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
4072         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
4074 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
4076         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
4078 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
4080         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
4081         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
4082         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
4083         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
4084         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
4085         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
4086         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
4087         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
4089 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
4091         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
4093 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
4095         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
4096         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
4097         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
4098         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
4099         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
4100         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
4101         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
4103 2007-05-29  Roland McGrath  <roland@redhat.com>
4105         * po/Makefile (po-sed-cmd): New variable.
4106         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
4108 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
4110         * crypt/md5-crypt.c: Fix comment.
4112         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
4113         of crashing.  When this is the case or if the reply is malformed,
4114         don't try to close the new file descriptor since it does not
4115         exist.
4116         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
4118 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
4120         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
4121         if __NR_utimensat is not defined.
4123 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
4125         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
4127 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
4129         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
4130         (open): Fix comment typos.  Don't call __open_2 if flags
4131         is a compile time constant without O_CREAT.
4132         (__open64_2): Add nonnull attribute.
4133         (open64): Fix comment typos.  Don't call __open64_2 if flags
4134         is a compile time constant without O_CREAT.
4135         (__openat_2): Add nonnull attribute, fix nonnull attribute
4136         on redirect.
4137         (openat): Fix comment typos.  Don't call __openat_2 if flags
4138         is a compile time constant without O_CREAT.
4139         (__openat64_2): Add nonnull attribute, fix nonnull attribute
4140         on redirect.
4141         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
4142         is a compile time constant without O_CREAT.
4144 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
4146         * Makerules (sysd-rules): Define PTW for ptw-* files.
4147         * Versions: Define GLIBC_2.7 for libc.
4148         * include/stdio.h: Declare __fortify_fail.
4149         * debug/fortify_fail.c: New file.
4150         * debug/Makefile (routines): Add fortify_fail.
4151         * debug/chk_fail.c: Use __fortify_fail.
4152         * debug/stack_chk_fail.c: Likewise.
4153         * io/Versions: Export __open_2, __open64_2, __openat_2, and
4154         __openat64_2 for GLIBC_2.7.
4155         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
4156         * io/open.c: Define *_2 variant of function which checks for O_CREAT
4157         and fails if necessary.
4158         * io/open64.c: Likewise.
4159         * io/openat.c: Likewise.
4160         * io/openat64.c: Likewise.
4161         * sysdeps/unix/sysv/linux/open64.c: Likewise.
4162         * sysdeps/unix/sysv/linux/openat.c: Likewise.
4163         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
4164         * io/bits/fcntl2.h: New file.
4165         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
4166         __openat64_2.
4167         * include/bits/fcntl2.h: New file.
4168         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4169         Add open_2.
4170         * sysdeps/unix/sysv/linux/open_2.c: New file.
4172 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
4174         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
4175         as second parameter to handle_intel.
4177         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
4178         the entry.
4180         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
4181         handling to ...
4182         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
4183         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4184         cacheinfo.
4185         * sysdeps/x86_64/memcpy.S: Complete rewrite.
4186         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
4187         Patch by Evandro Menezes <evandro.menezes@amd.com>.
4189         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
4191 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
4193         [BZ #4525]
4194         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
4195         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
4196         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
4198         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
4200         [BZ #4514]
4201         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
4202         reinitialize workend at the start of each do_positional format spec
4203         loop, free workstart before do_positional loops.
4204         (printf_unknown): Fix size of work_buffer.
4205         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
4207         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
4208         (public_sET_STATe): If ms->version < 3, put all chunks into
4209         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
4210         chunks.
4212         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
4213         * malloc/hooks.c: Likewise.
4214         * malloc/arena.c: Likewise.
4215         * malloc/malloc.c (do_check_malloc_state): Don't assert
4216         n_mmaps is not greater than n_mmaps_max.  This removes the need
4217         for the previous change.
4219         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
4220         2007-05-07 commit.
4222 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
4224         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
4225         Define for kernel >= 2.6.22.
4227 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
4229         * elf/dl-close.c (_dl_close_worker): When removing object from
4230         global scope, wait for all lookups to finish afterwards.
4231         * elf/dl-open.c (add_to_global): When global scope array must
4232         grow, allocate a new one and free old array only after all
4233         lookups finish.
4234         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
4235         (_dl_lookup_symbol_x): Likewise.
4236         * elf/dl-support.c: Define _dl_wait_lookup_done.
4237         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4238         _dl_wait_lookup_done.
4240         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
4241         not overlapping with arena.
4243         * malloc/mcheck.c (reallochook): If size==0, free the block.
4245         * rt/tst-shm.c: Use fstat64 instead of fstat.
4247         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
4248         __NR_sync_file_range is not defined.
4250 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
4252         Dummy files to prevent stub versions from being used.
4253         * sysdeps/x86_64/fpu/k_cosl.c: New file.
4254         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
4255         * sysdeps/x86_64/fpu/k_sinl.c: New file.
4256         * sysdeps/x86_64/fpu/k_tanl.c: New file.
4258         * version.h (VERSION): Set to 2.6.90.
4260 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
4262         * version.h (VERSION): Define to 2.6.
4263         * include/features.h (__GLIBC_MINOR__): Define to 6.
4265         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
4267         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
4268         sizes.
4270 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
4272         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
4273         number of mmaps.  n_mmaps_max is the target.
4274         * malloc/hooks.c: Likewise.
4275         * malloc/arena.c: Likewise.
4277 2007-05-12  Andreas Jaeger  <aj@suse.de>
4279         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
4280         getpid.
4282 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
4284         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
4285         adding new variables.
4287         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
4288         optimize.  Completely extend global scope array before making the
4289         new entries visible.
4291 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
4293         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
4294         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
4295         tst-getcpu.
4297         * include/link.h: Move l_version and l_nversion members around to
4298         fill gaps.
4300         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
4302         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4303         (__sched_setaffinity_new): If syscall was successful and
4304         RESET_VGETCPU_CACHE is defined, use it before returning.
4305         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
4307         * io/sys/stat.h: Make sure struct timespec is defined for
4308         __USE_ATFILE.
4310         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
4311         UTIME_OMIT.
4312         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4313         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4314         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
4315         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4316         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
4317         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4318         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
4319         * io/sys/stat.h: Declare utimensat, futimens.
4320         * io/utimensat.c: New file.
4321         * io/futimens.c: New file.
4322         * sysdeps/unix/sysv/linux/utimensat.c: New file.
4323         * sysdeps/unix/sysv/linux/futimens.c: New file.
4324         * io/Makefile (routines): Add utimensat, futimens.
4325         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
4326         * sysdeps/unix/sysv/linux/lutimes.c: New file.
4327         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
4328         available.
4330         * include/sys/cdefs.h: Redefine __nonnull so that test for
4331         incorrect parameters in the libc code itself are not omitted.
4333 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
4335         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
4336         exception in addition to inexact when asked to raise only FE_INEXACT.
4338         [BZ #3427]
4339         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
4340         in *envp.
4342 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
4344         [BZ #4403]
4345         * string/strfry.c (strfry): Make result more random.
4347 2007-05-07  Richard Henderson  <rth@redhat.com>
4349         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
4350         if __NO_LONG_DOUBLE_MATH.
4351         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
4352         available in the compiler, add .arch directive to the assembly.
4354 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
4356         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
4357         compat_symbol to GLIBC_2_1.
4358         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
4359         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
4360         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
4361         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
4362         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
4363         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
4364         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
4365         libc, not libm.
4366         (__isnanl): New compat_symbol.
4368 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
4369             Jakub Jelinek  <jakub@redhat.com>
4371         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
4372         (new_heap): Initialize mprotect_size.
4373         (grow_heap): When growing, only mprotect from mprotect_size till
4374         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
4375         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
4377 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
4378             Peter Bergner  <bergner@us.ibm.com>
4380         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
4381         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
4382         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
4383         * sysdeps/powerpc/fpu/fe_mask.c: New file.
4384         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
4385         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
4386         Call __fe_mask_env() if all FP exceptions disabled.
4387         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
4388         from old FPSCR to new fenv to propagate DFP rounding modes.
4389         Call __fe_mask_env() if FP exceptions previously enabled.
4390         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
4391         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
4392         transitioning from all exceptions disabled to any exception enabled
4393         or visa versa.
4394         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
4395         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
4396         when transitioning from all exceptions disabled to any exception
4397         enabled or visa versa.
4398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
4399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
4400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
4401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
4402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
4403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
4405 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
4407         [BZ #4465]
4408         * posix/unistd.h: Remove __THROW from fdatasync.
4410 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
4412         [BZ #4465]
4413         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
4415 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
4417         * stdio-common/vfprintf.c (process_string_arg): Optimize
4418         ridiculous precision in wide char code printing multi-byte string.
4419         Reported by Jim Meyering <jim@meyering.net>.
4421         [BZ #4131]
4422         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
4423         boundaries to work around systems with overlapping binary loading.
4424         Based on a patch by Suzuki <suzuki@in.ibm.com>.
4426 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
4428         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
4429         __mbsnrtowcs after last change.
4431         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
4432         (get_ident): Likewise.
4434 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
4436         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
4437         with setting the sticky bit.
4438         * math/test-misc.c (main): Add more truncation tests.
4440 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
4442         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
4443         double in the function declaration.
4444         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
4445         double in the function declaration.
4446         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4447         float in the function declaration.
4448         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4449         float in the function declaration.
4451         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
4452         denormal operands.  Do not generate FP_EX_DENORM exception.
4453         (FP_UNPACK_RAW_EP): Ditto.
4454         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
4455         undefined _FP_UNPACK_RAW_E.
4456         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
4457         undefined _FP_UNPACK_RAW_EP.
4458         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
4459         undefined _FP_PACK_RAW_E.
4460         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
4461         undefined _FP_PACK_RAW_EP.
4463         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
4464         _FP_FRAC_COPY_2.
4465         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
4466         _FP_FRAC_COPY_4.
4468 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
4469             Jakub Jelinek  <jakub@redhat.com>
4471         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
4472         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
4473         this case.
4474         * soft-fp/op-common.h (FP_TRUNC): Ditto.
4476 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
4478         * math/test-misc.c (main): Add tests for rounding long double
4479         values close to smallest double denormalized value to double.
4481 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
4483         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
4484         condition for truncating to 0.  Set sticky bit for such
4485         truncation.
4487 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
4489         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
4490         fixed length array for ignore.
4492 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
4494         [BZ #4438]
4495         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
4496         stack for large precisions.
4497         * stdio-common/test-vfprintf.c (main): Add test for large
4498         precision.
4500 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
4502         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
4503         for exponent 0.
4504         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
4506         [BZ #4439]
4507         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
4508         account in the size check.
4509         * resolv/tst-inet_ntop.c: New test.
4510         * resolv/Makefile (tests): Add tst-inet_ntop.
4512 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
4513             Jakub Jelinek  <jakub@redhat.com>
4515         [BZ #4349]
4516         * malloc/malloc.c: Keep separate list for first blocks on the bin
4517         lists with a given size.  This helps skipping over list elements
4518         we know won't fit in two places.
4519         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
4521 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
4523         [BZ #4102]
4524         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
4525         label to Teredo tunnel addresses 2001://32.
4527 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
4529         * locale/programs/ld-collate.c (collate_read): Allow order_start
4530         after copy.
4532         * locale/programs/ld-collate.c (collate_read): Fix printing of
4533         error message.
4535         [BZ #3213]
4536         * locale/C-translit.h.in: Add entry for U2044.
4538         [BZ #4342]
4539         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
4540         hexa-decimal floats without exponent.
4541         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
4543 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
4545         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
4546         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
4547         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
4548         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
4549         GLIBC_2.6.
4550         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
4551         Add sched_getcpu.
4553 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
4555         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
4556         of 0 after the out_fail label.
4558 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
4560         [BZ #4406]
4561         * iconv/gconv_charset.h (strip): Allow ':'.
4562         * iconv/iconv_open.c (iconv_open): Adjust comment.
4564 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
4566         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
4567         version.
4569 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
4571         [BZ #4381]
4572         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
4573         alignment of buffer and tmp_buffer.
4574         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
4575         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
4576         alignment of buffer.
4577         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
4578         bigger than INT_MAX.
4579         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
4580         h_errnop arguments.  Fail if buflen is too small.
4581         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
4583 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
4585         [BZ #4405]
4586         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
4587         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
4589 2007-04-22  Roland McGrath  <roland@redhat.com>
4591         * elf/elf.h (NT_PRXFPREG): New macro.
4593 2007-04-19  Andreas Jaeger  <aj@suse.de>
4595         [BZ #3905]
4596         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
4597         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
4598         Added.
4600 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
4602         * include/sys/mman.h: Mark madvise hidden.
4603         * misc/madvise.c: Add libc_hidden_def.
4605 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
4607         * nis/nis_domain_of.c (__nis_domain_of): New function.
4608         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
4609         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
4610         * nis/nis_call.c (rec_dirsearch): Likewise.
4611         (first_shoot): Likewise.  Remove search_parent_first argument.
4612         (struct nis_server_cache): Rename search_parent_first field
4613         to search_parent.
4614         (nis_server_cache_search, nis_server_cache_add): Rename
4615         search_parent_first argument to search_parent.
4616         (__nisfind_server): Likewise.  If search_parent, call
4617         __nis_domain_of.
4619 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
4621         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
4623 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
4625         [BZ #4368]
4626         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
4628 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
4630         [BZ #4364]
4631         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
4633 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
4635         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
4636         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
4637         current number of locales in SUPPORTED.
4638         (create_archive): Initialize serial.
4639         (enlarge_archive): Preserve aliases rather than duplicating
4640         their locrecs.
4642 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
4644         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
4645         after _IO_un_link, not before it.
4647         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
4648         special case handling when wcp == wstartp + 1.  Fix a comment typo.
4649         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
4651 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
4653         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
4654         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
4655         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
4656         Remove __THROW.
4657         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
4658         _IO_file_xsgetn_maybe_mmap): Likewise.
4659         * libio/oldfileops.c (old_do_write): Likewise.
4660         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
4661         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
4662         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
4663         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
4664         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
4665         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
4666         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
4667         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
4668         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
4669         _IO_file_underflow, _IO_file_underflow_mmap,
4670         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
4671         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
4672         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
4673         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
4674         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
4675         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
4676         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
4677         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
4678         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
4679         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
4680         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
4681         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
4682         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
4683         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
4684         _IO_adjust_column_internal, _IO_default_uflow_internal,
4685         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
4686         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
4687         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
4688         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
4689         _IO_file_close_it_internal, _IO_file_underflow_internal,
4690         _IO_file_overflow_internal, _IO_file_attach_internal,
4691         _IO_file_fopen_internal, _IO_file_sync_internal,
4692         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
4693         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
4694         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
4695         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
4696         _IO_seekpos_unlocked): Likewise.
4697         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
4698         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
4700 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
4702         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
4703         argument in xmalloc size computation.
4705 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
4707         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
4708         math_opt_barrier and math_force_eval macros.
4710 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
4712         [BZ #3306]
4713         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
4714         * sysdeps/i386/fpu/math_private.h: New file.
4715         * sysdeps/x86_64/fpu/math_private.h: New file.
4716         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
4717         math_force_eval macros.  Use "+m" constraint on asm rather than
4718         "=m" and "m".
4719         * math/s_nextafter.c (__nextafter): Likewise.
4720         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
4721         Likewise.
4722         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4723         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
4724         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4725         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
4726         math_opt_barrier and math_force_eval macros.
4727         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
4728         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
4729         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
4730         (__nexttoward): Use math_opt_barrier and
4731         math_force_eval macros.  Use "+m" constraint on asm rather than
4732         "=m" and "m".  Only use asm to force double result if
4733         FLT_EVAL_METHOD is 2.
4734         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
4735         (__nexttowardf): Use math_opt_barrier and
4736         math_force_eval macros.  Use "+m" constraint on asm rather than
4737         "=m" and "m".  Only use asm to force double result if
4738         FLT_EVAL_METHOD is not 0.
4739         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
4740         (__nexttowardf): Use math_opt_barrier and
4741         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
4742         x to float using asm.
4743         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
4744         (__nldbl_nexttowardf): Use math_opt_barrier and
4745         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
4746         x to float using asm.
4747         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
4748         (__nexttowardf): Use math_opt_barrier and math_force_eval
4749         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
4750         * math/bug-nextafter.c (zero, inf): New variables.
4751         (main): Add new tests.
4752         * math/bug-nexttoward.c (zero, inf): New variables.
4753         (main): Add new tests.
4755 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
4757         [BZ #3427]
4758         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
4759         exceptions both in SW and MXCSR.
4760         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
4761         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
4762         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4763         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4764         in MXCSR if SSE is available.
4765         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
4766         and ldsodefs.h.
4767         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
4768         Fix comment typo.
4769         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
4770         Return 0 rather than 1.
4771         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
4772         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
4773         * math/test-fenv.c (feholdexcept_tests): New function.
4774         (main): Call it.
4776 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
4778         [BZ #3427]
4779         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4780         in SW.
4782 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
4784         [BZ #4344]
4785         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
4786         Reported by David Anderson <davea42@earthlink.net>.
4788 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
4790         * posix/sys/wait.h: Remove unnecessary forward declaration.
4792 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
4794         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
4795         with obj->do_servers after first_shoot.
4797 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
4799         * posix/Makefile (routines): Add sched_cpucount.
4800         (tests): Add tst-cpucount.
4801         * posix/sched_cpucount.c: New file.
4802         * posix/tst-cpucount.c: New file.
4803         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
4804         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
4805         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4806         * posix/sched.h: Define CPU_COUNT.
4808 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
4810         * posix/fnmatch.c (STRUCT): Define.
4811         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
4812         * posix/fnmatch_loop.c (struct STRUCT): New type.
4813         (FCT): Add ends argument.  If ends != NULL and normal * is
4814         seen in the pattern, store current pattern and string pointers
4815         and return.  Adjust recursive calls.
4816         (EXT): Adjust FCT callers.
4817         (STRUCT): Undef at the end of the file.
4818         * posix/Makefile (tests): Add tst-fnmatch2.
4819         * posix/tst-fnmatch2.c: New test.
4821 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
4823         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
4824         and 1 on failure.
4826         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
4827         Change last argument to unsigned int.
4829 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
4831         * scripts/check-local-headers.sh: Filter out sys/capability.h.
4833 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
4835         * config.h.in (HAVE_LIBCAP): Add.
4836         * nscd/selinux.h: Include sys/capability.h rather than non-existent
4837         sys/capabilities.h.
4838         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
4839         free_caps.  Cast away const from 4th cap_set_flag argument.
4841 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
4843         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
4844         GLIBC_2.6.
4845         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4846         Add sync_file_range.
4847         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
4849 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
4851         * sysdeps/powerpc/bits/atomic.h
4852         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
4853         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
4854         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4855         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
4856         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4857         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
4858         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
4859         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4860         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4861         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4862         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
4863         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4864         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4865         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4866         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4867         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
4868         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4869         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
4870         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4871         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
4873 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
4875         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4876         (__cache_line_size): Define the variable here.  Add
4877         attribute_hidden, remove weak_extern.
4878         (__libc_start_main): Set __cache_line_size
4879         unconditionally.
4880         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4881         (__cache_line_size): Define the variable here.  Add
4882         attribute_hidden, remove weak_extern.
4883         (DL_PLATFORM_AUXV): Set __cache_line_size
4884         unconditionally.
4885         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
4886         weak_extern, add attribute_hidden.
4887         (__elf_machine_runtime_setup): Assume __cache_line_size is always
4888         defined in ld.so.
4889         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
4890         definition.
4891         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
4893 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
4895         [BZ #4276]
4896         * timezone/africa: Update from tzdata2007d.
4897         * timezone/asia: Likewise.
4898         * timezone/australasia: Likewise.
4899         * timezone/backward: Likewise.
4900         * timezone/europe: Likewise.
4901         * timezone/iso3166.tab: Likewise.
4902         * timezone/leapseconds: Likewise.
4903         * timezone/northamerica: Likewise.
4904         * timezone/southamerica: Likewise.
4905         * timezone/zone.tab: Likewise.
4907         * timezone/private.h: Update from tzcode2007d.
4908         * timezone/zdump.c: Likewise.
4909         * timezone/zic.c: Likewise.
4911 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
4913         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
4914         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
4915         variables.
4916         (nis_server_cache_search, nis_server_cache_add): New functions.
4917         (__nisfind_server): Use them.  Add dbp and flags argument, if
4918         call __nisbind_create.
4919         (__nisbind_create): Add server_used and current_ep arguments,
4920         only call __nis_findfastest if server_used is ~0.
4921         (__do_niscall2, __prepare_niscall): Adjust callers.
4922         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
4923         ckey_cache_euid, ckey_cache_lock): New variables.
4924         (get_ckey): New function.
4925         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
4926         __pmap_getnisport.  Save __pmap_getnisport result in
4927         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
4928         key.
4929         * nis/nis_lookup.c (nis_lookup): Likewise.
4930         * nis/nis_table.c (nis_list): Likewise.
4931         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
4932         prototypes.
4934         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
4935         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
4936         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
4937         _nss_nisplus_getservbyport_r): Likewise.
4938         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
4939         _nss_nisplus_getnetbyaddr_r): Likewise.
4940         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
4941         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
4942         _nss_nisplus_getntohost_r): Likewise.
4943         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
4944         _nss_nisplus_getrpcbynumber_r): Likewise.
4946 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
4948         * configure.in (libc_cv_gnu89_inline): Only do compile test.
4949         * configure: Rebuilt.
4951         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
4952         bit-fields.
4953         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4955 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
4957         [BZ #2831]
4958         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
4959         bit-fields.
4961 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
4963         * nscd/gai.c: Include alloca.h.
4964         (__libc_use_alloca): Define.
4966 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
4968         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
4969         smaller scopes.
4970         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
4971         (DL_DST_REQUIRED): Adjust user.
4973         * include/dlfcn.h (struct link_map): New forward decl.
4975         * inet/getnameinfo.c: Include stddef.h.
4976         (getnameinfo): Use offsetof.
4978         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
4980         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
4982         * string/strerror_l.c: Include stdlib.h.
4984         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
4985         * config.make.in (gnu89-inline-CFLAGS): New variable.
4986         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
4987         -std=gnu99.
4988         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
4989         * argp/argp.h: Use it.
4990         * bits/mathinline.h: Likewise.
4991         * bits/sigset.h: Likewise.
4992         * bits/string.h: Likewise.
4993         * ctype/ctype.h: Likewise.
4994         * hurd/hurd.h: Likewise.
4995         * hurd/hurd/fd.h: Likewise.
4996         * hurd/hurd/port.h: Likewise.
4997         * hurd/hurd/signal.h: Likewise.
4998         * hurd/hurd/threadvar.h: Likewise.
4999         * hurd/hurd/userlink.h: Likewise.
5000         * io/sys/stat.h: Likewise.
5001         * libio/bits/stdio.h: Likewise.
5002         * libio/bits/stdio2.h: Likewise.
5003         * mach/lock-intern.h: Likewise.
5004         * mach/mach/mig_support.h: Likewise.
5005         * math/bits/cmathcalls.h: Likewise.
5006         * posix/bits/unistd.h: Likewise.
5007         * socket/bits/socket2.h: Likewise.
5008         * stdlib/bits/stdlib.h: Likewise.
5009         * stdlib/stdlib.h: Likewise.
5010         * string/argz.h: Likewise.
5011         * string/bits/string2.h: Likewise.
5012         * string/bits/string3.h: Likewise.
5013         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
5014         * sysdeps/generic/inttypes.h: Likewise.
5015         * sysdeps/generic/machine-lock.h: Likewise.
5016         * sysdeps/generic/machine-sp.h: Likewise.
5017         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
5018         * sysdeps/i386/i486/bits/string.h: Likewise.
5019         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
5020         * sysdeps/mach/alpha/machine-lock.h: Likewise.
5021         * sysdeps/mach/alpha/machine-sp.h: Likewise.
5022         * sysdeps/mach/i386/machine-lock.h: Likewise.
5023         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5024         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
5025         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
5026         * sysdeps/s390/bits/string.h: Likewise.
5027         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
5028         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5029         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5030         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5031         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5032         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
5033         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
5034         * wcsmbs/bits/wchar2.h: Likewise.
5035         * wcsmbs/wchar.h: Likewise.
5036         * stdlib/gmp.h: Likewise.  Include <features.h> to get
5037         __extern_inline definition.
5039 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
5041         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
5042         NULL.
5044         [BZ #3919]
5045         * math/libm-test.inc (log_test): Test -Inf and NaN.
5046         (log10_test, log1p_test, log2_test): Test -Inf.
5047         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
5048         FE_INVALID when argument is qNaN.
5049         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
5050         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
5051         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
5052         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
5053         andb $1, %ah with testb $1, %ah, don't test for parity, instead
5054         testb $4, %ah and jump if non-zero.
5055         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
5056         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
5058         [BZ #4101]
5059         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
5060         ancestors with the same depths.
5061         Patch by Niels Moeller <nisse@lysator.liu.se>.
5062         (filter_doc): Don't crash if argp is NULL.
5063         * argp/Makefile (tests): Add tst-argp2.
5064         * argp/tst-argp2.c: New test.
5066         [BZ #4130]
5067         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
5068         open_not_cancel_2.
5069         (updwtmp_file): Likewise.
5071         [BZ #4181]
5072         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
5073         (inet6_opt_append): Don't check extlen is big enough if extbuf
5074         is NULL.
5075         (inet6_opt_finish): Likewise.
5076         * inet/Makefile (tests): Add test-inet6_opt.
5077         * inet/test-inet6_opt.c: New test.
5079         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
5080         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
5081         NLMSG_ERR.  Instead use a page sized buffer.
5082         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
5083         buffer.
5085 2007-03-14  Richard Henderson  <rth@redhat.com>
5087         * sysdeps/alpha/fpu/s_llround.c: New file.
5088         * sysdeps/alpha/fpu/s_llroundf.c: New file.
5089         * sysdeps/alpha/fpu/s_lround.c: New file.
5090         * sysdeps/alpha/fpu/s_lroundf.c: New file.
5091         * sysdeps/alpha/fpu/s_round.c: New file.
5092         * sysdeps/alpha/fpu/s_roundf.c: New file.
5093         * sysdeps/alpha/fpu/s_trunc.c: New file.
5094         * sysdeps/alpha/fpu/s_truncf.c: New file.
5096         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
5097         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
5098         * sysdeps/alpha/fpu/s_floor.c: Likewise.
5099         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
5100         * sysdeps/alpha/fpu/s_rint.c: Likewise.
5101         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
5103         * sysdeps/alpha/fpu/s_fmax.S: New file.
5104         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
5105         * sysdeps/alpha/fpu/s_fmin.S: New file.
5106         * sysdeps/alpha/fpu/s_fminf.S: New file.
5107         * sysdeps/alpha/fpu/s_isnan.c: New file.
5108         * sysdeps/alpha/fpu/s_isnanf.c: New file.
5109         * sysdeps/alpha/fpu/s_llrint.c: New file.
5110         * sysdeps/alpha/fpu/s_llrintf.c: New file.
5111         * sysdeps/alpha/fpu/s_lrint.c: New file.
5112         * sysdeps/alpha/fpu/s_lrintf.c: New file.
5113         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
5114         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
5116         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
5117         (__fdimf, fdimf, __fdim, fdim): Remove.
5118         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
5119         (__isnanf, __isnan, __isnanl): New.
5121 2007-03-13  Richard Henderson  <rth@redhat.com>
5123         * sysdeps/ieee754/ldbl-128/Makefile: New file.
5125 2007-03-13  Richard Henderson  <rth@redhat.com>
5127         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
5128         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
5129         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
5130         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
5131         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
5132         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
5134 2007-03-13  Richard Henderson  <rth@redhat.com>
5136         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
5137         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
5138         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
5139         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
5140         Move to dl-auxv.h; initialize instead of extern weak.
5141         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
5142         weak symbol.
5143         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
5144         Extern instead of initialized.
5146 2007-03-13  Richard Henderson  <rth@redhat.com>
5148         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
5149         __sigsuspend_nocancel.
5151 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
5153         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
5154         172.16/12 address range.
5156 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
5158         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
5159         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
5160         message.
5162 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
5164         [BZ #4069]
5165         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
5166         earlier.
5167         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
5169         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
5170         for x qNaN and y either +-inf or non-integer value.
5171         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
5172         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
5173         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5175 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
5177         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
5178         from sysdep_headers.
5180 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
5182         * time/tzfile.c (find_transition): Instead of a linear search try to
5183         guess the transition index, use a linear search if the result is at
5184         most 10 transitions away from the guess or binary search otherwise.
5186 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
5188         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
5189         memory reallocation.
5191 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
5193         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
5194         and fix some typos.
5195         Optimize use of TOLOWER.
5197         [BZ #3325]
5198         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
5199         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5200         * sysdeps/i386/fpu/e_fmod.S: Likewise.
5202         [BZ #3458]
5203         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
5204         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
5206         [BZ #4076]
5207         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
5208         (open_dir_stream): Likewise.
5209         * io/Makefile (tests): Add bug-ftw5.
5210         * io/bug-ftw5.c: New file.
5212         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
5213         * nscd/servicescache.c (cache_addserv): Likewise.
5215         * nscd/grpcache.c (cache_addgr): In case a record changed on
5216         refresh, adjust key_copy.
5218         [BZ #4074]
5219         * nscd/pwdcache.c (cache_addpw): In case a record changed on
5220         refresh, adjust key_copy.
5222         [BZ #4070]
5223         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
5224         special cases.
5225         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
5227 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
5229         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
5230         optimization.
5232         * stdio-common/vfscanf.c: Small cleanups throughout.
5234 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
5236         [BZ #3325]
5237         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
5238         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5239         * sysdeps/i386/fpu/e_fmod.S: Likewise.
5240         Patch by Jared Casper <jaredcasper@gmail.com>.
5242         * sysdeps/unix/closedir.c: Outside libc don't use locking.
5243         * sysdeps/unix/opendir.c: Likewise.
5244         * sysdeps/unix/readdir.c: Likewise.
5246         [BZ #2211]
5247         * stdio-common/vfscanf.c: Handle localized digits etc for floating
5248         point numbers.
5249         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
5251         * stdio-common/vfscanf.c: Fix problems in width accounting.
5252         * stdio-common/tst-sscanf.c (double_tests): New tests.
5253         (main): Hook them up.
5255         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
5256         More simplifications of floating-point reader.
5258         * stdio-common/Makefile (tests): Add tst-swscanf.
5259         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
5260         testing.
5261         * stdio-common/tst-swscanf.c: New file.
5263 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
5265         [BZ #2633]
5266         * libio/stdio.h: Define struct _IO_FILE in global namespace.
5267         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
5268         Remove using for __jmp_buf_tag.
5269         * locale/locale.h (struct lconv): Also define in std namespace.
5270         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
5272         [BZ #3842]
5273         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
5274         using __libc_enable_secure.
5276         [BZ #3818]
5277         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
5279         [BZ #3745]
5280         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
5281         of names for ellipsises.
5283         [BZ #3348]
5284         * malloc/memusage.sh: Cleanups.
5285         * debug/xtrace.sh: Quoting and trap changes.
5287 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
5289         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
5291         * locale/iso-3166.def: Update entry for Serbia.
5292         * locale/iso-4217.def: Define RSD, remove CSD.
5294         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
5295         and 64-bit operations.
5297         [BZ #4040]
5298         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
5299         16-bit operations.
5301         * nscd/nscd.c (parse_opt): One more conversion to use send instead
5302         of writev.
5304 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
5306         [BZ #3991]
5307         * assert/assert.h (assert): Simplify.
5308         (assert_perror): Likewise.
5309         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
5311         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
5312         reqdata.
5314         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
5315         change: don't pass NULL in place of an integer.
5317 2007-02-02  Bruno Haible  <bruno@clisp.org>
5319         [BZ #3954]
5320         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
5321         Add mapping for U+327E.
5322         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
5323         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5324         mapping of 0xD9 0xE8.
5325         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
5326         mapping of U+327E.
5327         Reported by Jungshik Shin <jungshik@google.com>.
5329         [BZ #3955]
5330         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5331         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
5332         Reported by Jungshik Shin <jungshik@google.com>.
5334 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
5336         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
5337         byte variants.
5339         [BZ #4040]
5340         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
5341         byte variants.  Patch mostly be tom@tommay.net.
5343 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
5345         [BZ #3996]
5346         * posix/glob.c (attribute_hidden): Define if not defined.
5347         (glob): Unescape dirname, filename or username when needed and not
5348         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
5349         is NULL.  Handle unescaped [ in pattern without closing ].
5350         Don't pass GLOB_CHECK down to recursive glob for directories.
5351         (__glob_pattern_type): New function.
5352         (__glob_pattern_p): Implement using __glob_pattern_type.
5353         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
5354         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
5355         Remove unreachable code.
5356         * posix/globtest.sh: Add a couple of new tests.
5358 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
5360         * po/ru.po: Update from translation team.
5362 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
5364         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
5365         to the list of i486+ CPUs.
5366         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5368 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
5370         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
5371         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
5372         references.
5374 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
5376         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
5378         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
5379         * resolv/res_mkquery.c: Define __res_nopt.
5380         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
5381         try adding EDNS0 record.
5382         * resolv/res_send.c (send_dg): If request failed with FORMERR and
5383         EDNS0 record was send make sure we don't try it again.
5384         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
5385         * include/resolv.h: Declare __res_nopt.
5387 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
5389         [BZ #3944]
5390         * time/strptime_l.c (__strptime_internal): Set have_mon for
5391         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
5392         have been computed from tm_yday and tm_year.  Don't crash
5393         in day_of_the_week or day_of_the_year if not have_mon
5394         and tm_mon contains bogus value.
5395         * time/Makefile (tests): Add tst-strptime3.
5396         * time/tst-strptime3.c: New test.
5398 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
5400         [BZ #3957]
5401         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5402         bit for RE_HAT_LISTS_NOT_NEWLINE.
5403         (build_charclass_op): Remove bogus comment.
5404         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
5405         * posix/bug-regex27.c: New test.
5406         * posix/bug-regex28.c: New test.
5408 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
5410         * po/sv.po: Update from translation team.
5412 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
5414         * nscd/nscd_helper.c (open_socket): Minor size optimization.
5416 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
5418         * include/locale.h (__uselocale): Add libc_hidden_proto.
5419         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
5421         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
5422         gettimeofday.
5424 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
5426         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
5427         returning.
5428         (PTR_DEMANGLE): Real definition now that it's not the same as
5429         PRT_MANGLE anymore.
5430         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5432         * string/strerror_l.c: New file.
5433         * string/Makefile (routines): Add strerror_l.
5434         * string/string.h: Declare strerror_l.
5435         * string/Versions: Export strerror_l for GLIBC_2.6.
5437 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
5439         * nscd/nscd_helper.c (open_socket): Now takes request type and key
5440         as parameter.  Construct request record.  Try sending request
5441         before the first poll use, it usually succeeds.  Adjust all
5442         callers.
5443         * nscd/nscd-client.h: Define MAXKEYLEN.
5444         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
5446 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
5448         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
5449         from return value.
5450         * nscd/nscd_helper.c: Include string.h.
5451         (__nscd_cache_search): Remove const qualifier from return value.
5452         On strict alignment architectures check hash entry and data head
5453         alignment.
5454         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
5455         mmapped data during GC cycle contains garbage.  If
5456         __nscd_drop_map_ref fails, decrement mapped->counter when returning
5457         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
5458         dropped to 0.
5459         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5460         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5461         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5462         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5463         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5465 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
5467         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
5469 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
5471         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
5472         names not numbers in cfi_*.
5474 2007-01-26  Andreas Jaeger  <aj@suse.de>
5476         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
5477         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
5478         Correct values of PER_HPUX and PER_OSF4.
5480 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
5482         * elf/dl-minimal.c: Undefine _itoa first.
5483         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
5484         * malloc/mtrace.c: Revert last change.
5485         * posix/wordexp.c: Likewise.
5487 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
5489         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
5490         and __geode__ to the list of i486+ CPUs.
5491         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5493 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
5495         * stdio-common/_itoa.c: Include <limits.h>.
5496         * stdio-common/_itowa.c: Likewise.
5498 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
5500         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
5501         platforms.
5502         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
5503         64-bit platforms.
5504         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
5505         possible.
5506         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
5507         if possible.
5509         [BZ #3902]
5510         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
5511         * stdio-common/Makefile (tests): Add bug17.
5512         * stdio-common/bug17.c: New file.
5514 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
5516         * iconvdata/brf.c: New file.
5517         * iconvdata/testdata/BRF: New file.
5518         * iconvdata/testdata/BRF..UTF8: New file.
5519         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5520         * iconvdata/Makefile: Add rules to build BRF.
5521         * iconvdata/TESTS: Add BRF entry.
5522         * iconvdata/gconv-modules: Likewise.
5523         * iconvdata/tst-tables.sh: Likewise.
5525 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
5527         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
5528         type `long long int', not `long int'.
5529         (wcstoq): Likewise.
5531 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
5533         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
5534         of values on 64-bit platforms which are too large.
5536 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
5537             Joe Kerian  <jkerian@us.us.ibm.com>
5539         [BZ #2749]
5540         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
5541         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
5542         (__copysignl): Use signbit() for comparison.
5543         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
5544         SET_LDOUBLE_WORDS64.
5546         [BZ #2423, #2749]
5547         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
5548         (__ceill): Remove calls to fegetround(), fesetround().
5549         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5553 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
5555         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
5557         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
5559 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
5561         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
5562         demangle pointer.
5563         * csu/libc-start.c: Likewise.
5565 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
5567         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
5568         really work anyway.
5570 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
5572         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
5573         users.
5574         (handle_request): Remove unnecessary tests.
5576         * nscd/cache.c (cache_add): Record the failure to add to the cache.
5578 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
5580         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
5581         workbits in semi-raw fraction.
5583         * math/test-misc.c: Add new tests.
5585 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
5587         * math/basic-test.c: Include test-skeleton.c.
5588         (TEST_TRUNC): Define.
5589         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
5590         (main): Rename to ...
5591         (do_test): ...this.  Run new tests.
5592         (TEST_FUNCTION): Define.
5594 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
5595             Joe Kerian  <jkerian@us.us.ibm.com>
5597         [BZ #2749]
5598         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
5599         handling for high words.
5600         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
5601         and overflow for infinity.
5603 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
5605         * nscd/connections.c (handle_request): Add a __builtin_expect.
5607         * nscd/connections.c (serv2db): Change type into structure which
5608         also says whether this is a request for data.  Renamed to
5609         servinfo.  All users changed.
5610         (handle_request): Much simpler test whether we should search the cache.
5612         * nscd/connections.c (handle_request): Fix thinko in selinux test
5613         invocation.
5615         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
5616         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
5617         it before getting dl_load_lock and then relock.
5618         (_dl_lookup_symbol_x): Pass flags to add_dependency.
5619         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
5620         case we unlocked the scope.
5621         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
5622         _dl_lookup_symbol_x in case we locked the scope.
5623         (_dl_profile_fixup): Likewise.
5624         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
5625         set DL_LOOKUP_SCOPE_LOCK.
5627 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
5629         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
5630         CFLAGS-getsrvbynpt_r.c.
5631         * nscd/getsrvbynm_r.c: New file.
5632         * nscd/getsrvbypt_r.c: New file.
5633         * nscd/nscd_getserv_r.c: New file.
5634         * nscd/servicescache.c: New file.
5635         * nscd/Makefile (routines): Add nscd_getserv_r.
5636         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
5637         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
5638         CFLAGS-getsrvbypt_r.c.
5639         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
5640         table.  Add entries for services database.
5641         * nscd/connections.c (serv2str): Mark as const.  Add entries for
5642         services database.
5643         (dbs): Add .reset_res and servdb initialization.
5644         (serv2db): Add entries for services database.
5645         (verify_persistent_db): Accept dbnr == servdb.
5646         (invalidate_cache): Rewrite database name recognition to use a table.
5647         Call res_init() if .reset_res is set for database.
5648         (handle_request): Add code to handle services database.
5649         * nscd/gai.c: Don't define __getservbyname_r.
5650         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
5651         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
5652         (serv_response_header): Define.
5653         (struct datahead): Add serv_response_header member.
5654         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
5655         using table.
5656         * nscd/nscd.conf: Add entries for services database.
5657         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
5658         Declare serv_iov_disabled.
5659         Declare addservbyname, readdservbyname, addservbyport, and
5660         readdservbyport.
5661         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
5662         (find_db): Fix error message.
5663         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
5664         __nscd_getservbyname_r, and __nscd_getservbyport_r.
5665         * nscd/selinux.c (perms): Add entries for services database.
5666         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
5667         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
5669         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
5670         * nscd/hstcache.c: Likewise.
5671         * nscd/pwdcache.c: Likewise.
5673         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
5674         computation of keylen.
5676         * include/string.h: Only redefine strndupa if this is really for
5677         libc code.
5679 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
5681         * nscd/nscd_gethst_r.c: Minor cleanups.
5683         * nscd/connections.c (handle_request): Check selinux permissions
5684         for all non-admin commands.
5686         * sysdeps/i386/i486/bits/atomic.h: Define
5687         atomic_compare_and_exchange_val_acq,
5688         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
5689         using __sync_* built-ins for gcc >= 4.1.
5690         * sysdeps/x86_64/bits/atomic.h: Likewise.
5692         [BZ #3840]
5693         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
5694         and .oS.d files.
5696 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
5698         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
5699         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
5700         (do_test): Check errno and exit(0) if ENOSYS.
5702 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
5704         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
5705         thousands separators.
5706         * stdlib/Makefile: Add rules to build and run tst-strtod4.
5707         * stdlib/tst-strtod4.c: New test.
5709         [BZ #3855]
5710         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
5711         hexadecimal digit should accept just the initial 0.
5712         * stdlib/tst-strtod2.c (tests): New variable.
5713         (do_test): Run several tests rather than just one.
5715 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
5717         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
5718         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
5720 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
5722         * io/fts.c: Make sure fts_cur is always valid after return from
5723         fts_read.
5724         Patch by Miloslav Trmac <mitr@redhat.com>.
5726 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
5728         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
5729         (R_MIPS_NUM): Bump by 1.
5731 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
5733         * posix/execvp.c: Include alloca.h.
5734         (allocate_scripts_argv): Renamed to...
5735         (scripts_argv): ... this.  Don't allocate buffer here nor count
5736         arguments.
5737         (execvp): Use alloca if possible.
5738         * posix/Makefile: Add rules to build and run tst-vfork3 test.
5739         * posix/tst-vfork3.c: New test.
5741 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
5743         * string/Makefile (tst-strxfrm2-ENV): Define.
5744         * stdlib/Makefile (tst-strtod3-ENV): Define.
5746 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
5748         * posix/getconf.c: Update copyright year.
5749         * nss/getent.c: Likewise.
5750         * iconv/iconvconfig.c: Likewise.
5751         * iconv/iconv_prog.c: Likewise.
5752         * elf/ldconfig.c: Likewise.
5753         * catgets/gencat.c: Likewise.
5754         * csu/version.c: Likewise.
5755         * elf/ldd.bash.in: Likewise.
5756         * elf/sprof.c (print_version): Likewise.
5757         * locale/programs/locale.c: Likewise.
5758         * locale/programs/localedef.c: Likewise.
5759         * nscd/nscd.c (print_version): Likewise.
5760         * debug/xtrace.sh: Likewise.
5761         * malloc/memusage.sh: Likewise.
5762         * malloc/mtrace.pl: Likewise.
5763         * debug/catchsegv.sh: Likewise.
5765 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
5767         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
5768         attempts.
5770 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
5772         * posix/wordexp.c: Remove some unnecessary tests.
5774 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
5776         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
5777         blacklist the group till after we look it up.
5779 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
5781         * include/atomic.h (atomic_forced_read): New macro.
5783 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
5785         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
5787 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
5789         * nss/getXXbyYY_r.c: Include atomic.h.
5790         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
5791         add atomic_write_barrier () in between.
5793         * stdlib/Makefile (tests): Add tst-makecontext.
5794         * stdlib/tst-makecontext.c: New test.
5796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
5797         (__makecontext): Don't realign uc_mcontext.uc_regs.
5799 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
5801         * elf/dl-support.c: Include dl-procinfo.h.
5802         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
5803         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
5804         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
5805         Define.
5806         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
5807         hardcoded constants.
5808         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
5809         PPC_PLATFORM_* macros for array designators.
5811 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
5813         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
5814         names to the beginning.
5815         (_dl_powerpc_platforms): Add "power6x".
5816         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5817         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
5818         (_DL_PLATFORMS_COUNT): Increase.
5819         (_dl_string_platform): Handle power6x case.
5820         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
5821         PPC_FEATURE_POWER6_EXT): Define.
5822         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
5824 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
5826         [BZ #3747]
5827         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
5828         [-2^31 .. 2^31) range.
5829         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
5830         targets.
5831         * stdlib/tst-rand48-2.c: New test.
5832         * stdlib/Makefile (tests): Add tst-rand48-2.
5834 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
5836         * misc/tst-pselect.c (do_test): Fix sigblock argument.
5838 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
5840         * misc/tst-pselect.c (do_test): Make sure the helper process is
5841         terminating when the test is aborted.
5843 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
5845         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
5846         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5847         Handle relatime mount option.
5849         [BZ #2337]
5850         * libio/Makefile (tests): Add tst-setvbuf1.
5851         * libio/tst-setvbuf1.c: New file.
5853 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
5855         [BZ #2337]
5856         * libio/genops.c (__uflow): Fix a typo.
5857         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
5858         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
5859         the narrow buffer size.
5861 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
5863         [BZ #2337]
5864         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
5865         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
5866         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
5867         in _flags.
5868         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
5869         _IO_wstr_finish): Likewise.
5870         * libio/wmemstream.c (open_wmemstream): Likewise.
5871         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
5872         even for wide streams.
5874 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
5876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
5877         kernel-features.h.
5879 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
5881         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
5882         separators also if no non-zero digits found.
5883         * stdlib/Makefile (tests): Add tst-strtod3.
5885 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
5887         [BZ #3632]
5888         * include/features.h: Fix comment about default value for
5889         _POSIX_C_SOURCE.
5891         [BZ #3664]
5892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
5893         empty parsed strings.
5894         * stdlib/Makefile (tests): Add tst-strtod2.
5895         * stdlib/tst-strtod2.c: New file.
5897         [BZ #3673]
5898         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
5899         computation.
5900         * stdlib/Makefile (tests): Add tst-atof2.
5901         * stdlib/tst-atof2.c: New file.
5903         [BZ #3674]
5904         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
5905         correctly if removing trailing zero of hex-float.
5906         * stdlib/Makefile (tests): Add tst-atof1.
5907         * stdlib/tst-atof1.c: New file.
5909 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
5911         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
5912         Start searching for next comma at p rather than rest.
5913         * misc/Makefile (tests): Add tst-mntent2.
5914         * misc/tst-mntent2.c: New test.
5916         * misc/getusershell.c (initshells): Check for integer overflows.
5917         Make strings buffer one bigger as fgets always succeeds when second
5918         argument is 1.  Don't use calloc for shells array.  Disallow
5919         / as shell.
5921 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
5923         * malloc/memusage.c: Handle realloc with new size of zero and
5924         non-NULL pointer correctly.
5925         (me): Really write first record twice.
5926         (struct entry): Make format bi-arch safe.
5927         (dest): Write out more realloc statistics.
5928         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
5930 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
5932         * nis/nis_subr.c (nis_getnames): Revert last change.
5934 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
5936         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
5937         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
5938         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
5939         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
5940         ENOTTY.
5941         * io/Makefile: Add rules to build and run tst-ttyname_r test.
5942         * io/tst-ttyname_r.c: New test.
5944 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5946         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5948 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
5950         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
5951         jump table entries.
5953 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5955         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
5956         `clone' function to ensure proper unwinding stop of gdb.
5957         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5959 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
5961         * nscd/nscd.init: Remove obsolete and commented-out -S option
5962         handling.
5964 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
5966         [BZ #3514]
5967         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
5969         [BZ #3515]
5970         * manual/string.texi (strtok): Remove duplicate paragraph.
5972 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5974         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
5975         libgcc not supporting `rflags' unwinding (register # >= 17).
5977 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
5979         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
5980         succeeded.
5982 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
5983             Jakub Jelinek  <jakub@redhat.com>
5984             Jan Kratochvil  <jan.kratochvil@redhat.com>
5986         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
5987         unwind information.
5988         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
5989         'restore_rt' even in the 'signal' directory.
5990         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
5992 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
5994         [BZ #3559]
5995         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
5996         malloc crashed.  Don't allocate memory unnecessarily in each
5997         loop.
5999 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
6001         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
6003 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
6005         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
6007 2006-11-18  Bruno Haible  <bruno@clisp.org>
6009         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
6010         __sysconf only after having tried to call getgroups32.
6012 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
6014         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
6015         addresses for IPv4 queries if they can be mapped.
6017 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
6019         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
6020         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
6021         (signmask): Add .size directive.
6022         (othermask): Add .type directive.
6024 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
6026         * po/nl.po: Update from translation team.
6028         * timezone/zdump.c: Redo fix for BZ #3137.
6030 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
6032         * nss/nss_files/files-alias.c (get_next_alias): Set line back
6033         to first_unused after parsing :include: file.
6035 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
6037         * timezone/africa: Update from tzdata2006o.
6038         * timezone/antarctica: Likewise.
6039         * timezone/asia: Likewise.
6040         * timezone/australasia: Likewise.
6041         * timezone/backward: Likewise.
6042         * timezone/europe: Likewise.
6043         * timezone/iso3166.tab: Likewise.
6044         * timezone/northamerica: Likewise.
6045         * timezone/southamerica: Likewise.
6046         * timezone/zone.tab: Likewise.
6048         * time/tzfile.c (__tzfile_read): Extend to handle new file format
6049         on machines with 64-bit time_t.
6051         * timezone/checktab.awk: Update from tzcode2006o.
6052         * timezone/ialloc.c: Likewise.
6053         * timezone/private.h: Likewise.
6054         * timezone/scheck.c: Likewise.
6055         * timezone/tzfile.h: Likewise.
6056         * timezone/tzselect.ksh: Likewise.
6057         * timezone/zdump.c: Likewise.
6058         * timezone/zic.c: Likewise.
6060         [BZ #3483]
6061         * elf/ldconfig.c (main): Call setlocale and textdomain.
6062         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6064         [BZ #3480]
6065         * manual/argp.texi: Fix typos.
6066         * manual/charset.texi: Likewise.
6067         * manual/errno.texi: Likewise.
6068         * manual/filesys.texi: Likewise.
6069         * manual/lang.texi: Likewise.
6070         * manual/maint.texi: Likewise.
6071         * manual/memory.texi: Likewise.
6072         * manual/message.texi: Likewise.
6073         * manual/resource.texi: Likewise.
6074         * manual/search.texi: Likewise.
6075         * manual/signal.texi: Likewise.
6076         * manual/startup.texi: Likewise.
6077         * manual/stdio.texi: Likewise.
6078         * manual/sysinfo.texi: Likewise.
6079         * manual/syslog.texi: Likewise.
6080         * manual/time.texi: Likewise.
6081         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6083         [BZ #3465]
6084         * sunrpc/clnt_raw.c: Minimal message improvements.
6085         * sunrpc/pm_getmaps.c: Likewise.
6086         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
6087         * nis/nis_print_group_entry.c: Likewise.
6088         * locale/programs/repertoire.c: Likewise.
6089         * locale/programs/charmap.c: Likewise.
6090         * malloc/memusage.sh: Likewise.
6091         * elf/dl-deps.c: Likewise.
6092         * locale/programs/ld-collate.c: Likewise.
6093         * libio/vswprintf.c: Likewise.
6094         * malloc/memusagestat.c: Likewise.
6095         * sunrpc/auth_unix.c: Likewise.
6096         * sunrpc/rpc_main.c: Likewise.
6097         * nscd/cache.c: Likewise.
6098         * locale/programs/repertoire.c: Unify output messages.
6099         * locale/programs/charmap.c: Likewise.
6100         * locale/programs/ld-ctype.c: Likewise.
6101         * locale/programs/ld-monetary.c: Likewise.
6102         * locale/programs/ld-numeric.c: Likewise.
6103         * locale/programs/ld-time.c: Likewise.
6104         * elf/ldconfig.c: Likewise.
6105         * nscd/selinux.c: Likewise.
6106         * elf/cache.c: Likewise.
6107         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6109         [BZ #3451]
6110         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
6111         change atomic.
6112         (ceil): Likewise.
6114 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
6116         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
6117         if N is one bigger than return value.
6118         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
6119         and l1 last arguments, if buf is defined, verify the return value
6120         equals to strlen (buf) and verify no byte beyond passed length
6121         is modified.
6123 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
6125         * po/sv.po: Update from translation team.
6127 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
6129         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
6130         noinline attribute.
6132 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
6134         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
6135         noinline attribute.
6137         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
6138         Use __new_sys_siglist instead of _sys_siglist_internal as
6139         second macro argument.
6140         (_old_sys_siglist): Use declare_symbol_alias macro instead of
6141         strong_alias.
6143 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
6145         [BZ #3493]
6146         * posix/unistd.h (sysconf): Remove const attribute.
6148         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
6149         temporary or deprecated addresses.
6150         Patch by Sridhar Samudrala <sri@us.ibm.com>.
6152         * string/Makefile (tests): Add tst-strxfrm2.
6153         * string/tst-strxfrm2.c: New file.
6155 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
6157         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
6158         rather than r->r_brk.
6160 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
6162         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
6163         optimization even if needed > n.
6165         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
6166         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
6167         return false, otherwise return true.
6168         (cache_rpath): Return decompose_rpath return value.
6170 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
6172         * include/libc-symbols.h (declare_symbol): Rename to...
6173         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
6174         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
6175         .size directive.
6176         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
6177         changes.
6178         * sysdeps/gnu/siglist.c: Likewise.
6180 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
6182         * sysdeps/powerpc/fpu/bits/mathinline.h
6183         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
6184         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
6186 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
6188         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
6189         Update handling of cache descriptor 0x49 for new models.
6190         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
6191         Likewise.
6193 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
6195         * malloc/memusage.c (dest): Reset not_me back to false after
6196         printing statistics.
6198 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
6200         * configure.in: Work around ld --help change and avoid -z relro
6201         test completely if the architecture doesn't care about security.
6203 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
6205         * po/sv.po: Update from translation team.
6207 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
6209         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
6210         generate compatibility version.
6212 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
6214         * configure.in: Relax -z relro requirement a bit.
6216         * po/sv.po: Update from translation team.
6218 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
6220         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
6221         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
6222         * elf/dl-close.c (_dl_close_worker): Likewise.
6223         * elf/dl-open.c (_dl_open_worker): Likewise.
6224         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
6226 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
6228         * configure.in: Require assembler support for visibility, compiler
6229         support for visibility and aliases, linker support for various -z
6230         options.
6231         * Makeconfig: Remove conditional code which now is unnecessary.
6232         * config.h.in: Likewise.
6233         * config.make.in: Likewise.
6234         * dlfcn/Makefile: Likewise.
6235         * elf/Makefile: Likewise.
6236         * elf/dl-load.c: Likewise.
6237         * elf/rtld.c: Likewise.
6238         * include/libc-symbols.h: Likewise.
6239         * include/stdio.h: Likewise.
6240         * io/Makefile: Likewise.
6241         * io/fstat.c: Likewise.
6242         * io/fstat64.c: Likewise.
6243         * io/fstatat.c: Likewise.
6244         * io/fstatat64.c: Likewise.
6245         * io/lstat.c: Likewise.
6246         * io/lstat64.c: Likewise.
6247         * io/mknod.c: Likewise.
6248         * io/mknodat.c: Likewise.
6249         * io/stat.c: Likewise.
6250         * io/stat64.c: Likewise.
6251         * libio/stdio.c: Likewise.
6252         * nscd/Makefile: Likewise.
6253         * stdlib/Makefile: Likewise.
6254         * stdlib/atexit.c: Likewise.
6255         * sysdeps/generic/ldsodefs.h: Likewise.
6256         * sysdeps/i386/dl-machine.h: Likewise.
6257         * sysdeps/i386/sysdep.h: Likewise.
6258         * sysdeps/i386/i686/memcmp.S: Likewise.
6259         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6260         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6261         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
6263         * Makerules: USE_TLS support is now default.
6264         * tls.make.c: Likewise.
6265         * csu/Versions: Likewise.
6266         * csu/libc-start.c: Likewise.
6267         * csu/libc-tls.c: Likewise.
6268         * csu/version.c: Likewise.
6269         * dlfcn/dlinfo.c: Likewise.
6270         * elf/dl-addr.c: Likewise.
6271         * elf/dl-cache.c: Likewise.
6272         * elf/dl-close.c: Likewise.
6273         * elf/dl-iteratephdr.c: Likewise.
6274         * elf/dl-load.c: Likewise.
6275         * elf/dl-lookup.c: Likewise.
6276         * elf/dl-object.c: Likewise.
6277         * elf/dl-open.c: Likewise.
6278         * elf/dl-reloc.c: Likewise.
6279         * elf/dl-support.c: Likewise.
6280         * elf/dl-sym.c: Likewise.
6281         * elf/dl-sysdep.c: Likewise.
6282         * elf/dl-tls.c: Likewise.
6283         * elf/ldconfig.c: Likewise.
6284         * elf/rtld.c: Likewise.
6285         * elf/tst-tls-dlinfo.c: Likewise.
6286         * elf/tst-tls1.c: Likewise.
6287         * elf/tst-tls10.h: Likewise.
6288         * elf/tst-tls14.c: Likewise.
6289         * elf/tst-tls2.c: Likewise.
6290         * elf/tst-tls3.c: Likewise.
6291         * elf/tst-tls4.c: Likewise.
6292         * elf/tst-tls5.c: Likewise.
6293         * elf/tst-tls6.c: Likewise.
6294         * elf/tst-tls7.c: Likewise.
6295         * elf/tst-tls8.c: Likewise.
6296         * elf/tst-tls9.c: Likewise.
6297         * elf/tst-tlsmod1.c: Likewise.
6298         * elf/tst-tlsmod13.c: Likewise.
6299         * elf/tst-tlsmod13a.c: Likewise.
6300         * elf/tst-tlsmod14a.c: Likewise.
6301         * elf/tst-tlsmod2.c: Likewise.
6302         * elf/tst-tlsmod3.c: Likewise.
6303         * elf/tst-tlsmod4.c: Likewise.
6304         * elf/tst-tlsmod5.c: Likewise.
6305         * elf/tst-tlsmod6.c: Likewise.
6306         * include/errno.h: Likewise.
6307         * include/link.h: Likewise.
6308         * include/tls.h: Likewise.
6309         * locale/global-locale.c: Likewise.
6310         * locale/localeinfo.h: Likewise.
6311         * malloc/arena.c: Likewise.
6312         * malloc/hooks.c: Likewise.
6313         * malloc/malloc.c: Likewise.
6314         * resolv/Versions: Likewise.
6315         * sysdeps/alpha/dl-machine.h: Likewise.
6316         * sysdeps/alpha/libc-tls.c: Likewise.
6317         * sysdeps/generic/ldsodefs.h: Likewise.
6318         * sysdeps/generic/tls.h: Likewise.
6319         * sysdeps/i386/dl-machine.h: Likewise.
6320         * sysdeps/ia64/dl-machine.h: Likewise.
6321         * sysdeps/ia64/libc-tls.c: Likewise.
6322         * sysdeps/mach/hurd/fork.c: Likewise.
6323         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6324         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
6325         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6326         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6327         * sysdeps/s390/libc-tls.c: Likewise.
6328         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6329         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6330         * sysdeps/sh/dl-machine.h: Likewise.
6331         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6332         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6333         * sysdeps/x86_64/dl-machine.h: Likewise.
6335         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
6336         split out locking and parameter checking.
6337         (_dl_close): Call _dl_close_worker after locking and checking.
6338         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
6339         _dl_close.
6340         * elf/Makefile: Add rules to build and run tst-thrlock.
6341         * elf/tst-thrlock.c:  New file.
6343         [BZ #3426]
6344         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
6345         reality.
6347         [BZ #3429]
6348         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
6349         we are sure we do not need it anymore for _dl_close.  Also move
6350         the asserts inside the lock region.
6351         Patch mostly by Suzuki <suzuki@in.ibm.com>.
6353 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
6355         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
6356         argument.
6357         (_dl_lookup_symbol_x): Adjust caller.
6359         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
6360         _ns_global_scope.
6361         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
6363         * elf/dl-libc.c: Revert l_scope name changes.
6364         * elf/dl-load.c: Likewise.
6365         * elf/dl-object.c: Likewise.
6366         * elf/rtld.c: Likewise.
6367         * elf/dl-close.c (_dl_close): Likewise.
6368         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
6369         always use __rtld_mrlock_{change,done}.  Always free old scope list
6370         here if not l_scope_mem.
6371         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
6372         change.  Never free scope list here.  Just __rtld_mrlock_lock before
6373         the lookup and __rtld_mrlock_unlock it after the lookup.
6374         * elf/dl-sym.c: Likewise.
6375         * include/link.h (struct r_scoperec): Remove.
6376         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
6377         with l_scope_mem and l_scoperec_lock with l_scope_lock.
6379 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
6381         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
6383 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
6385         * configure.in: Disable building profile libraries by default.
6387 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
6389         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
6390         as signed longs, check for x_base + pos overflow.
6391         * sunrpc/Makefile (tests): Add tst-xdrmem2.
6392         * sunrpc/tst-xdrmem2.c: New test.
6394 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
6396         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
6397         _dl_lookup_symbol_x code.
6399 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
6401         * elf/dl-runtime.c: Include sysdep-cancel.h.
6402         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
6403         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
6404         instead of catomic_* macros.
6405         * elf/dl-sym.c: Include sysdep-cancel.h.
6406         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
6407         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
6408         * elf/dl-close.c: Include sysdep-cancel.h.
6409         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
6410         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
6411         * elf/dl-open.c: Include sysdep-cancel.h.
6412         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
6413         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
6415 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
6417         [BZ #3313]
6418         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
6419         fastbin rather than end of fastbin array.
6421 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
6423         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
6424         body macro.
6425         * sysdeps/x86_64/bits/atomic.h
6426         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
6427         (catomic_decrement): Use correct body macro.
6429 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
6431         * include/atomic.h: Add a unique prefix to all local variables
6432         in macros.
6433         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
6435 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
6437         [BZ #3369]
6438         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
6439         and 7.
6441 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
6443         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
6445 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
6447         [BZ #3313]
6448         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
6449         determine highest fast bin to consolidate, always look into all of
6450         them.
6451         (do_check_malloc_state): Only require for empty bins for large
6452         sizes in main arena.
6454         * libio/stdio.h: Add more __wur attributes.
6456         * elf/dl-minimal.c (realloc): Optimize last patch.
6458 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
6460         [BZ #3352]
6461         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
6462         and use memcpy() if it does.
6464 2006-11-12  Andreas Jaeger  <aj@suse.de>
6466         [BZ #2510]
6467         * manual/search.texi (Hash Search Function): Clarify.
6468         (Array Search Function): Clarify.
6470 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
6472         [BZ #2830]
6473         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
6474         shifting.
6475         * math/atest-exp2.c (read_mpn_hex): Likewise.
6476         * math/atest-sincos.c (main): Likewise.
6478 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
6480         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
6481         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
6482         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
6483         version GLIBC_2.6.
6484         * Versions.def: Add GLIBC_2.6 for libc.
6486         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
6488         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
6490 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
6492         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
6494         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
6496         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
6497         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
6499 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
6501         * include/atomic.c: Define catomic_* operations.
6502         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
6503         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
6504         * malloc/memusage.c: Likewise.
6505         * gmon/mcount.c: Likewise.
6506         * elf/dl-close.c: Likewise.
6507         * elf/dl-open.c: Likewise.
6508         * elf/dl-profile.c: Likewise.
6509         * elf/dl-sym.c: Likewise.
6510         * elf/dl-runtime.c: Likewise.
6511         * elf/dl-fptr.c: Likewise.
6512         * resolv/res_libc.c: Likewise.
6514 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
6516         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
6517         components which lack them.
6519         * nis/nis_subr.c (nis_getnames): Make sure that we always return
6520         at least one entry consisting of the parameter concatenated with
6521         the domain.
6523 2006-10-10  Roland McGrath  <roland@frob.com>
6525         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
6526         * sysdeps/mach/hurd/futimes.c: Likewise.
6527         * sysdeps/mach/hurd/lutimes.c: Likewise.
6529 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
6530             Jakub Jelinek  <jakub@redhat.com>
6532         Implement reference counting of scope records.
6533         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
6534         from the list in objects which remain.  Always allocate new scope
6535         record.
6536         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
6537         don't resize, allocate a new one.
6538         * elf/dl-runtime.c: Update reference counters before using a scope
6539         array.
6540         * elf/dl-sym.c: Likewise.
6541         * elf/dl-libc.c: Adjust for l_scope name change.
6542         * elf/dl-load.c: Likewise.
6543         * elf/dl-object.c: Likewise.
6544         * elf/rtld.c: Likewise.
6545         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
6546         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
6547         Add l_scoperec_lock.
6548         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
6549         * sysdeps/generic/rtld-lowlevel.h: New file.
6551         * include/atomic.h: Rename atomic_and to atomic_and_val and
6552         atomic_or to atomic_or_val.  Define new macros atomic_and and
6553         atomic_or which do not return values.
6554         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
6555         Various cleanups.
6556         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6558         * po/sv.po: Update from translation team.
6560 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
6562         * Versions.def: Add GLIBC_2.6 to libpthread.
6564         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
6565         (versioned_symbol): Likewise.
6566         (compat_symbol): Likewise.
6568         * po/tr.po: Update from translation team.
6570 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
6572         * nis/Banner: Removed.  It's been integral part forever and the
6573         author info is incomplete anyway.
6574         * libio/Banner: Likewise.
6576         * nis/nis_table.c (nis_list): If __follow_path fails in the new
6577         code, make sure the nis_freeresult call doesn't crash and that the
6578         result is reported correctly.
6580 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
6582         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
6583         when callback is NULL.
6585         * nis/Versions (libnss_nisplus): Add
6586         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
6587         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
6588         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
6589         _nss_create_tablename): Rename to...
6590         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
6591         ... these.  No longer static.
6592         (internal_setgrent): Adjust users.
6593         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
6594         Don't use locking around _nss_grp_create_tablename call.
6595         * nis/nss_nisplus/nisplus-initgroups.c: New file.
6597 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
6599         * version.h (VERSION): Bump to 2.5.90 for new development tree.
6601 2006-10-06  Andreas Jaeger  <aj@suse.de>
6603         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
6605 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
6607         * po/pl.po: Update from translation team.
6609         * nscd/nscd.c (main): Fix typo in message.
6610         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
6612 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
6614         [BZ #3291]
6615         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
6616         errno.h, signal.h, unistd.h and sysdep-cancel.h.
6617         (__sigprocmask): Define.
6619 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
6621         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
6622         used.
6624 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
6626         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
6627         in oldtotal and newtotal calculation.
6628         * nscd/nscd-client.h (struct mapped_database): Add datasize
6629         field.
6630         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
6631         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
6632         increased.
6633         (__nscd_cache_search): Add checks to make sure we never reference
6634         data beyond the current mapping.
6636 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
6638         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
6639         variables const to avoid compiler warnings.
6641         * io/fts.c (fts_close): Remove redundant checks.
6642         (fts_build): Likewise.
6643         (fts_palloc): Likewise.
6645         * manual/message.texi (Advanced gettext functions,
6646         Using gettextized software): Fix typos.
6648 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6650         * posix/glob.c (glob_in_dir): Add some comments and asserts to
6651         explain why there are no leaks.
6653 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
6655         * libio/wmemstream.c: Include <wchar.h>.
6656         * libio/bug-wmemstream1.c: Likewise.
6657         * libio/tst-wmemstream1.c: Likewise.
6658         * libio/tst-wmemstream2.c: Likewise.
6660         * version.h (RELEASE): Bump to 2.5.
6661         * README: Regenerated.
6663         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
6665         [BZ #3273]
6666         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
6667         found no group members.
6668         Patch by Petr Baudis.
6670 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
6672         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
6673         assert bootstrap_map.l_tls_modid is zero.
6674         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
6675         if USE___THREAD.
6677 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
6679         * libio/stdio.h: Move open_wmemstream prototype to ...
6680         * wcsmbs/wchar.h: ... here.
6682 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6684         [BZ #3252]
6685         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
6686         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
6687         __{,l}chown to handle the rest.
6688         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
6689         fchownat syscall and __ASSUME_32BITUIDS case inline, call
6690         __{,l}chown to handle the rest.
6691         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
6692         i386/fchownat.c.
6693         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
6694         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
6696         [BZ #3253]
6697         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6698         time, rather allocate increasingly bigger arrays of pointers, if
6699         possible with alloca, if too large with malloc.
6701 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
6703         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
6705         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
6707 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
6709         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
6710         home addresses.
6711         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
6712         IFA_F_HOMEADDRESS flag for interfaces.
6713         * include/ifaddrs.h (struct in6addrinfo): Define
6714         in6ai_homeaddress.
6716 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
6718         [BZ #3225]
6719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
6720         PTR_DEMANGLE3): Define.
6721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
6722         PTR_DEMANGLE3): Likewise.
6723         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
6724         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
6725         Likewise.
6726         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
6728 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
6730         * po/libc.pot: Regenerated.
6731         * po/be.po: Updated.
6732         * po/ca.po: Likewise.
6733         * po/cs.po: Likewise.
6734         * po/da.po: Likewise.
6735         * po/de.po: Likewise.
6736         * po/el.po: Likewise.
6737         * po/en_GB.po: Likewise.
6738         * po/es.po: Likewise.
6739         * po/fi.po: Likewise.
6740         * po/fr.po: Likewise.
6741         * po/gl.po: Likewise.
6742         * po/hr.po: Likewise.
6743         * po/hu.po: Likewise.
6744         * po/ja.po: Likewise.
6745         * po/ko.po: Likewise.
6746         * po/nb.po: Likewise.
6747         * po/nl.po: Likewise.
6748         * po/pl.po: Likewise.
6749         * po/pt_BR.po: Likewise.
6750         * po/ru.po: Likewise.
6751         * po/rw.po: Likewise.
6752         * po/sk.po: Likewise.
6753         * po/sv.po: Likewise.
6754         * po/tr.po: Likewise.
6755         * po/zh_CN.po: Likewise.
6756         * po/zh_TW.po: Likewise.
6758         [BZ #3137]
6759         * iconv/iconv_prog.c (main): Fix spelling in error message.
6760         * iconv/iconvconfig.c (main): Likewise.
6761         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
6762         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
6763         * locale/programs/localedef.c (main): Likewise.
6764         * locale/programs/repertoire.c (repertoire_read): Likewise.
6765         * timezone/zdump.c (main): Likewise.
6766         * nscd/connections.c (handle_request): Fix spelling in log message.
6767         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
6769 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
6771         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
6772         interfaces.
6774 2006-09-20  Andreas Jaeger  <aj@suse.de>
6776         * math/libm-test.inc (lrint_test_upward): Fix typo.
6778 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
6780         [BZ #2592]
6781         * math/libm-test.inc (lrint_test_tonearest): New function.
6782         (lrint_test_towardzero): New function.
6783         (lrint_test_downward): New function.
6784         (lrint_test_upward): New function.
6785         (main): Run these new tests.
6786         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
6787         of values near to 0.
6788         (two52): Use double not long double.
6789         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
6790         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
6791         (two23): Use float not double.
6792         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
6793         (two23): Use float not double.
6794         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
6795         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
6796         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
6797         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
6799 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6801         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
6802         Cast sp to unsigned long to avoid compiler warning.
6803         Use __makecontext_ret function instead of a trampoline on the stack.
6804         (__makecontext_ret): New function.
6805         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
6807 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
6809         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
6810         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
6811         bits.
6813 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
6815         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
6816         sure no reference to the unloaded map's search list remains in the
6817         dependency's scope.
6819 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
6821         * elf/Makefile: Add rules to build and run unload7 test.
6822         * elf/unload7.c: New test.
6823         * elf/unload7mod1.c: New file.
6824         * elf/unload7mod2.c: New file.
6826 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
6828         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
6829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
6830         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6831         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
6832         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6833         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
6834         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6835         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
6836         PTRACE_GETEVENTMSG): Likewise.
6837         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
6838         values.
6840 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
6842         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
6843         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6844         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
6845         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
6847 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
6849         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
6850         write '\0' to the fd.
6851         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
6852         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
6853         Change regs to unsigned long pointer from unsigned int, fix fscr
6854         offset.
6856 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
6858         * io/Makefile (CFLAGS-fstatat.c): Set.
6859         (CFLAGS-fstatat64.c): Likewise.
6860         (CFLAGS-mknodat.c): Likewise.
6862         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
6863         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6864         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
6865         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
6867 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
6868             Steven Munroe  <sjmunroe@us.ibm.com>
6870         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
6871         names to the beginning.  Rename "cell" to "cellbe".
6872         (_dl_powerpc_platforms): New.
6873         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6874         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
6875         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
6876         (_DL_HWCAP_PLATFORM): Define to new mask.
6877         (_dl_platform_string, _dl_string_platform): New functions.
6878         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
6879         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
6881 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
6883         [BZ #2526]
6884         * README.libm: Fix a thinko in sqrt algorithm description.
6886         [BZ #3143]
6887         * manual/string.texi (argz_delete): Fix prototype.
6888         Patch by <alpt@freaknet.org>.
6890 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
6892         [BZ #3138]
6893         * io/test-lfs.c (do_prepare): Give name_len type size_t.
6894         * io/tst-fcntl.c (do_prepare): Likewise.
6895         * posix/tst-exec.c (do_prepare): Likewise.
6896         * posix/tst-preadwrite.c (do_prepare): Likewise.
6897         * posix/tst-spawn.c (do_prepare): Likewise.
6898         * posix/tst-truncate.c (do_prepare): Likewise.
6899         * rt/tst-aio.c (do_prepare): Likewise.
6900         * rt/tst-aio64.c (do_prepare): Likewise.
6901         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
6902         size_t.
6904 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
6906         [BZ #2821]
6907         * time/mktime.c (guess_time_tm): Fix overflow detection.
6908         * time/Makefile (tests): Add bug-mktime1.
6909         * time/bug-mktime1.c: New file.
6911         [BZ #3189, #3188]
6912         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
6913         (mremap): Likewise.
6915 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
6917         [BZ #1006]
6918         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6919         Ensure relocation doesn't clobber any bits outside of the
6920         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
6921         R_SPARC_HI22 and R_SPARC_H44.
6923         [BZ #2775]
6924         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
6925         (long) (MINSIZE + nb - old_size) is positive.
6927         * malloc/arena.c (grow_heap): When growing bail even if new_size
6928         is negative.
6930         [BZ #3155]
6931         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
6932         stack below r1.
6934 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
6936         * posix/regex_internal.c (re_string_reconstruct): Handle
6937         offset < pstr->valid_raw_len && pstr->offsets_needed case.
6938         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
6939         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6940         re_string_context_at.
6941         * posix/Makefile: Add rules to build and run bug-regex26 test.
6942         * posix/bug-regex26.c: New test.
6944         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
6945         rather than col_sym_free.  Move seqp declaration earlier.
6947         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
6949 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
6951         * nscd/initgrcache.c (addinitgroupsX): Move any_success
6952         decl before first goto out.
6954 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
6956         * Makerules (shlib.lds): If have-hash-style, put .hash section
6957         at the end of the RO segment.
6959 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
6961         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
6962         style hash table format is used.
6964 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
6966         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
6967         randomization rather than before.
6968         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
6970 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
6972         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
6974         * malloc/malloc.c (_int_malloc): Use full list insert and not
6975         shortcut which assumes the list is empty for large requests
6976         too.
6978         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
6980 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
6982         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
6983         and offout arguments to the prototype.
6984         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
6985         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
6986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
6987         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
6988         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
6989         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
6990         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
6991         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
6993 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
6995         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
6997         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
6998         dlopen parameters.
7000 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
7002         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
7003         only if herrno is NETDB_INTERNAL.  Handle errors other than
7004         ERANGE outside of the loops, handle TRY_AGAIN.
7006         * locale/programs/ld-ctype.c (translit_flatten): Issue error
7007         if other's ctype category was missing.
7008         * locale/programs/ld-collate.c (collate_read): Return if
7009         copy_locale's collate category is missing.
7011 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
7013         [BZ #2684]
7014         * malloc/malloc.c (public_rEALLOc): Try harder by using other
7015         arenas if allocation failed.
7016         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
7018 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
7020         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
7021         waste bins[0..1].
7022         (malloc_state): Reduce bins size by 2.
7023         (_int_malloc): Fix test for large enough buffer for early termination.
7024         When no unsorted block matches perfectly and an exiting block has
7025         to be split, use full list insert and not shortcut which assumes
7026         the list is empty.
7028         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
7029         failure.
7031 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
7033         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
7034         do anything.
7036         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
7037         symbol require exact match (these are PLTs).
7038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
7039         (_dl_ppc64_addr_sym_match): Likewise.
7041         [BZ #2683]
7042         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
7043         If symbol has a value use it.
7044         * elf/tst-dladdr1.c: New file.
7045         * elf/Makefile: Add rules to build and run tst-addr1.
7047 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
7049         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
7050         keeps failing and heap growth or new heap creation isn't
7051         successful either.
7052         * malloc/tst-malloc.c (main): Add new tests.
7054 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
7056         [BZ #2734]
7057         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
7058         as in the x86-64 code to use bswap.
7060 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
7062         [BZ #2680]
7063         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
7064         __USE_UNIX98.
7065         * posix/bits/unistd.h: Likewise.
7067 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
7069         [BZ #2751]
7070         * string/strchr.c: Add cast to avoid warning.
7072 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
7074         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
7075         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
7076         limit is needed to avoid the exploding of the address space
7077         requirement for secondary heaps.
7078         * malloc/arena.c (HEAP_MAX_SIZE): Define using
7079         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
7081 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
7083         [BZ #3018]
7084         * Makerules (depfiles): Handle extra-test-objs the same as
7085         extra-objs.
7086         (common-mostlyclean): Likewise.
7087         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
7088         instead.
7089         * elf/Makefile (extra-objs): Likewise.
7090         * stdlib/Makefile (extra-objs): Likewise.
7092 2006-08-14  Eric Blake  <ebb9@byu.net>
7094         [BZ #3044]
7095         * misc/error.h: Assume C89 or better.
7096         * misc/error.c: Likewise.
7098 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
7100         [BZ #3040]
7101         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
7102         __ASSUME_ATFCTS is defined.
7104 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
7106         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
7107         to sort in each call.
7109         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
7110         is empty simply return and use next service.
7111         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
7113         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
7114         tells us when not finding a charmap file is an error.
7115         * locale/programs/charmap.h: Adjust charmap_read prototype.
7116         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
7117         cannot find a charmap.
7118         * locale/programs/localedef.c (main): Adjust charmap_read call.
7120 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
7122         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
7123         sysdeps/posix/pause.c implementation instead.
7125 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
7127         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
7128         to EPERM.
7130 2006-08-13  Andreas Schwab  <schwab@suse.de>
7132         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
7133         Don't clobber caller's LRSAVE.
7134         (_dl_prof_resolve): Likewise.
7136 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
7138         [BZ #1996]
7139         * libio/memstream.c (open_memstream): Allocate initial buffer with
7140         calloc.
7141         * libio/wmemstream.c (open_wmemstream): Likewise.
7142         * libio/strops.c: Pretty printing.
7143         (_IO_str_overflow): Clear uninitialized part of the new buffer.
7144         (enlarge_userbuf): New function.
7145         (_IO_str_seekoff): Call it if seek position is larger than current
7146         buffer.
7147         * libio/wstrops.c: Likewise.
7148         * libio/vasprintf.c: Add comment as to why we do not have to use
7149         calloc instead of malloc to allocate initial buffer.
7150         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
7151         * libio/bug-memstream1.c: New file.
7152         * libio/bug-wmemstream1.c: New file.
7154 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
7156         * libio/wstrops.c: Remove dead macro definitions and comments.
7157         * libio/strops.c: Likewise.
7159         [BZ #2764]
7160         * login/utmpname.c (__utmpname): Remove unnecessary test.
7162 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
7164         [BZ #2832]
7165         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
7166         0s from integers.
7168 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
7170         [BZ #2987]
7171         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
7172         for CPU clocks.
7173         * sysdeps/unix/clock_settime.c: Add support for platform-specific
7174         setting of CPU clocks.
7176 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7178         [BZ #2841]
7179         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
7180         since C99 requires the result to promote to 'int' when uint_least8_t
7181         and uint_least16_t promote to 'int'.
7183 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
7185         [BZ #3013]
7186         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
7187         lenght of one output field, correct bitmask creation.
7188         * locale/programs/ld-time.c: Add alignment.
7190         [BZ #2997]
7191         * misc/error.c: Add space between program name and message if file
7192         name is missing.
7194 2006-08-03  Eric Blake  <ebb9@byu.net>
7196         [BZ #2998]
7197         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
7199 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
7201         * malloc/memusagestat.c: Silence warnings.
7203         * malloc/malloc.c: Dynamically size mmap treshold if the program
7204         frees mmaped blocks.
7205         Patch by Valerie Henson and Arjan van de Ven.
7207 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
7209         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
7210         __USE_GNU.
7212         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
7213         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
7214         (DEF): Don't put the var into .gnu.linkonce.r.* section.
7215         Only provide var definitions in strtol_l (or for *ull*
7216         in strtoll_l).
7218         * stdio-common/bug16.c (tests): New array.
7219         (do_tests): Allow the first hexadecimal digit
7220         to be 1, 2, 4 or 8.  Do 3 additional tests.
7222         * sysdeps/s390/fpu/libm-test-ulps: Update.
7224         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
7225         fchownat syscall if available.
7226         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7227         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
7228         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7230 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
7232         * nis/nis_xdr.c: Avoid some function calls.
7234 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
7235             Ulrich Drepper  <drepper@redhat.com>
7237         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
7238         short cut if only one name component is stripped away.
7240 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
7242         * nis/nis_call.c: Minor cleanups throughout.
7243         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
7244         (first_shoot): Add search_parent_first parameter.  Only if it is set
7245         search parent server first.
7246         If directory for table found through cold start cache is not the same
7247         as referenced in the cache, don't use it.
7248         (__nisfind_server): Take additional parameter.  Pass it on to
7249         first_shoot.
7250         (__prepare_niscall): Adjust __nisfind_server call.
7251         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
7252         * nis/nis_table.c: Adjust __nisfind_server call.
7253         * nis/nis_lookup.c: Likewise.
7254         (nis_lookup): Don't loop endlessly if name is reduced to ".".
7256 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
7258         [BZ #2182]
7259         * math/s_cacosh.c: Return values from positive branch.
7260         * math/s_cacoshf.c: Likewise.
7261         * math/s_cacoshl.c: Likewise.
7263         [BZ #2883]
7264         * sysvipc/sys/msg.h: Change return value to ssize_t.
7265         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7266         * sysvipc/msgrcv.c: Likewise.
7267         * include/sys/msg.h: Likewise.
7269         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
7270         test introduced in patch for bz #661.
7271         (getgrouplist): Simplify code a bit.  Don't allocate one additional
7272         element for NEWGROUPS.
7274         [BZ #2908]
7275         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
7276         'f', use '1' as leading digit not '\1'.
7277         * stdio-common/Makefile (tests): Add bug16.
7278         * stdio-common/bug16.c: New file.
7280         [BZ #2914]
7281         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
7282         and don't try to open it.  The patch introducing the macro
7283         contained a bug and used the same file name as the new file
7284         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
7285         this out completely.
7287         [BZ #2926]
7288         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
7289         Patch by Jerry James <Jerry.James@usu.edu>.
7291         * rt/Makefile (tests): Add tst-clock2.
7292         * rt/tst-clock2.c: New file.
7294         [BZ #2978]
7295         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
7296         function and its parameters and pass it to new thread.
7297         (__gai_notify): Add support for alternative waiting for completion.
7298         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
7299         waiting for completion.
7300         * resolv/getaddrinfo_a.c: Likewise.
7301         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
7302         waiting for completion is used.
7303         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
7304         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
7305         * resolv/gai_error.c: Likewise.
7306         * resolv/gai_sigqueue.c: Likewise.
7308 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
7310         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
7311         errno to EBADF and return MACH_PORT_NULL.
7313 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
7315         [BZ #2980]
7316         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
7318 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
7320         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
7321         walk them instead of the symbol table.
7323 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
7325         [BZ #2098]
7326         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
7327         status of NSS calls, not the number of returned entries.
7329         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
7330         request_key, keyctl.
7332 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
7334         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
7336 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
7338         * elf/tst-auditmod1.c: Fix typo in #error.
7340 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
7342         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
7344         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
7346 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
7348         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
7349         that the directory is empty even on non-POSIX filesystems.
7351 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
7353         * elf/dl-open.c (dl_open_worker): Add branch prediction.
7355         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
7356         the backend NSS module.  If backend setgrent call failed, don't have
7357         internal_setgrent fail.  Just remember this until it is needed.
7358         * nis/nss_compat/compat-pwd.c: Likewise.
7359         * nis/nss_compat/compat-spwd.c: Likewise.
7361 2006-07-30  Roland McGrath  <roland@redhat.com>
7363         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
7364         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
7365         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
7366         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
7368         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
7369         (nanosleep_not_cancel): New macro.
7370         (sigsuspend_not_cancel): new macro.
7371         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
7372         (do_sigsuspend): Define as inline.
7373         (__sigsuspend): Always use do_sigsuspend.
7374         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
7375         * include/signal.h: Declare __sigsuspend_nocancel.
7376         * sysdeps/posix/pause.c
7377         [! NO_CANCELLATION] (__pause_nocancel): New function.
7379         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
7380         * include/time.h (__nanosleep_nocancel): Likewise.
7382 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
7384         * locale/programs/localedef.c (add_to_readlist): Rename local
7385         variables to avoid confusion.
7387         * locale/programs/charmap.c (charmap_read): Emit error message if
7388         charmap couldn't be found or read.
7390 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
7392         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7393         __ASSUME_FUTEX_LOCK_PI.
7394         * include/time.h: Declare __nanosleep_nocancel.
7395         * include/unistd.h: Declare __pause_nocancel.
7397         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
7398         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
7399         get the __stack_chk_fail_local definition when it's needed.
7401 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
7403         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
7404         * dlfcn/bug-atexit3.c: New file.
7405         * dlfcn/bug-atexit3-lib.cc: New file.
7407         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
7408         used when the namespace is not the base namespace.
7410 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
7412         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
7413         (__new_exitfn): Bump it in every successful call.
7414         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
7415         more exit handlers, call them right away.
7416         * stdlib/exit.h: Declare __new_exitfn_called.
7418 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
7420         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
7421         calling registered handler.
7423         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
7424         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7425         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7426         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7427         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7428         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7429         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7430         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7432 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
7434         * elf/dl-lookup.c (dl_new_hash): New functions.
7435         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
7436         value here.  Compute new-style hash value.  Pass new hash value
7437         and reference to variable with the old value to do_lookup_x.
7438         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
7439         old-style hash table.
7440         (_dl_debug_bindings): Pass new hash value and reference to variable
7441         with the old value to do_lookup_x.
7442         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
7443         new-style hash value and change old-style hash value parameter to
7444         be a reference.  Reoganize functions to determine whether
7445         new-style hash table is available.  Only fall back on old-style
7446         table.  If old-style hash value is needed, compute it here.
7447         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
7448         entry.
7449         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
7450         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
7451         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
7452         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
7453         * Makeconfig: If linker supports --hash-style option add it to all
7454         linker command lines to build DSOs.
7455         * config.make.in: Define have-hash-style.
7456         * configure.in: Test whether linker supports --hash-style option.
7458         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
7459         * sysdeps/generic/ldsodefs.h: Adjust prototype.
7461 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
7463         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
7464         auditing.
7466         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
7467         RPATH of main map twice.
7469 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
7471         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
7472         look further, return original strings.
7473         (_nl_find_msg): Do not return found translation if the conversion
7474         failed.  Either signal the string is unusable or that something went
7475         wrong and the original should be used.
7477 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
7479         * string/_strerror.c (__strerror_r): Add __builtin_expect.
7481 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
7483         [BZ #2766]
7484         * misc/insremque.c (insque): Handle prev == NULL.
7485         * misc/Makefile (tests): Add tst-insremque.
7486         * misc/tst-insremque.c: New test.
7488 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
7490         [BZ #2792]
7491         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
7492         conflict with DL_DST_REQUIRED.
7494 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
7496         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
7497         match what Solaris does.
7499 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
7501         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
7502         local_setegid instead of seteuid and setegid.
7503         * sysdeps/generic/local-setxid.h: New file.
7504         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
7506         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
7508         * string/Makefile (tests): Add bug-envz1.
7509         * string/bug-envz1.c: New file.
7511 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
7513         * posix/regex_internal.c (re_string_skip_chars): If no character has
7514         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
7515         to the byte which couldn't be converted.
7516         (re_string_reconstruct): Don't clear valid_raw_len before calling
7517         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
7518         tip_context using re_string_context_at.
7519         * posix/Makefile: Add rules to build and run bug-regex25 test.
7520         * posix/bug-regex25.c: New test.
7522 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
7524         [BZ #2703]
7525         * string/envz.c (envz_strip): Correct erroneously reversed src
7526         and dest parameters to memmove() invocation.
7528 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
7530         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
7531         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
7532         to make sure the database has been already invalidated.
7533         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
7534         after the cache has been invalidated.  Use pthread_mutex_lock rather
7535         than pthread_mutex_trylock if fd != -1.
7536         * nscd/connections.c (invalidate_cache): Add fd argument, write
7537         response to fd if not calling prune_cache, pass fd to prune_cache.
7538         (handle_request): Adjust invalidate_cache caller.
7539         (nscd_run): Pass -1 as fd to prune_cache.
7541 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
7543         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
7544         the correct place.
7546 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
7548         * nscd/nscd.h (struct database_dyn): Add prunelock field.
7549         * nscd/cache.c (prune_cache): Take prunelock before starting the
7550         work.  Just return in case it is already taken.
7551         * nscd/connections.c (dbs): Initialize .prunelock.
7553 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
7555         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
7556         copying.  No need to allocate new array for group members.  Just
7557         move the pointers and update the size.
7559         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
7560         Avoid memory leak in case realloc fails.  Simplification for
7561         better code generation.
7563         Avoid deprecation warning because of libc_hidden_proto for
7564         inet6_option_alloc.
7565         * inet/inet6_option.c (option_alloc): Renamed from
7566         inet6_option_alloc.  Made static.
7567         (inet6_option_alloc): Now a simple wrapper around option_alloc.
7568         (inet6_option_append): Call option_alloc.
7569         * include/netinet/in.h: Remove libc_hidden_proto for
7570         inet6_option_alloc.
7572         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
7573         for cleanup when cb!=NULL [Coverity CID 233].
7575 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
7577         [BZ #2693]
7578         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
7579         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
7580         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
7581         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
7582         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
7583         and inet6_rth_getaddr.
7584         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
7585         array.
7586         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
7587         Mark inet6_option_* interfaces as deprecated.
7588         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
7589         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
7590         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
7591         inet6_rth_segments, and inet6_rth_getaddr.
7592         * inet/inet6_opt.c: New file.
7593         * inet/inet6_rth.c: New file.
7595         * inet/netinet/icmp6.h: Pretty printing.
7597         [BZ #2683]
7598         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
7600 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
7602         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
7603         doing it all here.  When server does not know the answer do not
7604         fail immediate, try parent first.
7606         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
7607         overflow test.
7609 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
7611         * nis/nis_call.c (__prepare_niscall): New function.  Split out
7612         from __do_niscall.
7613         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
7614         and exported.
7615         (__follow_path): New function.  Split out from nis_list.
7616         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
7617         _xdr_nis_result.
7618         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
7619         _xdr_nis_result.
7620         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
7621         and __follow_path.
7622         * nis/Versions: Export __prepare_niscall, __create_ib_request,
7623         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
7624         from libnsl for version GLIBC_PRIVATE.
7625         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
7626         Remove entry parameter from _nss_nisplus_parse_pwent and
7627         _nss_nisplus_parse_grent.
7628         * nis/nss_nisplus/nisplus-parser.c: Likewise.
7629         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
7630         again.  Rewrite getpwent handling to not use nis_first_entry and
7631         nis_next_entry.  Roll out own niscall handling.
7632         * nis/nss_nisplus/nisplus-grp.c: Likewise.
7634         * sunrpc/xdr_rec.c: Fix typo in comment.
7636 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
7638         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
7639         handling.
7641         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
7642         to allocate memory for my_pollfd.  Better initialization of
7643         cb_is_running.  Use TEMP_FAILURE_RETRY.
7645         * malloc/memusage.sh (memusageso): Add quotes.
7646         (memusagestat): Likewise.
7647         * debug/xtrace.sh (pcprofileso): Likewise.
7648         (pcprofiledump): Likewise.
7649         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
7650         replacement.
7651         * malloc/Makefile ($(objpfx)memusage): Likewise.
7653         * nis/nis_callback.c (__nis_create_callback): Calls to
7654         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
7655         asprintf call fails.
7657         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
7658         no uninitialized memory is passed to sendto.
7660 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
7662         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
7663         of snprintf+strdup.  Handle OOM.
7664         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
7665         cb->serv together.  Remove now obsolete free calls.
7666         (__nis_destroy_callback): Remove now obsolete free call.
7668 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
7670         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
7671         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
7672         and ULA respectively). Set precedence for IPv4 address to 10 as
7673         defined in RFC3484 for preferring IPv6.
7674         * posix/gai.conf: Update to match the new default tables.
7676 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
7678         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
7679         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
7680         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
7681         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
7683         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
7684         Removed.
7685         (init_nss_interface): Remove initialization of these variables.
7687 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
7689         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
7690         nis_free_directory forward to avoid duplication.
7692 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
7694         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
7695         rec_dirsearch returning NULL.
7696         (first_shoot): Handle __nis_finddirectory returning NULL.
7697         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
7699         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
7700         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
7702 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
7704         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
7705         pid changed.
7707 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
7709         * include/rpc/pmap_prot.h: Mark all functions as hidden.
7711         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
7712         * nscd/nscd_getgr_r.c: Likewise.
7714         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
7716         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
7717         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
7719         * stdlib/longlong.h (__clz_tab): Mark as hidden.
7721         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
7723         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
7725         * include/rpc/auth.h: Mark xdr_des_block_internal and
7726         xdr_opaque_auth_internal as hidden.
7728         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
7729         hidden.
7731         * include/rpc/xdr.h: Mark all _internal functions as hidden.
7733         * misc/getusershell.c (okshells): Don't use static initializers,
7734         do it dynamically.
7736         * stdlib/fmtmsg.c (keywords): Change type of len element to
7737         uint32_t to not waste space on 64bit machines.
7739         * locale/setlocale.c: Change _nl_category_names into a string.
7740         Add new _nl_category_name_idxs.  Change all users.
7741         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
7742         Declare _nl_category_name_idxs.
7743         * locale/findlocale.c: Adjust for _nl_category_names change.
7744         * locale/loadlocale.c: Likewise.
7745         * locale/newlocale.c: Likewise.
7746         * intl/dcigettext.c: Likewise.
7748         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
7749         (add_alias2): ...here.  New function.
7750         (__gconv_read_conf): Simplify builtin alias handling.
7751         (builtin_aliases): Convert to string to avoid relocations.
7752         * iconv/gconv_builtin.h: Add comment about correct formatting.
7754 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
7756         * resolv/res_debug.c (loc_ntoa): Make error const.
7758 2006-05-14  Andreas Schwab  <schwab@suse.de>
7760         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
7762 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
7764         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
7765         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
7766         sizeof (cpu_set_t).
7768 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
7770         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
7772         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
7774         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
7775         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
7777         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
7778         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
7780         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
7781         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
7782         xdr_cback_data.
7784         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
7785         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7786         xdr_ypupdate_args.
7788         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
7789         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
7791         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
7792         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
7794         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
7795         * include/rpcsvc/nis_callback.h: New file.
7797         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
7798         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
7800         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7801         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7803         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
7804         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
7806         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7807         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7809         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
7810         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7811         xdr_ypdelete_args.
7813         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
7814         __BEGIN_DECLS and __END_DECLS, the header is not installed.
7816         * nis/nis_error.c: Remove table of strings.  Use position
7817         independent mechanism.
7818         * nis/nis_error.h: New file.
7820 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
7822         * locale/programs/ld-time.c (time_finish): If wide era name or
7823         format aren't provided, set both wname and wformat to L"".
7825 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
7827         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
7828         results if the call was succesful.
7830         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
7832         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
7833         as hidden.
7835 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
7837         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
7839 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
7841         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
7842         caller makes sure this is not the case.
7843         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
7845 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
7847         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
7848         calls.
7850         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
7851         [Coverity CID 229, 230]
7853         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
7854         DGETTEXT calls.
7855         (hol_help): Likewise.  [Coverity CID 226, 227]
7857         * string/argz-replace.c (__argz_replace): Unconditionally call
7858         free on SRC.  [Coverity CID 225]
7860         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
7861         the return value of __nis_default_owner and __nis_default_group,
7862         it has been especially allocated.  [Coverity CID 224]
7864         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
7865         searchgroup and searchowner.  Significantly simplified.
7866         (__nis_default_owner): Remove duplication.  Do not locally copy the
7867         string before duplicating it.
7868         (__nis_default_group): Likewise.
7870         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
7871         we must clear the variable before calling __nisfind_server.
7873         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
7874         nis_getnames.  [Coverity CID 223]
7876         * locale/programs/locfile.c (locfile_read): Use alloca instead of
7877         xmalloc to allocate local repertoire name.  [Coverity CID 222]
7879         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
7880         allocate memory for the input to add_bytes.  [Coverity CID 221]
7882         * posix/wordexp.c (w_addword): Free word if realloc fails and it
7883         was allocated here.  [Coverity CID 219, 220]
7885         * posix/getconf.c (print_all): Free confstr data after printing.
7886         [Coverity CID 218]
7888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
7889         list allocation fails.  [Coverity CID 215]
7891         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
7892         [Coverity CID 213]
7894         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
7895         string is NULL.  [Coverity CID 212]
7896         * argp/Makefile: Add rules to build and run bug-argp1.
7897         * argp/bug-argp1.c: New file.
7899         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
7900         end of string.
7901         * stdlib/canonicalize.c (__realpath): Likewise.
7903         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
7904         pointer.  [Coverity CID 206]
7906         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
7907         in statically linked code.
7908         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
7909         statically built code, be prepared to have no link map.
7910         [Coverity CID 205]
7912         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
7913         dgettext calls. [Coverity CID 204]
7915         * argp/argp-help.c (struct uparams): Remove valid member.  Change
7916         the one user.
7917         (uparam_names): Reduce size.  Avoid relative relocations.
7918         Moved to read-only segment.
7919         (fill_in_uparams): Update for new layout.
7921         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
7922         assumed to always be != NULL. [Coverity CID 202]
7924         * argp/argp-help.c (hol_entry_help): Remove some dead code
7925         [Coverity CID 200].
7927         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
7928         away a few more unconditional yperr2nss calls.
7929         (_nss_nis_getservbyname_r): Likewise.
7931 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
7933         * sysdeps/generic/ldsodefs.h: Remove support for non-core
7934         architectures.
7936         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
7937         that unused memory passed to sendto is nevertheless initialized.
7939         [BZ #2499]
7940         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
7941         possibly unaligned memory accesses.
7943         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
7944         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
7945         and __putlong respectively.  Correct buffer overflow check for
7946         NS_NOTIFY_OP.
7948         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
7950         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
7951         (send_dg): Rewrite error handling to be more compact and avoid
7952         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
7954         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
7956         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
7957         instead of ns_get16.
7958         (res_queriesmatch): Likewise.  Minor optimization.
7960         [BZ #2499]
7961         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
7962         __libc_res_nsend might reallocate the buffer for the answer.  In
7963         this case we have to reload the HP pointer.
7965 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
7967         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
7968         some branch prediction hints.
7970         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
7971         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7972         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7973         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7974         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7975         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7976         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7977         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7979 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7981         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
7982         by a GOT relocation to make Scrt1.o position independent.
7983         * sysdeps/s390/s390-64/elf/start.S: Likewise.
7985         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
7986         six system call parameters.
7987         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7989 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
7991         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
7992         malloc&bzero.
7994         * sunrpc/svc_udp.c (BZERO): Remove definition.
7995         (CALLOC): Define.
7996         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
7998         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
7999         (des_SPtrans): Use uint32_t type.
8000         (des_skb): Likewise.
8002         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
8004 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
8006         [BZ #2509]
8007         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
8008         on 32-bit arches.
8010 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
8012         * locale/programs/ld-address.c (address_finish): Fix one more
8013         place where the iso639 array might be accessed beyond the limits.
8015 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
8017         * nis/nis_table.c (nis_list): Avoid clearing res twice before
8018         filling it for the first time.
8020         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
8021         Adjust all callers.
8022         Free res object content before returning.
8024         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
8026         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
8027         client->cl_auth.
8029         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
8030         cleanup for initial thread, just the free call on TVP.
8032         * nscd/gai.c (__getline): Define.
8035 See ChangeLog.16 for earlier changes.