* locales/iso14651_t1_common: Add rules for sorting Malayalam.
[glibc/pb-stable.git] / ChangeLog
blob4fdd93406de488a93e8c88df863aa335d7ba755e
1 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4         defined, allow additional data to be added using the optional
5         MORE_ELF_HEADER_DATA macro.
6         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
7         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
9 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
11         * include/atomic.h: Define catomic_and if not already defined.
12         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
13         * sysdeps/i386/i486/bits/atomic.h: Likewise.
15 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
17         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
18         Change all callers.
19         (_int_realloc): Likewise.  Third argument is now padded size
20         All _int_* functions are now static.
22         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
23         * malloc/arena.c: Likewise.
24         * include/malloc.h: Remove now unnecessary declarations of the _int_*
25         functions.
27         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
28         easily.
30         * malloc/malloc.c: Add branch prediction for use of the hooks.
32         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
34 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
36         [BZ #7095]
37         * bits/confname.h: Add SUSv7 macros for getconf environments.
38         * bits/environments.h: Likewise.
39         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
40         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
41         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
42         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
43         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
44         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
45         * posix/getconf.c: Likewise.
46         * posix/sysconf.c: Likewise.
47         * sysdeps/posix/sysconf.c: Likewise.
48         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
49         environments.
51 2009-01-16  Petr Baudis  <pasky@suse.cz>
53         [BZ #9753]
54         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
55         even if we currently have zero nscount.
57 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
59         [BZ #9781]
60         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
61         the input line is too long.
63         * po/Makefile (libc.pot): Add f_print as function taking c-format
64         parameter.
66         * debug/xtrace.sh: Unify translatable messages.
67         * elf/ldd.bash.in: Likewise.
68         * elf/sprof.c: Likewise.
69         * locale/programs/locale.c: Likewise.
70         * malloc/memusage.sh: Likewise.
71         * nss/getent.c: Likewise.
73 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
75         * debug/pcprofiledump.c (print_version,
76         argp_program_version_hook): New function.
77         * elf/ldconfig.c (more_help): New function.
78         (argp): Use it.
79         * elf/sln.c (usage): New function.
80         (main): Support --help and --version.
81         * malloc/memusagestat.c (print_version): New function.
82         (argp_program_version_hook): New variable.
83         * nscd/nscd.c (more_help): New function.
84         (argp): Use it.
85         * posix/getconf.c (main): Send --version output to stdout.
86         Support --help.
87         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
88         arguments.  All callers changed.
89         (print_version): New function.
90         (parseargs): Support --help and --version.
91         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
92         changed.
93         (print_version): New function.
94         (main): Use getopt_long.  Support --help and --version.
95         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
96         --version.
98 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
100         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
101         (update_data): Fix handling of wrapping back
102         to the beginning of the buffer.
104         [BZ #9823]
105         * stdio-common/psignal.c (psignal): Fix test for empty string.
107 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
109         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
110         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
111         move _null_auth to .rodata.
113         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
114         value of 24.
116         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
118         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
119         today than when the original code was written.  Use larger
120         buffers.  This also makes it unnecessary to have stat information,
121         if this causes extra efforts.
122         (__opendir): In case O_DIRECTORY works, don't call fstat just for
123         __alloc_dir.
125 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
127         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
128         is set.
129         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
130         * sysdeps/sh/sh4/__longjmp.S: Likewise.
131         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
132         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
133         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
134         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
136 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
138         * po/ru.po: Update from translation team.
140 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
142         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
143         Add _tid slot to maintain consistency with kernel.
145 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
147         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
148         incomplete characters at end of input buffer.
149         * libio/Makefile (tests): Add tst-fgetwc.
150         * libio/tst-fgetwc.c: New file.
151         * libio/tst-fgetwc.input: New file.
153 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
155         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
157 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
159         [BZ #9793]
160         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
161         *OUTBUFSTART unless the whole output fit into the buffer.
162         * iconv/Makefile (tests): Add tst-iconv4.
163         * iconv/tst-iconv4.c: New file.
165 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
167         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
168         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
170 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
172         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
173         newer linker scripts.
175 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
177         [BZ #7040]
178         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
179         inotify_rm_watch should have type int.
181 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
183         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
184         Make aligned_restore_vmx a local symbol.
185         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
186         Likewise.
188 2009-01-30  Andreas Jaeger  <aj@suse.de>
190         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
191         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
192         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
193         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
194         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
195         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
196         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
198 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
200         [BZ #9726]
201         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
202         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
204 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
206         [BZ #9726]
207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
208         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
210         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
212 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
214         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
215         memcpy instead of memcmp.
216         (_dl_setup_pointer_guard): Likewise.
218 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
220         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
221         manipulated brk, use malloc_printerr.
222         * misc/sbrk.c (__sbrk): Better error handling for nonsense
223         requests.
225 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
227         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
228         rindex): For C++ add inlines so that they can be recognized as
229         builtins.
230         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
232 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
233             Jakub Jelinek  <jakub@redhat.com>
235         * string/string.h: Define correct C++ prototypes for gcc 4.4.
236         * wcsmbs/wchar.h: Likewise.
238 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
240         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
241         (stackinfo_sub_sp): Define.
243 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
245         [BZ #9750]
246         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
247         * include/alloca.h (alloca_account): Define.
248         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
249         (stackinfo_sub_sp): Define.
251         * nscd/connections.c (nscd_init): If database file access fails
252         check whether this is due to permission problems and bail in that
253         case.
255         [BZ #9741]
256         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
257         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
259 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
261         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
262         Add "t" to clobber list.
263         (INTERNAL_SYSCALL_NCS): Likewise.
265 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
267         * nss/getent.c (print_networks): Don't print comma between aliases.
269 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
271         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
273         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
274         the hash table.
275         * misc/Makefile (tests): Add bug-hsearch1.
276         * misc/bug-hsearch1.c: New file.
278 2009-01-22  Roland McGrath  <roland@redhat.com>
280         * Makeconfig (%.v.i): Strip trailing # comments,
281         not only whole-line comments.
283 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
285         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
286         one parameter.  If non-NULL use it to initialize return value.
287         (_dl_setup_pointer_guard): New function.
288         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
289         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
290         * elf/rtld.c (security_init): Pass _dl_random to
291         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
292         pointer_chk_guard.
293         * elf/dl-sysdep.c (_dl_random): New variable.
294         (_dl_sysdep_start): Handle AT_RANDOM.
295         (_dl_show_auxv): Likewise.
296         * elf/dl-support.c (_dl_random): New variable.
297         (_dl_aux_init): Handle AT_RANDOM.
298         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
299         to _dl_setup_stack_chk_guard.
301         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
303 2009-01-10  Roland McGrath  <roland@redhat.com>
305         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
307 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
309         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
311         [BZ #9706]
312         * nss/nss_files/files-parse.c (strtou32): New function.
313         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
314         across 32-bit and 64-bit platforms.
315         (INT_FIELD_MAYBE_NULL): Likewise.
317 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
319         [BZ #9720]
320         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
321         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
322         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
323         Likewise.
325 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
327         [BZ #697]
328         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
329         being NULL also if there are no backreferences.
330         * posix/rxspencer/tests: Add testcases.
332 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
334         [BZ #9697]
335         * posix/bug-regex17.c: Add testcases.
336         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
337         handling.
339 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
341         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
342         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
343         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
344         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
345         for elf subdir.
346         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
347         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
348         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
349         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
350         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
351         * sysdeps/unix/sysv/linux/s390/Versions: New file.
353 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
355         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
356         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
357         re_string_skip_chars, re_string_reconstruct): Likewise.
358         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
360 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
362         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
363         adjust the buffer alignment.
365 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
367         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
368         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
369         net/route.h.
371         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
372         flavor to description only when flavor is not NULL.
374         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
375         mutex after SIGIO/SIGURG lookup loop.
377 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
379         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
381 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
383         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
384         handling.
386 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
388         * sysdeps/unix/sysv/linux/kernel-features.h
389         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
391         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
392         if no output is written.
394         * version.h: Bump to 2.10 development.
396         * posix/getconf.c: Update copyright year.
397         * nss/getent.c: Likewise.
398         * iconv/iconvconfig.c: Likewise.
399         * iconv/iconv_prog.c: Likewise.
400         * elf/ldconfig.c: Likewise.
401         * catgets/gencat.c: Likewise.
402         * csu/version.c: Likewise.
403         * elf/ldd.bash.in: Likewise.
404         * elf/sprof.c (print_version): Likewise.
405         * locale/programs/locale.c: Likewise.
406         * locale/programs/localedef.c: Likewise.
407         * nscd/nscd.c (print_version): Likewise.
408         * debug/xtrace.sh: Likewise.
409         * malloc/memusage.sh: Likewise.
410         * malloc/mtrace.pl: Likewise.
411         * debug/catchsegv.sh: Likewise.
413 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
415         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
416         script.
418 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
420         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
421         gethostbyname4_r function call succeeded, just leave the loop.
423         [BZ #9694]
424         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
425         very end.
426         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
427         * wctype/Makefile (tests): Add bug-wctypeh.
428         * wctype/bug-wctypeh.c: New file.
430         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
431         LOCALDOMAIN is defined.
432         * nscd/nscd_getai.c (__nscd_getai): Likewise.
434         * sysdeps/x86_64/bits/select.h: New file.
436         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
438 2008-12-21  Bruno Haible  <bruno@clisp.org>
440         [BZ #9677]
441         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
442         if no output is written.
444 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
446         * login/utmp_file.c (pututline_file): Replace call to dup2 with
447         libc internal symbol __dup2 to avoid access through the PLT.
449 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
451         [BZ #6545]
452         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
453         available only for __USE_GNU.
455         * inet/Makefile (tests): Add tst-getni2.
456         * inet/tst-getni2.c: New file.
458         [BZ #7080]
459         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
460         NULL when NI_NAMEREQD is set.
461         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
462         * inet/Makefile (tests): Add tst-getni1.
463         * inet/tst-getni1.c: New file.
465 2008-12-03  Petr Baudis  <pasky@suse.cz>
467         [BZ #7067]
468         * nscd/connections.c (invalidate_cache): Use prune_run_lock
469         instead of prune_lock.
470         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
471         * nscd/nscd.h (database_dyn): Add prune_run_cache.
473 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
475         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
476         use.
478         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
479         handling.
481         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
482         after reading name server list.
484         [BZ #7058]
485         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
486         handling for host name aliases.
488 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
490         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
491         instead of doing things manually.
493 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
495         * posix/regex_internal.h (build_wcs_upper_buffer):
496         Return type is reg_error_t.
498 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
500         * posix/globtest.sh: Use mktemp to create temporary file and
501         directory.
503         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
504         sets correctly.
505         (__CPU_CLR_S): Likewise.
506         (__CPU_ISSET_S): Likewise.
508 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
509             Ulrich Drepper  <drepper@redhat.com>
511         * scripts/firstversion.awk: Use custom comparison function to compare
512         version numbers.
513         * scripts/versions.awk: Use sort invocation which can handle
514         multi-digit sub-version numbers.
516 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
518         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
519         * locale/iso-639.def: Add Chhattisgarhi entry.
521 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
523         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
524         ESRCH return value.
525         (_nss_dns_gethostbyname4_r): Likewise.
526         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
527         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
528         gethostbyname4_r, we don't have a separate IPv6 status, so copy
529         the no_data variable.
531         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
532         information at the correct index.
534         * socket/sys/socket.h: Declare accept4.
535         * socket/accept4.c: New file.
536         * sysdeps/unix/sysv/linux/accept4.c: New file.
537         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
538         * socket/Makefile (routines): Add accept4.
539         * socket/Versions: Export accept4 with version GLIBC_2.10.
540         * socket/paccept.c: Removed.
541         * sysdeps/unix/sysv/linux/paccept.c: Removed.
542         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
543         * Versions.def: Define GLIBC_2.10 for libc.
544         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
546         * nscd/connections.c: Use accept4.
548         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
550 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
552         * resolv/res_send.c (send_dg): Create sockets with non-blocking
553         flag already set.
555         * stdlib/setenv.c (unsetenv): Don't search environment if it does
556         not exist.
557         * stdlib/Makefile (tests): Add tst-unsetenv1.
558         * stdlib/tst-unsetenv1.c: New file.
560 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
562         * login/utmp_file.c (file_writable): New variable.
563         (setutent_file): Don't try to open file for writing.
564         (pututline_file): Before writing, make descriptor writable if
565         necessary.
567 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
569         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
570         to IPv4 or IPv6 if an interface has been found.
572 2008-11-26  Roland McGrath  <roland@redhat.com>
574         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
575         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
577         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
578         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
579         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
581         * elf/elf.h (NT_386_IOPERM): New macro.
582         (NT_PPC_VSX): New macro.
584 2008-11-25  Roland McGrath  <roland@redhat.com>
586         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
587         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
588         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
589         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
590         Subdirectories moved to ports repository.
591         * configure.in (base_machine): Remove alpha case.
593 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
595         * sysdeps/mach/strerror_l.c: New file.
597 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
599         [BZ #6411]
600         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
601         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
602         magic numbers.
603         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
604         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
605         (relax_fenv_state): Same as above.
606         (FPSCR_29): Reserve bit in ISA 2.05.
607         (FPSCR_NI): Provide define for compat.
608         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
609         magic numbers.
610         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
611         magic numbers.
612         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
613         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
614         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
615         access to hwcap to account for hwcap size increase to uint64_t.
616         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
617         Likewise.
618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
619         (*setcontext): Likewise.
620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
621         New file.
622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
623         New file.
624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
625         (*setcontext): dynamically select mtfsf insn based on
626         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
627         increase to uint64_t.
628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
629         (*swapcontext): dynamically select mtfsf insn based on
630         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
631         increase to uint64_t.
632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
633         New file.
634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
635         New file.
636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
637         (*setcontext): dynamically select mtfsf insn based on
638         PPC_FEATURE_HAS_DFP.
639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
640         (*swapcontext): dynamically select mtfsf insn based on
641         PPC_FEATURE_HAS_DFP.
643 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
645         * version.h: Bump for 2.9 release.
646         * include/features.h (__GLIBC_MINOR__): Bump to 9.
648         [BZ #7029]
649         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
650         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
651         all the rounding.
653 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
655         [BZ #7009]
656         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
657         unknown request types for now.
659 2008-11-11  Roland McGrath  <roland@redhat.com>
661         * sysdeps/x86_64/configure: New file.
663         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
664         * configure: Regenerated.
666 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
668         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
669         correct instruction to remove the stack frame.
671 2008-11-03  Michael Matz  <matz@suse.de>
673         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
674         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
676 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
678         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
679         Remove.
681         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
682         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
683         of the thread variable instead of void *.
684         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
685         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
686         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
687         __libc_tsd_define arguments.
688         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
689         __libc_tsd_address arguments.  Remove union hack.
690         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
691         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
692         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
693         Adjust __libc_tsd_{set,get} arguments.
694         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
695         __libc_tsd_define arguments.
696         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
697         arguments.
698         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
699         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
700         (LOCALE): Adjust __libc_tsd_define arguments.
701         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
702         arguments.
703         (LOCALE): Adjust __libc_tsd_define arguments.
704         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
705         arguments.
706         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
707         arguments.
709 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
711         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
712         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
714 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
716         [BZ #6966]
717         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
719 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
720             Ulrich Drepper  <drepper@redhat.com>
722         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
723         definition for GCC 3.1 and later.
725 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
727         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
728         refetch dtv, as it might have changed.
729         * elf/Makefile: Add rules to build and run tst-tls18.
730         * elf/tst-tls18.c: New test.
731         * elf/tst-tlsmod18a.c: New file.
733 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
735         [BZ #6875]
736         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
738 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
740         [BZ #6867]
741         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
743         [BZ #6919]
744         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
745         Fix length of copy operation.
747 2008-10-02  Pierre Habouzit <madcoder@debian.org>
749         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
750         and fix its calling convention.
752 2008-10-07  Andreas Schwab  <schwab@suse.de>
754         [BZ #6942]
755         * resolv/res_send.c (send_vc): Fix last change.
756         (send_dg): Align here as well.
758 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
760         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
761         return value in case rlimit is RLIM_INFINITY.
763         [BZ #6947]
764         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
765         for UL_SETFSIZE.
766         * resource/Makefile (tests): Add bug-ulimit1.
767         * resource/bug-ulimit1.c: New file.
769         [BZ #6974]
770         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
771         without dot.  Properly terminate the string with a null byte.
772         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
774         [BZ #6980]
775         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
776         negative sizees.
777         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
778         negative __size.
780         [BZ #6995]
781         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
783 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
785         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
786         abort if there is no initgroups_dyn function.
788         * resolv/res_send.c (send_dg): On timeout, only return nonzero
789         result if any of the queries really provided an answer.
791 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
793         * po/lt.po: Update from translation team.
795 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
797         * po/id.po: Update from translation team.
799 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
801         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
802         Fix tests for existence of second reply.
804 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
806         * po/id.po: New file.
807         Contributed by the Indonesian translation team.
809 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
811         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
812         initialization.
814 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
816         * elf/Makefile: Add rules to build and run tst-tls17.
817         * elf/tst-tls17.c: New test.
818         * elf/tst-tlsmod17a.c: New file.
819         * elf/tst-tlsmod17b.c: Likewise.
821 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
823         * stdlib/divmod_1.c: Use correct type for dummy variable.
824         * stdlib/mod_1.c: Likewise.
826 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
828         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
830 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
832         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
833         __nonnull order for C++.
834         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
835         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
837 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
839         * stdlib/longlong.h: Update from GCC.
841 2008-10-09  Jakub Jelinek <jakub@redhat.com>
842             David S. Miller  <davem@davemloft.net>
844         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
845         make sure any registers used with 64-bit 'branch-on-register'
846         instructions have their top 32-bits clear.
847         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
848         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
850 2008-09-18  Andreas Schwab  <schwab@suse.de>
852         [BZ #6942]
853         * resolv/res_send.c (send_vc): Fix use of unaligned address.
854         Properly handle partial reads.
856 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
858         * elf/elf.h (STO_MIPS_PLT): New.
859         (R_MIPS_COPY): New.
860         (R_MIPS_JUMP_SLOT): New.
861         (R_MIPS_NUM): Redefine to 128.
862         (DT_MIPS_PLTGOT): New.
863         (DT_MIPS_RWPLT): New.
864         (DT_MIPS_NUM): Redefine to 0x35.
866 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
868         * timezone/africa: Update from tzdata2008f.
869         * timezone/asia: Likewise.
870         * timezone/australasia: Likewise.
871         * timezone/europe: Likewise.
872         * timezone/leapseconds: Likewise.
873         * timezone/northamerica: Likewise.
874         * timezone/southamerica: Likewise.
875         * timezone/zone.tab: Likewise.
877 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
879         * nscd/connections.c: Disable use of paccept for now.
881 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
883         * socket/Versions: Remove paccept export for GLIBC_2.9.
884         * socket/Makefile (routines): Remove paccept.
885         * socket/sys/socket.h: Remove paccept declaration.
887         * po/sv.po: Update from translation team.
889 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
891         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
892         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
894 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
896         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
897         Patch by Olivier Fourdan <ofourdan@redhat.com>.
899 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
901         * sunrpc/rpc/svc.h: Declare svcfd_create.
902         Patch by Michael Solberg <msolberg@redhat.com>.
904 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
905             Ulrich Drepper  <drepper@redhat.com>
907         * malloc/malloc.c (public_vALLOc): Try other arenas in case
908         _int_valloc fails.
909         (public_pVALLOc): Likewise.
911 2008-09-02  Andreas Jaeger  <aj@suse.de>
913         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
914         commit.
916 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
918         [BZ #6860]
919         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
921 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
923         * Makefile (check-data): Check data directory in add-ons.
924         * elf/Makefile (check-data): Likewise.
926 2008-08-18  Roland McGrath  <roland@redhat.com>
928         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
929         * configure: Regenerated.
930         * config.make.in (cflags-cpu): New substituted variable.
931         (with-cpu): Variable removed.
932         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
934 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
936         [BZ #6845]
937         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
938         __signbitl definition and __LONG_DOUBLE_128__ guard from:
939         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
940         redundant.  Functions which call floating point assembler operations
941         should go into a sysdeps powerpc/fpu directory.
943 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
945         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
946         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
948 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
950         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
952         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
953         change related to AT_EXECFN.  We cannot use that string.
954         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
955         _dl_execfn member.
956         * elf/dl-support.c: Remove _dl_execfn variable.
957         (_dl_aux_init): Remove handling of AT_EXECFN.
958         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
959         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
961 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
963         [BZ #6544]
964         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
965         byte gets added to writes and seeks from the end use the length of
966         the buffer and not the currently terminating NUL byte.
968         [BZ #6634]
969         * login/utmp_file.c (getutent_r_file): Take additional parameter.
970         Set to true if locking failed.
971         (getutid_r_file): Adjust caller.
972         (pututline_file): Likewise.  Return NULL in this case.
973         Patch mostly by halesh.s@gmail.com.
975 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
977         [BZ #6589]
978         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
979         Define.
980         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
982 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
984         [BZ #6839]
985         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
986         macro since it is now available in elf/dynamic-link.h.
988 2008-08-12  Roland McGrath  <roland@frob.com>
990         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
991         in case used outside of libc.
992         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
994 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
996         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
997         directly instead of going through dn_comp.
999 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1001         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1002         Fix asm constraints.
1004 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1006         [BZ #6790]
1007         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1008         (IPV6_PMTUDISC_PROBE): Likewise.
1010 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1012         [BZ #6791]
1013         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1015 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1016             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1018         [BZ #6817]
1019         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1020         Added the members 'vsx' and 'arch_2_06'.
1021         (_dl_powerpc_platforms): Add the member 'power7'.
1022         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1023         to reflect the changes required by VSX and ISA 2.06.
1024         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1025         'power7'.
1026         Defined PPC_PLATFORM_POWER7.
1027         (_dl_string_platform): Add support for POWER7.
1028         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1029         capability and ISA 2.06.
1031 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1033         [BZ #6824]
1034         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1035         macro to detect use of 128 bit long double.
1036         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1038 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1040         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1042         [BZ #5794]
1043         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1044         parameters.
1045         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1046         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1048 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1050         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1051         guaranteed to be large enough to read inotify event.  Ignore
1052         EAGAIN error.  Better error message.  Add branch predicition.
1053         (main_loop_epoll): Likewise.
1055 2008-08-02  Roland McGrath  <roland@frob.com>
1057         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1058         Add memory clobbers.
1060 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1062         * manual/arith.texi: Avoid @strong{Note:}.
1063         * manual/creature.texi: Likewise.
1064         * manual/filesys.texi: Likewise.
1065         * manual/math.texi: Likewise.
1066         * manual/memory.texi: Likewise.
1067         * manual/resource.texi: Likewise.
1068         * manual/syslog.texi: Likewise.
1069         * manual/time.texi: Likewise.
1071         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1072         to prevent warning.
1074 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1076         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1077         new epoll_create1 interface.
1078         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1079         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1080         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1082         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1083         (NS_GET32): Likewise.
1085         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1086         syscalls, too.
1088         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1089         use the AT_EXECFN value if it is no absolute path.
1090         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1091         __ASSUME_AT_EXECFN.
1093         * Versions.def: Add GLIBC_2.9 to libresolv.
1094         * include/resolv.h: Remove hidden proto declarations for __ns_*
1095         functions.  Add them for __dn_count_labels and __p_secstodate.
1096         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1097         Define ns_msg_getflags macro here.
1098         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1099         and __p_secstodate.
1100         * resolv/Versions: Export functions from <arpa/nameser.h> from
1101         libresolv in version GLIBC_2.9.
1102         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1103         hidden definitions.
1104         * resolv/ns_netint.c: Likewise.
1105         * resolv/ns_parse.c: Likewise.
1106         * resolv/ns_print.c: Likewise.
1107         * resolv/ns_samedomain.c: Likewise.
1108         * resolv/ns_ttl.c: Likewise.
1109         * resolv/arpa/nameser_compat.h: Likewise.
1110         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1111         function calls.
1112         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1113         instead of ns_get16.
1114         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1115         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1116         (gaih_getanswer_slice): Likewise.
1117         * resolv/Makefile (libresolv-routines): Add ns_date.
1118         * resolv/ns_date.c: New file.
1120         * elf/Makefile (check-localplt.out): Also check libresolv and
1121         libcrypt.
1123 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1125         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1126         __ASSUME_O_CLOEXEC.
1128 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1130         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1131         buffer passed to NSS functions.
1133         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1135         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1136         Define.
1138         * misc/syslog.c (openlog_internal): Fix compile problem.
1140 2008-07-28  Roland McGrath  <roland@redhat.com>
1142         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1144 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1146         * io/ftw.c (add_object): Remove inline to avoid warning.
1148         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1150         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1151         Use it instead of locally defined resplen2 variable.
1152         (res_nsend): Adjust for __libc_res_nsend interface change.
1153         (send_vc): Initialize *resplen2 if necessary.  Read length of
1154         package into an appropriately aligned variable.  Store converted length
1155         in new variable and use it appropriately.
1156         Add branch prediction help.
1157         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1158         and pass it on to __libc_res_nsend.  Adjust all callers.
1159         (__libc_res_nsearch): Likewise.
1160         (__libc_res_nqeurydomain): Likewise.
1161         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1162         change.
1163         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1164         Define resplen2 variable and pass it to __libc_res_nsearch and then
1165         to gaih_getanswer.
1166         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1167         Add branch prediction.
1168         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1169         (gaih_getanswer): Don't decode second slice if first one failed due
1170         to a too small buffer.  Don't let not found status of second
1171         decoder shadow results of the first.
1172         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1173         and __libc_res_nquery interface changes
1174         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1175         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1176         __libc_res_nsearch, and __libc_res_nsend.
1177         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1178         change.
1179         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1180         __libc_res_nsearch interface changes.
1182 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1184         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1186         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1187         file descriptors with close-on-exec set.
1188         (exec_comm_child): Fix the case where the write end of the pipe is
1189         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1191         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1192         * io/pipe2.c: Likewise.
1193         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1194         instead of __ASSUME_PACCEPT.
1195         * include/unistd.h: Declare __have_pipe2.
1196         * libio/iopopen.c: Implement "e" flag.
1197         * libio/Makefile (tests): Add tst-popen1.
1198         * libio/tst-popen1.c: New file.
1200         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1201         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1203 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1205         [BZ #6771]
1206         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1207         success call of _IO_SEEKOFF or calls which failed because the
1208         descriptor is for a pipe.
1210         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1211         magic number.
1213         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1215         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1216         F_SETFD use if we know fopen set the flag.
1218         * login/utmp_file.c (setutent_file): Minor optimization in case
1219         O_CLOEXEC is available.
1221 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1223         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1224         * elf/Makefile: Use pie-ccflag variable.
1225         * nscd/Makefile: Likewise.
1226         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1228 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1230         [BZ #6724]
1231         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1232         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1233         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1234         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1235         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1236         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1237         utmp32, utmpx32 and login32.
1238         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1239         versions of struct utmp functions to libc and libutil.
1240         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1241         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1242         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1243         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1244         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1245         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1246         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1247         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1248         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1249         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1250         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1251         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1252         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1253         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1254         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1255         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1256         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1257         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1258         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1259         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1260         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1261         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1263 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1265         * scripts/gen-as-const.awk: Generate more widely usable code by
1266         using 64-bit arithmetic.
1268         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1269         the same treatment as narrow output code in last patch.
1271         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1273         [BZ #6763]
1274         * elf/dl-load.c (local_strdup): Remove inline.
1275         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1276         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1277         part of the object.
1279         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1281 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1283         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1284         the new syscalls, too.
1286         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1287         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1289         [BZ #6698]
1290         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1291         parameter for end of buffer.  If temporary copy is too large use
1292         malloc.
1293         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1294         interface change.
1295         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1296         string rewrite when allocating buffer.
1298         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1299         syscalls, too.
1301         * nscd/connections.c (nscd_init): Clean up fcntl call.
1303         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1304         SOCK_NONBLOCK if possible.
1306         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1307         SOCK_CLOEXEC if available.
1309         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1310         __libc_clntudp_bufcreate_internal.
1311         * include/sys/socket.h: Declare __have_sock_cloexec.
1312         * socket/Makefile (aux): Add have_sock_cloexec.
1313         * socket/have_sock_cloexec.c: New file.
1314         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1315         __libc_clntudp_bufcreate.
1316         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1317         which takes an additional parameter.  Create socket with non-blocking
1318         mode and close-on-exec flag set, if wanted.
1319         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1320         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1321         instead of clntudp_create.  The socket has already the close-on-exec
1322         flag set if SOCK_CLOEXEC is defined.
1324 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1326         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1327         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1328         appropriate.
1329         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1330         non-blocking mode by using socket, paccept, and inotify_init1.
1332         * Versions.def (glibc): Add GLIBC_2.9.
1333         * io/Makefile (routines): Add dup3 and pipe2.
1334         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1335         * io/dup3.c: New file.
1336         * io/pipe2.c: New file.
1337         * posix/unistd.h: Declare dup3 and pipe2.
1338         * socket/Makefile (routines): Add paccept.
1339         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1340         * socket/paccept.c: New file.
1341         * socket/sys/socket.h: Declare paccept.
1342         * sysdeps/unix/syscalls.list: Add entry for dup3.
1343         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1344         epoll_create2 and inotify_init1.
1345         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1346         * sysdeps/unix/sysv/linux/paccept.c: New file.
1347         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1348         possible.
1349         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1350         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1351         inotify_init1, and pipe2 entries.
1352         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1353         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1354         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1355         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1356         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1357         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1358         SOCK_NONBLOCK.
1359         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1360         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1361         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1362         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1363         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1364         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1365         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1366         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1367         EPOLL_NONBLOCK.  Declare epoll_create2.
1368         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1369         EFD_NONBLOCK.
1370         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1371         IN_NONBLOCK.  Declare inotify_init1.
1372         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1373         SFD_NONBLOCK.
1374         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1375         TFD_NONBLOCK.
1377         * elf/elf.h: Define AT_EXECFN.
1378         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1379         LD_ORIGIN_PATH.
1380         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1381         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1382         if __ASSUME_AT_EXECFN is defined.
1383         (_dl_aux_init): Handle AT_EXECFN.
1384         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1385         for 2.6.27 and up.
1386         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1387         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1388         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1389         _dl_execfn if available and avoid compatibility code if
1390         __ASSUME_AT_EXECFN is defined.
1392         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1393         _dl_discover_osversion only for older kernels.
1395 2008-07-22  Roland McGrath  <roland@frob.com>
1397         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1399 2008-07-21  Roland McGrath  <roland@frob.com>
1401         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1402         returned too much data out of line.
1404 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1406         * locale/setlocale.c (setname): Remove inline to avoid compiler
1407         warning.
1409         [BZ #6712]
1410         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1412 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1414         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1415         doesn't manage to write anything, fail.
1417         * malloc/hooks.c (__malloc_check_init): Remove printf.
1419 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1421         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1423 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1425         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1426         from inotify.
1427         (main_loop_epoll): Likewise.
1429 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1431         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1433         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1434         if DEBUG is defined.
1436         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1437         query.  Adjust buffer size computation for padding.
1439 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1441         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1442         * stdio-common/tst-setvbuf1.c: New file.
1443         * stdio-common/tst-setvbuf1.expect: New file.
1445         [BZ #6719]
1446         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1447         when selecting fully-buffered stream.
1448         Patch by Wang Xin <wxinee@gmail.com>.
1450 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1452         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1453         (__open_2): New function.
1454         (__open64_2): New alias to __open_2.
1455         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1456         (__openat_2): New function.
1457         (__openat64_2): New alias to __openat_2.
1459 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1461         [BZ #6723]
1462         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1464 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1466         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1467         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1468         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1469         __hurd_dfail.
1470         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1471         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1472         * sysdeps/mach/hurd/send.c (__send): Likewise.
1473         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1474         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1476 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1478         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1479         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1480         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1481         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1482         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1483         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1485 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1487         [BZ #6657]
1488         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1489         of %EY.
1490         Patch by Petr Baudis.
1492 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1494         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1495         Patch by Peter Jones <pjones@redhat.com>.
1497 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1499         [BZ #6654]
1500         * stdlib/canonicalize.c (__realpath): readlink can write too much
1501         into the buffer on platforms without PATH_MAX.
1503 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1505         [BZ #6653]
1506         * posix/tst-regex.c (main): Rename to...
1507         (do_test): ... this. Remove cmdline option processing.
1508         (TIMEOUT): Define.
1509         (TEST_FUNCTION): Define.
1510         (CMDLINE_OPTIONS): Define.
1512 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1514         [BZ #5210]
1515         * configure.in: Add -Werror to -fstack-protector test to catch
1516         unsupported architectures.
1517         Patch by Gilles Esponasse <g.esp@free.fr>.
1519 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1521         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1522         getcontext returns ENOSYS.
1524 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1526         * nscd/connections.c (main_loop_poll): Fix test for read error.
1527         (main_loop_epoll): Likewise.
1529 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1531         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1532         better place so it is not called when nscd is used.
1534         * nscd/connections.c: Also recognize and handle changes to the
1535         resolver configuration file.
1537 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1539         * time/strftime.c: Pass reference to tzset_called around to handle
1540         recursive calls.
1542         [BZ #6612]
1543         * time/strftime.c (__strftime_internal): Call tzset() only
1544         when printing timezone-dependent values.
1545         Based on a patch by Petr Baudis <pasky@suse.cz>.
1547         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1548         unconditionally use second gaih_getanswer_slice result.
1550         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1551         (getaddrinfo): RES must always be non-NULL.
1553 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1555         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1556         cr[34] registers.
1557         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1558         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1559         Likewise.
1560         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1561         register.
1563 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1565         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1566         fields.
1567         * nscd/connections.c (inotify_fd): New variable.
1568         (nscd_init): Try to open an inotify descriptor.
1569         If successful, watch files for databases using inotify instead of
1570         having prune threads stat the files.
1571         (nscd_run_prune): Recognize clear_cache flag being set and call
1572         prune_cache appropriately.
1573         (main_loop_poll): Add inotify descriptor to wait set and handle the
1574         reported changes.
1575         (main_loop_epoll): Likewise.
1576         * nscd/cache.c (prune_cache): Don't stat files for databases if
1577         inotify is used.
1578         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1579         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1581         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1582         fixed-size portion of the record.
1583         * nscd/servicescache.c (cache_addserv): Likewise.
1584         * nscd/pwdcache.c (cache_addpw): Likewise.
1585         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1587 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1589         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1590         out we don't use uninitialized memory.
1592         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1593         the client.
1595 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1597         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1598         ignore T_DNAME messages.
1599         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1601 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1603         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1604         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1606 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1608         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1609         instead of portstr to nscd_getserv_r.  Patch by
1610         Roman Kagan <rkagan@mail.ru>.
1612 2008-05-26  Jim Meyering  <meyering@redhat.com>
1614         Remove more useless "if" tests before "free".
1615         * include/inline-hashtab.h (htab_delete): Likewise.
1616         * libio/freopen.c (freopen): Likewise.
1617         * libio/freopen64.c (freopen64): Likewise.
1618         * locale/programs/ld-collate.c (collate_read): Likewise.
1619         * misc/fstab.c (libc_freeres_fn): Likewise.
1620         * posix/glob.c (globfree): Likewise.
1622 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1624         * string/Makefile (strop-tests): Add memmem.
1625         * string/test-memmem.c: New file.
1626         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1627         (test_init): Size buf1 according to BUF1PAGES.
1629 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1631         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1632         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1633         (CFLAGS-scanf17.c): New.
1634         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1635         * stdio-common/scanf15.c (main): Likewise.
1636         * stdio-common/scanf16.c: New file.
1637         * stdio-common/scanf17.c: New file.
1639 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1641         * resolv/res_send.c (send_dg): If we already have one of two
1642         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1643         use the one answer insted of failing.
1645 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1647         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1648         being executed on PowerPC as the expected result exceeds IBM
1649         long double 128 __LDBL_MAX__.
1651 2008-05-21  Roland McGrath  <roland@redhat.com>
1653         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1655         * Makefile (check-data): Use $(abi-name) before other guesses.
1656         Look in $(add-ons) dirs before scripts/data/.
1657         * elf/Makefile (check-data): Likewise.
1659         * scripts/soversions.awk: Grok ABI line.
1660         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1661         Emit definition for abi-name variable.
1663 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1665         * string/endian.h: Define new fixed-size hto* and *toh macros only
1666         if [__USE_BSD].
1668         * iconvdata/Depend: Add localedata.
1670 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1672         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1674 2008-05-08  David S. Miller  <davem@davemloft.net>
1676         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1677         HIDDEN_JUMPTARGET.
1678         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1679         (__SYSCALL_CLOBBERS): Remove %g* registers.
1680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1681         (__SYSCALL_CLOBBERS): Likewise.
1682         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1683         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1685 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1687         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1688         (CALL_ERRNO_LOCATION): Define.
1689         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1690         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1691         (CALL_ERRNO_LOCATION): Define.
1692         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1693         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1694         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1696 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1698         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1699         variable.
1701 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1703         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1704         (FIRST_FRAME_POINTER): Define.
1706 2008-05-09  David S. Miller  <davem@davemloft.net>
1708         * sysdeps/sparc/sparc64/backtrace.c: New file.
1710 2008-05-14  David S. Miller  <davem@davemloft.net>
1712         * sysdeps/sparc/machine-gmon.h: New file.
1713         * sysdeps/sparc/sparc-mcount.S: Likewise.
1714         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1715         sysdep_routines in gmon directory.
1717 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1719         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1721 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1723         * resolv/res_query.c (__libc_res_nquery): In case one of two
1724         answer was too short don't try to read that answer's header.
1726         * resolv/res_send.c (send_dg): In case of timeout and there are
1727         two queries and one has been answered, return value indicating
1728         success.
1730 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1732         * nscd/cache.c (cache_add): Take additional parameter specifying
1733         whether this is in response of a cache refill.  Check alignment
1734         of package data.  Revamp waking of pruning thread.
1735         (prune_cache): Small optimization.
1736         * nscd/nscd.h: Adjust cache_add prototypes.
1737         * nscd/aicache.c: Adjust cache_add calls.
1738         * nscd/grpcache.c: Likewise.
1739         * nscd/hstcache.c: Likewise.
1740         * nscd/initgrcache.c: Likewise.
1741         * nscd/pwdcache.c: Likewise.
1742         * nscd/servicescache.c: Likewise.
1743         * nscd/connections.c (restart): Really disable cache use before
1744         exec attempt.  If it fails, reenable cache.
1745         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1746         time to max to be able to notice concurrent cache additions.  Unlock
1747         prune_lock while performing gc.  Afterwards compute wakeup time with
1748         current wakeup_time value in mind.
1750 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1752         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1754         * nscd/mem.c (gc): Correctly determine highest used array element
1755         in mark.
1757         * nscd/mem.c (markrange): Add assert to check entries are all
1758         aligned.  Small cleanup in bitmap use.
1760         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1761         blockoff of type nscd_ssize_t.
1762         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1763         (mempoll_alloc): Record block offset and not address.
1765         * nscd/mem.c (gc): Fix test for stack overuse.
1767         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1768         more asserts.
1770         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1771         entry is available, believe it.
1773         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1774         no answers return NSS_STATUS_NOTFOUND.
1775         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1776         buffer does not have any content.
1778 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1780         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1782         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1783         lookup, don't assign canon unconditionally.
1785 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1787         * string/Makefile (distribute): Add str-two-way.h.
1789 2008-03-29  Eric Blake  <ebb9@byu.net>
1791         Rewrite string searches to O(n) rather than O(n^2).
1792         * string/str-two-way.h: New file.  For linear fixed-allocation
1793         string searching.
1794         * string/memmem.c: New implementation.
1795         * string/strstr.c: New implementation.
1796         * string/strcasestr.c: New implementation.
1798 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1800         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1801         opr.ctx_type.
1802         (calc_first): Initialize constraint field.
1803         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1804         Use search_duplicated_node to avoid loops.  Fix grammar.
1805         (duplicate_node): Merge constraint field for all node types.
1806         (calc_eclosure_iter): Look at constraint field for all node types.
1807         * posix/regex_internal.c (create_cd_newstate): Don't look at
1808         create_cd_newstate.
1810 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1812         [BZ #6428]
1813         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1815         [BZ #6442]
1816         * string/endian.h: Add macros for fixed-size endian conversion.
1817         * bits/byteswap.h: Allow inclusion from <endian.h>.
1818         * sysdeps/i386/bits/byteswap.h: Likewise.
1819         * sysdeps/ia64/bits/byteswap.h: Likewise.
1820         * sysdeps/s390/bits/byteswap.h: Likewise.
1821         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1822         * string/Makefile (tests): Add tst-endian.
1823         * string/tst-endian.c: New file.
1825         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1826         Patch by Reuben Thomas.
1828 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1830         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1832 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1834         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1836         [BZ #6461]
1837         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1838         Add missing braces.
1839         (BODY for __gconv_transform_internal_ascii): Likewise.
1841         [BZ #6472]
1842         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1843         to be treated like link-local addresses.
1844         (match_prefix): Don't treat IPv4 loopback address special when
1845         converting to v4 mapped addressed.
1847         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1848         if necessary.
1849         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1850         * posix/tst-rfc3484-2.c: Likewise.
1851         * posix/tst-rfc3484-3.c: Likewise.
1853         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1854         and SCTP.
1856         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1858         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1860         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1862 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1864         * po/lt.po: New file.  From Lituanian translation team.
1866 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1868         Introduce TLS descriptors for i386 and x86_64.
1869         * include/inline-hashtab.h: New file, copied from 2005's
1870         libiberty, with fix for memory leak imported afterwards by
1871         Glauber de Oliveira Costa.
1872         * elf/tlsdeschtab.h: New file.
1873         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1874         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1875         (CHECK_STATIC_TLS): Move to...
1876         * elf/dynamic-link.h: ... this file.
1877         (TRY_STATIC_TLS): New macro.
1878         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1879         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1880         R_386_TLS_DESC): Define.
1881         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1882         binutils.
1883         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1884         R_X86_64_TLSDESC): Define.
1885         (R_386_NUM, R_X86_64_NUM): Adjust.
1886         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1887         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1888         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1889         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1890         release tlsdesc_table.
1891         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1892         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1893         (elf_machine_rel): Handle R_386_TLS_DESC.
1894         (elf_machine_rela): Likewise.
1895         (elf_machine_lazy_rel): Likewise.
1896         (elf_machine_lazy_rela): Likewise.
1897         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1898         * sysdeps/i386/dl-tlsdesc.S: New file.
1899         * sysdeps/i386/dl-tlsdesc.h: New file.
1900         * sysdeps/i386/tlsdesc.c: New file.
1901         * sysdeps/i386/tlsdesc.sym: New file.
1902         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1903         tlsdesc_table.
1904         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1905         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1906         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1907         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1908         release tlsdesc_table.
1909         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1910         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1911         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1912         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1913         (elf_machine_rela): Likewise.
1914         (elf_machine_lazy_rel): Likewise.
1915         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1916         (__tls_get_addr): Do not declare for non-shared compiles.
1917         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1918         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1919         * sysdeps/x86_64/tlsdesc.c: New file.
1920         * sysdeps/x86_64/tlsdesc.sym: New file.
1921         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1922         tlsdesc_table for both 32- and 64-bit structs.
1924 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1926         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1927         its own function.  This reduces the frame setup costs and more.
1929 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1931         [BZ #3406]
1932         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1933         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1935 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1937         * io/openat.c (__openat_2): Also pass fd to __openat.
1938         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1939         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1941         * string/tester.c (test_memcmp): Add a few more tests.
1942         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1944 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1946         * nscd/cache.c (cache_add): Before returning with failure and this
1947         is the first use of the record, mark it as unusable.
1948         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1949         reporting a failure.
1950         * nscd/grpcache.c: Likewise
1951         * nscd/hstcache.c: Likewise.
1952         * nscd/initgrcache.c: Likewise.
1953         * nscd/pwdcache.c: Likewise.
1954         * nscd/servicescache.c: Likewise.
1956 2008-05-10  Roland McGrath  <roland@redhat.com>
1958         [BZ #6505]
1959         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1961 2008-05-08  David S. Miller  <davem@davemloft.net>
1963         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1965         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1966         (__ieee754_y0l): Likewise.
1967         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1968         (__ieee754_y1l): Likewise.
1969         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1970         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1971         frexpl and ldexpl.  math_private.h provides them and the latter
1972         is not even used.
1973         (__log1pl): Use __frexpl.
1975 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1977         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1978         prototypes.
1979         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1980         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1981         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1982         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1983         af==AF_UNSPEC.
1984         (_nss_nis_gethostbyname4_r): New function.
1985         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1986         Change to also handle af==AF_UNSPEC.
1987         (get_tablename): New function.  Use it to avoid duplication.
1988         (_nss_nisplus_gethostbyname4_r): New function.
1989         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1990         available.
1991         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1992         * nss/nss.h: Define struct gaih_addrtuple.
1993         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1994         af==AF_UNSPEC.
1995         (_nss_files_gethostbyname4_r): New function.
1996         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1997         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1998         calls.
1999         * resolv/res_query.c (__libc_res_nquery): Take two additional
2000         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2001         look up IPv4 and IPv6.
2002         Change all callers.
2003         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2004         for an additional query and answer buffer.  Pass to send_vc and
2005         send_dg.
2006         (send_vc): Send possibly two requests and receive two answers.
2007         (send_dg): Likewise.
2008         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2009         __libc_res_nquery.
2010         (_nss_dns_gethostbyname4_r): New function.
2011         (gaih_getanswer_slice): Likewise.
2012         (gaih_getanswer): Likewise.
2013         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2014         __libc_res_nquery call.
2015         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2016         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2017         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2018         available.
2020 2008-05-05  David S. Miller  <davem@davemloft.net>
2022         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2023         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2025 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2027         Fix termios bit macros.
2028         Move *DLY definitions where they belong, in termios.h.
2029         Add *[0-3] definitions.
2030         Fixes confusion between VT and FF.
2031         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2032         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2033         are already defined to avoid collision with termios.h.
2034         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2035         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2036         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2037         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2038         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2039         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2040         VTDLY, VT0, VT1): New macros.
2041         [__USE_GNU] (OLCUC): Change value of macro.
2042         [__USE_XOPEN] (OFILL): New macro.
2043         [__USE_BSD] (CRTSCTS): Change value.
2044         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2045         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2046         (B7200, B14400, B28800, B76800): New macros.
2048 2008-05-01  David S. Miller  <davem@davemloft.net>
2050         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2051         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2052         (gen-as-const-headers): Add it.
2053         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2054         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2055         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2056         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2058         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2059         six system call parameters.
2060         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2062 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2064         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2065         RUSAGE_LWP.
2066         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2067         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2069 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2071         * stdlib/tst-setcontext.c: Include unistd.h.
2073 2008-04-25  David S. Miller  <davem@davemloft.net>
2075         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2076         Pass "union semun" properly in to sys_ipc, it must be passed
2077         by value, not by reference.
2079 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2081         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2082         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2083         * nscd/connections.c (mem_in_flight): Likewise.
2085         * nscd/nscd.h (dbs): Make hidden.
2087         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2088         Avoid returning -1, return 0 instead.
2090 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2092         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2094 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2096         [BZ #5209]
2097         * sysdeps/unix/sysv/linux/times.c: New file.
2099         [BZ #5381]
2100         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2101         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2102         prototype.
2103         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2104         appropriate mem_in_flight element.
2105         (gc): Take allocations which have not yet been committed to the
2106         database into account.
2107         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2108         Reset mem_in_flight before returning.
2109         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2110         cue it up in mem_in_flight_list.
2111         * nscd/aicache.c: Adjust mempool_alloc call.
2112         * nscd/grpcache.c: Likewise.
2113         * nscd/hstcache.c: Likewise.
2114         * nscd/initgrcache.c: Likewise.
2115         * nscd/pwdcache.c: Likewise.
2116         * nscd/servicescache.c: Likewise.
2117         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2118         of -fpie.
2120         * nscd/connections.c (handle_request): Provide better error message
2121         in case SELinux forbids the service.
2123         * version.h (VERSION): Bump to 2.8.90.
2125 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2127         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2129 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2131         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2132         Also use for 32-bit.
2133         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2134         __nextafter instead of nextafter to avoid local PLT.
2135         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2136         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2138         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2140         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2141         __fe_nomask_env.
2142         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2143         <fenv_libc.h> instead of <fenv.h>.
2144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2147         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2149         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2150         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2151         function from fegetexcept and make old name weak alias.
2152         * include/fenv.h: Declare __fegetexcept.
2153         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2154         fegetexcept.
2155         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2156         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2157         to fetestexcept.
2158         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2159         instead of frexpl to avoid local PLT.
2160         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2161         ilogbl to avoid local PLT.
2162         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2163         instead of ldexpl to avoid local PLT.
2164         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2165         __roundl not roundl to avoid local PLT.
2166         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2167         local PLTs.  Use __sincosl instead of separate sinl and cosl
2168         calls.
2169         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2171         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2172         version for ppc64 to 2.4.21 since without it makecontext will fail.
2174         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2175         to the ABI in use.
2176         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2177         .__tls_get_addr.
2178         [__powerpc64__] (TLS_GD): Likewise.
2180 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2182         [BZ #4997]
2183         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2184         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2185         mantissa.
2186         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2187         Likewise.  Also account for when x is an odd number between 2^52
2188         and 2^53-1.
2189         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2190         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2191         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2192         detect aforementioned erroneous conditions.
2194 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2196         * configure.in: Check for -fno-section-anchors in addition to
2197         -fno-toplevel-reorder.
2199 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2201         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2203         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2204         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2205         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2206         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2207         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2208         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2210 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2212         [BZ #5443]
2213         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2214         * time/alt_digit.c: Likewise.
2215         * wcsmbs/wcsmbsload.c: Likewise.
2217 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2219         * version.h (VERSION): Bump to 2.8.
2221         * timzeone/asia: Update from tzdata2008b.
2222         * timezone/backward: Likewise.
2223         * timezone/europe: Likewise.
2224         * timezone/northamerica: Likewise.
2225         * timezone/southamerica: Likewise.
2226         * timezone/iso3166.tab: Likewise.
2227         * timezone/leapseconds: Likewise.
2228         * timezone/zone.tab: Likewise.
2229         * timezone/private.h: Update from tzcode2008a.
2230         * timezone/zdump.c: Likewise.
2231         * timezone/zic.c: Likewise.
2233 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2235         [BZ #5741]
2236         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2237         Define additonal Data Cache Block instruction macros.
2238         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2239         Replace dcbst with dcbf and sync with sync/isync.
2241 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2243         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2244         Always set ELF_RTYPE_CLASS_PLT.
2245         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2247 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2249         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2250         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2251         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2252         For ISA 2.01 and later replace mftb with mfspr 268.
2254 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2256         [BZ #5768]
2257         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2258         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2260 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2262         [BZ #5768]
2263         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2264         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2265         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2266         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2268 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2270         * stdlib/tst-makecontext.c (othervar): New variable.
2271         (cf): Test sign extending the argument to long.
2273 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2275         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2276         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2277         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2278         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2279         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2280         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2281         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2283 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2285         * elf/Makefile (tests): Substitute tests-vis-yes here.
2286         (tests-vis-yes): Delete.
2287         (modules-name, modules-vis-yes): Similarly.
2289 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2291         [BZ #4407]
2292         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2293         Preserve sign in signgamp when x is zero.
2295 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2297         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2298         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2299         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2300         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2301         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2302         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2304 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2306         [BZ #4314]
2307         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2308         buffers.
2310         [BZ #5209]
2311         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2312         a reserved error value.
2314         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2315         value to check for correct sign extension.
2317         [BZ #5436]
2318         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2319         Copy 64-bit parameter values even though this is not required in
2320         the standard.
2322         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2323         PC save.
2325 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2327         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2328         PC save.
2330 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2332         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2334 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2336         [BZ #5998]
2337         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2338         in line-buffered stream failed.
2339         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2341 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2343         [BZ #6024]
2344         * scripts/abi-versions.awk: If the version specified by
2345         --enable-oldest-abi is older than the first version for this
2346         architecture, use the default version.
2348         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2349         as well when ignoring the whole category.
2351 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2353         [BZ #6042]
2354         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2355         ETHERTYPE_* definitions.
2356         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2358 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2360         * stdlib/mbtowc.c (__no_r_state): Remove.
2361         (mbtowc): New static state variable.  Use it instead of
2362         __no_r_state.
2363         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2364         (__wctomb_state): New hidden variable.
2365         (wctomb): Use __wctomb_state instead of __no_r_state.
2366         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2367         (__wctomb_state): New extern decl.
2368         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2370 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2372         [BZ #5475]
2373         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2375 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2377         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2379 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2381         * po/nl.po: Update from translation team.
2383 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2385         [BZ #6007]
2386         * string/strfry.c: Handle empty strings again.
2388 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2390         [BZ #5443]
2391         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2392         before looking for translation.
2393         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2394         * locale/freelocale.c: Likewise.
2395         * locale/newlocale.c: Likewise.
2396         * locale/setlocale.c: Likewise.
2397         Based partially on a patch by ryo@np.css.fujitsu.com.
2399 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2401         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2402         acquiring wrlock.  Do conv_tab allocation while holding lock.
2403         * intl/Makefile: Add rules to build and run tst-gettext6.
2404         * intl/tst-gettext6.c: New test.
2405         * intl/tst-gettext6.sh: New file.
2407 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2409         * po/nl.po: Update from translation team.
2411         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2412         provided through st_blksize, try the default size before giving up.
2414 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2416         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2418         [BZ #5939]
2419         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2421         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2422         error message.  POSIX today does not require the messages to be in
2423         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2425         [BZ #5979]
2426         * sunrpc/auth_unix.c: Unify printed strings.
2427         * sunrpc/clnt_tcp.c: Likewise.
2428         * sunrpc/clnt_udp.c: Likewise.
2429         * sunrpc/clnt_unix.c: Likewise.
2430         * sunrpc/svc_tcp.c: Likewise.
2431         * sunrpc/svc_udp.c: Likewise.
2432         * sunrpc/svc_unix.c: Likewise.
2433         * sunrpc/xdr.c: Likewise.
2434         * sunrpc/xdr_array.c: Likewise.
2435         * sunrpc/xdr_rec.c: Likewise.
2436         * sunrpc/xdr_ref.c: Likewise.
2437         * locale/programs/ld-time.c (time_finish): Unify messages.
2438         * locale/programs/locfile.c (handle_copy): Fix typo.
2439         * nscd/nscd.c (options): Fix typo.
2441         [BZ #5995]
2442         * stdlib/strtod_l.c: Use correct sign for result in one more
2443         underflow case.
2444         Patch by Eric Blake <ebb9@byu.net>.
2446 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2448         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2449         and creat system calls.
2450         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2451         call.
2452         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2453         system calls.
2454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2455         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2456         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2458 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2460         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2461         <linux/limits.h> has defined it.
2462         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2463         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2464         headers.
2465         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2466         it instead of ARG_MAX.
2468 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2470         * posix/gai.conf: Fix comment for scope nullbits.
2471         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2472         default to 128 bits for v4 mapped addresses.
2474 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2476         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2477         ptrace call to get the ieee_instruction_pointer from the kernel.
2478         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2479         ptrace call to set the ieee_instructtion_pointer.
2480         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2481         Add comment that ieee_instruction_pointer is always 0.
2483 2008-03-09  Andreas Jaeger  <aj@suse.de>
2485         [BZ #5857]
2486         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2487         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2488         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2490         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2491         (rint_test): Likewise.
2493 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2495         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2496         call.
2497         (__nisfind_server): Similar for open readColdStartFile call.
2498         Patch partially by Jim Meyering.
2499         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2500         around internal_setent call.
2502         * po/vi.po: New Vietnamese translation.
2504         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2505         ADJ_OFFSET_SS_READ.
2507         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2508         remove CLONE_STOPPED.
2510 2008-02-10  Jim Meyering  <meyering@redhat.com>
2512         Remove useless "if" before "free":
2513         * elf/ldconfig.c (parse_conf_include): Likewise.
2514         * gmon/gmon.c (weak_alias): Likewise.
2515         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2516         * inet/rcmd.c (__validuser2_sa): Likewise.
2517         * intl/bindtextdom.c (set_binding_values): Likewise.
2518         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2519         * libio/genops.c (save_for_backup): Likewise.
2520         * libio/wgenops.c (save_for_wbackup): Likewise.
2521         * locale/programs/ld-collate.c (collate_read): Likewise.
2522         * locale/programs/linereader.c (get_string): Likewise.
2523         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2524         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2525         * resolv/res_debug.c (do_section): Likewise.
2526         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2527         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2528         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2529         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2530         * time/tzset.c (tzset_internal): Likewise.
2532 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2534         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2535         of ASSEMBLER.
2537 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2539         [BZ #5903]
2540         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2541         not stream for output file.  Open output file here.
2542         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2543         and output file name.
2544         (process_fd): Likewise.
2545         (process_file): Likewise.
2546         (main): Adjust callers of changed functions.
2547         * iconv/iconv_prog.h: Adjust prototype.
2549 2008-03-09  Andreas Jaeger  <aj@suse.de>
2551         [BZ #5753]
2552         * sysdeps/ia64/ieee754.h: Use protected namespace
2553         __BIG_ENDIAN/__LITTLE_ENDIAN.
2554         * sysdeps/ieee754/ieee754.h: Likewise.
2555         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2557 2008-03-08  Roland McGrath  <roland@frob.com>
2559         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2560         ignore a signal that came from a machine exception, treat it as a
2561         fatal core-dump signal instead.
2562         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2564         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2565         Clear DF bit in thread state's eflags.
2566         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2568 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2570         [BZ #5774]
2571         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2572         of NAN(...) sequence.
2573         * stdlib/Makefile (tests): Add tst-strtod6.
2574         * stdlib/tst-strtod6.c: New file.
2576         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2578         [BZ #5762]
2579         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2580         putting offending option character in quotes.  Clean up error
2581         messages.
2582         * po/be.po: Adjust msgstr in translation file.
2583         * po/bg.po: Likewise.
2584         * po/ca.po: Likewise.
2585         * po/cs.po: Likewise.
2586         * po/da.po: Likewise.
2587         * po/de.po: Likewise.
2588         * po/es.po: Likewise.
2589         * po/fr.po: Likewise.
2590         * po/hr.po: Likewise.
2591         * po/ko.po: Likewise.
2592         * po/nl.po: Likewise.
2593         * po/rw.po: Likewise.
2594         * po/sk.po: Likewise.
2595         * po/sv.po: Likewise.
2596         * po/tr.po: Likewise.
2597         * po/zh_CN.po: Likewise.
2598         * po/zh_TW.po: Likewise.
2600         [BZ #5760]
2601         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2602         Patch by Roland Bless <roland@bless.de>.
2604         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2605         .o file.
2606         * elf/Makefile (routines): Add dl-sysdep.
2607         (elide-routines.os): Likewise.
2609 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2611         [BZ #5786]
2612         * elf/dl-sysdep.c: Undefine ROUND after use.
2613         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2614         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2615         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2616         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2617         to ...
2618         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2619         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2620         if necessary.
2621         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2623         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2624         _dl_tls_get_addr_soft element.
2625         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2626         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2627         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2628         GLRO.
2629         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2630         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2631         of internal_function.
2633         * stdlib/Makefile (aux): Add tens_in_limb.
2634         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2635         * stdlib/tens_in_limb.c: ...here.  New file.
2637         [BZ #5778]
2638         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2639         __statfs_chown_restricted.
2640         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2641         for _PC_CHOWN_RESTRICTED.
2642         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2643         Implement __statfs_chown_restricted.
2644         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2645         _POSIX_CHOWN_RESTRICTED value to zero.
2646         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2647         defined to zero.
2649         * sysdeps/x86_64/rtld-memset.c: New file.
2651 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2653         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2655         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2656         Barcelona machine.  Make default fall through branch of
2657         __x86_64_preferred_memory_instruction check as the integer code path.
2659 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2661         * sysdeps/x86_64/cacheinfo.c
2662         (__x86_64_preferred_memory_instruction): New variable.
2663         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2665         * sysdeps/x86_64/memset.S: Rewrite.
2667 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2669         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2670         __obstack_printf_chk): New prototypes.
2671         (__vasprintf_chk, __vdprintf_chk,
2672         __obstack_vprintf_chk): Likewise.
2673         Add libc_hidden_proto.
2674         * libio/obprintf.c
2675         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2676         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2677         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2678         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2679         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2680         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2681         __obstack_vprintf_chk): New prototypes.
2682         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2683         obstack_vprintf): New inlines.
2684         * debug/dprintf_chk.c: New file.
2685         * debug/vdprintf_chk.c: New file.
2686         * debug/asprintf_chk.c: New file.
2687         * debug/vasprintf_chk.c: New file.
2688         * debug/obprintf_chk.c: New file.
2689         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2690         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2691         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2692         @@GLIBC_2.8.
2693         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2694         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2695         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2696         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2697         libc_hidden_proto.
2698         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2699         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2700         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2701         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2702         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2703         @@GLIBC_2.8.
2704         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2705         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2706         obstack_vprintf_chk.
2707         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2708         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2709         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2710         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2711         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2712         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2714 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2716         [BZ #5779]
2717         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2718         Patch by Roy Marples <roy@marples.name>.
2720         [BZ #5736]
2721         * malloc/malloc.c: Fix typo in comment.
2723         [BZ #5627]
2724         * locale/iso-639.def: Add Shuswap.
2726 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2728         [BZ #5790]
2729         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2730         overwrite *h_errnop/*errnop values from getanswer_r in case of
2731         failure.
2733 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2735         [BZ #5818]
2736         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2737         (verify_persistent_db): Remove one unnecessary test and add a new one
2738         for bad configuration.
2739         (nscd_init): Improve error reported when persistent database cannot
2740         be reused.
2741         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2742         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2743         .suggested_module and .max_db_size and case config file says the
2744         values are zero.
2745         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2747         [BZ #5854]
2748         * nis/ypclnt.c (yp_order): Fix handling of return value of
2749         do_ypcall_tr call.
2750         Patch by Jeff Moyer <jmoyer@redhat.com>.
2752         * po/fr.po: Update from translation team.
2754 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2755             Carlos O'Donell <carlos@systemhalted.org>
2757         [BZ #5012]
2758         * FAQ.in: Describe why glibc needs to be compiled with
2759         optimization.
2761 2008-02-19  Roland McGrath  <roland@redhat.com>
2763         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2765 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2767         [BZ #5737]
2768         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2769         __USE_MISC is defined.
2771 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2773         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2774         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2775         sys/timerfd.h.
2776         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2777         timerfd_gettime, timerfd_settime.
2778         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2779         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2781 2008-02-08  Roland McGrath  <roland@redhat.com>
2783         * elf/elf.h (NT_PPC_SPE): New macro.
2785 2008-02-06  Roland McGrath  <roland@redhat.com>
2787         * Makerules ($(common-objpfx)sysd-rules):
2788         Depend on $(sysdep-makeconfigs).
2790 2008-01-31  Roland McGrath  <roland@redhat.com>
2792         [BZ #5442]
2793         * configure.in: Use -print-file-name if it yields a directory,
2794         for each of include and include-fixed.
2795         * configure: Regenerated.
2797         * Makeconfig (sysd-rules-targets): New variable.
2798         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2799         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2801 2008-01-30  Roland McGrath  <roland@redhat.com>
2803         * manual/libc.texinfo: Update back-cover text.
2805         * elf/elf.h (NT_386_TLS): New macro.
2807 2008-01-29  Roland McGrath  <roland@redhat.com>
2809         * Makeconfig (sysd-rules-patterns): New variable.
2810         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2811         (check-inhibit-asm): New canned sequence, replaces ...
2812         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2813         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2814         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2815         (CFLAGS-rtld): Variable removed.
2817 2008-01-24  Roland McGrath  <roland@redhat.com>
2819         * configure.in: Let configure fragments set base_os.
2820         * configure: Regenerated.
2822 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2824         * po/ko.po: Update from translation team.
2826 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2828         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2830 2008-01-12  Andreas Jaeger  <aj@suse.de>
2832         [BZ #5040]
2833         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2834         Add EPOLLRDHUP.
2836 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2838         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2839         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2840         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2842 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2844         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2845         * elf/dl-close.c (_dl_close): Check for it.
2846         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2847         (_dl_allocate_static_tls): Likewise.
2848         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2849         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2850         to it.
2851         * elf/tst-tls16.c: New file.
2852         * elf/tst-tlsmod16a.c: New file.
2853         * elf/tst-tlsmod16b.c: New file.
2854         * elf/Makefile: Add rules to build and run tst-tls16.
2856 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2858         [BZ #5628]
2859         * bits/shm.h: Fix comment describing shmid_ds.
2860         * sysdeps/gnu/bits/shm.h: Likewise.
2861         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2862         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2863         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2864         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2865         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2866         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2867         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2868         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2869         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2871         [BZ #5607]
2872         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2873         prototypes.
2874         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2875         additional suffixes.
2876         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2877         Add optional functions mq_timedreceive and mq_timedsend.
2878         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2879         * conform/data/pthread.h-data: Fix prototype of
2880         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2881         * conform/data/semaphore.h-data: Allow time.h definitions.
2882         * conform/data/signal.h-data: Likewise.
2883         * conform/data/stdio.h-data: getw and putw are not required in v6.
2884         * conform/data/stdlib.h-data: Change setstate prototype.
2885         * conform/data/string.h-data: Fix strerror_r prototype.
2886         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2887         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2888         Fix readlink prototype.
2889         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2890         in6addr_loopback.
2891         * inet/netinet/in.h: Cleanup namespace.
2892         * posix/regex.h: Likewise.
2893         * resolv/netdb.h: Likewise.
2894         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2895         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2896         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2897         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2898         of names of in in6_addr.
2899         (default_precedence): Likewise.
2900         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2901         NULL definition.
2903 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2905         * conform/data/fmtmsg.h-data: Add missing allows.
2906         * conform/data/ftw.h-data: Likewise.
2907         * conform/data/inttypes.h-data: Likewise.
2908         * conform/data/math.h-data: Likewise.
2909         * conform/data/signal.h-data: Likewise.
2910         * conform/data/net/if.h-data: Likewise.
2911         * conform/data/netinet/in.h-data: Likewise.
2912         * conform/data/sys/socket.h-data: Likewise.
2914         [BZ #5614]
2915         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2916         (__strtok_r): Simplify.
2917         * string/tester.c (test_strtok_r): Add test case for futile search
2918         with single-character seach string.
2920 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2922         * po/ko.po: Update from translation team.
2924 2008-01-11  Andreas Jaeger  <aj@suse.de>
2926         [BZ #5600]
2927         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2928         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2929         kernel header.
2931 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2933         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2934         native interface lookup in all the relevant places.
2936 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2937             Ulrich Drepper  <drepper@redhat.com>
2939         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2940         field.  Use sockaddr_in6 for source_addr.
2941         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2942         (match_prefix): Likewise.
2943         (get_label): Likewise.
2944         (get_precedence): Likewise.
2945         (rfc3484_sort): Change to use indirect access to results array.
2946         Adjust to use of sockaddr_in6.  Replace service_order test with
2947         simple index comparison.
2948         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2949         service_order field.  Adjust qsort_t calls.  Access sorted result
2950         array indirectly through order array.
2951         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2952         * posix/tst-rfc3484-2.c: Likewise.
2953         * posix/tst-rfc3484-3.c: Likewise.
2955 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2957         [BZ #5541]
2958         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2959         pollfd structures.
2960         Patch by André Cruz.
2962         [BZ #5545]
2963         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2964         (clnt_spcreateerror): Likewise.
2966         [BZ #5553]
2967         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2968         (public_mEMALIGn): Likewise.
2969         Patch mostly by Daniel Jacobowitz.
2971 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2973         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2974         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2975         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2976         * stdlib/tst-makecontext2.c: New test.
2978 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2980         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2981         defined.
2982         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2983         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2984         transliteration hooks and REINIT_PARAMS afterwards.
2985         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2986         status.
2987         (REINIT_PARAMS): Define.
2988         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2989         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2990         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2991         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2992         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2993         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2994         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2995         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2996         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2997         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2998         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2999         * iconvdata/tst-iconv7.c: New test.
3001 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3003         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3005 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3007         [BZ #5112]
3008         * nscd/connections.c (restart): Fix condition.
3010 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3012         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3013         __ctype_toupper_loc): Add __THROW.
3015 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3017         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3018         recognition of interface family.
3020         * posix/getconf.c: Update copyright year.
3021         * nss/getent.c: Likewise.
3022         * iconv/iconvconfig.c: Likewise.
3023         * iconv/iconv_prog.c: Likewise.
3024         * elf/ldconfig.c: Likewise.
3025         * catgets/gencat.c: Likewise.
3026         * csu/version.c: Likewise.
3027         * elf/ldd.bash.in: Likewise.
3028         * elf/sprof.c (print_version): Likewise.
3029         * locale/programs/locale.c: Likewise.
3030         * locale/programs/localedef.c: Likewise.
3031         * nscd/nscd.c (print_version): Likewise.
3032         * debug/xtrace.sh: Likewise.
3033         * malloc/memusage.sh: Likewise.
3034         * malloc/mtrace.pl: Likewise.
3035         * debug/catchsegv.sh: Likewise.
3037 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3039         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3040         second lookup.
3042 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3044         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3045         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3047 2007-12-17  Roland McGrath  <roland@redhat.com>
3049         * inet/ether_line.c (ether_line): Remove unused variable.
3051 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3053         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3054         and winp.
3055         * login/openpty.c (openpty): Likewise.
3056         * login/pty.h (openpty, forkpty): Likewise.
3057         * manual/terminal.texi (openpty, forkpty): Likewise.
3059 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3061         * malloc/malloc.c (public_cALLOc): For arenas other than
3062         main_arena, count all bytes inside the mprotect_size range of the
3063         heap as uninitialized.
3065 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3067         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3068         executable stacks.
3070         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3071         mTRIm for all of them.
3072         (mTRIm): Additionally iterate over all free blocks and use madvise
3073         to free memory for all those blocks which contain at least one
3074         memory page.
3075         * malloc/tst-trim1.c: New file.
3076         * malloc/Makefile (tests): Add tst-trim1.
3078         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3080 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3082         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3083         First cast argument to long
3084         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3085         Return long.
3086         (__vdso_clock_gettime): Likewise.
3087         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3088         return long.
3090 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3092         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3093         * locale/nl_langinfo_l.c: Real implementation, copied from
3094         nl_langinfo.c.
3095         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3097 2007-12-01  Jim Meyering  <meyering@redhat.com>
3099         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3100         that would inhibit utf8-optimization of a regexp containing line-
3101         or buffer-anchors, e.g., `^', `$'.
3103 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3105         * time/bug-getdate1.c (do_test): Don't use century values which
3106         aren't valid on 32-bit systems.
3108 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3110         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3111         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3112         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3113         __strcat_g, __strncat_g): Add __asm__.
3115 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3117         [BZ #5477]
3118         * io/fchmodat.c: Fix typo in stub_warning use.
3119         Patch by Petr Salinger.
3121 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3123         * iconvdata/hp-thai8.c: New file.
3124         * iconvdata/Makefile: Add rules for hp-thai8.c.
3125         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3126         * iconvdata/gconv-modules: Likewise.
3128         [BZ #5464]
3129         * iconvdata/hp-greek8.c: New file.
3130         * iconvdata/Makefile: Add rules for hp-greek8.c.
3131         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3132         * iconvdata/gconv-modules: Likewise.
3134         [BZ #5463]
3135         * iconvdata/hp-turkish8.c: New file.
3136         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3137         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3138         * iconvdata/gconv-modules: Likewise.
3140         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3141         (shrink_heap): ... this new function.
3142         (heap_trim): Call shrink_heap instead of grow_heap.
3144         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3145         case don't call alloc_perturb.
3147 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3149         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3150         possible.
3151         * sysdeps/unix/sysv/linux/kernel-features.h
3152         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3153         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3155 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3157         [BZ #5424]
3158         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3159         * stdio-common/Makefile (tests): Add bug22.
3160         * stdio-common/bug22.c: New file.
3162         [BZ #5451]
3163         * time/getdate.c: Fix filling in default values.
3164         * time/bug-getdate1.c: New file.
3165         * time/Makefile: Add rules to build and run bug-getdate1.
3167         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3168         * iconvdata/ebcdic-es.c: Likewise.
3169         * iconvdata/ebcdic-es-a.c: Likewise.
3170         * iconvdata/ebcdic-uk.c: Likewise.
3171         * iconvdata/iso8859-16.c: Likewise.
3172         * iconvdata/viscii.c: Likewise.
3173         * iconvdata/iso8859-9e.c: Likewise.
3174         * iconvdata/Makefile: Adjust appropriately.
3176         [BZ #5428]
3177         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3178         __need_wint_t.
3180 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3182         [BZ #5427]
3183         * iconvdata/hp-roman9.c: New file.
3184         * iconvdata/Makefile: Add rules for hp-roman9.c.
3185         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3186         * iconvdata/gconv-modules: Likewise.
3188         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3189         * iconvdata/Makefile: Adjust appropriately.
3191         [BZ #5441]
3192         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3193         structure, it's allocated with alloca.
3194         * stdio-common/Makefile (tests): Add bug21.
3195         * stdio-common/bug21.c: New file.
3197 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3199         [BZ #5452]
3200         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3201         keyword for gcc's braced-groups.
3203 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3205         [BZ #5454]
3206         * inet/ether_line.c: Strip hostname of whitespaces.
3207         * inet/Makefile (tests): Add tst-ether_line.
3208         * inet/tst-ether_line.c: New file.
3210 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3212         [BZ #5439]
3213         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3215         [BZ #5435]
3216         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3218         * stdlib/tst-setcontext.c: Catch the case where the links gets
3219         messed up and we do not reach main again.
3221         * po/ca.po: Update from translation team.
3223 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3225         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3226         * posix/regex.h (REG_ENOSYS): Likewise.
3227         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3229 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3231         * nscd/nscd.h (MAX_STACK_USE): Define.
3232         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3233         (gc): Initialize stack_used based on allocation in prune_cache.
3234         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3235         Clear array before use.
3237         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3238         memory allocation failed.
3239         * nscd/hstcache.c (cache_addhst): Likewise.
3240         * nscd/grpcache.c (cache_addgr): Likewise.
3241         * nscd/servicescache.c (cache_addserv): Likewise.
3242         * nscd/pwdcache.c (cache_addpw): Likewise.
3243         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3245 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3248         and creat system calls.
3250         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3252 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3254         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3255         Add netiucv/iucv.h.
3256         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3257         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3258         protocol.
3259         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3260         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3261         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3263 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3265         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3266         strncat): Define as macros to avoid compile errors.
3268         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3269         creat entries.
3271 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3273         [BZ #5382]
3274         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3275         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3276         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3277         overflow it.
3278         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3280         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3281         Return zero in case the thread library is not NPTL.
3283         [BZ #5375]
3284         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3285         initializing interface list.
3287         [BZ #5378]
3288         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3289         use result of nss_getgrgid_r if nothing was found.  For other
3290         error return with a failure.
3291         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3293         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3294         macro name.
3296 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3298         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3299         (get_scope): For IPv4 scope, use scopes table.
3300         (fini): Free scopes table if necessary.
3301         (free_scopelist): New function.
3302         (scopecmp): New function.
3303         (gaiconf_init): Also handle scopev4 entries.
3304         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3305         * posix/tst-rfc3484-2.c (do_test): Likewise.
3306         * posix/gai.conf: Document scopev4 defaults.
3307         * posix/Makefile (tests): Add tst-rfc3484-3.
3308         * posix/tst-rfc3484-3.c: New file.
3310         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3311         Teredo tunnels.
3312         * posix/gai.conf: Update for current default tables.
3314 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3316         * po/tr.po: Update from translation team.
3318 2007-11-18  Roland McGrath  <roland@frob.com>
3320         * manual/arith.texi (Remainder Functions): Spelling fix.
3321         From Shaun Silk <genix@mysoul.com.au>.
3323         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3325 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3327         * po/zh_CN.po: Update from translation team.
3329         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3330         Add sys/signalfd.h and sys/eventfd.h.
3332 2007-11-15  Bruno Haible  <bruno@clisp.org>
3334         [BZ #5346]
3335         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3336         union.
3337         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3338         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3339         it needs only fixed stack space. Delay the initialization of
3340         msgid_len until it is needed.
3342 2007-11-15  Andreas Jaeger  <aj@suse.de>
3344         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3345         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3347 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3349         * po/ko.po: Update from translation team.
3351 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3353         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3354         significantly.  The device type is also part of the ifinfomsg data.
3356         * po/sv.po: Update from translation team.
3357         * po/nl.po: Likewise.
3359         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3360         to wake up in 24 hours.
3362         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3364 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3366         * po/cs.po: Update from translation team.
3367         * po/pl.po: Likewise.
3369         * include/ifaddrs.h: Remove in6ai_temporary.
3370         (struct in6addrinfo): Add index element.
3371         Declare __check_native.
3372         * inet/Makefile (aux): Add check_native.
3373         * sysdeps/unix/sysv/linux/check_native.c: New file.
3374         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3375         IFA_F_TEMPORARY.  Pass back ifa_index.
3376         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3377         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3378         call __check_native if necessary.
3379         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3380         to sort addresses.  Pass information about the results.
3381         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3382         of rfc3484_sort interface.
3383         * posix/tst-rfc3484-2.c: Likewise.
3385         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3386         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3387         for _quicksort.
3388         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3389         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3390         on as third parameter to compare function and _quicksort.
3391         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3392         to the compare function.
3393         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3394         * Versions.def: Add GLIBC_2.8 for libc.
3396         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3397         * posix/tst-rfc3484-2.c: Likewise.
3399         * include/kernel-features.h: Moved to...
3400         * sysdeps/mach/hurd/kernel-features.h: ...here.
3402 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3404         * sysdeps/i386/i586/memcpy_chk.S: New file.
3405         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3406         * sysdeps/i386/i586/memset_chk.S: Likewise.
3408 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3410         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3411         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3412         list of interfaces.  Also store prefix length.
3413         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3414         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3415         prefix if source and destination address are in the same subnet.
3416         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3417         Always look for matching record in in6ai list.
3418         Correct source_addr_len value for IPv6->IPv4 converted records.
3420 2007-11-11  Roland McGrath  <roland@frob.com>
3422         * include/kernel-features.h: New file.
3424 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3426         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3427         complications for 64-bit platforms.
3429         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3430         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3431         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3432         open64_2.
3433         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3434         entries.
3435         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3436         * sysdeps/wordsize-64/alphasort.c: New file.
3437         * sysdeps/wordsize-64/alphasort64.c: New file.
3438         * sysdeps/wordsize-64/fseeko.c: New file.
3439         * sysdeps/wordsize-64/fseeko64.c: New file.
3440         * sysdeps/wordsize-64/ftello.c: New file.
3441         * sysdeps/wordsize-64/ftello64.c: New file.
3442         * sysdeps/wordsize-64/ftw.c: New file.
3443         * sysdeps/wordsize-64/ftw64.c: New file.
3444         * sysdeps/wordsize-64/iofgetpos.c: New file.
3445         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3446         * sysdeps/wordsize-64/iofopen.c: New file.
3447         * sysdeps/wordsize-64/iofopen64.c: New file.
3448         * sysdeps/wordsize-64/iofsetpos.c: New file.
3449         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3450         * sysdeps/wordsize-64/lockf.c: New file.
3451         * sysdeps/wordsize-64/lockf64.c: New file.
3452         * sysdeps/wordsize-64/mkostemp.c: New file.
3453         * sysdeps/wordsize-64/mkostemp64.c: New file.
3454         * sysdeps/wordsize-64/mkstemp.c: New file.
3455         * sysdeps/wordsize-64/mkstemp64.c: New file.
3456         * sysdeps/wordsize-64/scandir.c: New file.
3457         * sysdeps/wordsize-64/scandir64.c: New file.
3458         * sysdeps/wordsize-64/tmpfile.c: New file.
3459         * sysdeps/wordsize-64/tmpfile64.c: New file.
3460         * sysdeps/wordsize-64/versionsort.c: New file.
3461         * sysdeps/wordsize-64/versionsort64.c: New file.
3462         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3463         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3464         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3465         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3466         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3467         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3468         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3469         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3470         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3471         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3472         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3473         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3475         * crypt/sha256-crypt.c: Fix a comment.
3476         * crypt/sha512-crypt.c: Likewise.
3478 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3480         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3482 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3484         [BZ #5277]
3485         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3486         because output buffer is too small break, don't loop.
3487         * iconvdata/Makefile (tests): Add bug-iconv6.
3488         * iconvdata/bug-iconv6.c: New file.
3490 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3492         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3493         with size_t type.
3494         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3495         size_t.  Add casts where needed.
3497         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3498         old headers, don't call avc_has_perm if we don't have the
3499         permission information.
3501 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3503         * elf/rtld.c (dl_main): Use the page size to find the map start.
3505 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3507         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3508         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3510         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3511         when the lookup call failed.
3513         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3514         Add prune_cond and wakeup_time.
3515         (CACHE_PRUNE_INTERNAL): Define.
3516         Update declarations of prune_cache and setup_thread.
3517         * nscd/connections.c (dbs): Update initializers.
3518         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3519         (nscd_init): Default number of threads is now 4.
3520         (invalidate_cache): Take lock before calling prune_cache.
3521         (handle_request): If SELinux forbids the request, say so.
3522         (readylist_cond): Use static initializer.
3523         (nscd_run_prune): New function.  Used only by pruning threads.
3524         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3525         here.
3526         (fd_ready): Update nscd_run reference.
3527         (start_threads): No need to initialize readylist_cond.
3528         Start pruning threads separately.
3529         * nscd/nscd_setup_thread.c: Change return value type to int and always
3530         return 0.
3531         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3532         to int and return nonzero value if we can use the TID address hack.
3533         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3534         the database is later than the new entry's timeout, update the
3535         wakeup time and wake the cleanup thread.
3536         (prune_cache): Return seconds the next entry in the database is still
3537         valid.  Remove locking for pruning here.
3538         * nscd/nscd.conf: Document default number of threads.
3540 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3542         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3543         stack is properly aligned for the target function.
3544         Correct unwind info.
3546         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3547         when using auditing libraries.
3549 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3551         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3552         _nss_dns_getnetbyaddr2_r.
3553         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3554         extra parameter to getanswer_r.
3555         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3556         _nss_dns_getnetbyaddr2_r.
3558         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3559         gethstbynm3_r.
3560         * nscd/gethstbynm2_r.c: Remove.
3561         * nscd/gethstbynm3_r.c: New file.
3562         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3563         __gethostbyaddr_r.
3564         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3565         __gethostbyaddr_r compatibility wrapper.
3566         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3567         determining timeout of entry.
3568         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3569         __gethostbyaddr2_r.
3570         (addhstbyX): Pass reference to variable for TTL to lookup and
3571         cache_addhst.
3572         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3573         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3574         and __nss_next2.  Remove __nss_services_lookup.
3575         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3576         Add compat wrapper.
3577         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3578         __nss_next2.
3579         * nss/getXXent_r.c: Likewise.
3580         * nss/getnssent_r.c: Likewise.
3581         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3582         does not exist in module, try the optional second name.
3583         (__nss_next2): New function.
3584         (__nss_next): Now wrapper around __nss_next2.
3585         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3586         Declare __nss_next2.
3587         Adjust definition of db_lookup_function type.
3588         * nss/service-lookup.c: Define NO_COMPAT.
3589         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3590         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3591         * inet/ether_ntoh.c: Likewise.
3592         * sunrpc/netname.c: Likewise.
3593         * sunrpc/publickey.c: Likewise.
3594         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3595         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3596         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3597         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3598         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3600         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3602         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3604 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3606         [BZ #5204]
3607         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3608         * crypt/sha512c-test.c: Likewise.
3610         [BZ #5225]
3611         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3612         to keep track of end of %[ format string element.
3613         * stdio-common/Makefile (tests): Add bug20.
3614         * stdio-common/bug20.c: New file.
3616         [BZ #5222]
3617         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3618         path elements in counting mode.
3620 2007-10-27  Andreas Jaeger  <aj@suse.de>
3622         [BZ #5040]
3623         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3625         [BZ #3112]
3626         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3627         (__cleanup): Free shared library when exiting.
3628         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3629         (__cleanup): Free shared library when exiting.
3631 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3633         [BZ #2549]
3634         * math/libm-test.inc (check_float_internal): Support
3635         denormalized return.
3637 2007-10-23  Andreas Jaeger  <aj@suse.de>
3639         [BZ #5208]
3640         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3641         __LONG_LONG_PAIR to handle little endian byte order.
3642         Suggested by abhishekrai@google.com
3644 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3646         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3648 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3650         * nscd/cache.c (prune_cache): Move test for modified file outside
3651         of locking.
3653 2007-10-21  Andreas Jaeger  <aj@suse.de>
3655         * manual/texinfo.tex: Update to latest version.
3657         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3659         * manual/arith.texi (Status bit operations): Fix formatting.
3661         * manual/errno.texi (Error Messages): Fix formatting.
3663         * manual/sysinfo.texi (System Parameters): Fix formatting.
3665         * manual/libc.texinfo: Update VERSION and UPDATED.
3667 2007-10-19  Roland McGrath  <roland@redhat.com>
3669         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3671 2007-10-06  David S. Miller  <davem@davemloft.net>
3673         * configure.in: Add sparcv9v2 and sparc64v2.
3674         * scripts/config.sub: Likewise.
3675         * configure: Regenerate.
3676         * elf/elf.h (HWCAP_SPARC_N2): New.
3677         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3678         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3679         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3680         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3681         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3682         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3683         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3685 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3687         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3688         even if the poll result indicates there is data to read.
3689         Patch by Jeff Moyer <jmoyer@redhat.com>.
3691 2007-10-18  Roland McGrath  <roland@redhat.com>
3693         * elf/elf.h (NT_PPC_VMX): New macro.
3695 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3697         * version.h (VERSION): Set to 2.7.90.
3699 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3701         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3702         weak_alias.
3704 2007-10-17  Roland McGrath  <roland@frob.com>
3706         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3707         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3709 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3711         * version.h (VERSION): Bump to 2.7.
3712         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3714         [BZ #5186]
3715         * time/tzset.c (__tz_convert): Don't force testing for a change of
3716         TZ if not called from localtime.  But then also see whether the
3717         file changed, in case __use_tzfile is set.
3719         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3720         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3721         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3722         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3723         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3724         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3725         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3726         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3728 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3730         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3731         and admin selects to be able to replace the gai.conf file, lock
3732         data structures around the qsort call.
3734 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3736         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3737         new memset.
3738         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3739         too high for the improvements.  Implement bzero unconditionally for
3740         use in libc.
3742 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3743             Jakub Jelinek  <jakub@redhat.com>
3745         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3746         even when time_t is 32-bit.
3747         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3748         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3749         always set after the search.
3751 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3753         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3754         unreachable code on 32-bit machines.
3756 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3758         [BZ #5184]
3759         * time/strftime_l.c: Include stdbool.h.
3760         (my_strftime): New wrapper, old function renamed to...
3761         (__strftime_internal): ... new function.  Add tzset_called
3762         argument, pass it down to recursive calls, don't call tzset ()
3763         if already true, set to true after call to tzset ().
3765 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3767         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3768         into account when copying TZ string.
3770 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3772         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3773         num_transition rather than num_transitions - 1.
3775 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3777         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3778         PIC indirect jump.
3780         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3781         a local label rather than HIDDEN_JUMPTARGET.
3783 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3785         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3786         (init_cacheinfo): Initialize it.
3787         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3788         Always define bzero.
3789         Remove non-glibc code.
3790         * sysdeps/x86_64/bzero.S: Make an empty file.
3792 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3794         * sysdeps/x86_64/cacheinfo.c
3795         (__x86_64_preferred_memory_instruction): New.
3796         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3798         * sysdeps/x86_64/memset.S: Rewrite.
3800 2007-10-15  Roland McGrath  <roland@redhat.com>
3802         * po/libc.pot: Regenerated.
3804 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3806         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3807         pointers.
3809         [BZ #3425]
3810         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3811         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3812         address record to T_A/T_AAAA requests.
3814 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3816         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3818         * posix/glob.c: Add some branch prediction throughout.
3820         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3821         read from nscd.
3823         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3824         service_order.
3825         (rfc3484_sort): Make sure that even if qsort doesn't support
3826         stable sorting out sorting here is stable by comparing service_order.
3827         (getaddrinfo): Initialize service_order.
3828         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3829         service_order field to sorting structure.
3830         * posix/tst-rfc3484-2.c (do_test): Likewise.
3832         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3833         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3834         __tzset_parse_tz and updating of daylight, timezone, tzname into
3835         update_vars.
3836         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3837         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3838         happens in __tz_compute.
3839         * time/tzfile.c (__tzfile_read): Also read TZ string.
3840         (find_transition): Fold into __tzfile_compute.
3841         (__tzfile_compute): For times beyond the last transition try to
3842         use the TZ string.
3843         * timezone/tst-timezone.c: Information in daylight and tzname does
3844         change for Asia/Tokyo timezone with more concrete information.
3845         Remove the test.
3847         * include/stdio.h: Add libc_hidden_proto for ftello.
3848         * libio/ftello.c: Add libc_hidden_def.
3850         [BZ #1140]
3851         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3852         on the specified time and not the last entries in the file.  Move
3853         code to determine tzname[] to...
3854         (find_transition): ...here.  Add ugly guess for times before the
3855         first transition.
3857 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3859         [BZ #3195]
3860         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3861         no entry.
3862         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3863         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3864         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3865         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3867         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3868         read mechanism when there are no group members and avoid no-op
3869         read syscall in this case.
3871         [BZ #3242]
3872         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3873         (__readall): If reading failed due to EAGAIN error wait a bit
3874         and possibly try again.
3875         (__readvall): Likewise.
3877 2007-10-13  Bruno Haible  <bruno@clisp.org>
3879         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3880         when we cannot recode the message.
3882 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3884         [BZ #4359]
3885         * libio/__freading.c (__freading): Don't return true for
3886         write-only streams.  For read/write streams, check whether we
3887         performed a read operation already.
3888         * libio/Makefile (tests): Add tst-ext2.
3889         * libio/tst-ext2.c: New file.
3891 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3893         * locale/programs/repertoire.c (repertoire_read): Always free
3894         memory for repertoire file name [Coverity CID 270].
3896         * elf/cache.c (save_aux_cache): Free memory allocated for
3897         temporary file name [Coverity CID 267].
3899 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3901         * misc/Makefile (headers): Add bits/error.h.
3903 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3905         * posix/fnmatch_loop.c: Take rule index returned as part of
3906         findidx return value into account when accessing weights.
3907         * posix/regcomp.c: Likewise.
3908         * posix/regexec.c: Likewise.
3910         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3911         (skip_to): Fix problems with parameter of elifdef/elifndef.
3913 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3915         * iconv/gconv_simple.c: Add some branch prediction.
3917 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3919         * locale/programs/ld-collate.c (collate_read): If ignore_content
3920         and nowtok is tok_define, eat any tok_eol tokens.
3922 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3924         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3925         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3927         * inet/netinet/in.h: Don't include bits/socket.h.
3928         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3929         macro.
3930         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3932 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3934         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3935         and tok_elifndef.
3936         * locale/programs/locfile-kw.gperf: Likewise.
3937         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3939 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3941         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3942         (__find_specwc): Change into __extern_always_inline function.
3943         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3944         (__parse_one_specmb): Remove ps argument.
3945         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3946         Adjust __find_specmb and __parse_one_specmb callers.
3947         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3948         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3949         Removed.
3950         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3951         caller.
3953 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3955         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3956         with some Pentium Ds.
3958 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3960         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3961         __read not read.
3962         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3963         __write not write.
3965 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3967         [BZ #181]
3968         * locale/C-time.c: Set week_1stday data to 19971201.
3969         * locale/programs/ld-time.c (time_finish): Default for
3970         first_workday is Monday.
3972         [BZ #2633]
3973         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3975         [BZ #5103]
3976         * posix/glob.c (glob): Recognize patterns starting \/.
3977         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3978         (main): Add test for pattern starting \/.
3980         * misc/error.h: Use __const instead of const.
3981         * misc/bits/error.h: Likewise.
3983 2007-10-07  Andreas Jaeger  <aj@suse.de>
3985         * include/bits/error.h: New file.
3987         * misc/bits/error.h (error_at_line): Fix prototype.
3989 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3991         [BZ #3924]
3992         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3993         more little bugs in creating the stack frame when pltexit has to
3994         be called.
3996         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3997         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3999         [BZ #4407]
4000         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4001         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4002         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4003         * math/libm-test.inc: Add test for this case.
4005         [BZ #5010]
4006         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4007         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4008         map service succeeded.
4009         (svc_is_mapped): New function.
4010         (svc_unregister): Use it before trying to unmap service.
4012 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4014         * timezone/zic.c: Update from tzcode2007h.
4016         [BZ #5063]
4017         * timezone/africa: Update from tzdata2007h.
4018         * timezone/antarctica: Likewise.
4019         * timezone/asia: Likewise.
4020         * timezone/australasia: Likewise.
4021         * timezone/europe: Likewise.
4022         * timezone/leapseconds: Likewise.
4023         * timezone/northamerica: Likewise.
4024         * timezone/southamerica: Likewise.
4025         * timzeone/zone.tab: Likewise.
4027         [BZ #5104]
4028         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4030         [BZ #5113]
4031         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4032         avoid warning with -Wconversion.
4033         (__strndup): Likewise.
4034         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4036         [BZ #5112]
4037         * nscd/connections.c (restart): Don't resync if database is
4038         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4040         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4041         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4043         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4044         evetnfd_read, eventfd_write.
4045         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4046         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4047         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4048         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4049         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4050         eventfd_write for GLIBC_2.7.
4052         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4053         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4054         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4055         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4057 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4059         * stdlib/msort.c: Include stdint.h.
4060         (struct msort_param): New type.
4061         (msort_with_tmp): Use struct msort_param pointer for unchanging
4062         parameters.  Add optimized handling for several common sizes
4063         and indirect sorting mode.
4064         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4065         sorting.
4066         Suggested by Belazougui Djamel .
4068         * stdlib/Makefile (tests): Add tst-qsort2.
4069         * stdlib/tst-qsort2.c: New test.
4071 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4073         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4074         for dup2 in case another thread races with the current one.  Retry
4075         in this case.
4077         * misc/error.h: Remove support for use outside of libc.  We have to
4078         include <features.h> now.  Include <bits/error.h> if possible.
4079         * misc/bits/error.h: New file.
4081 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4083         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4084         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4085         __extern_always_inline functions unconditionally, drop macros.
4087         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4088         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4089         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4091         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4092         add __artificial__ attribute.
4094 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4096         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4097         backward to forward direction.
4099         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4101         [BZ #645]
4102         * locale/programs/ld-collate.c (collate_finish): Compare against last
4103         used section which is known to have rules defined.
4104         (collate_read): After order_start, correctly record order of sections
4105         and queue sections up.
4107 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4109         [BZ #5071]
4110         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4111         the same number of pages.
4112         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4114         * locale/programs/ld-collate.c (collate_read): After initial copy
4115         statement, continue in state 0.
4117         * include/stdio_ext.h (__fsetlocking): Define as macro.
4119 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4121         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4122         of section order.
4124         * po/pt_BR.po: Fix typo.
4126 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4128         * iconvdata/Makefile (modules): Add ISO8859-9E.
4129         (distribute): Add iso8859-9e.c.
4130         (gen-8bit-gap-modules): Add iso8859-9e.
4131         * iconvdata/iso8859-9e.c: New file.
4132         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4133         * iconvdata/TESTS: Likewise.
4134         * iconvdata/tst-tables.sh: Likewise.
4136         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4138         * locale/iso-639.def: Add several new entries.
4140 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4142         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4143         void * pointers instead of struct link_map **.
4144         (_dl_scope_free): Change argument type to void *.
4145         * include/link.h (struct link_map): Change type of l_reldeps
4146         to struct link_map_reldeps, move l_reldepsact into that
4147         struct too.
4148         * elf/dl-deps.c: Include atomic.h.
4149         (_dl_map_object_deps): Only change l->l_initfini when it is
4150         fully populated, use _dl_scope_free for freeing it.  Optimize
4151         removal of libs from reldeps by using l_reserved flag, when
4152         some removal is needed, allocate a new list instead of
4153         reallocating and free the old with _dl_scope_free.  Adjust
4154         for l_reldeps and l_reldepsact changes.
4155         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4156         searching in l_initfini and l_reldeps without holding dl_load_lock.
4157         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4158         l_reldepsact changes.
4159         * elf/dl-close.c (_dl_close_worker): Likewise.
4160         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4162 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4164         * iconvdata/Makefile (modules): Add KOI8-RU.
4165         (distribute): Add koi8-ru.c.
4166         (gen-8bit-gap-modules): Add koi8-ru.
4167         * iconvdata/koi8-ru.c: New file.
4168         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4169         * iconvdata/TESTS: Likewise.
4170         * iconvdata/tst-tables.sh: Likewise.
4172         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4174 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4176         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4177         with __warning__/__error__ attributes.
4178         (__warnattr): Define.
4179         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4180         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4181         __warnattr.
4182         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4183         of __*_chk if compile time detectable overflow is found.
4184         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4185         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4186         with __warnattr.
4187         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4188         instead of __*_chk if compile time detectable overflow is found.
4189         (__gets_alias): Rename to...
4190         (__gets_warn): ... this.  Add __warnattr.
4191         (gets): Call __gets_warn instead of __gets_alias.
4192         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4193         aliases with __warnattr.
4194         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4195         time detectable overflow is found.
4196         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4197         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4198         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4199         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4200         __getdomainname_chk_warn): New aliases with __warnattr.
4201         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4202         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4203         __*_chk_warn instead of __*_chk if compile time detectable overflow
4204         is found.
4205         (__getgroups_chk): Rename argument to __listlen from listlen.
4206         (__getwd_alias): Rename to...
4207         (__getwd_warn): ... this.  Add __warnattr.
4208         (getwd): Call __getwd_warn instead of __getwd_alias.
4209         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4210         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4211         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4212         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4213         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4214         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4215         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4216         compile time detectable overflow is found.
4217         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4218         to use __*_chk or not.
4219         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4220         in comparisons which function should be called and in __*_chk*
4221         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4222         detectable overflow is found.
4223         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4224         __*_chk argument.
4225         * debug/tst-chk1.c (do_test): Add a few more tests.
4227 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4229         [BZ #5058]
4230         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4231         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4232         (_nl_unload_domain): Finalize conversions_lock.
4233         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4234         handling table of known conversions.
4236 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4238         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4239         close_not_cancel_no_status instead of close.
4241 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4243         [BZ #5028]
4244         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4245         nrules != 0 for multibyte chars.
4247 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4249         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4250         Provide better error message in case the type is unknown.
4252         [BZ #4963]
4253         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4254         * string/stratcliff.c: Make usable to test wide char functions.
4255         * wcsmbs/wcsatcliff.c: New file.
4256         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4258         [BZ #4972]
4259         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4260         (distribute): Add mac-centraleurope.c.
4261         (gen-8bit-gap-modules): Add mac-centraleurope.
4262         * iconvdata/mac-centraleurope.c: New file.
4263         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4264         * iconvdata/TESTS: Likewise.
4265         * iconvdata/tst-tables.sh: Likewise.
4267         [BZ #5043]
4268         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4270 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4272         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4273         from __x86_64_core_cache_size_half.
4274         (init_cacheinfo): Compute shared cache size for AMD processors with
4275         shared L3 correctly.
4276         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4277         name change.
4278         Patch in large parts by Evandro Menezes.
4280 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4282         * elf/dl-lookup.c (add_dependency): Handle failing memory
4283         allocation for dependency list.  Remove unnecessary check.
4285         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4286         open/close when determining source addresses.
4288         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4289         sha512-crypt, and sha512.
4290         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4291         (distribute): Add sha256.h and sha512.h.
4292         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4293         and call the appropriate code.
4294         * crypt/sha256-crypt.c: New file.
4295         * crypt/sha256.c: New file.
4296         * crypt/sha256.h: New file.
4297         * crypt/sha256c-test.c: New file.
4298         * crypt/sha256test.c: New file.
4299         * crypt/sha512-crypt.c: New file.
4300         * crypt/sha512.c: New file.
4301         * crypt/sha512.h: New file.
4302         * crypt/sha512c-test.c: New file.
4303         * crypt/sha512test.c: New file.
4305 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4307         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4308         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4309         __syslog_chk.
4311 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4313         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4314         %as in fscanf format strings.
4316         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4317         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4318         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4319         Likewise.
4320         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4321         Likewise.
4323         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4324         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4325         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4326         * elf/dl-sym.c (do_sym): Likewise.
4327         * include/link.h (struct link_map): Add l_serial field.
4328         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4329         * elf/dl-lookup.c (add_dependency): Add flags argument.
4330         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4331         flags, use THREAD_GSCOPE_RESET_FLAG before and
4332         THREAD_GSCOPE_SET_FLAG after
4333         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4334         Don't dereference map until it has been found on some list.
4335         If map->l_serial changed, return -1.
4337 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4339         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4340         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4341         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4342         libc_hidden_proto.
4343         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4344         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4345         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4346         add libc_hidden_proto.
4347         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4348         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4349         conformance requested.
4350         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4351         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4352         conformance requested.
4353         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4354         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4355         conformance requested.
4356         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4357         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4358         ISO C99 or POSIX conformance requested.
4359         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4360         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4361         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4362         and __isoc99_vsscanf@@GLIBC_2.7.
4363         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4364         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4365         (tests): Add scanf14.
4366         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4367         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4368         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4369         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4370         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4371         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4372         from using internal headers.
4373         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4374         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4375         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4376         and __isoc99_vswscanf@@GLIBC_2.7.
4377         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4378         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4379         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4380         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4381         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4382         * stdio-common/isoc99_scanf.c: New file.
4383         * stdio-common/isoc99_vsscanf.c: New file.
4384         * stdio-common/isoc99_vscanf.c: New file.
4385         * stdio-common/isoc99_vfscanf.c: New file.
4386         * stdio-common/isoc99_fscanf.c: New file.
4387         * stdio-common/isoc99_sscanf.c: New file.
4388         * wcsmbs/isoc99_fwscanf.c: New file.
4389         * wcsmbs/isoc99_vswscanf.c: New file.
4390         * wcsmbs/isoc99_swscanf.c: New file.
4391         * wcsmbs/isoc99_wscanf.c: New file.
4392         * wcsmbs/isoc99_vwscanf.c: New file.
4393         * wcsmbs/isoc99_vfwscanf.c: New file.
4394         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4395         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4396         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4397         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4398         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4399         * stdio-common/scanf14.c: New test.
4400         * stdio-common/scanf15.c: New test.
4401         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4402         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4403         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4404         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4405         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4406         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4407         __nldbl___isoc99_scanf@@GLIBC_2.7,
4408         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4409         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4410         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4411         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4412         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4413         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4414         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4415         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4416         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4417         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4418         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4419         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4420         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4421         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4422         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4423         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4424         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4425         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4426         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4427         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4428         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4429         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4430         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4431         functions.
4432         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4433         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4434         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4435         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4436         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4437         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4438         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4439         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4440         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4441         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4442         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4443         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4445         * stdio-common/Makefile (tests): Add scanf13.
4446         (scanf13-ENV): New.
4447         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4448         m modifier followed by l.
4449         (STRING_ARG): Add width argument.
4450         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4451         <case L_('C')>: Handle %mlc and %mC.
4452         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4453         arguments.
4454         * stdio-common/scanf13.c: New test.
4456         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4457         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4459 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4461         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4462         type and __THROW marker of splice, vmsplice, and tee.
4463         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4464         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4465         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4466         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4467         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4468         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4469         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4470         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4471         as cancellation points.
4473 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4475         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4476         parse more than three parts of the version number.
4478 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4480         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4481         modifier.  Patch by Jakub Jelinek.
4483 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4485         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4486         call_fallocate in misc subdir.
4487         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4488         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4489         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4490         instead of __fallocate64.
4491         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4493 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4495         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4496         * rt/Makefile (headers): Add bits/mqueue2.h.
4497         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4498         optimizing with GCC and __va_arg_pack_len is defined.
4499         * rt/bits/mqueue2.h: New file.
4500         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4501         (mq_open): New strong_alias.
4502         (__mq_open_2): New function.
4503         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4504         (mq_open): New strong_alias.
4505         (__mq_open_2): New function.
4506         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4507         * Versions.def (librt): Add GLIBC_2.7 version.
4508         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4509         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4511         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4512         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4513         is defined rather than when not C++.
4514         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4515         __openat64_alias): New redirects.
4516         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4517         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4518         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4519         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4520         functions instead of function-like macros.
4522 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4524         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4525         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4526         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4528 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4530         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4531         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4533 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4535         * inet/tst-network.c: Increment ERRORS for failing tests.
4537 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4539         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4540         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4541         implement as __extern_always_inline function.
4542         (vsyslog): Define as __extern_always_inline function unconditionally.
4543         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4544         When __va_arg_pack is defined, implement as __extern_always_inline
4545         functions.
4546         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4547         __extern_always_inline functions unconditionally.
4548         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4549         bits/stdio2.h will be included.
4550         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4551         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4552         implement as __extern_always_inline functions.
4553         (vswprintf, vwprintf, vfwprintf): Define as
4554         __extern_always_inline functions unconditionally.
4555         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4557 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4559         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4560         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4561         attribute.
4562         * include/features.h (__USE_EXTERN_INLINES): Define only when
4563         __extern_inline is defined.
4564         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4565         is defined instead of when not __cplusplus.
4566         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4567         is defined instead of when not __cplusplus.
4568         * socket/sys/socket.h: Include bits/socket2.h when
4569         __extern_always_inline is defined instead of when not __cplusplus.
4570         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4571         is defined instead of when not __cplusplus.
4572         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4573         is defined instead of when not __cplusplus.
4574         * string/string.h: Include bits/string3.h when __extern_always_inline
4575         is defined instead of when not __cplusplus.
4576         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4577         is defined instead of when not __cplusplus.
4578         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4579         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4580         is not defined.
4581         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4582         defined __extern_always_inline instead of !defined __cplusplus.
4583         * libio/bits/stdio-ldbl.h: Likewise.
4584         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4585         * misc/bits/syslog.h (syslog): Don't define for C++.
4586         (vsyslog): Use __extern_always_inline function for C++ instead of
4587         a macro.
4588         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4589         whenever that macro is defined.
4590         (vprintf): Don't provide the inline for C++.
4591         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4592         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4593         define the macros for C++.
4594         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4595         __extern_always_inline functions for C++.
4596         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4597         stat64, lstat64, fstat64, fstatat64): Don't define if not
4598         __USE_EXTERN_INLINES.
4599         * wcsmbs/bits/wchar2.h: Fix #error message.
4600         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4601         (vswprintf, vwprintf, vfwprintf): Define using
4602         __extern_always_inline functions for C++.
4603         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4604         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4605         strncpy, strcat, strncat): Define as __extern_always_inline
4606         functions instead of macros for C++.
4607         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4608         defined __extern_inline.
4609         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4610         to __extern_inline whenever that macro is defined.
4611         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4612         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4613         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4614         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4615         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4616         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4617         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4618         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4619         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4620         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4621         prototypes.  Only provide __extern_inline routines if
4622         __USE_EXTERN_INLINES.
4623         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4624         tests.
4625         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4626         For now avoid some *printf tests in C++.  Skip all testing
4627         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4628         is not.
4629         * debug/tst-chk4.cc: New file.
4630         * debug/tst-chk5.cc: New file.
4631         * debug/tst-chk6.cc: New file.
4632         * debug/tst-lfschk4.cc: New file.
4633         * debug/tst-lfschk5.cc: New file.
4634         * debug/tst-lfschk6.cc: New file.
4635         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4636         prototypes in C++.
4637         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4638         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4639         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4641 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4643         * po/cs.po: Update from translation team.
4645 2007-09-11  Roland McGrath  <roland@redhat.com>
4647         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4648         compiling.
4650 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4652         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4654 2007-09-05  Roland McGrath  <roland@redhat.com>
4656         * manual/signal.texi (Signaling Another Process): Typo fix.
4657         From Karl Berry <karl@freefriends.org>.
4659 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4661         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4662         zero if not defined.
4663         (make_request): Recognize optimistic addresses and treat them like
4664         deprecated addresses.
4665         Reported by Neil Horman <nhorman@redhat.com>.
4667 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4669         * nscd/connections.c (send_ro_fd): Also transfer file size.
4670         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4671         file size don't call fstat.
4673         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4674         ahead and map the file.  This should always be correct and we can
4675         catch problems later.
4677 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4679         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4680         prototypes.
4681         (__fread_alias, __fread_unlocked_alias): New aliases.
4682         (fread): New extern inline.
4683         (fread_unlocked): Likewise.  Undef macro before definition of
4684         the inline function.
4685         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4686         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4687         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4688         and __fread_unlocked_chk@@GLIBC_2.7.
4689         * debug/fread_chk.c: New file.
4690         * debug/fread_u_chk.c: New file.
4691         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4693 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4695         * sysdeps/unix/sysv/linux/syscalls.list
4696         (personality): Change caller to EXTRA.
4698 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4700         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4701         to keep gcc quiet.
4702         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4704         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4705         NDEBUG is defined.
4707         * Makerules: Use -p option with mkdir.
4709         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4710         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4711         (_xdr_directory_obj): Likewise.
4712         (xdr_entry_obj): Likewise.
4713         (xdr_group_obj): Likewise.
4714         (xdr_link_obj): Likewise.
4715         (xdr_table_obj): Likewise.
4716         (_xdr_nis_result): Likewise.
4717         (_xdr_ns_request): Likewise.
4718         (_xdr_ib_request): Likewise.
4719         (_xdr_nis_taglist): Likewise.
4720         (xdr_cback_data): Likewise.
4721         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4722         (xdr_ypresp_maplist): Likewise.
4724         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4726         * posix/regex_internal.h: Prevent some declarations and definitions
4727         to be seen when used in tests.
4729         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4730         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4732         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4734         * config.make.in (datarootdir): Add to shut up configure.
4736         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4737         associativity for fully-associative caches.
4739         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4740         requests.  Fill on more associativity values for L2.
4741         Patch mostly by Evandro Menezes.
4743 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4745         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4746         (_libc_vdso_platform_setup): Avoid using exported variable by using
4747         alias.
4749         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4751         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4752         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4753         defined.
4755 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4757         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4758         align stack for call if pltexit is to be used.
4760         [BZ #3924]
4761         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4762         align for function call in case pltexit has to be called later.
4764         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4765         implicit atomic operation when storing function pointer.
4766         (_dl_runtime_profile): Likewise.
4768 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4770         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4771         NIS_NOTFOUND.
4773 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4775         [BZ #4566]
4776         * string/strtok.c: Fix typo in comment.
4778         [BZ #4582]
4779         * debug/segfault.c: Fix typos in comments.
4781         [BZ #4588]
4782         * stdio-common/tempnam.c: Fix comment, it is not checked that
4783         TMPDIR points to a writable directory.
4785         [BZ #4726]
4786         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4787         memory allocated for the name server address.
4789         [BZ #4946]
4790         * nscd/connections.c (handle_request): Using sendfile always
4791         requires that mmap is used for the database.
4792         Patch by Petr Baudis <pasky@suse.cz>.
4794         [BZ #4905]
4795         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4796         suddenly has two or more addresses, ignore it and remove the old
4797         entry.
4799         [BZ #4814]
4800         * resolv/res_hconf.c: Prepare for compiling outside libc.
4801         * nscd/res_hconf.c: New file.
4802         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4803         the new file.
4804         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4805         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4807         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4809         [BZ #4925]
4810         * debug/pcprofiledump.c: Turn on internationalization by calling
4811         setlocale.  Patch mostly by Benno Schulenberg.
4813         [BZ #4936]
4814         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4815         the state.
4816         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4817         * iconvdata/bug-iconv5.c: New file.
4819 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4821         [BZ #4896]
4822         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4823         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4824         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4825         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4826         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4827         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4828         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4829         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4831 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4833         [BZ #4937]
4834         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4835         lookup loop.  Suggested by John Reiser.
4837 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4839         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4841 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4843         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4844         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4845         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4846         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4847         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4848         to...
4849         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4851 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4853         * po/nl.po: Update from translation team.
4855 2007-08-16  Andreas Jaeger  <aj@suse.de>
4857         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4858         Reported by Peter Festner <peter.festner@ewetel.net>.
4860 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4862         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4864 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4866         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4867         to check for undefined symbols.
4869         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4870         If the syscall fails, set errno to the actual returned error number
4871         rather than EINVAL.
4872         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4873         arguments are incorrect, set errno to EINVAL, if the syscall
4874         fails, set errno to the actual returned error number.
4876         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4877         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4879         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4880         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4881         file.
4882         (ASI_PNF, ASI_BLK_P): Don't define.
4883         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4884         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4885         file.
4886         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4887         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4888         file.
4890 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4892         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4893         FE_UNDERFLOW on Niagara CPUs.
4895         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4896         exceptions.
4898 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4900         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4901         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4902         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4903         flush should be used or not inside of the function.
4904         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4906         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4907         __thread_start): Use HIDDEN_JUMPTARGET.
4908         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4909         __thread_start): Likewise.
4910         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4912         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4913         Add libc_hidden_proto.
4914         (STRTOF): Add libc_hidden_proto.
4915         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4916         (strtold_l, wcstold_l): Use them as second argument for
4917         long_double_symbol.
4919 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4921         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4923 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4925         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4927 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4929         * po/bg.po: New file.  From the translation team.
4931 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4933         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4934         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4935         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4936         when each feature was introduced.
4938         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4939         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4940         (CHECK_HASH): New macro.
4941         (PREPARE_VERSION): Use it.
4943         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4944         prototype if not __ASSUME_PSELECT.
4945         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4946         prototype if not __ASSUME_PPOLL.
4948         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4950         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4951         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4952         is defined.
4954 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4956         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4957         (_libc_vdso_platform_setup): If vDSO is not available point
4958         __vdso_gettimeofday to the vsyscall.
4959         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4960         __vdso_gettimeofday instead of vsyscall.
4962 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4964         * nscd/servicescache.c: Include kernel-features.h.
4965         * nscd/gai.c: Likewise.
4966         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4967         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4968         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4969         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4970         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4971         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4972         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4973         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4974         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4976 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4978         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4979         and _dl_get_origin defines anymore.
4981         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4982         Build fix for systems which might lack POSIX timer support.
4984         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4985         (_libc_vdso_platform_setup): Mangle function pointers before storing
4986         them.
4987         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4988         Demangle vdso pointer before use.
4989         (INTERNAL_VSYSCALL): Likewise.
4991         * elf/cache.c (primes): Mark as const.
4992         Noted by Roland McGrath.
4994 2007-08-01  Andreas Jaeger  <aj@suse.de>
4995             Jakub Jelinek  <jakub@redhat.com>
4997         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4998         (options): Add option.
4999         (parse_opt): Handle option.
5000         (manual_link): Adjust process_file caller.  Call implicit_soname.
5001         (search_dir): Formatting.  Use and populate auxiliary cache.
5002         (main): Load and save auxiliary cache.
5003         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5004         stat64 from fstat64 to caller.
5005         (implicit_soname): New function.
5006         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5007         leave *soname as NULL.
5008         * elf/cache.c: Include libgen.h.
5009         (print_entry, print_cache, compare, save_cache, add_to_cache):
5010         Formatting and cleanups.
5011         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5012         aux_cache_file): New structures.
5013         (AUX_CACHEMAGIC): Define.
5014         (primes): New array.
5015         (aux_hash_size, aux_hash): New variables.
5016         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5017         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5018         load_aux_cache, save_aux_cache): New functions.
5019         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5020         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5021         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5022         (process_file): Adjust prototype.
5024 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5026         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5027         with __need_size_t.
5029 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5031         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5032         r_found_version structure as second parameter.
5033         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5034         (_dl_vdso_vsym): Change type of second parameter accordingly.
5035         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5036         (_libc_vdso_platform_setup): Adjust.
5037         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5038         (_libc_vdso_platform_setup): Likewise.
5040         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5041         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5042         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5043         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5044         * csu/libc-start.c: Pretty printing.
5045         Use VDSO_SETUP if defined.
5046         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5047         and let generic code call into _libc_vdso_platform_setup.
5048         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5049         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5050         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5051         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5052         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5053         for GLIBC_PRIVATE.
5054         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5055         (sysdep_rountines): Add dl-vdso.
5057         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5058         of routines.
5060         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5061         attribute_hidden to __vdso_gettimeofday prototype.
5063 2007-08-12  Roland McGrath  <roland@redhat.com>
5065         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5066         From: Karl Berry <karl@freefriends.org>.
5068 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5070         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5071         an atime update for the files we read.
5073 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5075         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5077         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5078         instead of mkstemp.
5080         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5081         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5082         * misc/mkostemp.c: New file.
5083         * misc/mkostemp64.c: New file.
5084         * stdlib/stdlib.h: Declare the new functions.
5085         * sysdeps/posix/tempname.c: Add new parameter which is added to
5086         the flags for open.  Remove __GT_BIGFILE handling.
5087         * stdio-common/tempname.c: Likewise.
5088         * include/stdio.h: Adjust __gen_tempname prototype.
5089         Renumber __GT_* constants.
5090         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5091         * misc/mkdtemp.c: Likewise.
5092         * misc/mkstemp.c: Likewise.
5093         * misc/mkstemp64.c: Likewise.
5094         * misc/mktemp.c: Likewise.
5095         * stdio-common/tempnam.c: Likewise.
5096         * stdio-common/tmpfile.c: Likewise.
5097         * stdio-common/tmpfile64.c: Likewise.
5098         * stdio-common/tmpnam.c: Likewise.
5099         * stdio-common/tmpnam_r.c: Likewise.
5101 2007-08-10  Roland McGrath  <roland@frob.com>
5103         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5104         New macros.
5105         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5106         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5108 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5110         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5111         possible.
5112         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5113         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5114         * nss/nss_files/files-have_o_cloexec.c: New file.
5116         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5117         available.
5119 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5121         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5122         ___new_wcstold_l): New weak aliases.
5123         (strtold_l, wcstold_l): Use them as second argument for
5124         long_double_symbol.
5126 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5128         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5129         register in test for error.
5131         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5132         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5134         * po/sv.po: Update from translation team.
5136 2007-08-06  Roland McGrath  <roland@redhat.com>
5138         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5139         Remove __strto*_l inlines.
5140         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5141         * stdlib/strtod.c: Add libc_hidden_def.
5142         * stdlib/strtod_l.c: Likewise.
5143         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5144         for __new_strtold and __new_wcstold.
5145         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5146         __STRTOF, STRTOF.
5147         * stdlib/strtol.c: Add libc_hidden_def.
5148         * stdlib/strtol_l.c: Likewise.
5149         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5150         strtoq.
5152         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5154         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5155         * scripts/data/localplt-generic.data: ... here.
5156         * elf/Makefile (check-data): Get generic file if no other.
5157         ($(objpfx)check-localplt.out): Make target unconditional.
5159         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5160         Use ElfW(Nhdr).
5162 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5164         * po/zh_CN.po: Updated translation from translation team.
5166 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5169         Don't use CGOTSETUP and CGOTRESTORE macros.
5171 2007-08-04  Roland McGrath  <roland@redhat.com>
5173         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5175 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5177         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5178         __extension__ around the whole statement expression.
5180 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5182         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5183         elements during initialization.
5185         * po/pl.po: Updated translation from translation team.
5186         * po/tr.po: Likewise.
5187         * po/nl.po: Likewise.
5189 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5191         * rt/aio.h: Add __nonnull attributes.
5193 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5195         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5196         * stdlib/Makefile (tests): Add tst-strtod5.
5197         (tst-strtod5-ENV): New.
5198         * stdlib/tst-strtod5.c: New file.
5200         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5201         failed.
5202         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5203         on failure.
5205         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5206         allocated.
5208 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5210         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5211         numbers.
5213 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5215         * io/Makefile (aux): Add have_o_cloexec.
5216         * include/fcntl.h: Declare __have_o_cloexec.
5217         * io/have_o_cloexec.c: New file.
5218         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5219         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5220         fcntl call if not necessary.
5221         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5222         of local variable.
5224         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5225         Avoid memset, add explicit initialization.
5226         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5227         to the end and change into zero-sized array.
5228         Move lock member to fill a hole on 64-bit platforms.
5230         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5231         inline functions.
5232         * include/stdlib.h: Add __strto*_internal prototypes here.
5233         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5234         inline functions.
5235         * include/wchar.h: Add __wcsto*_internal prototypes.
5236         * sysdeps/generic/inttypes.h: No need to protect the declaration
5237         of the __strto*_internal and __wcsto*_internal members here.
5239         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5241 2007-08-02  Roland McGrath  <roland@redhat.com>
5243         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5244         $(inst_bindir)/getconf if possible.
5246         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5247         (generated): Add it.
5248         ($(inst_libexecdir)/getconf): Use it.
5250 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5252         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5253         /proc is faster and sufficient.  /sys is still needed for
5254         __get_nprocs_conf.
5256 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5258         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5259         syscall as __fallocate64.
5260         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5261         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5263 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5265         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5266         value.
5268         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5269         if off_t is different rank from size_t.
5271         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5272         uw_frame_state_for): Avoid type punning warnings.
5273         * sysdeps/generic/unwind-dw2-fde-glibc.c
5274         (_Unwind_IteratePhdrCallback): Likewise.
5275         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5276         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5277         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5278         pointers.
5280 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5282         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5283         total processors using sysfs.
5284         (__get_nprocs): Use sysfs to determine which processors are online.
5286 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5288         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5289         syscall arguments count.
5291         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5293 2007-07-30  Roland McGrath  <roland@redhat.com>
5295         * manual/libc.texinfo: Update copyrights, formatting magic, and
5296         @dircategory.  From Karl Berry <karl@freefriends.org>.
5298 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5300         [BZ #4860]
5301         * io/Makefile (headers): Add bits/fcntl2.h.
5303         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5304         using gcc builtin.
5305         (__CPU_EQUAL_S): Likewise.
5307         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5308         (tests): Add tst-cpuset.
5309         * posix/sched_cpualloc.c: New file.
5310         * posix/sched_cpufree.c: New file.
5311         * posix/tst-cpuset.c: New file.
5312         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5313         GLIBC_2.7.
5314         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5315         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5316         macros.  Define CPU_*_S macros.
5318 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5320         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5321         entry.
5323         [BZ #4858]
5324         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5325         #.0g and value rounded to 1.0.
5326         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5328 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5330         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5331         for int_frac_digits and frac_digits.
5333         * login/logout.c (logout): Avoid aliasing violation.
5334         * login/logwtmp.c (logwtmp): Likewise.
5336         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5338         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5339         to avoid warning.
5340         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5341         warning.
5342         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5343         warning.
5344         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5345         to avoid warnings.
5347         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5348         void **.
5349         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5351         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5352         char * to avoid warning.
5353         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5355         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5357         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5358         allocate_arrays): Cast second argument to charmap_find_symbol
5359         to char * to avoid warnings.
5361         * locale/programs/repertoire.c (repertoire_new_char): Change
5362         from_nr, to_nr and cnt to unsigned long, adjust printf format
5363         string.
5365         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5366         Cast second argument to new_element to char * to avoid warnings.
5368         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5370         * intl/gettextP.h (struct loaded_domain): Change plural to const
5371         struct expression *.
5372         * intl/plural-eval.c (plural_eval): Change first argument to
5373         const struct expression *.
5374         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5375         argument to const struct expression **.
5376         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5377         prototypes.
5378         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5379         in call to __gettext_free_exp.
5381         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5382         unitialized wstring/wpattern var warnings.
5384         * posix/runtests.c (struct a_test): Make data field const char *.
5386         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5387         vars if not LDBL_MANT_DIG >= 106.
5389         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5391         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5392         __find_specmb to avoid warning.
5394         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5396         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5397         to avoid warnings.
5399         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5400         initializer.
5402         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5403         tv var when it will be actually used.
5405         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5406         to avoid warnings.
5408         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5409         char array resp. pointer.
5410         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5411         char array.
5412         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5413         to const unsigned char **.
5414         (ucs4_to_cns11643): Change second argument to unsigned char *.
5415         * iconvdata/euc-tw.c (BODY): Change endp type to
5416         const unsigned char *.
5417         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5418         to unsigned char *.
5419         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5420         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5421         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5422         types to unsigned char pointers/arrays instead of char.
5423         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5424         to unsigned char *.
5425         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5426         * iconvdata/jis0212.h: Include assert.h.
5427         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5428         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5429         of trying to handle that.
5430         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5431         shut up a warning.
5432         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5433         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5434         two dimensional const unsigned char arrays.
5435         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5436         Initialize endp to inptr to shut up a warning.
5438 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5440         [BZ #4772]
5441         * time/strptime_l.c (__strptime_internal): Silently ignore
5442         strftime modifiers and field width in recursive calls.
5444         * include/time.h (enum ptime_locale_status): Remove.
5445         (__strptime_internal): Remove decided and era_cnt arguments,
5446         add statep argument.
5447         * time/strptime_l.c (__strptime_internal): Remove decided
5448         and era_cnt arguments, add statep argument.  Don't recompute
5449         any fields in recursive calls, only update caller's tm
5450         and state, if recursive call fails, don't change tm nor
5451         any state.
5452         (get_alt_number): Adjust.
5453         (recursive): Adjust caller.
5454         (strptime): Likewise.
5455         * time/strptime.c (strptime): Likewise.
5457 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5459         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5460         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5461         if from and to charsets are the same.
5462         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5463         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5464         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5466 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5468         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5469         Don't define wint_t when __need_mbstate_t unless it
5470         is necessary.
5471         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5472         in the typedef if possible.
5473         * wctype/wctype.h (wint_t): Define by including
5474         wchar.h with __need_wint_t instead of including stddef.h
5475         with __need_wint_t and as fallback definining it ourselves.
5476         * iconv/gconv.h (__need_wint_t): Define before including
5477         wchar.h.
5478         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5479         or _GLIBCPP_USE_WCHAR_T.
5480         (__need_wchar_t): Don't define
5481         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5482         (__need_wint_t): Don't define before including stddef.h,
5483         define before including wchar.h only if _LIBC or
5484         _GLIBCPP_USE_WCHAR_T.
5485         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5486         * sysdeps/mach/hurd/_G_config.h: Likewise.
5487         * sysdeps/generic/_G_config.h: Likewise.
5488         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5489         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5490         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5491         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5493 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5495         * sysdeps/posix/posix_fallocate64.c: Undefine
5496         __posix_fallocate64_l64 before alias handling.
5497         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5498         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5499         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5500         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5502         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5504 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5506         * locale/programs/ld-collate.c (atwc): New variable.
5507         (add_to_tablewc): New toplevel function, moved from collate_output.
5508         (collate_output): Remove add_to_tablewc nested function.
5510         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5511         (name_insert): New function.
5512         (write_output): Remove hash_table and hash_size vars and name_insert
5513         nested function.
5515 2007-07-24  Roland McGrath  <roland@redhat.com>
5517         * Makerules (install-others-programs-nosubdir): New target.
5518         (install-no-libc.a-nosubdir): Depend on it.
5520         * iconv/Makefile (install-others-programs): Set this instead of
5521         install-others.
5522         * login/Makefile (install-others-programs): Likewise.
5523         * posix/Makefile (install-others-programs): Likewise.
5525         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5526         dependencies.
5528 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5530         * io/Makefile (tests): Add tst-posix_fallocate.
5531         * io/tst-posix_fallocate.c: New file.
5533         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5534         __ASSUME_FALLOCATE.
5536 2007-07-22  Roland McGrath  <roland@frob.com>
5538         * hurd/getdport.c: Add missing copyright year update.
5540         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5541         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5543 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5545         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5547         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5548         O_CLOEXEC is needed.
5549         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5550         Avoid additional fcntl to set O_CLOEXEC if not needed.
5551         * nis/nss_compat/compat-initgroups.c: Likewise.
5552         * nis/nss_compat/compat-pwd.c: Likewise.
5553         * nis/nss_compat/compat-spwd.c: Likewise.
5555 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5557         [BZ #3665]
5558         * manual/errno.texi: Change ECANCELED value to 119.
5560         [BZ #4610]
5561         * mach/lock-intern.h: Include <sys/cdefs.h>.
5563         [BZ #4178]
5564         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5565         reading A.
5567         [BZ #4126]
5568         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5569         to __sigsuspend.
5571         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5573 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5575         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5576         `__ASSEMBLER__'.
5577         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5579 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5581         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5582         descriptor received from nscd.
5584         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5586         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5587         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5588         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5589         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5590         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5591         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5593 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5595         [BZ #4816]
5596         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5598         [BZ #4813]
5599         * login/forkpty.c (forkpty): Close master and slave fds on
5600         fork failure.  Patch by
5601         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5603 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5605         * include/features.h (__USE_ISOC95): New define.
5606         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5607         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5608         for -std=iso9899:199409.
5609         * CONFORMANCE: Remove comments about unsupported AMD1.
5611 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5613         * sysdeps/ia64/sched_cpucount.c: New file.
5614         * sysdeps/powerpc/sched_cpucount.c: New file.
5616         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5617         __BEGIN_DECLS/__END_DECLS around the prototype.
5618         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5619         pointer to const cpu_set_t.
5621         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5622         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5623         __need_size_t and include stddef.h.
5624         * sysvipc/sys/msg.h: Likewise.
5625         * posix/sched.h: Likewise.
5626         * hurd/hurd/signal.h (__need_size_t): Define.
5628         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5629         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5630         no longer defines wint_t or wchar_t.
5632         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5633         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5634         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5635         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5636         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5637         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5638         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5639         * debug/printf_chk.c (__printf_chk): Likewise.
5640         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5641         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5643         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5644         Define.
5646         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5647         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5649 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5651         [BZ #4792]
5652         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5653         * malloc/malloc.h (realloc): Likewise.
5655         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5656         if one of proc_file_chain streams has that fileno.
5657         * stdio-common/Makefile (tests): Add tst-popen2.
5658         * stdio-common/tst-popen2.c: New test.
5660 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5662         * elf/ldconfig.c: Allow GPLv2 or any later version.
5663         * elf/readlib.c: Likewise.
5664         * elf/chroot_canon.c: Likewise.
5665         * elf/cache.c: Likewise.
5666         * nscd/mem.c: Likewise.
5667         * nscd/getpwuid_r.c: Likewise.
5668         * nscd/grpcache.c: Likewise.
5669         * nscd/aicache.c: Likewise.
5670         * nscd/getsrvbynm_r.c: Likewise.
5671         * nscd/nscd.c: Likewise.
5672         * nscd/servicescache.c: Likewise.
5673         * nscd/getsrvbypt_r.c: Likewise.
5674         * nscd/initgrcache.c: Likewise.
5675         * nscd/gethstbyad_r.c: Likewise.
5676         * nscd/gethstbynm2_r.c: Likewise.
5677         * nscd/getgrnam_r.c: Likewise.
5678         * nscd/nscd_setup_thread.c: Likewise.
5679         * nscd/getpwnam_r.c: Likewise.
5680         * nscd/gai.c: Likewise.
5681         * nscd/connections.c: Likewise.
5682         * nscd/dbg_log.c: Likewise.
5683         * nscd/cache.c: Likewise.
5684         * nscd/hstcache.c: Likewise.
5685         * nscd/nscd_conf.c: Likewise.
5686         * nscd/getgrgid_r.c: Likewise.
5687         * nscd/pwdcache.c: Likewise.
5688         * catgets/gencat.c: Likewise.
5689         * locale/programs/linereader.h: Likewise.
5690         * locale/programs/locarchive.c: Likewise.
5691         * locale/programs/ld-paper.c: Likewise.
5692         * locale/programs/locfile-kw.h: Likewise.
5693         * locale/programs/ld-address.c: Likewise.
5694         * locale/programs/xmalloc.c: Likewise.
5695         * locale/programs/ld-time.c: Likewise.
5696         * locale/programs/localedef.c: Likewise.
5697         * locale/programs/simple-hash.c: Likewise.
5698         * locale/programs/xstrdup.c: Likewise.
5699         * locale/programs/ld-numeric.c: Likewise.
5700         * locale/programs/locfile-kw.gperf: Likewise.
5701         * locale/programs/ld-collate.c: Likewise.
5702         * locale/programs/charmap-kw.gperf: Likewise.
5703         * locale/programs/charmap.h: Likewise.
5704         * locale/programs/charmap-kw.h: Likewise.
5705         * locale/programs/config.h: Likewise.
5706         * locale/programs/locfile.c: Likewise.
5707         * locale/programs/ld-ctype.c: Likewise.
5708         * locale/programs/charmap.c: Likewise.
5709         * locale/programs/ld-messages.c: Likewise.
5710         * locale/programs/repertoire.h: Likewise.
5711         * locale/programs/locale.c: Likewise.
5712         * locale/programs/ld-name.c: Likewise.
5713         * locale/programs/linereader.c: Likewise.
5714         * locale/programs/locfile.h: Likewise.
5715         * locale/programs/3level.h: Likewise.
5716         * locale/programs/ld-monetary.c: Likewise.
5717         * locale/programs/ld-measurement.c: Likewise.
5718         * locale/programs/charmap-dir.c: Likewise.
5719         * locale/programs/ld-identification.c: Likewise.
5720         * locale/programs/localedef.h: Likewise.
5721         * locale/programs/charmap-dir.h: Likewise.
5722         * locale/programs/repertoire.c: Likewise.
5723         * locale/programs/simple-hash.h: Likewise.
5724         * locale/programs/ld-telephone.c: Likewise.
5725         * locale/programs/locale-spec.c: Likewise.
5726         * locale/programs/locfile-token.h: Likewise.
5727         * posix/getconf.c: Likewise.
5728         * iconv/dummy-repertoire.c: Likewise.
5729         * iconv/iconv_charmap.c: Likewise.
5730         * iconv/iconvconfig.c: Likewise.
5731         * iconv/iconv_prog.c: Likewise.
5732         * malloc/memusagestat.c: Likewise.
5733         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5735 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5737         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5738         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5739         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5740         check for the first argument.
5742 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5744         [BZ #4775]
5745         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5746         (__tgmath_real_type): Fix if expr is const int or other const
5747         qualified integral type.
5748         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5749         expressions and handle const qualified arguments.
5750         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5751         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5752         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5753         statement expressions.
5754         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5755         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5756         (__TGMATH_UNARY_IMAG): Define.
5757         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5758         * math/Makefile (tests): Add test-tgmath2.
5759         (CFLAGS-test-tgmath2.c): Add.
5760         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5761         count_cfloat, count_cldouble): New variables.
5762         (NCCALLS): Define.
5763         (main): Check number of complex calls as well.
5764         (F(compile_test)): Add complex tests and tests with const qualified
5765         arguments.
5766         (y, z, ccount): Define.
5767         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5768         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5769         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5770         F(cproj)): New functions.
5771         * math/test-tgmath2.c: New test.
5773 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5775         [BZ #4776]
5776         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5777         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5778         instead output ".".
5779         * dlfcn/Makefile (distribute): Add glreflib3.c.
5780         (module-names): Add glreflib3.
5781         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5782         glreflib1.so.
5783         (LDFLAGS_glreflib3.so): New.
5784         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5785         glreflib1.so.
5786         * dlfcn/glreflib3.c: New file.
5788         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5789         returned -1, return NULL.
5790         * intl/explodename.c (_nl_explode_name): Return -1 if
5791         _nl_normalize_codeset failed.
5793 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5795         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5796         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5797         and avoid branch misspredicts for > 31 bytes memset case.
5798         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5799         Remove toc ref to __cache_line_size.
5801         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5802         to get ISA-V2.0 branch hints.
5803         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5804         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5805         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5806         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5807         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5808         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5809         Remove toc ref to __cache_line_size.
5811         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5812         Include math_ldbl_opt.h.
5814 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5816         [BZ #4773]
5817         * time/strptime_l.c (__strptime_internal): Implement greedy
5818         matching of weekday and month names.
5820 2007-07-09  Roland McGrath  <roland@redhat.com>
5822         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5823         (ELF_NOTE_ABI): Use it.
5824         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5826 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5828         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5829         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5831 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5833         [BZ #4745]
5834         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5835         in loop to look for conversion specifier to avoid testing of
5836         wrong errno value.
5837         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5838         * stdio-common/bug18.c: New file.
5839         * stdio-common/bug18a.c: New file.
5840         * stdio-common/bug19.c: New file.
5841         * stdio-common/bug19a.c: New file.
5843 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5845         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5846         running awk script.
5848 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5850         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5851         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5852         Return NULL if mmap failed instead of asserting it does not.
5853         (calloc): Check for integer overflow.
5855         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5856         than LONG_MAX / 10.
5858 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5860         [BZ #4702]
5861         * nis/nss-default.c: Include errno.h.
5862         (init): Preserve errno.
5864 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5866         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5868 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5870         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5872 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5874         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5876 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5878         * sysdeps/s390/dl-procinfo.c: New file.
5879         * sysdeps/s390/dl-procinfo.h: New file.
5880         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5882 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5884         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5885         in PT_NOTE segments with multiple notes.
5886         * elf/readelflib.c (process_elf_file): Likewise.
5888 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5890         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5891         ISO C compliant.
5893 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5895         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5897 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5899         * include/link.h: Don't include rtld-lowlevel.h.
5900         (struct link_map): Remove l_scope_lock.
5901         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5902         (_dl_scope_free_list): New field (variable) in _rtld_global.
5903         (DL_LOOKUP_SCOPE_LOCK): Remove.
5904         (_dl_scope_free): New prototype.
5905         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5906         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5907         (_dl_profile_fixup): Likewise.
5908         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5909         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5910         THREAD_GSCOPE_RESET_FLAG around it.
5911         * elf/dl-close.c (_dl_close_worker): Don't use
5912         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5913         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5914         scopes were queued or if l_scope_mem has been abandoned.
5915         * elf/dl-open.c (_dl_scope_free): New function.
5916         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5917         * elf/dl-support.c (_dl_scope_free_list): New variable.
5918         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5919         Remove DL_LOOKUP_SCOPE_LOCK handling.
5920         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5921         handling.
5922         * elf/dl-object.c (_dl_new_object): Don't use
5923         __rtld_mrlock_initialize.
5925 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5927         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5928         to fill in holes
5929         (rtld_global_ro): Likewise.
5931 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5933         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5934         Move PT_LOAD checking to...
5935         (_dl_addr_inside_object): ... here, new function.
5936         * elf/dl-sym.c (do_sym): If not l_contiguous,
5937         call _dl_addr_inside_object.
5938         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5939         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5940         * elf/dl-open.c (dl_open_worker): Likewise.
5941         (_dl_addr_inside_object): New function if IS_IN_rtld.
5942         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5943         holes are present or are PROT_NONE protected.
5944         * include/link.h (struct link_map): Add l_contiguous field.
5945         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5947 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5948             Tomas Janousek  <tjanouse@redhat.com>
5949             Ulrich Drepper  <drepper@redhat.com>
5951         [BZ #4647]
5952         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5953         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5954         socket.
5955         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5956         unused member a bitmap.
5957         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5958         servers are configured.
5960 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5962         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5964 2007-06-17  Andreas Schwab  <schwab@suse.de>
5966         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5968 2007-06-16  Andreas Jaeger  <aj@suse.de>
5970         [BZ #4125]
5971         * sysdeps/unix/sysv/linux/sys/ptrace.h
5972         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5973         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5974         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5975         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5976         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5977         Define.
5978         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5979         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5980         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5981         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5983 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5985         [BZ #4599]
5986         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5987         determining whether there are IPv4/IPv6 addresses, ignore loopback
5988         addresses.
5990 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5992         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5993         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5994         as the return type.  Change type of "r" variable to CMPtype.
5995         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5996         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5997         * soft-fp/gedf2.c (__gedf2): Likewise.
5998         * soft-fp/gesf2.c (__gesf2): Likewise.
5999         * soft-fp/getf2.c (__getf2): Likewise.
6000         * soft-fp/ledf2.c (__ledf2): Likewise.
6001         * soft-fp/lesf2.c (__lesf2): Likewise.
6002         * soft-fp/letf2.c (__letf2): Likewise.
6003         * soft-fp/unorddf2 (__unorddf2): Likewise.
6004         * soft-fp/unordsf2 (__unordsf2): Likewise.
6005         * soft-fp/unordtf2 (__unordtf2): Likewise.
6007 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6009         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6010         make sure gcc doesn't mess around with this.
6012 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6014         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6016 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6018         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6019         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6020         at most once per _dl_close_worker.
6022 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6024         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6025         __sched_cpucount as const.
6026         * posix/sched_cpucount.c: Adjust.
6028         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6029         instruction for counting bits.
6030         * sysdeps/x86_64/sched_cpucount.c: New file.
6032 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6034         * configure.in: Avoid variable named BASH.
6035         * config.make.in: Likewise.
6036         Patch in part by Mike Frysinger.
6038 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6040         [BZ #4586]
6041         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6042         pseudo-zeros as zero.
6043         * sysdeps/x86_64/ldbl2mpn.c: New file.
6044         * sysdeps/ia64/ldbl2mpn.c: New file.
6046 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6048         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6049         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6050         Remove unreachable code at the end.
6052 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6054         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6055         ldbl-128ibm in comment.
6056         (fpclassifyl): Correct classification of denormals.
6057         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6058         return value for MIN denormal. Rewrite using long double math too
6059         correctly handle denormals and canonicalize the results.
6061 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6063         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6064         (__mpn_construct_long_double): Fix conversion where result ought
6065         to be smaller than __LDBL_MIN__, or the low double should be
6066         denormal.  Fix decision where to negate low double - honor round
6067         to even rules.
6068         * stdio-common/tst-sprintf2.c: Include string.h.
6069         (COMPARE_LDBL): Define.
6070         (TEST): Also test whether a string hexadecimal float representation
6071         can be parsed back to the number.
6072         (main): Add a couple of further tests.
6074 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6076         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6077         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6078         is non-zero, but smaller than 2 * __DBL_MIN__.
6079         * stdio-common/tst-sprintf2.c: New test.
6080         * stdio-common/Makefile (tests): Add tst-sprintf2.
6082         * math/test-misc.c (main): Don't run last batch of tests with
6083         IBM long double format.
6085 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6087         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6088         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6089         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6090         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6091         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6092         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6093         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6094         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6095         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6096         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6099         New file.
6100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6101         New file.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6103         New file.
6104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6105         New file.
6106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6107         New file.
6108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6110         New file.
6111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6112         New file.
6113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6114         New file.
6115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6116         New file.
6117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6118         New file.
6120 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6122         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6123         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6124         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6125         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6126         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6127         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6128         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6129         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6131 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6133         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6134         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6135         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6136         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6137         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6138         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6139         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6140         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6142 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6144         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6145         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6146         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6147         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6149 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6151         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6152         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6154 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6156         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6157         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6158         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6159         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6161 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6163         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6164         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6166 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6168         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6169         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6171         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6172         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6173         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6174         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6176 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6178         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6179         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6180         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6181         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6183 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6185         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6186         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6187         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6188         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6189         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6190         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6192 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6194         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6195         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6196         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6197         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6199 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6201         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6202         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6203         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6204         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6205         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6206         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6207         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6208         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6209         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6210         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6211         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6212         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6213         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6214         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6215         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6216         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6218 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6220         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6221         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6223 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6225         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6226         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6228 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6230         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6231         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6232         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6233         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6234         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6235         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6236         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6237         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6238         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6239         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6241 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6243         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6245 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6247         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6248         branch miss-predicts. Ensure that cache line crossing does not impact
6249         dispatch grouping.
6251 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6253         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6254         "../../powerpc32/power4/memcopy.h".
6255         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6256         "../../powerpc32/power4/wordcopy.c".
6258 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6260         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6261         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6262         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6263         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6264         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6265         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6267 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6269         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6271 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6273         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6274         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6275         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6276         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6277         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6278         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6279         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6280         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6282 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6284         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6286 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6288         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6289         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6290         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6291         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6292         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6293         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6294         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6296 2007-05-29  Roland McGrath  <roland@redhat.com>
6298         * po/Makefile (po-sed-cmd): New variable.
6299         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6301 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6303         * crypt/md5-crypt.c: Fix comment.
6305         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6306         of crashing.  When this is the case or if the reply is malformed,
6307         don't try to close the new file descriptor since it does not
6308         exist.
6309         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6311 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6313         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6314         if __NR_utimensat is not defined.
6316 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6318         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6320 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6322         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6323         (open): Fix comment typos.  Don't call __open_2 if flags
6324         is a compile time constant without O_CREAT.
6325         (__open64_2): Add nonnull attribute.
6326         (open64): Fix comment typos.  Don't call __open64_2 if flags
6327         is a compile time constant without O_CREAT.
6328         (__openat_2): Add nonnull attribute, fix nonnull attribute
6329         on redirect.
6330         (openat): Fix comment typos.  Don't call __openat_2 if flags
6331         is a compile time constant without O_CREAT.
6332         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6333         on redirect.
6334         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6335         is a compile time constant without O_CREAT.
6337 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6339         * Makerules (sysd-rules): Define PTW for ptw-* files.
6340         * Versions: Define GLIBC_2.7 for libc.
6341         * include/stdio.h: Declare __fortify_fail.
6342         * debug/fortify_fail.c: New file.
6343         * debug/Makefile (routines): Add fortify_fail.
6344         * debug/chk_fail.c: Use __fortify_fail.
6345         * debug/stack_chk_fail.c: Likewise.
6346         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6347         __openat64_2 for GLIBC_2.7.
6348         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6349         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6350         and fails if necessary.
6351         * io/open64.c: Likewise.
6352         * io/openat.c: Likewise.
6353         * io/openat64.c: Likewise.
6354         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6355         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6356         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6357         * io/bits/fcntl2.h: New file.
6358         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6359         __openat64_2.
6360         * include/bits/fcntl2.h: New file.
6361         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6362         Add open_2.
6363         * sysdeps/unix/sysv/linux/open_2.c: New file.
6365 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6367         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6368         as second parameter to handle_intel.
6370         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6371         the entry.
6373         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6374         handling to ...
6375         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6376         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6377         cacheinfo.
6378         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6379         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6380         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6382         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6384 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6386         [BZ #4525]
6387         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6388         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6389         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6391         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6393         [BZ #4514]
6394         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6395         reinitialize workend at the start of each do_positional format spec
6396         loop, free workstart before do_positional loops.
6397         (printf_unknown): Fix size of work_buffer.
6398         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6400         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6401         (public_sET_STATe): If ms->version < 3, put all chunks into
6402         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6403         chunks.
6405         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6406         * malloc/hooks.c: Likewise.
6407         * malloc/arena.c: Likewise.
6408         * malloc/malloc.c (do_check_malloc_state): Don't assert
6409         n_mmaps is not greater than n_mmaps_max.  This removes the need
6410         for the previous change.
6412         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6413         2007-05-07 commit.
6415 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6417         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6418         Define for kernel >= 2.6.22.
6420 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6422         * elf/dl-close.c (_dl_close_worker): When removing object from
6423         global scope, wait for all lookups to finish afterwards.
6424         * elf/dl-open.c (add_to_global): When global scope array must
6425         grow, allocate a new one and free old array only after all
6426         lookups finish.
6427         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6428         (_dl_lookup_symbol_x): Likewise.
6429         * elf/dl-support.c: Define _dl_wait_lookup_done.
6430         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6431         _dl_wait_lookup_done.
6433         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6434         not overlapping with arena.
6436         * malloc/mcheck.c (reallochook): If size==0, free the block.
6438         * rt/tst-shm.c: Use fstat64 instead of fstat.
6440         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6441         __NR_sync_file_range is not defined.
6443 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6445         Dummy files to prevent stub versions from being used.
6446         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6447         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6448         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6449         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6451         * version.h (VERSION): Set to 2.6.90.
6453 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6455         * version.h (VERSION): Define to 2.6.
6456         * include/features.h (__GLIBC_MINOR__): Define to 6.
6458         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6460         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6461         sizes.
6463 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6465         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6466         number of mmaps.  n_mmaps_max is the target.
6467         * malloc/hooks.c: Likewise.
6468         * malloc/arena.c: Likewise.
6470 2007-05-12  Andreas Jaeger  <aj@suse.de>
6472         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6473         getpid.
6475 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6477         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6478         adding new variables.
6480         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6481         optimize.  Completely extend global scope array before making the
6482         new entries visible.
6484 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6486         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6487         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6488         tst-getcpu.
6490         * include/link.h: Move l_version and l_nversion members around to
6491         fill gaps.
6493         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6495         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6496         (__sched_setaffinity_new): If syscall was successful and
6497         RESET_VGETCPU_CACHE is defined, use it before returning.
6498         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6500         * io/sys/stat.h: Make sure struct timespec is defined for
6501         __USE_ATFILE.
6503         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6504         UTIME_OMIT.
6505         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6506         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6507         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6508         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6509         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6510         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6511         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6512         * io/sys/stat.h: Declare utimensat, futimens.
6513         * io/utimensat.c: New file.
6514         * io/futimens.c: New file.
6515         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6516         * sysdeps/unix/sysv/linux/futimens.c: New file.
6517         * io/Makefile (routines): Add utimensat, futimens.
6518         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6519         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6520         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6521         available.
6523         * include/sys/cdefs.h: Redefine __nonnull so that test for
6524         incorrect parameters in the libc code itself are not omitted.
6526 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6528         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6529         exception in addition to inexact when asked to raise only FE_INEXACT.
6531         [BZ #3427]
6532         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6533         in *envp.
6535 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6537         [BZ #4403]
6538         * string/strfry.c (strfry): Make result more random.
6540 2007-05-07  Richard Henderson  <rth@redhat.com>
6542         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6543         if __NO_LONG_DOUBLE_MATH.
6544         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6545         available in the compiler, add .arch directive to the assembly.
6547 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6549         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6550         compat_symbol to GLIBC_2_1.
6551         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6552         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6553         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6554         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6555         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6556         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6557         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6558         libc, not libm.
6559         (__isnanl): New compat_symbol.
6561 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6562             Jakub Jelinek  <jakub@redhat.com>
6564         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6565         (new_heap): Initialize mprotect_size.
6566         (grow_heap): When growing, only mprotect from mprotect_size till
6567         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6568         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6570 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6571             Peter Bergner  <bergner@us.ibm.com>
6573         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6574         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6575         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6576         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6577         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6578         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6579         Call __fe_mask_env() if all FP exceptions disabled.
6580         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6581         from old FPSCR to new fenv to propagate DFP rounding modes.
6582         Call __fe_mask_env() if FP exceptions previously enabled.
6583         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6584         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6585         transitioning from all exceptions disabled to any exception enabled
6586         or visa versa.
6587         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6588         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6589         when transitioning from all exceptions disabled to any exception
6590         enabled or visa versa.
6591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6598 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6600         [BZ #4465]
6601         * posix/unistd.h: Remove __THROW from fdatasync.
6603 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6605         [BZ #4465]
6606         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6608 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6610         * stdio-common/vfprintf.c (process_string_arg): Optimize
6611         ridiculous precision in wide char code printing multi-byte string.
6612         Reported by Jim Meyering <jim@meyering.net>.
6614         [BZ #4131]
6615         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6616         boundaries to work around systems with overlapping binary loading.
6617         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6619 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6621         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6622         __mbsnrtowcs after last change.
6624         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6625         (get_ident): Likewise.
6627 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6629         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6630         with setting the sticky bit.
6631         * math/test-misc.c (main): Add more truncation tests.
6633 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6635         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6636         double in the function declaration.
6637         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6638         double in the function declaration.
6639         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6640         float in the function declaration.
6641         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6642         float in the function declaration.
6644         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6645         denormal operands.  Do not generate FP_EX_DENORM exception.
6646         (FP_UNPACK_RAW_EP): Ditto.
6647         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6648         undefined _FP_UNPACK_RAW_E.
6649         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6650         undefined _FP_UNPACK_RAW_EP.
6651         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6652         undefined _FP_PACK_RAW_E.
6653         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6654         undefined _FP_PACK_RAW_EP.
6656         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6657         _FP_FRAC_COPY_2.
6658         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6659         _FP_FRAC_COPY_4.
6661 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6662             Jakub Jelinek  <jakub@redhat.com>
6664         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6665         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6666         this case.
6667         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6669 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6671         * math/test-misc.c (main): Add tests for rounding long double
6672         values close to smallest double denormalized value to double.
6674 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6676         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6677         condition for truncating to 0.  Set sticky bit for such
6678         truncation.
6680 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6682         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6683         fixed length array for ignore.
6685 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6687         [BZ #4438]
6688         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6689         stack for large precisions.
6690         * stdio-common/test-vfprintf.c (main): Add test for large
6691         precision.
6693 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6695         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6696         for exponent 0.
6697         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6699         [BZ #4439]
6700         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6701         account in the size check.
6702         * resolv/tst-inet_ntop.c: New test.
6703         * resolv/Makefile (tests): Add tst-inet_ntop.
6705 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6706             Jakub Jelinek  <jakub@redhat.com>
6708         [BZ #4349]
6709         * malloc/malloc.c: Keep separate list for first blocks on the bin
6710         lists with a given size.  This helps skipping over list elements
6711         we know won't fit in two places.
6712         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6714 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6716         [BZ #4102]
6717         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6718         label to Teredo tunnel addresses 2001://32.
6720 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6722         * locale/programs/ld-collate.c (collate_read): Allow order_start
6723         after copy.
6725         * locale/programs/ld-collate.c (collate_read): Fix printing of
6726         error message.
6728         [BZ #3213]
6729         * locale/C-translit.h.in: Add entry for U2044.
6731         [BZ #4342]
6732         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6733         hexa-decimal floats without exponent.
6734         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6736 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6738         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6739         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6740         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6741         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6742         GLIBC_2.6.
6743         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6744         Add sched_getcpu.
6746 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6748         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6749         of 0 after the out_fail label.
6751 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6753         [BZ #4406]
6754         * iconv/gconv_charset.h (strip): Allow ':'.
6755         * iconv/iconv_open.c (iconv_open): Adjust comment.
6757 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6759         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6760         version.
6762 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6764         [BZ #4381]
6765         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6766         alignment of buffer and tmp_buffer.
6767         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6768         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6769         alignment of buffer.
6770         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6771         bigger than INT_MAX.
6772         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6773         h_errnop arguments.  Fail if buflen is too small.
6774         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6776 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6778         [BZ #4405]
6779         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6780         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6782 2007-04-22  Roland McGrath  <roland@redhat.com>
6784         * elf/elf.h (NT_PRXFPREG): New macro.
6786 2007-04-19  Andreas Jaeger  <aj@suse.de>
6788         [BZ #3905]
6789         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6790         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6791         Added.
6793 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6795         * include/sys/mman.h: Mark madvise hidden.
6796         * misc/madvise.c: Add libc_hidden_def.
6798 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6800         * nis/nis_domain_of.c (__nis_domain_of): New function.
6801         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6802         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6803         * nis/nis_call.c (rec_dirsearch): Likewise.
6804         (first_shoot): Likewise.  Remove search_parent_first argument.
6805         (struct nis_server_cache): Rename search_parent_first field
6806         to search_parent.
6807         (nis_server_cache_search, nis_server_cache_add): Rename
6808         search_parent_first argument to search_parent.
6809         (__nisfind_server): Likewise.  If search_parent, call
6810         __nis_domain_of.
6812 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6814         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6816 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6818         [BZ #4368]
6819         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6821 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6823         [BZ #4364]
6824         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6826 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6828         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6829         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6830         current number of locales in SUPPORTED.
6831         (create_archive): Initialize serial.
6832         (enlarge_archive): Preserve aliases rather than duplicating
6833         their locrecs.
6835 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6837         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6838         after _IO_un_link, not before it.
6840         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6841         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6842         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6844 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6846         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6847         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6848         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6849         Remove __THROW.
6850         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6851         _IO_file_xsgetn_maybe_mmap): Likewise.
6852         * libio/oldfileops.c (old_do_write): Likewise.
6853         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6854         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6855         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6856         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6857         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6858         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6859         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6860         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6861         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6862         _IO_file_underflow, _IO_file_underflow_mmap,
6863         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6864         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6865         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6866         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6867         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6868         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6869         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6870         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6871         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6872         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6873         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6874         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6875         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6876         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6877         _IO_adjust_column_internal, _IO_default_uflow_internal,
6878         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6879         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6880         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6881         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6882         _IO_file_close_it_internal, _IO_file_underflow_internal,
6883         _IO_file_overflow_internal, _IO_file_attach_internal,
6884         _IO_file_fopen_internal, _IO_file_sync_internal,
6885         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6886         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6887         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6888         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6889         _IO_seekpos_unlocked): Likewise.
6890         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6891         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6893 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6895         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6896         argument in xmalloc size computation.
6898 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6900         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6901         math_opt_barrier and math_force_eval macros.
6903 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6905         [BZ #3306]
6906         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6907         * sysdeps/i386/fpu/math_private.h: New file.
6908         * sysdeps/x86_64/fpu/math_private.h: New file.
6909         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6910         math_force_eval macros.  Use "+m" constraint on asm rather than
6911         "=m" and "m".
6912         * math/s_nextafter.c (__nextafter): Likewise.
6913         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6914         Likewise.
6915         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6916         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6917         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6918         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6919         math_opt_barrier and math_force_eval macros.
6920         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6921         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6922         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6923         (__nexttoward): Use math_opt_barrier and
6924         math_force_eval macros.  Use "+m" constraint on asm rather than
6925         "=m" and "m".  Only use asm to force double result if
6926         FLT_EVAL_METHOD is 2.
6927         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6928         (__nexttowardf): Use math_opt_barrier and
6929         math_force_eval macros.  Use "+m" constraint on asm rather than
6930         "=m" and "m".  Only use asm to force double result if
6931         FLT_EVAL_METHOD is not 0.
6932         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6933         (__nexttowardf): Use math_opt_barrier and
6934         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6935         x to float using asm.
6936         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6937         (__nldbl_nexttowardf): Use math_opt_barrier and
6938         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6939         x to float using asm.
6940         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6941         (__nexttowardf): Use math_opt_barrier and math_force_eval
6942         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6943         * math/bug-nextafter.c (zero, inf): New variables.
6944         (main): Add new tests.
6945         * math/bug-nexttoward.c (zero, inf): New variables.
6946         (main): Add new tests.
6948 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6950         [BZ #3427]
6951         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6952         exceptions both in SW and MXCSR.
6953         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6954         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6955         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6956         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6957         in MXCSR if SSE is available.
6958         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6959         and ldsodefs.h.
6960         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6961         Fix comment typo.
6962         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6963         Return 0 rather than 1.
6964         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6965         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6966         * math/test-fenv.c (feholdexcept_tests): New function.
6967         (main): Call it.
6969 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6971         [BZ #3427]
6972         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6973         in SW.
6975 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6977         [BZ #4344]
6978         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6979         Reported by David Anderson <davea42@earthlink.net>.
6981 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6983         * posix/sys/wait.h: Remove unnecessary forward declaration.
6985 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6987         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6988         with obj->do_servers after first_shoot.
6990 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6992         * posix/Makefile (routines): Add sched_cpucount.
6993         (tests): Add tst-cpucount.
6994         * posix/sched_cpucount.c: New file.
6995         * posix/tst-cpucount.c: New file.
6996         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6997         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6998         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6999         * posix/sched.h: Define CPU_COUNT.
7001 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7003         * posix/fnmatch.c (STRUCT): Define.
7004         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7005         * posix/fnmatch_loop.c (struct STRUCT): New type.
7006         (FCT): Add ends argument.  If ends != NULL and normal * is
7007         seen in the pattern, store current pattern and string pointers
7008         and return.  Adjust recursive calls.
7009         (EXT): Adjust FCT callers.
7010         (STRUCT): Undef at the end of the file.
7011         * posix/Makefile (tests): Add tst-fnmatch2.
7012         * posix/tst-fnmatch2.c: New test.
7014 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7016         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7017         and 1 on failure.
7019         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7020         Change last argument to unsigned int.
7022 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7024         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7026 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7028         * config.h.in (HAVE_LIBCAP): Add.
7029         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7030         sys/capabilities.h.
7031         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7032         free_caps.  Cast away const from 4th cap_set_flag argument.
7034 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7036         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7037         GLIBC_2.6.
7038         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7039         Add sync_file_range.
7040         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7042 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7044         * sysdeps/powerpc/bits/atomic.h
7045         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7046         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7047         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7048         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7049         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7050         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7051         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7052         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7053         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7054         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7055         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7056         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7057         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7058         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7059         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7060         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7061         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7062         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7063         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7064         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7066 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7068         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7069         (__cache_line_size): Define the variable here.  Add
7070         attribute_hidden, remove weak_extern.
7071         (__libc_start_main): Set __cache_line_size
7072         unconditionally.
7073         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7074         (__cache_line_size): Define the variable here.  Add
7075         attribute_hidden, remove weak_extern.
7076         (DL_PLATFORM_AUXV): Set __cache_line_size
7077         unconditionally.
7078         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7079         weak_extern, add attribute_hidden.
7080         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7081         defined in ld.so.
7082         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7083         definition.
7084         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7086 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7088         [BZ #4276]
7089         * timezone/africa: Update from tzdata2007d.
7090         * timezone/asia: Likewise.
7091         * timezone/australasia: Likewise.
7092         * timezone/backward: Likewise.
7093         * timezone/europe: Likewise.
7094         * timezone/iso3166.tab: Likewise.
7095         * timezone/leapseconds: Likewise.
7096         * timezone/northamerica: Likewise.
7097         * timezone/southamerica: Likewise.
7098         * timezone/zone.tab: Likewise.
7100         * timezone/private.h: Update from tzcode2007d.
7101         * timezone/zdump.c: Likewise.
7102         * timezone/zic.c: Likewise.
7104 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7106         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7107         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7108         variables.
7109         (nis_server_cache_search, nis_server_cache_add): New functions.
7110         (__nisfind_server): Use them.  Add dbp and flags argument, if
7111         call __nisbind_create.
7112         (__nisbind_create): Add server_used and current_ep arguments,
7113         only call __nis_findfastest if server_used is ~0.
7114         (__do_niscall2, __prepare_niscall): Adjust callers.
7115         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7116         ckey_cache_euid, ckey_cache_lock): New variables.
7117         (get_ckey): New function.
7118         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7119         __pmap_getnisport.  Save __pmap_getnisport result in
7120         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7121         key.
7122         * nis/nis_lookup.c (nis_lookup): Likewise.
7123         * nis/nis_table.c (nis_list): Likewise.
7124         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7125         prototypes.
7127         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7128         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7129         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7130         _nss_nisplus_getservbyport_r): Likewise.
7131         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7132         _nss_nisplus_getnetbyaddr_r): Likewise.
7133         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7134         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7135         _nss_nisplus_getntohost_r): Likewise.
7136         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7137         _nss_nisplus_getrpcbynumber_r): Likewise.
7139 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7141         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7142         * configure: Rebuilt.
7144         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7145         bit-fields.
7146         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7148 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7150         [BZ #2831]
7151         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7152         bit-fields.
7154 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7156         * nscd/gai.c: Include alloca.h.
7157         (__libc_use_alloca): Define.
7159 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7161         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7162         smaller scopes.
7163         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7164         (DL_DST_REQUIRED): Adjust user.
7166         * include/dlfcn.h (struct link_map): New forward decl.
7168         * inet/getnameinfo.c: Include stddef.h.
7169         (getnameinfo): Use offsetof.
7171         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7173         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7175         * string/strerror_l.c: Include stdlib.h.
7177         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7178         * config.make.in (gnu89-inline-CFLAGS): New variable.
7179         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7180         -std=gnu99.
7181         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7182         * argp/argp.h: Use it.
7183         * bits/mathinline.h: Likewise.
7184         * bits/sigset.h: Likewise.
7185         * bits/string.h: Likewise.
7186         * ctype/ctype.h: Likewise.
7187         * hurd/hurd.h: Likewise.
7188         * hurd/hurd/fd.h: Likewise.
7189         * hurd/hurd/port.h: Likewise.
7190         * hurd/hurd/signal.h: Likewise.
7191         * hurd/hurd/threadvar.h: Likewise.
7192         * hurd/hurd/userlink.h: Likewise.
7193         * io/sys/stat.h: Likewise.
7194         * libio/bits/stdio.h: Likewise.
7195         * libio/bits/stdio2.h: Likewise.
7196         * mach/lock-intern.h: Likewise.
7197         * mach/mach/mig_support.h: Likewise.
7198         * math/bits/cmathcalls.h: Likewise.
7199         * posix/bits/unistd.h: Likewise.
7200         * socket/bits/socket2.h: Likewise.
7201         * stdlib/bits/stdlib.h: Likewise.
7202         * stdlib/stdlib.h: Likewise.
7203         * string/argz.h: Likewise.
7204         * string/bits/string2.h: Likewise.
7205         * string/bits/string3.h: Likewise.
7206         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7207         * sysdeps/generic/inttypes.h: Likewise.
7208         * sysdeps/generic/machine-lock.h: Likewise.
7209         * sysdeps/generic/machine-sp.h: Likewise.
7210         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7211         * sysdeps/i386/i486/bits/string.h: Likewise.
7212         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7213         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7214         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7215         * sysdeps/mach/i386/machine-lock.h: Likewise.
7216         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7217         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7218         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7219         * sysdeps/s390/bits/string.h: Likewise.
7220         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7221         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7222         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7223         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7224         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7225         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7226         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7227         * wcsmbs/bits/wchar2.h: Likewise.
7228         * wcsmbs/wchar.h: Likewise.
7229         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7230         __extern_inline definition.
7232 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7234         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7235         NULL.
7237         [BZ #3919]
7238         * math/libm-test.inc (log_test): Test -Inf and NaN.
7239         (log10_test, log1p_test, log2_test): Test -Inf.
7240         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7241         FE_INVALID when argument is qNaN.
7242         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7243         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7244         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7245         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7246         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7247         testb $4, %ah and jump if non-zero.
7248         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7249         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7251         [BZ #4101]
7252         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7253         ancestors with the same depths.
7254         Patch by Niels Moeller <nisse@lysator.liu.se>.
7255         (filter_doc): Don't crash if argp is NULL.
7256         * argp/Makefile (tests): Add tst-argp2.
7257         * argp/tst-argp2.c: New test.
7259         [BZ #4130]
7260         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7261         open_not_cancel_2.
7262         (updwtmp_file): Likewise.
7264         [BZ #4181]
7265         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7266         (inet6_opt_append): Don't check extlen is big enough if extbuf
7267         is NULL.
7268         (inet6_opt_finish): Likewise.
7269         * inet/Makefile (tests): Add test-inet6_opt.
7270         * inet/test-inet6_opt.c: New test.
7272         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7273         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7274         NLMSG_ERR.  Instead use a page sized buffer.
7275         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7276         buffer.
7278 2007-03-14  Richard Henderson  <rth@redhat.com>
7280         * sysdeps/alpha/fpu/s_llround.c: New file.
7281         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7282         * sysdeps/alpha/fpu/s_lround.c: New file.
7283         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7284         * sysdeps/alpha/fpu/s_round.c: New file.
7285         * sysdeps/alpha/fpu/s_roundf.c: New file.
7286         * sysdeps/alpha/fpu/s_trunc.c: New file.
7287         * sysdeps/alpha/fpu/s_truncf.c: New file.
7289         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7290         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7291         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7292         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7293         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7294         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7296         * sysdeps/alpha/fpu/s_fmax.S: New file.
7297         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7298         * sysdeps/alpha/fpu/s_fmin.S: New file.
7299         * sysdeps/alpha/fpu/s_fminf.S: New file.
7300         * sysdeps/alpha/fpu/s_isnan.c: New file.
7301         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7302         * sysdeps/alpha/fpu/s_llrint.c: New file.
7303         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7304         * sysdeps/alpha/fpu/s_lrint.c: New file.
7305         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7306         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7307         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7309         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7310         (__fdimf, fdimf, __fdim, fdim): Remove.
7311         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7312         (__isnanf, __isnan, __isnanl): New.
7314 2007-03-13  Richard Henderson  <rth@redhat.com>
7316         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7318 2007-03-13  Richard Henderson  <rth@redhat.com>
7320         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7321         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7322         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7323         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7324         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7325         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7327 2007-03-13  Richard Henderson  <rth@redhat.com>
7329         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7330         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7331         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7332         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7333         Move to dl-auxv.h; initialize instead of extern weak.
7334         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7335         weak symbol.
7336         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7337         Extern instead of initialized.
7339 2007-03-13  Richard Henderson  <rth@redhat.com>
7341         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7342         __sigsuspend_nocancel.
7344 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7346         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7347         172.16/12 address range.
7349 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7351         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7352         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7353         message.
7355 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7357         [BZ #4069]
7358         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7359         earlier.
7360         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7362         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7363         for x qNaN and y either +-inf or non-integer value.
7364         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7365         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7366         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7368 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7370         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7371         from sysdep_headers.
7373 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7375         * time/tzfile.c (find_transition): Instead of a linear search try to
7376         guess the transition index, use a linear search if the result is at
7377         most 10 transitions away from the guess or binary search otherwise.
7379 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7381         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7382         memory reallocation.
7384 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7386         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7387         and fix some typos.
7388         Optimize use of TOLOWER.
7390         [BZ #3325]
7391         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7392         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7393         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7395         [BZ #3458]
7396         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7397         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7399         [BZ #4076]
7400         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7401         (open_dir_stream): Likewise.
7402         * io/Makefile (tests): Add bug-ftw5.
7403         * io/bug-ftw5.c: New file.
7405         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7406         * nscd/servicescache.c (cache_addserv): Likewise.
7408         * nscd/grpcache.c (cache_addgr): In case a record changed on
7409         refresh, adjust key_copy.
7411         [BZ #4074]
7412         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7413         refresh, adjust key_copy.
7415         [BZ #4070]
7416         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7417         special cases.
7418         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7420 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7422         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7423         optimization.
7425         * stdio-common/vfscanf.c: Small cleanups throughout.
7427 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7429         [BZ #3325]
7430         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7431         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7432         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7433         Patch by Jared Casper <jaredcasper@gmail.com>.
7435         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7436         * sysdeps/unix/opendir.c: Likewise.
7437         * sysdeps/unix/readdir.c: Likewise.
7439         [BZ #2211]
7440         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7441         point numbers.
7442         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7444         * stdio-common/vfscanf.c: Fix problems in width accounting.
7445         * stdio-common/tst-sscanf.c (double_tests): New tests.
7446         (main): Hook them up.
7448         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7449         More simplifications of floating-point reader.
7451         * stdio-common/Makefile (tests): Add tst-swscanf.
7452         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7453         testing.
7454         * stdio-common/tst-swscanf.c: New file.
7456 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7458         [BZ #2633]
7459         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7460         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7461         Remove using for __jmp_buf_tag.
7462         * locale/locale.h (struct lconv): Also define in std namespace.
7463         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7465         [BZ #3842]
7466         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7467         using __libc_enable_secure.
7469         [BZ #3818]
7470         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7472         [BZ #3745]
7473         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7474         of names for ellipsises.
7476         [BZ #3348]
7477         * malloc/memusage.sh: Cleanups.
7478         * debug/xtrace.sh: Quoting and trap changes.
7480 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7482         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7484         * locale/iso-3166.def: Update entry for Serbia.
7485         * locale/iso-4217.def: Define RSD, remove CSD.
7487         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7488         and 64-bit operations.
7490         [BZ #4040]
7491         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7492         16-bit operations.
7494         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7495         of writev.
7497 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7499         [BZ #3991]
7500         * assert/assert.h (assert): Simplify.
7501         (assert_perror): Likewise.
7502         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7504         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7505         reqdata.
7507         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7508         change: don't pass NULL in place of an integer.
7510 2007-02-02  Bruno Haible  <bruno@clisp.org>
7512         [BZ #3954]
7513         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7514         Add mapping for U+327E.
7515         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7516         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7517         mapping of 0xD9 0xE8.
7518         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7519         mapping of U+327E.
7520         Reported by Jungshik Shin <jungshik@google.com>.
7522         [BZ #3955]
7523         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7524         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7525         Reported by Jungshik Shin <jungshik@google.com>.
7527 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7529         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7530         byte variants.
7532         [BZ #4040]
7533         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7534         byte variants.  Patch mostly be tom@tommay.net.
7536 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7538         [BZ #3996]
7539         * posix/glob.c (attribute_hidden): Define if not defined.
7540         (glob): Unescape dirname, filename or username when needed and not
7541         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7542         is NULL.  Handle unescaped [ in pattern without closing ].
7543         Don't pass GLOB_CHECK down to recursive glob for directories.
7544         (__glob_pattern_type): New function.
7545         (__glob_pattern_p): Implement using __glob_pattern_type.
7546         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7547         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7548         Remove unreachable code.
7549         * posix/globtest.sh: Add a couple of new tests.
7551 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7553         * po/ru.po: Update from translation team.
7555 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7557         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7558         to the list of i486+ CPUs.
7559         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7561 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7563         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7564         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7565         references.
7567 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7569         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7571         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7572         * resolv/res_mkquery.c: Define __res_nopt.
7573         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7574         try adding EDNS0 record.
7575         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7576         EDNS0 record was send make sure we don't try it again.
7577         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7578         * include/resolv.h: Declare __res_nopt.
7580 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7582         [BZ #3944]
7583         * time/strptime_l.c (__strptime_internal): Set have_mon for
7584         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7585         have been computed from tm_yday and tm_year.  Don't crash
7586         in day_of_the_week or day_of_the_year if not have_mon
7587         and tm_mon contains bogus value.
7588         * time/Makefile (tests): Add tst-strptime3.
7589         * time/tst-strptime3.c: New test.
7591 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7593         [BZ #3957]
7594         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7595         bit for RE_HAT_LISTS_NOT_NEWLINE.
7596         (build_charclass_op): Remove bogus comment.
7597         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7598         * posix/bug-regex27.c: New test.
7599         * posix/bug-regex28.c: New test.
7601 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7603         * po/sv.po: Update from translation team.
7605 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7607         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7609 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7611         * include/locale.h (__uselocale): Add libc_hidden_proto.
7612         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7614         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7615         gettimeofday.
7617 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7619         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7620         returning.
7621         (PTR_DEMANGLE): Real definition now that it's not the same as
7622         PRT_MANGLE anymore.
7623         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7625         * string/strerror_l.c: New file.
7626         * string/Makefile (routines): Add strerror_l.
7627         * string/string.h: Declare strerror_l.
7628         * string/Versions: Export strerror_l for GLIBC_2.6.
7630 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7632         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7633         as parameter.  Construct request record.  Try sending request
7634         before the first poll use, it usually succeeds.  Adjust all
7635         callers.
7636         * nscd/nscd-client.h: Define MAXKEYLEN.
7637         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7639 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7641         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7642         from return value.
7643         * nscd/nscd_helper.c: Include string.h.
7644         (__nscd_cache_search): Remove const qualifier from return value.
7645         On strict alignment architectures check hash entry and data head
7646         alignment.
7647         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7648         mmapped data during GC cycle contains garbage.  If
7649         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7650         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7651         dropped to 0.
7652         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7653         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7654         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7655         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7656         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7658 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7660         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7662 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7664         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7665         names not numbers in cfi_*.
7667 2007-01-26  Andreas Jaeger  <aj@suse.de>
7669         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7670         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7671         Correct values of PER_HPUX and PER_OSF4.
7673 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7675         * elf/dl-minimal.c: Undefine _itoa first.
7676         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7677         * malloc/mtrace.c: Revert last change.
7678         * posix/wordexp.c: Likewise.
7680 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7682         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7683         and __geode__ to the list of i486+ CPUs.
7684         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7686 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7688         * stdio-common/_itoa.c: Include <limits.h>.
7689         * stdio-common/_itowa.c: Likewise.
7691 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7693         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7694         platforms.
7695         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7696         64-bit platforms.
7697         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7698         possible.
7699         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7700         if possible.
7702         [BZ #3902]
7703         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7704         * stdio-common/Makefile (tests): Add bug17.
7705         * stdio-common/bug17.c: New file.
7707 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7709         * iconvdata/brf.c: New file.
7710         * iconvdata/testdata/BRF: New file.
7711         * iconvdata/testdata/BRF..UTF8: New file.
7712         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7713         * iconvdata/Makefile: Add rules to build BRF.
7714         * iconvdata/TESTS: Add BRF entry.
7715         * iconvdata/gconv-modules: Likewise.
7716         * iconvdata/tst-tables.sh: Likewise.
7718 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7720         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7721         type `long long int', not `long int'.
7722         (wcstoq): Likewise.
7724 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7726         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7727         of values on 64-bit platforms which are too large.
7729 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7730             Joe Kerian  <jkerian@us.us.ibm.com>
7732         [BZ #2749]
7733         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7734         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7735         (__copysignl): Use signbit() for comparison.
7736         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7737         SET_LDOUBLE_WORDS64.
7739         [BZ #2423, #2749]
7740         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7741         (__ceill): Remove calls to fegetround(), fesetround().
7742         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7743         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7744         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7746 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7748         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7750         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7752 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7754         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7755         demangle pointer.
7756         * csu/libc-start.c: Likewise.
7758 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7760         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7761         really work anyway.
7763 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7765         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7766         users.
7767         (handle_request): Remove unnecessary tests.
7769         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7771 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7773         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7774         workbits in semi-raw fraction.
7776         * math/test-misc.c: Add new tests.
7778 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7780         * math/basic-test.c: Include test-skeleton.c.
7781         (TEST_TRUNC): Define.
7782         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7783         (main): Rename to ...
7784         (do_test): ...this.  Run new tests.
7785         (TEST_FUNCTION): Define.
7787 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7788             Joe Kerian  <jkerian@us.us.ibm.com>
7790         [BZ #2749]
7791         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7792         handling for high words.
7793         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7794         and overflow for infinity.
7796 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7798         * nscd/connections.c (handle_request): Add a __builtin_expect.
7800         * nscd/connections.c (serv2db): Change type into structure which
7801         also says whether this is a request for data.  Renamed to
7802         servinfo.  All users changed.
7803         (handle_request): Much simpler test whether we should search the cache.
7805         * nscd/connections.c (handle_request): Fix thinko in selinux test
7806         invocation.
7808         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7809         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7810         it before getting dl_load_lock and then relock.
7811         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7812         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7813         case we unlocked the scope.
7814         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7815         _dl_lookup_symbol_x in case we locked the scope.
7816         (_dl_profile_fixup): Likewise.
7817         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7818         set DL_LOOKUP_SCOPE_LOCK.
7820 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7822         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7823         CFLAGS-getsrvbynpt_r.c.
7824         * nscd/getsrvbynm_r.c: New file.
7825         * nscd/getsrvbypt_r.c: New file.
7826         * nscd/nscd_getserv_r.c: New file.
7827         * nscd/servicescache.c: New file.
7828         * nscd/Makefile (routines): Add nscd_getserv_r.
7829         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7830         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7831         CFLAGS-getsrvbypt_r.c.
7832         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7833         table.  Add entries for services database.
7834         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7835         services database.
7836         (dbs): Add .reset_res and servdb initialization.
7837         (serv2db): Add entries for services database.
7838         (verify_persistent_db): Accept dbnr == servdb.
7839         (invalidate_cache): Rewrite database name recognition to use a table.
7840         Call res_init() if .reset_res is set for database.
7841         (handle_request): Add code to handle services database.
7842         * nscd/gai.c: Don't define __getservbyname_r.
7843         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7844         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7845         (serv_response_header): Define.
7846         (struct datahead): Add serv_response_header member.
7847         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7848         using table.
7849         * nscd/nscd.conf: Add entries for services database.
7850         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7851         Declare serv_iov_disabled.
7852         Declare addservbyname, readdservbyname, addservbyport, and
7853         readdservbyport.
7854         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7855         (find_db): Fix error message.
7856         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7857         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7858         * nscd/selinux.c (perms): Add entries for services database.
7859         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7860         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7862         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7863         * nscd/hstcache.c: Likewise.
7864         * nscd/pwdcache.c: Likewise.
7866         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7867         computation of keylen.
7869         * include/string.h: Only redefine strndupa if this is really for
7870         libc code.
7872 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7874         * nscd/nscd_gethst_r.c: Minor cleanups.
7876         * nscd/connections.c (handle_request): Check selinux permissions
7877         for all non-admin commands.
7879         * sysdeps/i386/i486/bits/atomic.h: Define
7880         atomic_compare_and_exchange_val_acq,
7881         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7882         using __sync_* built-ins for gcc >= 4.1.
7883         * sysdeps/x86_64/bits/atomic.h: Likewise.
7885         [BZ #3840]
7886         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7887         and .oS.d files.
7889 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7891         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7892         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7893         (do_test): Check errno and exit(0) if ENOSYS.
7895 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7897         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7898         thousands separators.
7899         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7900         * stdlib/tst-strtod4.c: New test.
7902         [BZ #3855]
7903         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7904         hexadecimal digit should accept just the initial 0.
7905         * stdlib/tst-strtod2.c (tests): New variable.
7906         (do_test): Run several tests rather than just one.
7908 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7910         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7911         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7913 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7915         * io/fts.c: Make sure fts_cur is always valid after return from
7916         fts_read.
7917         Patch by Miloslav Trmac <mitr@redhat.com>.
7919 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7921         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7922         (R_MIPS_NUM): Bump by 1.
7924 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7926         * posix/execvp.c: Include alloca.h.
7927         (allocate_scripts_argv): Renamed to...
7928         (scripts_argv): ... this.  Don't allocate buffer here nor count
7929         arguments.
7930         (execvp): Use alloca if possible.
7931         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7932         * posix/tst-vfork3.c: New test.
7934 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7936         * string/Makefile (tst-strxfrm2-ENV): Define.
7937         * stdlib/Makefile (tst-strtod3-ENV): Define.
7939 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7941         * posix/getconf.c: Update copyright year.
7942         * nss/getent.c: Likewise.
7943         * iconv/iconvconfig.c: Likewise.
7944         * iconv/iconv_prog.c: Likewise.
7945         * elf/ldconfig.c: Likewise.
7946         * catgets/gencat.c: Likewise.
7947         * csu/version.c: Likewise.
7948         * elf/ldd.bash.in: Likewise.
7949         * elf/sprof.c (print_version): Likewise.
7950         * locale/programs/locale.c: Likewise.
7951         * locale/programs/localedef.c: Likewise.
7952         * nscd/nscd.c (print_version): Likewise.
7953         * debug/xtrace.sh: Likewise.
7954         * malloc/memusage.sh: Likewise.
7955         * malloc/mtrace.pl: Likewise.
7956         * debug/catchsegv.sh: Likewise.
7958 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7960         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7961         attempts.
7963 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7965         * posix/wordexp.c: Remove some unnecessary tests.
7967 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7969         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7970         blacklist the group till after we look it up.
7972 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7974         * include/atomic.h (atomic_forced_read): New macro.
7976 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7978         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7980 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7982         * nss/getXXbyYY_r.c: Include atomic.h.
7983         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7984         add atomic_write_barrier () in between.
7986         * stdlib/Makefile (tests): Add tst-makecontext.
7987         * stdlib/tst-makecontext.c: New test.
7989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7990         (__makecontext): Don't realign uc_mcontext.uc_regs.
7992 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7994         * elf/dl-support.c: Include dl-procinfo.h.
7995         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7996         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7997         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7998         Define.
7999         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8000         hardcoded constants.
8001         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8002         PPC_PLATFORM_* macros for array designators.
8004 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8006         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8007         names to the beginning.
8008         (_dl_powerpc_platforms): Add "power6x".
8009         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8010         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8011         (_DL_PLATFORMS_COUNT): Increase.
8012         (_dl_string_platform): Handle power6x case.
8013         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8014         PPC_FEATURE_POWER6_EXT): Define.
8015         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8017 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8019         [BZ #3747]
8020         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8021         [-2^31 .. 2^31) range.
8022         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8023         targets.
8024         * stdlib/tst-rand48-2.c: New test.
8025         * stdlib/Makefile (tests): Add tst-rand48-2.
8027 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8029         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8031 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8033         * misc/tst-pselect.c (do_test): Make sure the helper process is
8034         terminating when the test is aborted.
8036 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8038         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8039         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8040         Handle relatime mount option.
8042         [BZ #2337]
8043         * libio/Makefile (tests): Add tst-setvbuf1.
8044         * libio/tst-setvbuf1.c: New file.
8046 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8048         [BZ #2337]
8049         * libio/genops.c (__uflow): Fix a typo.
8050         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8051         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8052         the narrow buffer size.
8054 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8056         [BZ #2337]
8057         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8058         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8059         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8060         in _flags.
8061         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8062         _IO_wstr_finish): Likewise.
8063         * libio/wmemstream.c (open_wmemstream): Likewise.
8064         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8065         even for wide streams.
8067 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8070         kernel-features.h.
8072 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8074         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8075         separators also if no non-zero digits found.
8076         * stdlib/Makefile (tests): Add tst-strtod3.
8078 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8080         [BZ #3632]
8081         * include/features.h: Fix comment about default value for
8082         _POSIX_C_SOURCE.
8084         [BZ #3664]
8085         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8086         empty parsed strings.
8087         * stdlib/Makefile (tests): Add tst-strtod2.
8088         * stdlib/tst-strtod2.c: New file.
8090         [BZ #3673]
8091         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8092         computation.
8093         * stdlib/Makefile (tests): Add tst-atof2.
8094         * stdlib/tst-atof2.c: New file.
8096         [BZ #3674]
8097         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8098         correctly if removing trailing zero of hex-float.
8099         * stdlib/Makefile (tests): Add tst-atof1.
8100         * stdlib/tst-atof1.c: New file.
8102 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8104         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8105         Start searching for next comma at p rather than rest.
8106         * misc/Makefile (tests): Add tst-mntent2.
8107         * misc/tst-mntent2.c: New test.
8109         * misc/getusershell.c (initshells): Check for integer overflows.
8110         Make strings buffer one bigger as fgets always succeeds when second
8111         argument is 1.  Don't use calloc for shells array.  Disallow
8112         / as shell.
8114 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8116         * malloc/memusage.c: Handle realloc with new size of zero and
8117         non-NULL pointer correctly.
8118         (me): Really write first record twice.
8119         (struct entry): Make format bi-arch safe.
8120         (dest): Write out more realloc statistics.
8121         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8123 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8125         * nis/nis_subr.c (nis_getnames): Revert last change.
8127 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8129         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8130         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8131         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8132         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8133         ENOTTY.
8134         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8135         * io/tst-ttyname_r.c: New test.
8137 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8139         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8141 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8143         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8144         jump table entries.
8146 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8148         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8149         `clone' function to ensure proper unwinding stop of gdb.
8150         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8152 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8154         * nscd/nscd.init: Remove obsolete and commented-out -S option
8155         handling.
8157 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8159         [BZ #3514]
8160         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8162         [BZ #3515]
8163         * manual/string.texi (strtok): Remove duplicate paragraph.
8165 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8167         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8168         libgcc not supporting `rflags' unwinding (register # >= 17).
8170 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8172         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8173         succeeded.
8175 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8176             Jakub Jelinek  <jakub@redhat.com>
8177             Jan Kratochvil  <jan.kratochvil@redhat.com>
8179         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8180         unwind information.
8181         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8182         'restore_rt' even in the 'signal' directory.
8183         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8185 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8187         [BZ #3559]
8188         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8189         malloc crashed.  Don't allocate memory unnecessarily in each
8190         loop.
8192 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8194         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8196 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8198         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8200 2006-11-18  Bruno Haible  <bruno@clisp.org>
8202         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8203         __sysconf only after having tried to call getgroups32.
8205 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8207         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8208         addresses for IPv4 queries if they can be mapped.
8210 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8212         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8213         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8214         (signmask): Add .size directive.
8215         (othermask): Add .type directive.
8217 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8219         * po/nl.po: Update from translation team.
8221         * timezone/zdump.c: Redo fix for BZ #3137.
8223 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8225         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8226         to first_unused after parsing :include: file.
8228 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8230         * timezone/africa: Update from tzdata2006o.
8231         * timezone/antarctica: Likewise.
8232         * timezone/asia: Likewise.
8233         * timezone/australasia: Likewise.
8234         * timezone/backward: Likewise.
8235         * timezone/europe: Likewise.
8236         * timezone/iso3166.tab: Likewise.
8237         * timezone/northamerica: Likewise.
8238         * timezone/southamerica: Likewise.
8239         * timezone/zone.tab: Likewise.
8241         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8242         on machines with 64-bit time_t.
8244         * timezone/checktab.awk: Update from tzcode2006o.
8245         * timezone/ialloc.c: Likewise.
8246         * timezone/private.h: Likewise.
8247         * timezone/scheck.c: Likewise.
8248         * timezone/tzfile.h: Likewise.
8249         * timezone/tzselect.ksh: Likewise.
8250         * timezone/zdump.c: Likewise.
8251         * timezone/zic.c: Likewise.
8253         [BZ #3483]
8254         * elf/ldconfig.c (main): Call setlocale and textdomain.
8255         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8257         [BZ #3480]
8258         * manual/argp.texi: Fix typos.
8259         * manual/charset.texi: Likewise.
8260         * manual/errno.texi: Likewise.
8261         * manual/filesys.texi: Likewise.
8262         * manual/lang.texi: Likewise.
8263         * manual/maint.texi: Likewise.
8264         * manual/memory.texi: Likewise.
8265         * manual/message.texi: Likewise.
8266         * manual/resource.texi: Likewise.
8267         * manual/search.texi: Likewise.
8268         * manual/signal.texi: Likewise.
8269         * manual/startup.texi: Likewise.
8270         * manual/stdio.texi: Likewise.
8271         * manual/sysinfo.texi: Likewise.
8272         * manual/syslog.texi: Likewise.
8273         * manual/time.texi: Likewise.
8274         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8276         [BZ #3465]
8277         * sunrpc/clnt_raw.c: Minimal message improvements.
8278         * sunrpc/pm_getmaps.c: Likewise.
8279         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8280         * nis/nis_print_group_entry.c: Likewise.
8281         * locale/programs/repertoire.c: Likewise.
8282         * locale/programs/charmap.c: Likewise.
8283         * malloc/memusage.sh: Likewise.
8284         * elf/dl-deps.c: Likewise.
8285         * locale/programs/ld-collate.c: Likewise.
8286         * libio/vswprintf.c: Likewise.
8287         * malloc/memusagestat.c: Likewise.
8288         * sunrpc/auth_unix.c: Likewise.
8289         * sunrpc/rpc_main.c: Likewise.
8290         * nscd/cache.c: Likewise.
8291         * locale/programs/repertoire.c: Unify output messages.
8292         * locale/programs/charmap.c: Likewise.
8293         * locale/programs/ld-ctype.c: Likewise.
8294         * locale/programs/ld-monetary.c: Likewise.
8295         * locale/programs/ld-numeric.c: Likewise.
8296         * locale/programs/ld-time.c: Likewise.
8297         * elf/ldconfig.c: Likewise.
8298         * nscd/selinux.c: Likewise.
8299         * elf/cache.c: Likewise.
8300         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8302         [BZ #3451]
8303         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8304         change atomic.
8305         (ceil): Likewise.
8307 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8309         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8310         if N is one bigger than return value.
8311         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8312         and l1 last arguments, if buf is defined, verify the return value
8313         equals to strlen (buf) and verify no byte beyond passed length
8314         is modified.
8316 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8318         * po/sv.po: Update from translation team.
8320 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8322         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8323         noinline attribute.
8325 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8327         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8328         noinline attribute.
8330         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8331         Use __new_sys_siglist instead of _sys_siglist_internal as
8332         second macro argument.
8333         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8334         strong_alias.
8336 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8338         [BZ #3493]
8339         * posix/unistd.h (sysconf): Remove const attribute.
8341         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8342         temporary or deprecated addresses.
8343         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8345         * string/Makefile (tests): Add tst-strxfrm2.
8346         * string/tst-strxfrm2.c: New file.
8348 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8350         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8351         rather than r->r_brk.
8353 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8355         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8356         optimization even if needed > n.
8358         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8359         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8360         return false, otherwise return true.
8361         (cache_rpath): Return decompose_rpath return value.
8363 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8365         * include/libc-symbols.h (declare_symbol): Rename to...
8366         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8367         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8368         .size directive.
8369         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8370         changes.
8371         * sysdeps/gnu/siglist.c: Likewise.
8373 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8375         * sysdeps/powerpc/fpu/bits/mathinline.h
8376         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8377         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8379 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8381         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8382         Update handling of cache descriptor 0x49 for new models.
8383         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8384         Likewise.
8386 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8388         * malloc/memusage.c (dest): Reset not_me back to false after
8389         printing statistics.
8391 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8393         * configure.in: Work around ld --help change and avoid -z relro
8394         test completely if the architecture doesn't care about security.
8396 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8398         * po/sv.po: Update from translation team.
8400 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8402         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8403         generate compatibility version.
8405 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8407         * configure.in: Relax -z relro requirement a bit.
8409         * po/sv.po: Update from translation team.
8411 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8413         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8414         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8415         * elf/dl-close.c (_dl_close_worker): Likewise.
8416         * elf/dl-open.c (_dl_open_worker): Likewise.
8417         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8419 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8421         * configure.in: Require assembler support for visibility, compiler
8422         support for visibility and aliases, linker support for various -z
8423         options.
8424         * Makeconfig: Remove conditional code which now is unnecessary.
8425         * config.h.in: Likewise.
8426         * config.make.in: Likewise.
8427         * dlfcn/Makefile: Likewise.
8428         * elf/Makefile: Likewise.
8429         * elf/dl-load.c: Likewise.
8430         * elf/rtld.c: Likewise.
8431         * include/libc-symbols.h: Likewise.
8432         * include/stdio.h: Likewise.
8433         * io/Makefile: Likewise.
8434         * io/fstat.c: Likewise.
8435         * io/fstat64.c: Likewise.
8436         * io/fstatat.c: Likewise.
8437         * io/fstatat64.c: Likewise.
8438         * io/lstat.c: Likewise.
8439         * io/lstat64.c: Likewise.
8440         * io/mknod.c: Likewise.
8441         * io/mknodat.c: Likewise.
8442         * io/stat.c: Likewise.
8443         * io/stat64.c: Likewise.
8444         * libio/stdio.c: Likewise.
8445         * nscd/Makefile: Likewise.
8446         * stdlib/Makefile: Likewise.
8447         * stdlib/atexit.c: Likewise.
8448         * sysdeps/generic/ldsodefs.h: Likewise.
8449         * sysdeps/i386/dl-machine.h: Likewise.
8450         * sysdeps/i386/sysdep.h: Likewise.
8451         * sysdeps/i386/i686/memcmp.S: Likewise.
8452         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8453         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8454         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8456         * Makerules: USE_TLS support is now default.
8457         * tls.make.c: Likewise.
8458         * csu/Versions: Likewise.
8459         * csu/libc-start.c: Likewise.
8460         * csu/libc-tls.c: Likewise.
8461         * csu/version.c: Likewise.
8462         * dlfcn/dlinfo.c: Likewise.
8463         * elf/dl-addr.c: Likewise.
8464         * elf/dl-cache.c: Likewise.
8465         * elf/dl-close.c: Likewise.
8466         * elf/dl-iteratephdr.c: Likewise.
8467         * elf/dl-load.c: Likewise.
8468         * elf/dl-lookup.c: Likewise.
8469         * elf/dl-object.c: Likewise.
8470         * elf/dl-open.c: Likewise.
8471         * elf/dl-reloc.c: Likewise.
8472         * elf/dl-support.c: Likewise.
8473         * elf/dl-sym.c: Likewise.
8474         * elf/dl-sysdep.c: Likewise.
8475         * elf/dl-tls.c: Likewise.
8476         * elf/ldconfig.c: Likewise.
8477         * elf/rtld.c: Likewise.
8478         * elf/tst-tls-dlinfo.c: Likewise.
8479         * elf/tst-tls1.c: Likewise.
8480         * elf/tst-tls10.h: Likewise.
8481         * elf/tst-tls14.c: Likewise.
8482         * elf/tst-tls2.c: Likewise.
8483         * elf/tst-tls3.c: Likewise.
8484         * elf/tst-tls4.c: Likewise.
8485         * elf/tst-tls5.c: Likewise.
8486         * elf/tst-tls6.c: Likewise.
8487         * elf/tst-tls7.c: Likewise.
8488         * elf/tst-tls8.c: Likewise.
8489         * elf/tst-tls9.c: Likewise.
8490         * elf/tst-tlsmod1.c: Likewise.
8491         * elf/tst-tlsmod13.c: Likewise.
8492         * elf/tst-tlsmod13a.c: Likewise.
8493         * elf/tst-tlsmod14a.c: Likewise.
8494         * elf/tst-tlsmod2.c: Likewise.
8495         * elf/tst-tlsmod3.c: Likewise.
8496         * elf/tst-tlsmod4.c: Likewise.
8497         * elf/tst-tlsmod5.c: Likewise.
8498         * elf/tst-tlsmod6.c: Likewise.
8499         * include/errno.h: Likewise.
8500         * include/link.h: Likewise.
8501         * include/tls.h: Likewise.
8502         * locale/global-locale.c: Likewise.
8503         * locale/localeinfo.h: Likewise.
8504         * malloc/arena.c: Likewise.
8505         * malloc/hooks.c: Likewise.
8506         * malloc/malloc.c: Likewise.
8507         * resolv/Versions: Likewise.
8508         * sysdeps/alpha/dl-machine.h: Likewise.
8509         * sysdeps/alpha/libc-tls.c: Likewise.
8510         * sysdeps/generic/ldsodefs.h: Likewise.
8511         * sysdeps/generic/tls.h: Likewise.
8512         * sysdeps/i386/dl-machine.h: Likewise.
8513         * sysdeps/ia64/dl-machine.h: Likewise.
8514         * sysdeps/ia64/libc-tls.c: Likewise.
8515         * sysdeps/mach/hurd/fork.c: Likewise.
8516         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8517         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8518         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8519         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8520         * sysdeps/s390/libc-tls.c: Likewise.
8521         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8522         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8523         * sysdeps/sh/dl-machine.h: Likewise.
8524         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8525         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8526         * sysdeps/x86_64/dl-machine.h: Likewise.
8528         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8529         split out locking and parameter checking.
8530         (_dl_close): Call _dl_close_worker after locking and checking.
8531         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8532         _dl_close.
8533         * elf/Makefile: Add rules to build and run tst-thrlock.
8534         * elf/tst-thrlock.c:  New file.
8536         [BZ #3426]
8537         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8538         reality.
8540         [BZ #3429]
8541         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8542         we are sure we do not need it anymore for _dl_close.  Also move
8543         the asserts inside the lock region.
8544         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8546 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8548         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8549         argument.
8550         (_dl_lookup_symbol_x): Adjust caller.
8552         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8553         _ns_global_scope.
8554         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8556         * elf/dl-libc.c: Revert l_scope name changes.
8557         * elf/dl-load.c: Likewise.
8558         * elf/dl-object.c: Likewise.
8559         * elf/rtld.c: Likewise.
8560         * elf/dl-close.c (_dl_close): Likewise.
8561         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8562         always use __rtld_mrlock_{change,done}.  Always free old scope list
8563         here if not l_scope_mem.
8564         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8565         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8566         the lookup and __rtld_mrlock_unlock it after the lookup.
8567         * elf/dl-sym.c: Likewise.
8568         * include/link.h (struct r_scoperec): Remove.
8569         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8570         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8572 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8574         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8576 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8578         * configure.in: Disable building profile libraries by default.
8580 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8582         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8583         as signed longs, check for x_base + pos overflow.
8584         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8585         * sunrpc/tst-xdrmem2.c: New test.
8587 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8589         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8590         _dl_lookup_symbol_x code.
8592 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8594         * elf/dl-runtime.c: Include sysdep-cancel.h.
8595         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8596         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8597         instead of catomic_* macros.
8598         * elf/dl-sym.c: Include sysdep-cancel.h.
8599         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8600         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8601         * elf/dl-close.c: Include sysdep-cancel.h.
8602         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8603         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8604         * elf/dl-open.c: Include sysdep-cancel.h.
8605         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8606         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8608 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8610         [BZ #3313]
8611         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8612         fastbin rather than end of fastbin array.
8614 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8616         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8617         body macro.
8618         * sysdeps/x86_64/bits/atomic.h
8619         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8620         (catomic_decrement): Use correct body macro.
8622 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8624         * include/atomic.h: Add a unique prefix to all local variables
8625         in macros.
8626         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8628 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8630         [BZ #3369]
8631         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8632         and 7.
8634 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8636         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8638 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8640         [BZ #3313]
8641         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8642         determine highest fast bin to consolidate, always look into all of
8643         them.
8644         (do_check_malloc_state): Only require for empty bins for large
8645         sizes in main arena.
8647         * libio/stdio.h: Add more __wur attributes.
8649         * elf/dl-minimal.c (realloc): Optimize last patch.
8651 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8653         [BZ #3352]
8654         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8655         and use memcpy() if it does.
8657 2006-11-12  Andreas Jaeger  <aj@suse.de>
8659         [BZ #2510]
8660         * manual/search.texi (Hash Search Function): Clarify.
8661         (Array Search Function): Clarify.
8663 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8665         [BZ #2830]
8666         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8667         shifting.
8668         * math/atest-exp2.c (read_mpn_hex): Likewise.
8669         * math/atest-sincos.c (main): Likewise.
8671 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8673         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8674         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8675         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8676         version GLIBC_2.6.
8677         * Versions.def: Add GLIBC_2.6 for libc.
8679         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8681         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8683 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8685         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8687         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8689         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8690         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8692 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8694         * include/atomic.c: Define catomic_* operations.
8695         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8696         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8697         * malloc/memusage.c: Likewise.
8698         * gmon/mcount.c: Likewise.
8699         * elf/dl-close.c: Likewise.
8700         * elf/dl-open.c: Likewise.
8701         * elf/dl-profile.c: Likewise.
8702         * elf/dl-sym.c: Likewise.
8703         * elf/dl-runtime.c: Likewise.
8704         * elf/dl-fptr.c: Likewise.
8705         * resolv/res_libc.c: Likewise.
8707 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8709         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8710         components which lack them.
8712         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8713         at least one entry consisting of the parameter concatenated with
8714         the domain.
8716 2006-10-10  Roland McGrath  <roland@frob.com>
8718         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8719         * sysdeps/mach/hurd/futimes.c: Likewise.
8720         * sysdeps/mach/hurd/lutimes.c: Likewise.
8722 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8723             Jakub Jelinek  <jakub@redhat.com>
8725         Implement reference counting of scope records.
8726         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8727         from the list in objects which remain.  Always allocate new scope
8728         record.
8729         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8730         don't resize, allocate a new one.
8731         * elf/dl-runtime.c: Update reference counters before using a scope
8732         array.
8733         * elf/dl-sym.c: Likewise.
8734         * elf/dl-libc.c: Adjust for l_scope name change.
8735         * elf/dl-load.c: Likewise.
8736         * elf/dl-object.c: Likewise.
8737         * elf/rtld.c: Likewise.
8738         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8739         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8740         Add l_scoperec_lock.
8741         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8742         * sysdeps/generic/rtld-lowlevel.h: New file.
8744         * include/atomic.h: Rename atomic_and to atomic_and_val and
8745         atomic_or to atomic_or_val.  Define new macros atomic_and and
8746         atomic_or which do not return values.
8747         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8748         Various cleanups.
8749         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8751         * po/sv.po: Update from translation team.
8753 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8755         * Versions.def: Add GLIBC_2.6 to libpthread.
8757         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8758         (versioned_symbol): Likewise.
8759         (compat_symbol): Likewise.
8761         * po/tr.po: Update from translation team.
8763 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8765         * nis/Banner: Removed.  It's been integral part forever and the
8766         author info is incomplete anyway.
8767         * libio/Banner: Likewise.
8769         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8770         code, make sure the nis_freeresult call doesn't crash and that the
8771         result is reported correctly.
8773 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8775         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8776         when callback is NULL.
8778         * nis/Versions (libnss_nisplus): Add
8779         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8780         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8781         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8782         _nss_create_tablename): Rename to...
8783         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8784         ... these.  No longer static.
8785         (internal_setgrent): Adjust users.
8786         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8787         Don't use locking around _nss_grp_create_tablename call.
8788         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8790 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8792         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8794 2006-10-06  Andreas Jaeger  <aj@suse.de>
8796         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8798 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8800         * po/pl.po: Update from translation team.
8802         * nscd/nscd.c (main): Fix typo in message.
8803         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8805 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8807         [BZ #3291]
8808         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8809         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8810         (__sigprocmask): Define.
8812 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8814         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8815         used.
8817 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8819         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8820         in oldtotal and newtotal calculation.
8821         * nscd/nscd-client.h (struct mapped_database): Add datasize
8822         field.
8823         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8824         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8825         increased.
8826         (__nscd_cache_search): Add checks to make sure we never reference
8827         data beyond the current mapping.
8829 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8831         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8832         variables const to avoid compiler warnings.
8834         * io/fts.c (fts_close): Remove redundant checks.
8835         (fts_build): Likewise.
8836         (fts_palloc): Likewise.
8838         * manual/message.texi (Advanced gettext functions,
8839         Using gettextized software): Fix typos.
8841 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8843         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8844         explain why there are no leaks.
8846 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8848         * libio/wmemstream.c: Include <wchar.h>.
8849         * libio/bug-wmemstream1.c: Likewise.
8850         * libio/tst-wmemstream1.c: Likewise.
8851         * libio/tst-wmemstream2.c: Likewise.
8853         * version.h (RELEASE): Bump to 2.5.
8854         * README: Regenerated.
8856         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8858         [BZ #3273]
8859         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8860         found no group members.
8861         Patch by Petr Baudis.
8863 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8865         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8866         assert bootstrap_map.l_tls_modid is zero.
8867         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8868         if USE___THREAD.
8870 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8872         * libio/stdio.h: Move open_wmemstream prototype to ...
8873         * wcsmbs/wchar.h: ... here.
8875 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8877         [BZ #3252]
8878         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8879         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8880         __{,l}chown to handle the rest.
8881         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8882         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8883         __{,l}chown to handle the rest.
8884         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8885         i386/fchownat.c.
8886         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8887         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8889         [BZ #3253]
8890         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8891         time, rather allocate increasingly bigger arrays of pointers, if
8892         possible with alloca, if too large with malloc.
8894 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8896         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8898         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8900 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8902         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8903         home addresses.
8904         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8905         IFA_F_HOMEADDRESS flag for interfaces.
8906         * include/ifaddrs.h (struct in6addrinfo): Define
8907         in6ai_homeaddress.
8909 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8911         [BZ #3225]
8912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8913         PTR_DEMANGLE3): Define.
8914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8915         PTR_DEMANGLE3): Likewise.
8916         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8917         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8918         Likewise.
8919         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8921 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8923         * po/libc.pot: Regenerated.
8924         * po/be.po: Updated.
8925         * po/ca.po: Likewise.
8926         * po/cs.po: Likewise.
8927         * po/da.po: Likewise.
8928         * po/de.po: Likewise.
8929         * po/el.po: Likewise.
8930         * po/en_GB.po: Likewise.
8931         * po/es.po: Likewise.
8932         * po/fi.po: Likewise.
8933         * po/fr.po: Likewise.
8934         * po/gl.po: Likewise.
8935         * po/hr.po: Likewise.
8936         * po/hu.po: Likewise.
8937         * po/ja.po: Likewise.
8938         * po/ko.po: Likewise.
8939         * po/nb.po: Likewise.
8940         * po/nl.po: Likewise.
8941         * po/pl.po: Likewise.
8942         * po/pt_BR.po: Likewise.
8943         * po/ru.po: Likewise.
8944         * po/rw.po: Likewise.
8945         * po/sk.po: Likewise.
8946         * po/sv.po: Likewise.
8947         * po/tr.po: Likewise.
8948         * po/zh_CN.po: Likewise.
8949         * po/zh_TW.po: Likewise.
8951         [BZ #3137]
8952         * iconv/iconv_prog.c (main): Fix spelling in error message.
8953         * iconv/iconvconfig.c (main): Likewise.
8954         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8955         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8956         * locale/programs/localedef.c (main): Likewise.
8957         * locale/programs/repertoire.c (repertoire_read): Likewise.
8958         * timezone/zdump.c (main): Likewise.
8959         * nscd/connections.c (handle_request): Fix spelling in log message.
8960         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8962 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8964         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8965         interfaces.
8967 2006-09-20  Andreas Jaeger  <aj@suse.de>
8969         * math/libm-test.inc (lrint_test_upward): Fix typo.
8971 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8973         [BZ #2592]
8974         * math/libm-test.inc (lrint_test_tonearest): New function.
8975         (lrint_test_towardzero): New function.
8976         (lrint_test_downward): New function.
8977         (lrint_test_upward): New function.
8978         (main): Run these new tests.
8979         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8980         of values near to 0.
8981         (two52): Use double not long double.
8982         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8983         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8984         (two23): Use float not double.
8985         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8986         (two23): Use float not double.
8987         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8988         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8989         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8990         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8992 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8994         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8995         Cast sp to unsigned long to avoid compiler warning.
8996         Use __makecontext_ret function instead of a trampoline on the stack.
8997         (__makecontext_ret): New function.
8998         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9000 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9002         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9003         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9004         bits.
9006 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9008         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9009         sure no reference to the unloaded map's search list remains in the
9010         dependency's scope.
9012 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9014         * elf/Makefile: Add rules to build and run unload7 test.
9015         * elf/unload7.c: New test.
9016         * elf/unload7mod1.c: New file.
9017         * elf/unload7mod2.c: New file.
9019 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9021         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9022         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9023         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9024         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9025         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9026         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9027         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9028         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9029         PTRACE_GETEVENTMSG): Likewise.
9030         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9031         values.
9033 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9035         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9036         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9037         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9038         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9040 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9042         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9043         write '\0' to the fd.
9044         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9045         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9046         Change regs to unsigned long pointer from unsigned int, fix fscr
9047         offset.
9049 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9051         * io/Makefile (CFLAGS-fstatat.c): Set.
9052         (CFLAGS-fstatat64.c): Likewise.
9053         (CFLAGS-mknodat.c): Likewise.
9055         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9056         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9057         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9058         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9060 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9061             Steven Munroe  <sjmunroe@us.ibm.com>
9063         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9064         names to the beginning.  Rename "cell" to "cellbe".
9065         (_dl_powerpc_platforms): New.
9066         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9067         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9068         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9069         (_DL_HWCAP_PLATFORM): Define to new mask.
9070         (_dl_platform_string, _dl_string_platform): New functions.
9071         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9072         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9074 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9076         [BZ #2526]
9077         * README.libm: Fix a thinko in sqrt algorithm description.
9079         [BZ #3143]
9080         * manual/string.texi (argz_delete): Fix prototype.
9081         Patch by <alpt@freaknet.org>.
9083 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9085         [BZ #3138]
9086         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9087         * io/tst-fcntl.c (do_prepare): Likewise.
9088         * posix/tst-exec.c (do_prepare): Likewise.
9089         * posix/tst-preadwrite.c (do_prepare): Likewise.
9090         * posix/tst-spawn.c (do_prepare): Likewise.
9091         * posix/tst-truncate.c (do_prepare): Likewise.
9092         * rt/tst-aio.c (do_prepare): Likewise.
9093         * rt/tst-aio64.c (do_prepare): Likewise.
9094         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9095         size_t.
9097 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9099         [BZ #2821]
9100         * time/mktime.c (guess_time_tm): Fix overflow detection.
9101         * time/Makefile (tests): Add bug-mktime1.
9102         * time/bug-mktime1.c: New file.
9104         [BZ #3189, #3188]
9105         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9106         (mremap): Likewise.
9108 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9110         [BZ #1006]
9111         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9112         Ensure relocation doesn't clobber any bits outside of the
9113         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9114         R_SPARC_HI22 and R_SPARC_H44.
9116         [BZ #2775]
9117         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9118         (long) (MINSIZE + nb - old_size) is positive.
9120         * malloc/arena.c (grow_heap): When growing bail even if new_size
9121         is negative.
9123         [BZ #3155]
9124         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9125         stack below r1.
9127 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9129         * posix/regex_internal.c (re_string_reconstruct): Handle
9130         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9131         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9132         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9133         re_string_context_at.
9134         * posix/Makefile: Add rules to build and run bug-regex26 test.
9135         * posix/bug-regex26.c: New test.
9137         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9138         rather than col_sym_free.  Move seqp declaration earlier.
9140         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9142 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9144         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9145         decl before first goto out.
9147 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9149         * Makerules (shlib.lds): If have-hash-style, put .hash section
9150         at the end of the RO segment.
9152 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9154         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9155         style hash table format is used.
9157 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9159         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9160         randomization rather than before.
9161         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9163 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9165         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9167         * malloc/malloc.c (_int_malloc): Use full list insert and not
9168         shortcut which assumes the list is empty for large requests
9169         too.
9171         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9173 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9175         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9176         and offout arguments to the prototype.
9177         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9178         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9179         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9180         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9181         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9182         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9183         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9184         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9186 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9188         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9190         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9191         dlopen parameters.
9193 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9195         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9196         only if herrno is NETDB_INTERNAL.  Handle errors other than
9197         ERANGE outside of the loops, handle TRY_AGAIN.
9199         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9200         if other's ctype category was missing.
9201         * locale/programs/ld-collate.c (collate_read): Return if
9202         copy_locale's collate category is missing.
9204 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9206         [BZ #2684]
9207         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9208         arenas if allocation failed.
9209         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9211 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9213         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9214         waste bins[0..1].
9215         (malloc_state): Reduce bins size by 2.
9216         (_int_malloc): Fix test for large enough buffer for early termination.
9217         When no unsorted block matches perfectly and an exiting block has
9218         to be split, use full list insert and not shortcut which assumes
9219         the list is empty.
9221         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9222         failure.
9224 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9226         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9227         do anything.
9229         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9230         symbol require exact match (these are PLTs).
9231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9232         (_dl_ppc64_addr_sym_match): Likewise.
9234         [BZ #2683]
9235         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9236         If symbol has a value use it.
9237         * elf/tst-dladdr1.c: New file.
9238         * elf/Makefile: Add rules to build and run tst-addr1.
9240 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9242         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9243         keeps failing and heap growth or new heap creation isn't
9244         successful either.
9245         * malloc/tst-malloc.c (main): Add new tests.
9247 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9249         [BZ #2734]
9250         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9251         as in the x86-64 code to use bswap.
9253 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9255         [BZ #2680]
9256         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9257         __USE_UNIX98.
9258         * posix/bits/unistd.h: Likewise.
9260 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9262         [BZ #2751]
9263         * string/strchr.c: Add cast to avoid warning.
9265 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9267         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9268         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9269         limit is needed to avoid the exploding of the address space
9270         requirement for secondary heaps.
9271         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9272         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9274 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9276         [BZ #3018]
9277         * Makerules (depfiles): Handle extra-test-objs the same as
9278         extra-objs.
9279         (common-mostlyclean): Likewise.
9280         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9281         instead.
9282         * elf/Makefile (extra-objs): Likewise.
9283         * stdlib/Makefile (extra-objs): Likewise.
9285 2006-08-14  Eric Blake  <ebb9@byu.net>
9287         [BZ #3044]
9288         * misc/error.h: Assume C89 or better.
9289         * misc/error.c: Likewise.
9291 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9293         [BZ #3040]
9294         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9295         __ASSUME_ATFCTS is defined.
9297 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9299         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9300         to sort in each call.
9302         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9303         is empty simply return and use next service.
9304         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9306         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9307         tells us when not finding a charmap file is an error.
9308         * locale/programs/charmap.h: Adjust charmap_read prototype.
9309         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9310         cannot find a charmap.
9311         * locale/programs/localedef.c (main): Adjust charmap_read call.
9313 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9315         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9316         sysdeps/posix/pause.c implementation instead.
9318 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9320         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9321         to EPERM.
9323 2006-08-13  Andreas Schwab  <schwab@suse.de>
9325         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9326         Don't clobber caller's LRSAVE.
9327         (_dl_prof_resolve): Likewise.
9329 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9331         [BZ #1996]
9332         * libio/memstream.c (open_memstream): Allocate initial buffer with
9333         calloc.
9334         * libio/wmemstream.c (open_wmemstream): Likewise.
9335         * libio/strops.c: Pretty printing.
9336         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9337         (enlarge_userbuf): New function.
9338         (_IO_str_seekoff): Call it if seek position is larger than current
9339         buffer.
9340         * libio/wstrops.c: Likewise.
9341         * libio/vasprintf.c: Add comment as to why we do not have to use
9342         calloc instead of malloc to allocate initial buffer.
9343         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9344         * libio/bug-memstream1.c: New file.
9345         * libio/bug-wmemstream1.c: New file.
9347 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9349         * libio/wstrops.c: Remove dead macro definitions and comments.
9350         * libio/strops.c: Likewise.
9352         [BZ #2764]
9353         * login/utmpname.c (__utmpname): Remove unnecessary test.
9355 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9357         [BZ #2832]
9358         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9359         0s from integers.
9361 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9363         [BZ #2987]
9364         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9365         for CPU clocks.
9366         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9367         setting of CPU clocks.
9369 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9371         [BZ #2841]
9372         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9373         since C99 requires the result to promote to 'int' when uint_least8_t
9374         and uint_least16_t promote to 'int'.
9376 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9378         [BZ #3013]
9379         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9380         lenght of one output field, correct bitmask creation.
9381         * locale/programs/ld-time.c: Add alignment.
9383         [BZ #2997]
9384         * misc/error.c: Add space between program name and message if file
9385         name is missing.
9387 2006-08-03  Eric Blake  <ebb9@byu.net>
9389         [BZ #2998]
9390         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9392 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9394         * malloc/memusagestat.c: Silence warnings.
9396         * malloc/malloc.c: Dynamically size mmap treshold if the program
9397         frees mmaped blocks.
9398         Patch by Valerie Henson and Arjan van de Ven.
9400 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9402         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9403         __USE_GNU.
9405         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9406         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9407         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9408         Only provide var definitions in strtol_l (or for *ull*
9409         in strtoll_l).
9411         * stdio-common/bug16.c (tests): New array.
9412         (do_tests): Allow the first hexadecimal digit
9413         to be 1, 2, 4 or 8.  Do 3 additional tests.
9415         * sysdeps/s390/fpu/libm-test-ulps: Update.
9417         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9418         fchownat syscall if available.
9419         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9420         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9421         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9423 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9425         * nis/nis_xdr.c: Avoid some function calls.
9427 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9428             Ulrich Drepper  <drepper@redhat.com>
9430         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9431         short cut if only one name component is stripped away.
9433 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9435         * nis/nis_call.c: Minor cleanups throughout.
9436         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9437         (first_shoot): Add search_parent_first parameter.  Only if it is set
9438         search parent server first.
9439         If directory for table found through cold start cache is not the same
9440         as referenced in the cache, don't use it.
9441         (__nisfind_server): Take additional parameter.  Pass it on to
9442         first_shoot.
9443         (__prepare_niscall): Adjust __nisfind_server call.
9444         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9445         * nis/nis_table.c: Adjust __nisfind_server call.
9446         * nis/nis_lookup.c: Likewise.
9447         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9449 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9451         [BZ #2182]
9452         * math/s_cacosh.c: Return values from positive branch.
9453         * math/s_cacoshf.c: Likewise.
9454         * math/s_cacoshl.c: Likewise.
9456         [BZ #2883]
9457         * sysvipc/sys/msg.h: Change return value to ssize_t.
9458         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9459         * sysvipc/msgrcv.c: Likewise.
9460         * include/sys/msg.h: Likewise.
9462         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9463         test introduced in patch for bz #661.
9464         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9465         element for NEWGROUPS.
9467         [BZ #2908]
9468         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9469         'f', use '1' as leading digit not '\1'.
9470         * stdio-common/Makefile (tests): Add bug16.
9471         * stdio-common/bug16.c: New file.
9473         [BZ #2914]
9474         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9475         and don't try to open it.  The patch introducing the macro
9476         contained a bug and used the same file name as the new file
9477         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9478         this out completely.
9480         [BZ #2926]
9481         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9482         Patch by Jerry James <Jerry.James@usu.edu>.
9484         * rt/Makefile (tests): Add tst-clock2.
9485         * rt/tst-clock2.c: New file.
9487         [BZ #2978]
9488         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9489         function and its parameters and pass it to new thread.
9490         (__gai_notify): Add support for alternative waiting for completion.
9491         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9492         waiting for completion.
9493         * resolv/getaddrinfo_a.c: Likewise.
9494         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9495         waiting for completion is used.
9496         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9497         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9498         * resolv/gai_error.c: Likewise.
9499         * resolv/gai_sigqueue.c: Likewise.
9501 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9503         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9504         errno to EBADF and return MACH_PORT_NULL.
9506 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9508         [BZ #2980]
9509         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9511 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9513         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9514         walk them instead of the symbol table.
9516 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9518         [BZ #2098]
9519         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9520         status of NSS calls, not the number of returned entries.
9522         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9523         request_key, keyctl.
9525 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9527         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9529 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9531         * elf/tst-auditmod1.c: Fix typo in #error.
9533 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9535         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9537         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9539 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9541         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9542         that the directory is empty even on non-POSIX filesystems.
9544 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9546         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9548         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9549         the backend NSS module.  If backend setgrent call failed, don't have
9550         internal_setgrent fail.  Just remember this until it is needed.
9551         * nis/nss_compat/compat-pwd.c: Likewise.
9552         * nis/nss_compat/compat-spwd.c: Likewise.
9554 2006-07-30  Roland McGrath  <roland@redhat.com>
9556         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9557         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9558         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9559         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9561         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9562         (nanosleep_not_cancel): New macro.
9563         (sigsuspend_not_cancel): new macro.
9564         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9565         (do_sigsuspend): Define as inline.
9566         (__sigsuspend): Always use do_sigsuspend.
9567         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9568         * include/signal.h: Declare __sigsuspend_nocancel.
9569         * sysdeps/posix/pause.c
9570         [! NO_CANCELLATION] (__pause_nocancel): New function.
9572         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9573         * include/time.h (__nanosleep_nocancel): Likewise.
9575 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9577         * locale/programs/localedef.c (add_to_readlist): Rename local
9578         variables to avoid confusion.
9580         * locale/programs/charmap.c (charmap_read): Emit error message if
9581         charmap couldn't be found or read.
9583 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9585         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9586         __ASSUME_FUTEX_LOCK_PI.
9587         * include/time.h: Declare __nanosleep_nocancel.
9588         * include/unistd.h: Declare __pause_nocancel.
9590         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9591         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9592         get the __stack_chk_fail_local definition when it's needed.
9594 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9596         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9597         * dlfcn/bug-atexit3.c: New file.
9598         * dlfcn/bug-atexit3-lib.cc: New file.
9600         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9601         used when the namespace is not the base namespace.
9603 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9605         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9606         (__new_exitfn): Bump it in every successful call.
9607         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9608         more exit handlers, call them right away.
9609         * stdlib/exit.h: Declare __new_exitfn_called.
9611 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9613         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9614         calling registered handler.
9616         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9617         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9618         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9620         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9622         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9623         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9625 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9627         * elf/dl-lookup.c (dl_new_hash): New functions.
9628         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9629         value here.  Compute new-style hash value.  Pass new hash value
9630         and reference to variable with the old value to do_lookup_x.
9631         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9632         old-style hash table.
9633         (_dl_debug_bindings): Pass new hash value and reference to variable
9634         with the old value to do_lookup_x.
9635         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9636         new-style hash value and change old-style hash value parameter to
9637         be a reference.  Reoganize functions to determine whether
9638         new-style hash table is available.  Only fall back on old-style
9639         table.  If old-style hash value is needed, compute it here.
9640         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9641         entry.
9642         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9643         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9644         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9645         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9646         * Makeconfig: If linker supports --hash-style option add it to all
9647         linker command lines to build DSOs.
9648         * config.make.in: Define have-hash-style.
9649         * configure.in: Test whether linker supports --hash-style option.
9651         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9652         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9654 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9656         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9657         auditing.
9659         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9660         RPATH of main map twice.
9662 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9664         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9665         look further, return original strings.
9666         (_nl_find_msg): Do not return found translation if the conversion
9667         failed.  Either signal the string is unusable or that something went
9668         wrong and the original should be used.
9670 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9672         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9674 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9676         [BZ #2766]
9677         * misc/insremque.c (insque): Handle prev == NULL.
9678         * misc/Makefile (tests): Add tst-insremque.
9679         * misc/tst-insremque.c: New test.
9681 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9683         [BZ #2792]
9684         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9685         conflict with DL_DST_REQUIRED.
9687 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9689         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9690         match what Solaris does.
9692 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9694         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9695         local_setegid instead of seteuid and setegid.
9696         * sysdeps/generic/local-setxid.h: New file.
9697         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9699         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9701         * string/Makefile (tests): Add bug-envz1.
9702         * string/bug-envz1.c: New file.
9704 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9706         * posix/regex_internal.c (re_string_skip_chars): If no character has
9707         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9708         to the byte which couldn't be converted.
9709         (re_string_reconstruct): Don't clear valid_raw_len before calling
9710         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9711         tip_context using re_string_context_at.
9712         * posix/Makefile: Add rules to build and run bug-regex25 test.
9713         * posix/bug-regex25.c: New test.
9715 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9717         [BZ #2703]
9718         * string/envz.c (envz_strip): Correct erroneously reversed src
9719         and dest parameters to memmove() invocation.
9721 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9723         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9724         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9725         to make sure the database has been already invalidated.
9726         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9727         after the cache has been invalidated.  Use pthread_mutex_lock rather
9728         than pthread_mutex_trylock if fd != -1.
9729         * nscd/connections.c (invalidate_cache): Add fd argument, write
9730         response to fd if not calling prune_cache, pass fd to prune_cache.
9731         (handle_request): Adjust invalidate_cache caller.
9732         (nscd_run): Pass -1 as fd to prune_cache.
9734 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9736         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9737         the correct place.
9739 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9741         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9742         * nscd/cache.c (prune_cache): Take prunelock before starting the
9743         work.  Just return in case it is already taken.
9744         * nscd/connections.c (dbs): Initialize .prunelock.
9746 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9748         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9749         copying.  No need to allocate new array for group members.  Just
9750         move the pointers and update the size.
9752         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9753         Avoid memory leak in case realloc fails.  Simplification for
9754         better code generation.
9756         Avoid deprecation warning because of libc_hidden_proto for
9757         inet6_option_alloc.
9758         * inet/inet6_option.c (option_alloc): Renamed from
9759         inet6_option_alloc.  Made static.
9760         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9761         (inet6_option_append): Call option_alloc.
9762         * include/netinet/in.h: Remove libc_hidden_proto for
9763         inet6_option_alloc.
9765         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9766         for cleanup when cb!=NULL [Coverity CID 233].
9768 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9770         [BZ #2693]
9771         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9772         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9773         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9774         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9775         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9776         and inet6_rth_getaddr.
9777         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9778         array.
9779         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9780         Mark inet6_option_* interfaces as deprecated.
9781         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9782         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9783         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9784         inet6_rth_segments, and inet6_rth_getaddr.
9785         * inet/inet6_opt.c: New file.
9786         * inet/inet6_rth.c: New file.
9788         * inet/netinet/icmp6.h: Pretty printing.
9790         [BZ #2683]
9791         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9793 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9795         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9796         doing it all here.  When server does not know the answer do not
9797         fail immediate, try parent first.
9799         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9800         overflow test.
9802 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9804         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9805         from __do_niscall.
9806         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9807         and exported.
9808         (__follow_path): New function.  Split out from nis_list.
9809         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9810         _xdr_nis_result.
9811         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9812         _xdr_nis_result.
9813         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9814         and __follow_path.
9815         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9816         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9817         from libnsl for version GLIBC_PRIVATE.
9818         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9819         Remove entry parameter from _nss_nisplus_parse_pwent and
9820         _nss_nisplus_parse_grent.
9821         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9822         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9823         again.  Rewrite getpwent handling to not use nis_first_entry and
9824         nis_next_entry.  Roll out own niscall handling.
9825         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9827         * sunrpc/xdr_rec.c: Fix typo in comment.
9829 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9831         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9832         handling.
9834         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9835         to allocate memory for my_pollfd.  Better initialization of
9836         cb_is_running.  Use TEMP_FAILURE_RETRY.
9838         * malloc/memusage.sh (memusageso): Add quotes.
9839         (memusagestat): Likewise.
9840         * debug/xtrace.sh (pcprofileso): Likewise.
9841         (pcprofiledump): Likewise.
9842         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9843         replacement.
9844         * malloc/Makefile ($(objpfx)memusage): Likewise.
9846         * nis/nis_callback.c (__nis_create_callback): Calls to
9847         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9848         asprintf call fails.
9850         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9851         no uninitialized memory is passed to sendto.
9853 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9855         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9856         of snprintf+strdup.  Handle OOM.
9857         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9858         cb->serv together.  Remove now obsolete free calls.
9859         (__nis_destroy_callback): Remove now obsolete free call.
9861 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9863         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9864         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9865         and ULA respectively). Set precedence for IPv4 address to 10 as
9866         defined in RFC3484 for preferring IPv6.
9867         * posix/gai.conf: Update to match the new default tables.
9869 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9871         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9872         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9873         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9874         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9876         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9877         Removed.
9878         (init_nss_interface): Remove initialization of these variables.
9880 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9882         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9883         nis_free_directory forward to avoid duplication.
9885 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9887         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9888         rec_dirsearch returning NULL.
9889         (first_shoot): Handle __nis_finddirectory returning NULL.
9890         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9892         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9893         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9895 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9897         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9898         pid changed.
9900 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9902         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9904         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9905         * nscd/nscd_getgr_r.c: Likewise.
9907         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9909         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9910         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9912         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9914         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9916         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9918         * include/rpc/auth.h: Mark xdr_des_block_internal and
9919         xdr_opaque_auth_internal as hidden.
9921         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9922         hidden.
9924         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9926         * misc/getusershell.c (okshells): Don't use static initializers,
9927         do it dynamically.
9929         * stdlib/fmtmsg.c (keywords): Change type of len element to
9930         uint32_t to not waste space on 64bit machines.
9932         * locale/setlocale.c: Change _nl_category_names into a string.
9933         Add new _nl_category_name_idxs.  Change all users.
9934         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9935         Declare _nl_category_name_idxs.
9936         * locale/findlocale.c: Adjust for _nl_category_names change.
9937         * locale/loadlocale.c: Likewise.
9938         * locale/newlocale.c: Likewise.
9939         * intl/dcigettext.c: Likewise.
9941         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9942         (add_alias2): ...here.  New function.
9943         (__gconv_read_conf): Simplify builtin alias handling.
9944         (builtin_aliases): Convert to string to avoid relocations.
9945         * iconv/gconv_builtin.h: Add comment about correct formatting.
9947 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9949         * resolv/res_debug.c (loc_ntoa): Make error const.
9951 2006-05-14  Andreas Schwab  <schwab@suse.de>
9953         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9955 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9957         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9958         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9959         sizeof (cpu_set_t).
9961 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9963         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9965         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9967         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9968         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9970         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9971         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9973         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9974         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9975         xdr_cback_data.
9977         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9978         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9979         xdr_ypupdate_args.
9981         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9982         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9984         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9985         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9987         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9988         * include/rpcsvc/nis_callback.h: New file.
9990         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9991         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9993         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9994         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9996         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9997         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9999         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10000         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10002         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10003         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10004         xdr_ypdelete_args.
10006         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10007         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10009         * nis/nis_error.c: Remove table of strings.  Use position
10010         independent mechanism.
10011         * nis/nis_error.h: New file.
10013 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10015         * locale/programs/ld-time.c (time_finish): If wide era name or
10016         format aren't provided, set both wname and wformat to L"".
10018 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10020         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10021         results if the call was succesful.
10023         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10025         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10026         as hidden.
10028 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10030         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10032 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10034         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10035         caller makes sure this is not the case.
10036         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10038 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10040         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10041         calls.
10043         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10044         [Coverity CID 229, 230]
10046         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10047         DGETTEXT calls.
10048         (hol_help): Likewise.  [Coverity CID 226, 227]
10050         * string/argz-replace.c (__argz_replace): Unconditionally call
10051         free on SRC.  [Coverity CID 225]
10053         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10054         the return value of __nis_default_owner and __nis_default_group,
10055         it has been especially allocated.  [Coverity CID 224]
10057         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10058         searchgroup and searchowner.  Significantly simplified.
10059         (__nis_default_owner): Remove duplication.  Do not locally copy the
10060         string before duplicating it.
10061         (__nis_default_group): Likewise.
10063         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10064         we must clear the variable before calling __nisfind_server.
10066         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10067         nis_getnames.  [Coverity CID 223]
10069         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10070         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10072         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10073         allocate memory for the input to add_bytes.  [Coverity CID 221]
10075         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10076         was allocated here.  [Coverity CID 219, 220]
10078         * posix/getconf.c (print_all): Free confstr data after printing.
10079         [Coverity CID 218]
10081         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10082         list allocation fails.  [Coverity CID 215]
10084         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10085         [Coverity CID 213]
10087         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10088         string is NULL.  [Coverity CID 212]
10089         * argp/Makefile: Add rules to build and run bug-argp1.
10090         * argp/bug-argp1.c: New file.
10092         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10093         end of string.
10094         * stdlib/canonicalize.c (__realpath): Likewise.
10096         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10097         pointer.  [Coverity CID 206]
10099         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10100         in statically linked code.
10101         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10102         statically built code, be prepared to have no link map.
10103         [Coverity CID 205]
10105         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10106         dgettext calls. [Coverity CID 204]
10108         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10109         the one user.
10110         (uparam_names): Reduce size.  Avoid relative relocations.
10111         Moved to read-only segment.
10112         (fill_in_uparams): Update for new layout.
10114         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10115         assumed to always be != NULL. [Coverity CID 202]
10117         * argp/argp-help.c (hol_entry_help): Remove some dead code
10118         [Coverity CID 200].
10120         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10121         away a few more unconditional yperr2nss calls.
10122         (_nss_nis_getservbyname_r): Likewise.
10124 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10126         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10127         architectures.
10129         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10130         that unused memory passed to sendto is nevertheless initialized.
10132         [BZ #2499]
10133         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10134         possibly unaligned memory accesses.
10136         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10137         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10138         and __putlong respectively.  Correct buffer overflow check for
10139         NS_NOTIFY_OP.
10141         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10143         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10144         (send_dg): Rewrite error handling to be more compact and avoid
10145         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10147         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10149         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10150         instead of ns_get16.
10151         (res_queriesmatch): Likewise.  Minor optimization.
10153         [BZ #2499]
10154         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10155         __libc_res_nsend might reallocate the buffer for the answer.  In
10156         this case we have to reload the HP pointer.
10158 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10160         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10161         some branch prediction hints.
10163         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10164         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10165         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10166         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10167         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10169         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10170         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10172 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10174         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10175         by a GOT relocation to make Scrt1.o position independent.
10176         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10178         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10179         six system call parameters.
10180         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10182 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10184         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10185         malloc&bzero.
10187         * sunrpc/svc_udp.c (BZERO): Remove definition.
10188         (CALLOC): Define.
10189         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10191         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10192         (des_SPtrans): Use uint32_t type.
10193         (des_skb): Likewise.
10195         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10197 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10199         [BZ #2509]
10200         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10201         on 32-bit arches.
10203 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10205         * locale/programs/ld-address.c (address_finish): Fix one more
10206         place where the iso639 array might be accessed beyond the limits.
10208 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10210         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10211         filling it for the first time.
10213         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10214         Adjust all callers.
10215         Free res object content before returning.
10217         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10219         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10220         client->cl_auth.
10222         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10223         cleanup for initial thread, just the free call on TVP.
10225         * nscd/gai.c (__getline): Define.
10228 See ChangeLog.16 for earlier changes.