* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
[glibc.git] / ChangeLog
blobcda109911d88092853268b8a549961f6a14b16e7
1 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4         memcpy instead of memcmp.
5         (_dl_setup_pointer_guard): Likewise.
7 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
9         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
10         manipulated brk, use malloc_printerr.
11         * misc/sbrk.c (__sbrk): Better error handling for nonsense
12         requests.
14 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
16         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
17         rindex): For C++ add inlines so that they can be recognized as
18         builtins.
19         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
21 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
22             Jakub Jelinek  <jakub@redhat.com>
24         * string/string.h: Define correct C++ prototypes for gcc 4.4.
25         * wcsmbs/wchar.h: Likewise.
27 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
29         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
30         (stackinfo_sub_sp): Define.
32 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
34         [BZ #9750]
35         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
36         * include/alloca.h (alloca_account): Define.
37         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
38         (stackinfo_sub_sp): Define.
40         * nscd/connections.c (nscd_init): If database file access be
41         opened check whether this is due to permission problems and bail
42         in that case.
44         [BZ #9741]
45         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
46         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
48 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
51         Add "t" to clobber list.
52         (INTERNAL_SYSCALL_NCS): Likewise.
54 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
56         * nss/getent.c (print_networks): Don't print comma between aliases.
58 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
60         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
62         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
63         the hash table.
64         * misc/Makefile (tests): Add bug-hsearch1.
65         * misc/bug-hsearch1.c: New file.
67 2009-01-22  Roland McGrath  <roland@redhat.com>
69         * Makeconfig (%.v.i): Strip trailing # comments,
70         not only whole-line comments.
72 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
74         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
75         one parameter.  If non-NULL use it to initialize return value.
76         (_dl_setup_pointer_guard): New function.
77         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
78         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
79         * elf/rtld.c (security_init): Pass _dl_random to
80         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
81         pointer_chk_guard.
82         * elf/dl-sysdep.c (_dl_random): New variable.
83         (_dl_sysdep_start): Handle AT_RANDOM.
84         (_dl_show_auxv): Likewise.
85         * elf/dl-support.c (_dl_random): New variable.
86         (_dl_aux_init): Handle AT_RANDOM.
87         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
88         to _dl_setup_stack_chk_guard.
90         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
92 2009-01-10  Roland McGrath  <roland@redhat.com>
94         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
96 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
98         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
100         [BZ #9706]
101         * nss/nss_files/files-parse.c (strtou32): New function.
102         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
103         across 32-bit and 64-bit platforms.
104         (INT_FIELD_MAYBE_NULL): Likewise.
106 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
108         [BZ #9720]
109         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
110         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
111         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
112         Likewise.
114 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
116         [BZ #697]
117         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
118         being NULL also if there are no backreferences.
119         * posix/rxspencer/tests: Add testcases.
121 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
123         [BZ #9697]
124         * posix/bug-regex17.c: Add testcases.
125         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
126         handling.
128 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
130         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
131         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
132         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
133         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
134         for elf subdir.
135         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
136         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
137         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
138         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
139         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
140         * sysdeps/unix/sysv/linux/s390/Versions: New file.
142 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
144         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
145         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
146         re_string_skip_chars, re_string_reconstruct): Likewise.
147         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
149 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
151         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
152         adjust the buffer alignment.
154 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
156         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
157         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
158         net/route.h.
160         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
161         flavor to description only when flavor is not NULL.
163         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
164         mutex after SIGIO/SIGURG lookup loop.
166 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
168         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
170 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
172         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
173         handling.
175 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
177         * sysdeps/unix/sysv/linux/kernel-features.h
178         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
180         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
181         if no output is written.
183         * version.h: Bump to 2.10 development.
185         * posix/getconf.c: Update copyright year.
186         * nss/getent.c: Likewise.
187         * iconv/iconvconfig.c: Likewise.
188         * iconv/iconv_prog.c: Likewise.
189         * elf/ldconfig.c: Likewise.
190         * catgets/gencat.c: Likewise.
191         * csu/version.c: Likewise.
192         * elf/ldd.bash.in: Likewise.
193         * elf/sprof.c (print_version): Likewise.
194         * locale/programs/locale.c: Likewise.
195         * locale/programs/localedef.c: Likewise.
196         * nscd/nscd.c (print_version): Likewise.
197         * debug/xtrace.sh: Likewise.
198         * malloc/memusage.sh: Likewise.
199         * malloc/mtrace.pl: Likewise.
200         * debug/catchsegv.sh: Likewise.
202 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
204         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
205         script.
207 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
209         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
210         gethostbyname4_r function call succeeded, just leave the loop.
212         [BZ #9694]
213         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
214         very end.
215         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
216         * wctype/Makefile (tests): Add bug-wctypeh.
217         * wctype/bug-wctypeh.c: New file.
219         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
220         LOCALDOMAIN is defined.
221         * nscd/nscd_getai.c (__nscd_getai): Likewise.
223         * sysdeps/x86_64/bits/select.h: New file.
225         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
227 2008-12-21  Bruno Haible  <bruno@clisp.org>
229         [BZ #9677]
230         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
231         if no output is written.
233 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
235         * login/utmp_file.c (pututline_file): Replace call to dup2 with
236         libc internal symbol __dup2 to avoid access through the PLT.
238 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
240         [BZ #6545]
241         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
242         available only for __USE_GNU.
244         * inet/Makefile (tests): Add tst-getni2.
245         * inet/tst-getni2.c: New file.
247         [BZ #7080]
248         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
249         NULL when NI_NAMEREQD is set.
250         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
251         * inet/Makefile (tests): Add tst-getni1.
252         * inet/tst-getni1.c: New file.
254 2008-12-03  Petr Baudis  <pasky@suse.cz>
256         [BZ #7067]
257         * nscd/connections.c (invalidate_cache): Use prune_run_lock
258         instead of prune_lock.
259         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
260         * nscd/nscd.h (database_dyn): Add prune_run_cache.
262 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
264         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
265         use.
267         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
268         handling.
270         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
271         after reading name server list.
273         [BZ #7058]
274         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
275         handling for host name aliases.
277 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
279         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
280         instead of doing things manually.
282 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
284         * posix/regex_internal.h (build_wcs_upper_buffer):
285         Return type is reg_error_t.
287 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
289         * posix/globtest.sh: Use mktemp to create temporary file and
290         directory.
292         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
293         sets correctly.
294         (__CPU_CLR_S): Likewise.
295         (__CPU_ISSET_S): Likewise.
297 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
298             Ulrich Drepper  <drepper@redhat.com>
300         * scripts/firstversion.awk: Use custom comparison function to compare
301         version numbers.
302         * scripts/versions.awk: Use sort invocation which can handle
303         multi-digit sub-version numbers.
305 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
307         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
308         * locale/iso-639.def: Add Chhattisgarhi entry.
310 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
312         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
313         ESRCH return value.
314         (_nss_dns_gethostbyname4_r): Likewise.
315         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
316         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
317         gethostbyname4_r, we don't have a separate IPv6 status, so copy
318         the no_data variable.
320         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
321         information at the correct index.
323         * socket/sys/socket.h: Declare accept4.
324         * socket/accept4.c: New file.
325         * sysdeps/unix/sysv/linux/accept4.c: New file.
326         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
327         * socket/Makefile (routines): Add accept4.
328         * socket/Versions: Export accept4 with version GLIBC_2.10.
329         * socket/paccept.c: Removed.
330         * sysdeps/unix/sysv/linux/paccept.c: Removed.
331         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
332         * Versions.def: Define GLIBC_2.10 for libc.
333         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
335         * nscd/connections.c: Use accept4.
337         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
339 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
341         * resolv/res_send.c (send_dg): Create sockets with non-blocking
342         flag already set.
344         * stdlib/setenv.c (unsetenv): Don't search environment if it does
345         not exist.
346         * stdlib/Makefile (tests): Add tst-unsetenv1.
347         * stdlib/tst-unsetenv1.c: New file.
349 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
351         * login/utmp_file.c (file_writable): New variable.
352         (setutent_file): Don't try to open file for writing.
353         (pututline_file): Before writing, make descriptor writable if
354         necessary.
356 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
358         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
359         to IPv4 or IPv6 if an interface has been found.
361 2008-11-26  Roland McGrath  <roland@redhat.com>
363         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
364         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
366         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
367         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
368         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
370         * elf/elf.h (NT_386_IOPERM): New macro.
371         (NT_PPC_VSX): New macro.
373 2008-11-25  Roland McGrath  <roland@redhat.com>
375         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
376         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
377         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
378         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
379         Subdirectories moved to ports repository.
380         * configure.in (base_machine): Remove alpha case.
382 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
384         * sysdeps/mach/strerror_l.c: New file.
386 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
388         [BZ #6411]
389         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
390         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
391         magic numbers.
392         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
393         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
394         (relax_fenv_state): Same as above.
395         (FPSCR_29): Reserve bit in ISA 2.05.
396         (FPSCR_NI): Provide define for compat.
397         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
398         magic numbers.
399         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
400         magic numbers.
401         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
402         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
403         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
404         access to hwcap to account for hwcap size increase to uint64_t.
405         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
406         Likewise.
407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
408         (*setcontext): Likewise.
409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
410         New file.
411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
412         New file.
413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
414         (*setcontext): dynamically select mtfsf insn based on
415         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
416         increase to uint64_t.
417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
418         (*swapcontext): dynamically select mtfsf insn based on
419         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
420         increase to uint64_t.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
422         New file.
423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
424         New file.
425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
426         (*setcontext): dynamically select mtfsf insn based on
427         PPC_FEATURE_HAS_DFP.
428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
429         (*swapcontext): dynamically select mtfsf insn based on
430         PPC_FEATURE_HAS_DFP.
432 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
434         * version.h: Bump for 2.9 release.
435         * include/features.h (__GLIBC_MINOR__): Bump to 9.
437         [BZ #7029]
438         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
439         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
440         all the rounding.
442 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
444         [BZ #7009]
445         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
446         unknown request types for now.
448 2008-11-11  Roland McGrath  <roland@redhat.com>
450         * sysdeps/x86_64/configure: New file.
452         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
453         * configure: Regenerated.
455 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
457         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
458         correct instruction to remove the stack frame.
460 2008-11-03  Michael Matz  <matz@suse.de>
462         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
463         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
465 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
467         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
468         Remove.
470         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
471         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
472         of the thread variable instead of void *.
473         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
474         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
475         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
476         __libc_tsd_define arguments.
477         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
478         __libc_tsd_address arguments.  Remove union hack.
479         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
480         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
481         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
482         Adjust __libc_tsd_{set,get} arguments.
483         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
484         __libc_tsd_define arguments.
485         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
486         arguments.
487         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
488         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
489         (LOCALE): Adjust __libc_tsd_define arguments.
490         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
491         arguments.
492         (LOCALE): Adjust __libc_tsd_define arguments.
493         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
494         arguments.
495         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
496         arguments.
498 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
500         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
501         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
503 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
505         [BZ #6966]
506         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
508 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
509             Ulrich Drepper  <drepper@redhat.com>
511         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
512         definition for GCC 3.1 and later.
514 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
516         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
517         refetch dtv, as it might have changed.
518         * elf/Makefile: Add rules to build and run tst-tls18.
519         * elf/tst-tls18.c: New test.
520         * elf/tst-tlsmod18a.c: New file.
522 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
524         [BZ #6875]
525         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
527 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
529         [BZ #6867]
530         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
532         [BZ #6919]
533         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
534         Fix length of copy operation.
536 2008-10-02  Pierre Habouzit <madcoder@debian.org>
538         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
539         and fix its calling convention.
541 2008-10-07  Andreas Schwab  <schwab@suse.de>
543         [BZ #6942]
544         * resolv/res_send.c (send_vc): Fix last change.
545         (send_dg): Align here as well.
547 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
549         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
550         return value in case rlimit is RLIM_INFINITY.
552         [BZ #6947]
553         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
554         for UL_SETFSIZE.
555         * resource/Makefile (tests): Add bug-ulimit1.
556         * resource/bug-ulimit1.c: New file.
558         [BZ #6974]
559         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
560         without dot.  Properly terminate the string with a null byte.
561         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
563         [BZ #6980]
564         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
565         negative sizees.
566         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
567         negative __size.
569         [BZ #6995]
570         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
572 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
574         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
575         abort if there is no initgroups_dyn function.
577         * resolv/res_send.c (send_dg): On timeout, only return nonzero
578         result if any of the queries really provided an answer.
580 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
582         * po/lt.po: Update from translation team.
584 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
586         * po/id.po: Update from translation team.
588 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
590         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
591         Fix tests for existence of second reply.
593 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
595         * po/id.po: New file.
596         Contributed by the Indonesian translation team.
598 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
600         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
601         initialization.
603 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
605         * elf/Makefile: Add rules to build and run tst-tls17.
606         * elf/tst-tls17.c: New test.
607         * elf/tst-tlsmod17a.c: New file.
608         * elf/tst-tlsmod17b.c: Likewise.
610 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
612         * stdlib/divmod_1.c: Use correct type for dummy variable.
613         * stdlib/mod_1.c: Likewise.
615 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
617         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
619 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
621         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
622         __nonnull order for C++.
623         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
624         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
626 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
628         * stdlib/longlong.h: Update from GCC.
630 2008-10-09  Jakub Jelinek <jakub@redhat.com>
631             David S. Miller  <davem@davemloft.net>
633         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
634         make sure any registers used with 64-bit 'branch-on-register'
635         instructions have their top 32-bits clear.
636         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
637         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
639 2008-09-18  Andreas Schwab  <schwab@suse.de>
641         [BZ #6942]
642         * resolv/res_send.c (send_vc): Fix use of unaligned address.
643         Properly handle partial reads.
645 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
647         * elf/elf.h (STO_MIPS_PLT): New.
648         (R_MIPS_COPY): New.
649         (R_MIPS_JUMP_SLOT): New.
650         (R_MIPS_NUM): Redefine to 128.
651         (DT_MIPS_PLTGOT): New.
652         (DT_MIPS_RWPLT): New.
653         (DT_MIPS_NUM): Redefine to 0x35.
655 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
657         * timezone/africa: Update from tzdata2008f.
658         * timezone/asia: Likewise.
659         * timezone/australasia: Likewise.
660         * timezone/europe: Likewise.
661         * timezone/leapseconds: Likewise.
662         * timezone/northamerica: Likewise.
663         * timezone/southamerica: Likewise.
664         * timezone/zone.tab: Likewise.
666 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
668         * nscd/connections.c: Disable use of paccept for now.
670 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
672         * socket/Versions: Remove paccept export for GLIBC_2.9.
673         * socket/Makefile (routines): Remove paccept.
674         * socket/sys/socket.h: Remove paccept declaration.
676         * po/sv.po: Update from translation team.
678 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
680         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
681         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
683 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
685         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
686         Patch by Olivier Fourdan <ofourdan@redhat.com>.
688 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
690         * sunrpc/rpc/svc.h: Declare svcfd_create.
691         Patch by Michael Solberg <msolberg@redhat.com>.
693 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
694             Ulrich Drepper  <drepper@redhat.com>
696         * malloc/malloc.c (public_vALLOc): Try other arenas in case
697         _int_valloc fails.
698         (public_pVALLOc): Likewise.
700 2008-09-02  Andreas Jaeger  <aj@suse.de>
702         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
703         commit.
705 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
707         [BZ #6860]
708         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
710 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
712         * Makefile (check-data): Check data directory in add-ons.
713         * elf/Makefile (check-data): Likewise.
715 2008-08-18  Roland McGrath  <roland@redhat.com>
717         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
718         * configure: Regenerated.
719         * config.make.in (cflags-cpu): New substituted variable.
720         (with-cpu): Variable removed.
721         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
723 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
725         [BZ #6845]
726         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
727         __signbitl definition and __LONG_DOUBLE_128__ guard from:
728         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
729         redundant.  Functions which call floating point assembler operations
730         should go into a sysdeps powerpc/fpu directory.
732 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
734         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
735         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
737 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
739         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
741         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
742         change related to AT_EXECFN.  We cannot use that string.
743         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
744         _dl_execfn member.
745         * elf/dl-support.c: Remove _dl_execfn variable.
746         (_dl_aux_init): Remove handling of AT_EXECFN.
747         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
748         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
750 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
752         [BZ #6544]
753         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
754         byte gets added to writes and seeks from the end use the length of
755         the buffer and not the currently terminating NUL byte.
757         [BZ #6634]
758         * login/utmp_file.c (getutent_r_file): Take additional parameter.
759         Set to true if locking failed.
760         (getutid_r_file): Adjust caller.
761         (pututline_file): Likewise.  Return NULL in this case.
762         Patch mostly by halesh.s@gmail.com.
764 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
766         [BZ #6589]
767         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
768         Define.
769         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
771 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
773         [BZ #6839]
774         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
775         macro since it is now available in elf/dynamic-link.h.
777 2008-08-12  Roland McGrath  <roland@frob.com>
779         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
780         in case used outside of libc.
781         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
783 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
785         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
786         directly instead of going through dn_comp.
788 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
790         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
791         Fix asm constraints.
793 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
795         [BZ #6790]
796         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
797         (IPV6_PMTUDISC_PROBE): Likewise.
799 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
801         [BZ #6791]
802         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
804 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
805             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
807         [BZ #6817]
808         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
809         Added the members 'vsx' and 'arch_2_06'.
810         (_dl_powerpc_platforms): Add the member 'power7'.
811         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
812         to reflect the changes required by VSX and ISA 2.06.
813         Modify _DL_PLATFORMS_COUNT to reflect the addition of
814         'power7'.
815         Defined PPC_PLATFORM_POWER7.
816         (_dl_string_platform): Add support for POWER7.
817         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
818         capability and ISA 2.06.
820 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
822         [BZ #6824]
823         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
824         macro to detect use of 128 bit long double.
825         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
827 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
829         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
831         [BZ #5794]
832         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
833         parameters.
834         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
835         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
837 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
839         * nscd/connections.c (main_loop_poll): Pass a buffer which is
840         guaranteed to be large enough to read inotify event.  Ignore
841         EAGAIN error.  Better error message.  Add branch predicition.
842         (main_loop_epoll): Likewise.
844 2008-08-02  Roland McGrath  <roland@frob.com>
846         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
847         Add memory clobbers.
849 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
851         * manual/arith.texi: Avoid @strong{Note:}.
852         * manual/creature.texi: Likewise.
853         * manual/filesys.texi: Likewise.
854         * manual/math.texi: Likewise.
855         * manual/memory.texi: Likewise.
856         * manual/resource.texi: Likewise.
857         * manual/syslog.texi: Likewise.
858         * manual/time.texi: Likewise.
860         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
861         to prevent warning.
863 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
865         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
866         new epoll_create1 interface.
867         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
868         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
869         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
871         * include/arpa/nameser.h (NS_GET16): Use const pointer.
872         (NS_GET32): Likewise.
874         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
875         syscalls, too.
877         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
878         use the AT_EXECFN value if it is no absolute path.
879         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
880         __ASSUME_AT_EXECFN.
882         * Versions.def: Add GLIBC_2.9 to libresolv.
883         * include/resolv.h: Remove hidden proto declarations for __ns_*
884         functions.  Add them for __dn_count_labels and __p_secstodate.
885         * include/arpa/nameser.h: Add a number of hidden proto declarations.
886         Define ns_msg_getflags macro here.
887         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
888         and __p_secstodate.
889         * resolv/Versions: Export functions from <arpa/nameser.h> from
890         libresolv in version GLIBC_2.9.
891         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
892         hidden definitions.
893         * resolv/ns_netint.c: Likewise.
894         * resolv/ns_parse.c: Likewise.
895         * resolv/ns_print.c: Likewise.
896         * resolv/ns_samedomain.c: Likewise.
897         * resolv/ns_ttl.c: Likewise.
898         * resolv/arpa/nameser_compat.h: Likewise.
899         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
900         function calls.
901         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
902         instead of ns_get16.
903         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
904         __ns_get32 instead of ns_get16 and ns_get32 respectively.
905         (gaih_getanswer_slice): Likewise.
906         * resolv/Makefile (libresolv-routines): Add ns_date.
907         * resolv/ns_date.c: New file.
909         * elf/Makefile (check-localplt.out): Also check libresolv and
910         libcrypt.
912 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
914         * sysdeps/unix/sysv/linux/kernel-features.h: Define
915         __ASSUME_O_CLOEXEC.
917 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
919         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
920         buffer passed to NSS functions.
922         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
924         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
925         Define.
927         * misc/syslog.c (openlog_internal): Fix compile problem.
929 2008-07-28  Roland McGrath  <roland@redhat.com>
931         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
933 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
935         * io/ftw.c (add_object): Remove inline to avoid warning.
937         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
939         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
940         Use it instead of locally defined resplen2 variable.
941         (res_nsend): Adjust for __libc_res_nsend interface change.
942         (send_vc): Initialize *resplen2 if necessary.  Read length of
943         package into an appropriately aligned variable.  Store converted length
944         in new variable and use it appropriately.
945         Add branch prediction help.
946         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
947         and pass it on to __libc_res_nsend.  Adjust all callers.
948         (__libc_res_nsearch): Likewise.
949         (__libc_res_nqeurydomain): Likewise.
950         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
951         change.
952         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
953         Define resplen2 variable and pass it to __libc_res_nsearch and then
954         to gaih_getanswer.
955         (getanswer_r): In case of incorrect DNS data don't overread buffer.
956         Add branch prediction.
957         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
958         (gaih_getanswer): Don't decode second slice if first one failed due
959         to a too small buffer.  Don't let not found status of second
960         decoder shadow results of the first.
961         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
962         and __libc_res_nquery interface changes
963         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
964         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
965         __libc_res_nsearch, and __libc_res_nsend.
966         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
967         change.
968         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
969         __libc_res_nsearch interface changes.
971 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
973         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
975         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
976         file descriptors with close-on-exec set.
977         (exec_comm_child): Fix the case where the write end of the pipe is
978         STDOUT_FILENO already.  In case it is, clear close-on-exec.
980         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
981         * io/pipe2.c: Likewise.
982         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
983         instead of __ASSUME_PACCEPT.
984         * include/unistd.h: Declare __have_pipe2.
985         * libio/iopopen.c: Implement "e" flag.
986         * libio/Makefile (tests): Add tst-popen1.
987         * libio/tst-popen1.c: New file.
989         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
990         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
992 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
994         [BZ #6771]
995         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
996         success call of _IO_SEEKOFF or calls which failed because the
997         descriptor is for a pipe.
999         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1000         magic number.
1002         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1004         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1005         F_SETFD use if we know fopen set the flag.
1007         * login/utmp_file.c (setutent_file): Minor optimization in case
1008         O_CLOEXEC is available.
1010 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1012         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1013         * elf/Makefile: Use pie-ccflag variable.
1014         * nscd/Makefile: Likewise.
1015         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1017 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1019         [BZ #6724]
1020         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1021         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1022         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1023         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1024         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1025         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1026         utmp32, utmpx32 and login32.
1027         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1028         versions of struct utmp functions to libc and libutil.
1029         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1030         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1031         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1032         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1033         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1034         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1035         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1036         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1037         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1038         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1039         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1040         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1041         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1042         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1043         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1044         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1045         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1046         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1047         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1048         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1049         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1050         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1052 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1054         * scripts/gen-as-const.awk: Generate more widely usable code by
1055         using 64-bit arithmetic.
1057         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1058         the same treatment as narrow output code in last patch.
1060         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1062         [BZ #6763]
1063         * elf/dl-load.c (local_strdup): Remove inline.
1064         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1065         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1066         part of the object.
1068         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1070 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1072         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1073         the new syscalls, too.
1075         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1076         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1078         [BZ #6698]
1079         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1080         parameter for end of buffer.  If temporary copy is too large use
1081         malloc.
1082         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1083         interface change.
1084         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1085         string rewrite when allocating buffer.
1087         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1088         syscalls, too.
1090         * nscd/connections.c (nscd_init): Clean up fcntl call.
1092         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1093         SOCK_NONBLOCK if possible.
1095         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1096         SOCK_CLOEXEC if available.
1098         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1099         __libc_clntudp_bufcreate_internal.
1100         * include/sys/socket.h: Declare __have_sock_cloexec.
1101         * socket/Makefile (aux): Add have_sock_cloexec.
1102         * socket/have_sock_cloexec.c: New file.
1103         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1104         __libc_clntudp_bufcreate.
1105         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1106         which takes an additional parameter.  Create socket with non-blocking
1107         mode and close-on-exec flag set, if wanted.
1108         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1109         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1110         instead of clntudp_create.  The socket has already the close-on-exec
1111         flag set if SOCK_CLOEXEC is defined.
1113 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1115         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1116         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1117         appropriate.
1118         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1119         non-blocking mode by using socket, paccept, and inotify_init1.
1121         * Versions.def (glibc): Add GLIBC_2.9.
1122         * io/Makefile (routines): Add dup3 and pipe2.
1123         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1124         * io/dup3.c: New file.
1125         * io/pipe2.c: New file.
1126         * posix/unistd.h: Declare dup3 and pipe2.
1127         * socket/Makefile (routines): Add paccept.
1128         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1129         * socket/paccept.c: New file.
1130         * socket/sys/socket.h: Declare paccept.
1131         * sysdeps/unix/syscalls.list: Add entry for dup3.
1132         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1133         epoll_create2 and inotify_init1.
1134         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1135         * sysdeps/unix/sysv/linux/paccept.c: New file.
1136         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1137         possible.
1138         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1139         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1140         inotify_init1, and pipe2 entries.
1141         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1142         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1143         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1144         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1145         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1146         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1147         SOCK_NONBLOCK.
1148         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1149         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1150         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1151         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1152         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1153         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1154         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1155         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1156         EPOLL_NONBLOCK.  Declare epoll_create2.
1157         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1158         EFD_NONBLOCK.
1159         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1160         IN_NONBLOCK.  Declare inotify_init1.
1161         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1162         SFD_NONBLOCK.
1163         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1164         TFD_NONBLOCK.
1166         * elf/elf.h: Define AT_EXECFN.
1167         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1168         LD_ORIGIN_PATH.
1169         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1170         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1171         if __ASSUME_AT_EXECFN is defined.
1172         (_dl_aux_init): Handle AT_EXECFN.
1173         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1174         for 2.6.27 and up.
1175         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1176         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1177         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1178         _dl_execfn if available and avoid compatibility code if
1179         __ASSUME_AT_EXECFN is defined.
1181         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1182         _dl_discover_osversion only for older kernels.
1184 2008-07-22  Roland McGrath  <roland@frob.com>
1186         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1188 2008-07-21  Roland McGrath  <roland@frob.com>
1190         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1191         returned too much data out of line.
1193 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1195         * locale/setlocale.c (setname): Remove inline to avoid compiler
1196         warning.
1198         [BZ #6712]
1199         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1201 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1203         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1204         doesn't manage to write anything, fail.
1206         * malloc/hooks.c (__malloc_check_init): Remove printf.
1208 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1210         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1212 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1214         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1215         from inotify.
1216         (main_loop_epoll): Likewise.
1218 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1220         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1222         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1223         if DEBUG is defined.
1225         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1226         query.  Adjust buffer size computation for padding.
1228 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1230         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1231         * stdio-common/tst-setvbuf1.c: New file.
1232         * stdio-common/tst-setvbuf1.expect: New file.
1234         [BZ #6719]
1235         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1236         when selecting fully-buffered stream.
1237         Patch by Wang Xin <wxinee@gmail.com>.
1239 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1241         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1242         (__open_2): New function.
1243         (__open64_2): New alias to __open_2.
1244         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1245         (__openat_2): New function.
1246         (__openat64_2): New alias to __openat_2.
1248 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1250         [BZ #6723]
1251         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1253 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1255         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1256         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1257         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1258         __hurd_dfail.
1259         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1260         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1261         * sysdeps/mach/hurd/send.c (__send): Likewise.
1262         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1263         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1265 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1267         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1268         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1269         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1270         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1271         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1272         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1274 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1276         [BZ #6657]
1277         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1278         of %EY.
1279         Patch by Petr Baudis.
1281 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1283         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1284         Patch by Peter Jones <pjones@redhat.com>.
1286 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1288         [BZ #6654]
1289         * stdlib/canonicalize.c (__realpath): readlink can write too much
1290         into the buffer on platforms without PATH_MAX.
1292 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1294         [BZ #6653]
1295         * posix/tst-regex.c (main): Rename to...
1296         (do_test): ... this. Remove cmdline option processing.
1297         (TIMEOUT): Define.
1298         (TEST_FUNCTION): Define.
1299         (CMDLINE_OPTIONS): Define.
1301 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1303         [BZ #5210]
1304         * configure.in: Add -Werror to -fstack-protector test to catch
1305         unsupported architectures.
1306         Patch by Gilles Esponasse <g.esp@free.fr>.
1308 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1310         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1311         getcontext returns ENOSYS.
1313 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1315         * nscd/connections.c (main_loop_poll): Fix test for read error.
1316         (main_loop_epoll): Likewise.
1318 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1320         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1321         better place so it is not called when nscd is used.
1323         * nscd/connections.c: Also recognize and handle changes to the
1324         resolver configuration file.
1326 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1328         * time/strftime.c: Pass reference to tzset_called around to handle
1329         recursive calls.
1331         [BZ #6612]
1332         * time/strftime.c (__strftime_internal): Call tzset() only
1333         when printing timezone-dependent values.
1334         Based on a patch by Petr Baudis <pasky@suse.cz>.
1336         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1337         unconditionally use second gaih_getanswer_slice result.
1339         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1340         (getaddrinfo): RES must always be non-NULL.
1342 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1344         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1345         cr[34] registers.
1346         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1347         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1348         Likewise.
1349         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1350         register.
1352 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1354         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1355         fields.
1356         * nscd/connections.c (inotify_fd): New variable.
1357         (nscd_init): Try to open an inotify descriptor.
1358         If successful, watch files for databases using inotify instead of
1359         having prune threads stat the files.
1360         (nscd_run_prune): Recognize clear_cache flag being set and call
1361         prune_cache appropriately.
1362         (main_loop_poll): Add inotify descriptor to wait set and handle the
1363         reported changes.
1364         (main_loop_epoll): Likewise.
1365         * nscd/cache.c (prune_cache): Don't stat files for databases if
1366         inotify is used.
1367         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1368         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1370         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1371         fixed-size portion of the record.
1372         * nscd/servicescache.c (cache_addserv): Likewise.
1373         * nscd/pwdcache.c (cache_addpw): Likewise.
1374         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1376 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1378         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1379         out we don't use uninitialized memory.
1381         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1382         the client.
1384 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1386         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1387         ignore T_DNAME messages.
1388         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1390 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1392         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1393         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1395 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1397         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1398         instead of portstr to nscd_getserv_r.  Patch by
1399         Roman Kagan <rkagan@mail.ru>.
1401 2008-05-26  Jim Meyering  <meyering@redhat.com>
1403         Remove more useless "if" tests before "free".
1404         * include/inline-hashtab.h (htab_delete): Likewise.
1405         * libio/freopen.c (freopen): Likewise.
1406         * libio/freopen64.c (freopen64): Likewise.
1407         * locale/programs/ld-collate.c (collate_read): Likewise.
1408         * misc/fstab.c (libc_freeres_fn): Likewise.
1409         * posix/glob.c (globfree): Likewise.
1411 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1413         * string/Makefile (strop-tests): Add memmem.
1414         * string/test-memmem.c: New file.
1415         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1416         (test_init): Size buf1 according to BUF1PAGES.
1418 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1420         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1421         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1422         (CFLAGS-scanf17.c): New.
1423         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1424         * stdio-common/scanf15.c (main): Likewise.
1425         * stdio-common/scanf16.c: New file.
1426         * stdio-common/scanf17.c: New file.
1428 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1430         * resolv/res_send.c (send_dg): If we already have one of two
1431         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1432         use the one answer insted of failing.
1434 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1436         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1437         being executed on PowerPC as the expected result exceeds IBM
1438         long double 128 __LDBL_MAX__.
1440 2008-05-21  Roland McGrath  <roland@redhat.com>
1442         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1444         * Makefile (check-data): Use $(abi-name) before other guesses.
1445         Look in $(add-ons) dirs before scripts/data/.
1446         * elf/Makefile (check-data): Likewise.
1448         * scripts/soversions.awk: Grok ABI line.
1449         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1450         Emit definition for abi-name variable.
1452 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1454         * string/endian.h: Define new fixed-size hto* and *toh macros only
1455         if [__USE_BSD].
1457         * iconvdata/Depend: Add localedata.
1459 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1461         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1463 2008-05-08  David S. Miller  <davem@davemloft.net>
1465         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1466         HIDDEN_JUMPTARGET.
1467         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1468         (__SYSCALL_CLOBBERS): Remove %g* registers.
1469         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1470         (__SYSCALL_CLOBBERS): Likewise.
1471         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1472         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1474 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1476         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1477         (CALL_ERRNO_LOCATION): Define.
1478         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1479         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1480         (CALL_ERRNO_LOCATION): Define.
1481         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1482         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1483         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1485 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1487         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1488         variable.
1490 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1492         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1493         (FIRST_FRAME_POINTER): Define.
1495 2008-05-09  David S. Miller  <davem@davemloft.net>
1497         * sysdeps/sparc/sparc64/backtrace.c: New file.
1499 2008-05-14  David S. Miller  <davem@davemloft.net>
1501         * sysdeps/sparc/machine-gmon.h: New file.
1502         * sysdeps/sparc/sparc-mcount.S: Likewise.
1503         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1504         sysdep_routines in gmon directory.
1506 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1508         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1510 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1512         * resolv/res_query.c (__libc_res_nquery): In case one of two
1513         answer was too short don't try to read that answer's header.
1515         * resolv/res_send.c (send_dg): In case of timeout and there are
1516         two queries and one has been answered, return value indicating
1517         success.
1519 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1521         * nscd/cache.c (cache_add): Take additional parameter specifying
1522         whether this is in response of a cache refill.  Check alignment
1523         of package data.  Revamp waking of pruning thread.
1524         (prune_cache): Small optimization.
1525         * nscd/nscd.h: Adjust cache_add prototypes.
1526         * nscd/aicache.c: Adjust cache_add calls.
1527         * nscd/grpcache.c: Likewise.
1528         * nscd/hstcache.c: Likewise.
1529         * nscd/initgrcache.c: Likewise.
1530         * nscd/pwdcache.c: Likewise.
1531         * nscd/servicescache.c: Likewise.
1532         * nscd/connections.c (restart): Really disable cache use before
1533         exec attempt.  If it fails, reenable cache.
1534         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1535         time to max to be able to notice concurrent cache additions.  Unlock
1536         prune_lock while performing gc.  Afterwards compute wakeup time with
1537         current wakeup_time value in mind.
1539 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1541         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1543         * nscd/mem.c (gc): Correctly determine highest used array element
1544         in mark.
1546         * nscd/mem.c (markrange): Add assert to check entries are all
1547         aligned.  Small cleanup in bitmap use.
1549         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1550         blockoff of type nscd_ssize_t.
1551         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1552         (mempoll_alloc): Record block offset and not address.
1554         * nscd/mem.c (gc): Fix test for stack overuse.
1556         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1557         more asserts.
1559         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1560         entry is available, believe it.
1562         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1563         no answers return NSS_STATUS_NOTFOUND.
1564         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1565         buffer does not have any content.
1567 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1569         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1571         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1572         lookup, don't assign canon unconditionally.
1574 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1576         * string/Makefile (distribute): Add str-two-way.h.
1578 2008-03-29  Eric Blake  <ebb9@byu.net>
1580         Rewrite string searches to O(n) rather than O(n^2).
1581         * string/str-two-way.h: New file.  For linear fixed-allocation
1582         string searching.
1583         * string/memmem.c: New implementation.
1584         * string/strstr.c: New implementation.
1585         * string/strcasestr.c: New implementation.
1587 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1589         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1590         opr.ctx_type.
1591         (calc_first): Initialize constraint field.
1592         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1593         Use search_duplicated_node to avoid loops.  Fix grammar.
1594         (duplicate_node): Merge constraint field for all node types.
1595         (calc_eclosure_iter): Look at constraint field for all node types.
1596         * posix/regex_internal.c (create_cd_newstate): Don't look at
1597         create_cd_newstate.
1599 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1601         [BZ #6428]
1602         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1604         [BZ #6442]
1605         * string/endian.h: Add macros for fixed-size endian conversion.
1606         * bits/byteswap.h: Allow inclusion from <endian.h>.
1607         * sysdeps/i386/bits/byteswap.h: Likewise.
1608         * sysdeps/ia64/bits/byteswap.h: Likewise.
1609         * sysdeps/s390/bits/byteswap.h: Likewise.
1610         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1611         * string/Makefile (tests): Add tst-endian.
1612         * string/tst-endian.c: New file.
1614         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1615         Patch by Reuben Thomas.
1617 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1619         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1621 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1623         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1625         [BZ #6461]
1626         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1627         Add missing braces.
1628         (BODY for __gconv_transform_internal_ascii): Likewise.
1630         [BZ #6472]
1631         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1632         to be treated like link-local addresses.
1633         (match_prefix): Don't treat IPv4 loopback address special when
1634         converting to v4 mapped addressed.
1636         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1637         if necessary.
1638         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1639         * posix/tst-rfc3484-2.c: Likewise.
1640         * posix/tst-rfc3484-3.c: Likewise.
1642         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1643         and SCTP.
1645         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1647         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1649         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1651 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1653         * po/lt.po: New file.  From Lituanian translation team.
1655 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1657         Introduce TLS descriptors for i386 and x86_64.
1658         * include/inline-hashtab.h: New file, copied from 2005's
1659         libiberty, with fix for memory leak imported afterwards by
1660         Glauber de Oliveira Costa.
1661         * elf/tlsdeschtab.h: New file.
1662         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1663         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1664         (CHECK_STATIC_TLS): Move to...
1665         * elf/dynamic-link.h: ... this file.
1666         (TRY_STATIC_TLS): New macro.
1667         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1668         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1669         R_386_TLS_DESC): Define.
1670         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1671         binutils.
1672         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1673         R_X86_64_TLSDESC): Define.
1674         (R_386_NUM, R_X86_64_NUM): Adjust.
1675         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1676         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1677         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1678         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1679         release tlsdesc_table.
1680         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1681         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1682         (elf_machine_rel): Handle R_386_TLS_DESC.
1683         (elf_machine_rela): Likewise.
1684         (elf_machine_lazy_rel): Likewise.
1685         (elf_machine_lazy_rela): Likewise.
1686         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1687         * sysdeps/i386/dl-tlsdesc.S: New file.
1688         * sysdeps/i386/dl-tlsdesc.h: New file.
1689         * sysdeps/i386/tlsdesc.c: New file.
1690         * sysdeps/i386/tlsdesc.sym: New file.
1691         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1692         tlsdesc_table.
1693         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1694         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1695         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1696         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1697         release tlsdesc_table.
1698         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1699         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1700         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1701         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1702         (elf_machine_rela): Likewise.
1703         (elf_machine_lazy_rel): Likewise.
1704         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1705         (__tls_get_addr): Do not declare for non-shared compiles.
1706         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1707         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1708         * sysdeps/x86_64/tlsdesc.c: New file.
1709         * sysdeps/x86_64/tlsdesc.sym: New file.
1710         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1711         tlsdesc_table for both 32- and 64-bit structs.
1713 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1715         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1716         its own function.  This reduces the frame setup costs and more.
1718 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1720         [BZ #3406]
1721         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1722         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1724 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1726         * io/openat.c (__openat_2): Also pass fd to __openat.
1727         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1728         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1730         * string/tester.c (test_memcmp): Add a few more tests.
1731         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1733 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1735         * nscd/cache.c (cache_add): Before returning with failure and this
1736         is the first use of the record, mark it as unusable.
1737         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1738         reporting a failure.
1739         * nscd/grpcache.c: Likewise
1740         * nscd/hstcache.c: Likewise.
1741         * nscd/initgrcache.c: Likewise.
1742         * nscd/pwdcache.c: Likewise.
1743         * nscd/servicescache.c: Likewise.
1745 2008-05-10  Roland McGrath  <roland@redhat.com>
1747         [BZ #6505]
1748         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1750 2008-05-08  David S. Miller  <davem@davemloft.net>
1752         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1754         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1755         (__ieee754_y0l): Likewise.
1756         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1757         (__ieee754_y1l): Likewise.
1758         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1759         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1760         frexpl and ldexpl.  math_private.h provides them and the latter
1761         is not even used.
1762         (__log1pl): Use __frexpl.
1764 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1766         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1767         prototypes.
1768         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1769         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1770         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1771         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1772         af==AF_UNSPEC.
1773         (_nss_nis_gethostbyname4_r): New function.
1774         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1775         Change to also handle af==AF_UNSPEC.
1776         (get_tablename): New function.  Use it to avoid duplication.
1777         (_nss_nisplus_gethostbyname4_r): New function.
1778         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1779         available.
1780         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1781         * nss/nss.h: Define struct gaih_addrtuple.
1782         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1783         af==AF_UNSPEC.
1784         (_nss_files_gethostbyname4_r): New function.
1785         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1786         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1787         calls.
1788         * resolv/res_query.c (__libc_res_nquery): Take two additional
1789         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1790         look up IPv4 and IPv6.
1791         Change all callers.
1792         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1793         for an additional query and answer buffer.  Pass to send_vc and
1794         send_dg.
1795         (send_vc): Send possibly two requests and receive two answers.
1796         (send_dg): Likewise.
1797         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1798         __libc_res_nquery.
1799         (_nss_dns_gethostbyname4_r): New function.
1800         (gaih_getanswer_slice): Likewise.
1801         (gaih_getanswer): Likewise.
1802         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1803         __libc_res_nquery call.
1804         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1805         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1806         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1807         available.
1809 2008-05-05  David S. Miller  <davem@davemloft.net>
1811         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1812         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1814 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1816         Fix termios bit macros.
1817         Move *DLY definitions where they belong, in termios.h.
1818         Add *[0-3] definitions.
1819         Fixes confusion between VT and FF.
1820         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1821         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1822         are already defined to avoid collision with termios.h.
1823         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1824         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1825         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1826         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1827         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1828         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1829         VTDLY, VT0, VT1): New macros.
1830         [__USE_GNU] (OLCUC): Change value of macro.
1831         [__USE_XOPEN] (OFILL): New macro.
1832         [__USE_BSD] (CRTSCTS): Change value.
1833         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1834         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1835         (B7200, B14400, B28800, B76800): New macros.
1837 2008-05-01  David S. Miller  <davem@davemloft.net>
1839         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1840         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1841         (gen-as-const-headers): Add it.
1842         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1843         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1844         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1845         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1847         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1848         six system call parameters.
1849         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1851 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1853         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1854         RUSAGE_LWP.
1855         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1856         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1858 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1860         * stdlib/tst-setcontext.c: Include unistd.h.
1862 2008-04-25  David S. Miller  <davem@davemloft.net>
1864         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1865         Pass "union semun" properly in to sys_ipc, it must be passed
1866         by value, not by reference.
1868 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1870         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1871         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1872         * nscd/connections.c (mem_in_flight): Likewise.
1874         * nscd/nscd.h (dbs): Make hidden.
1876         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1877         Avoid returning -1, return 0 instead.
1879 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1881         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1883 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1885         [BZ #5209]
1886         * sysdeps/unix/sysv/linux/times.c: New file.
1888         [BZ #5381]
1889         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1890         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1891         prototype.
1892         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1893         appropriate mem_in_flight element.
1894         (gc): Take allocations which have not yet been committed to the
1895         database into account.
1896         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1897         Reset mem_in_flight before returning.
1898         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1899         cue it up in mem_in_flight_list.
1900         * nscd/aicache.c: Adjust mempool_alloc call.
1901         * nscd/grpcache.c: Likewise.
1902         * nscd/hstcache.c: Likewise.
1903         * nscd/initgrcache.c: Likewise.
1904         * nscd/pwdcache.c: Likewise.
1905         * nscd/servicescache.c: Likewise.
1906         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1907         of -fpie.
1909         * nscd/connections.c (handle_request): Provide better error message
1910         in case SELinux forbids the service.
1912         * version.h (VERSION): Bump to 2.8.90.
1914 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1916         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1918 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1920         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1921         Also use for 32-bit.
1922         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1923         __nextafter instead of nextafter to avoid local PLT.
1924         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1925         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1927         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1929         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1930         __fe_nomask_env.
1931         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1932         <fenv_libc.h> instead of <fenv.h>.
1933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1936         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1938         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1939         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1940         function from fegetexcept and make old name weak alias.
1941         * include/fenv.h: Declare __fegetexcept.
1942         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1943         fegetexcept.
1944         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1945         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1946         to fetestexcept.
1947         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1948         instead of frexpl to avoid local PLT.
1949         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1950         ilogbl to avoid local PLT.
1951         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1952         instead of ldexpl to avoid local PLT.
1953         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1954         __roundl not roundl to avoid local PLT.
1955         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1956         local PLTs.  Use __sincosl instead of separate sinl and cosl
1957         calls.
1958         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1960         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1961         version for ppc64 to 2.4.21 since without it makecontext will fail.
1963         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1964         to the ABI in use.
1965         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1966         .__tls_get_addr.
1967         [__powerpc64__] (TLS_GD): Likewise.
1969 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1971         [BZ #4997]
1972         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1973         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1974         mantissa.
1975         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1976         Likewise.  Also account for when x is an odd number between 2^52
1977         and 2^53-1.
1978         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1979         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1980         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1981         detect aforementioned erroneous conditions.
1983 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1985         * configure.in: Check for -fno-section-anchors in addition to
1986         -fno-toplevel-reorder.
1988 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1990         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1992         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1993         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1994         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1995         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1996         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1997         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1999 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2001         [BZ #5443]
2002         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2003         * time/alt_digit.c: Likewise.
2004         * wcsmbs/wcsmbsload.c: Likewise.
2006 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2008         * version.h (VERSION): Bump to 2.8.
2010         * timzeone/asia: Update from tzdata2008b.
2011         * timezone/backward: Likewise.
2012         * timezone/europe: Likewise.
2013         * timezone/northamerica: Likewise.
2014         * timezone/southamerica: Likewise.
2015         * timezone/iso3166.tab: Likewise.
2016         * timezone/leapseconds: Likewise.
2017         * timezone/zone.tab: Likewise.
2018         * timezone/private.h: Update from tzcode2008a.
2019         * timezone/zdump.c: Likewise.
2020         * timezone/zic.c: Likewise.
2022 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2024         [BZ #5741]
2025         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2026         Define additonal Data Cache Block instruction macros.
2027         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2028         Replace dcbst with dcbf and sync with sync/isync.
2030 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2032         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2033         Always set ELF_RTYPE_CLASS_PLT.
2034         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2036 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2038         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2039         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2040         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2041         For ISA 2.01 and later replace mftb with mfspr 268.
2043 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2045         [BZ #5768]
2046         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2047         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2049 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2051         [BZ #5768]
2052         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2053         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2054         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2055         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2057 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2059         * stdlib/tst-makecontext.c (othervar): New variable.
2060         (cf): Test sign extending the argument to long.
2062 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2064         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2065         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2066         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2067         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2068         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2069         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2070         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2072 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2074         * elf/Makefile (tests): Substitute tests-vis-yes here.
2075         (tests-vis-yes): Delete.
2076         (modules-name, modules-vis-yes): Similarly.
2078 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2080         [BZ #4407]
2081         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2082         Preserve sign in signgamp when x is zero.
2084 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2086         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2087         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2088         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2089         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2090         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2091         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2093 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2095         [BZ #4314]
2096         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2097         buffers.
2099         [BZ #5209]
2100         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2101         a reserved error value.
2103         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2104         value to check for correct sign extension.
2106         [BZ #5436]
2107         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2108         Copy 64-bit parameter values even though this is not required in
2109         the standard.
2111         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2112         PC save.
2114 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2116         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2117         PC save.
2119 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2121         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2123 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2125         [BZ #5998]
2126         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2127         in line-buffered stream failed.
2128         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2130 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2132         [BZ #6024]
2133         * scripts/abi-versions.awk: If the version specified by
2134         --enable-oldest-abi is older than the first version for this
2135         architecture, use the default version.
2137         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2138         as well when ignoring the whole category.
2140 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2142         [BZ #6042]
2143         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2144         ETHERTYPE_* definitions.
2145         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2147 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2149         * stdlib/mbtowc.c (__no_r_state): Remove.
2150         (mbtowc): New static state variable.  Use it instead of
2151         __no_r_state.
2152         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2153         (__wctomb_state): New hidden variable.
2154         (wctomb): Use __wctomb_state instead of __no_r_state.
2155         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2156         (__wctomb_state): New extern decl.
2157         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2159 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2161         [BZ #5475]
2162         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2164 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2166         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2168 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2170         * po/nl.po: Update from translation team.
2172 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2174         [BZ #6007]
2175         * string/strfry.c: Handle empty strings again.
2177 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2179         [BZ #5443]
2180         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2181         before looking for translation.
2182         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2183         * locale/freelocale.c: Likewise.
2184         * locale/newlocale.c: Likewise.
2185         * locale/setlocale.c: Likewise.
2186         Based partially on a patch by ryo@np.css.fujitsu.com.
2188 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2190         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2191         acquiring wrlock.  Do conv_tab allocation while holding lock.
2192         * intl/Makefile: Add rules to build and run tst-gettext6.
2193         * intl/tst-gettext6.c: New test.
2194         * intl/tst-gettext6.sh: New file.
2196 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2198         * po/nl.po: Update from translation team.
2200         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2201         provided through st_blksize, try the default size before giving up.
2203 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2205         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2207         [BZ #5939]
2208         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2210         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2211         error message.  POSIX today does not require the messages to be in
2212         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2214         [BZ #5979]
2215         * sunrpc/auth_unix.c: Unify printed strings.
2216         * sunrpc/clnt_tcp.c: Likewise.
2217         * sunrpc/clnt_udp.c: Likewise.
2218         * sunrpc/clnt_unix.c: Likewise.
2219         * sunrpc/svc_tcp.c: Likewise.
2220         * sunrpc/svc_udp.c: Likewise.
2221         * sunrpc/svc_unix.c: Likewise.
2222         * sunrpc/xdr.c: Likewise.
2223         * sunrpc/xdr_array.c: Likewise.
2224         * sunrpc/xdr_rec.c: Likewise.
2225         * sunrpc/xdr_ref.c: Likewise.
2226         * locale/programs/ld-time.c (time_finish): Unify messages.
2227         * locale/programs/locfile.c (handle_copy): Fix typo.
2228         * nscd/nscd.c (options): Fix typo.
2230         [BZ #5995]
2231         * stdlib/strtod_l.c: Use correct sign for result in one more
2232         underflow case.
2233         Patch by Eric Blake <ebb9@byu.net>.
2235 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2237         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2238         and creat system calls.
2239         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2240         call.
2241         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2242         system calls.
2243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2244         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2245         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2247 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2249         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2250         <linux/limits.h> has defined it.
2251         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2252         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2253         headers.
2254         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2255         it instead of ARG_MAX.
2257 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2259         * posix/gai.conf: Fix comment for scope nullbits.
2260         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2261         default to 128 bits for v4 mapped addresses.
2263 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2265         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2266         ptrace call to get the ieee_instruction_pointer from the kernel.
2267         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2268         ptrace call to set the ieee_instructtion_pointer.
2269         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2270         Add comment that ieee_instruction_pointer is always 0.
2272 2008-03-09  Andreas Jaeger  <aj@suse.de>
2274         [BZ #5857]
2275         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2276         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2277         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2279         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2280         (rint_test): Likewise.
2282 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2284         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2285         call.
2286         (__nisfind_server): Similar for open readColdStartFile call.
2287         Patch partially by Jim Meyering.
2288         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2289         around internal_setent call.
2291         * po/vi.po: New Vietnamese translation.
2293         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2294         ADJ_OFFSET_SS_READ.
2296         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2297         remove CLONE_STOPPED.
2299 2008-02-10  Jim Meyering  <meyering@redhat.com>
2301         Remove useless "if" before "free":
2302         * elf/ldconfig.c (parse_conf_include): Likewise.
2303         * gmon/gmon.c (weak_alias): Likewise.
2304         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2305         * inet/rcmd.c (__validuser2_sa): Likewise.
2306         * intl/bindtextdom.c (set_binding_values): Likewise.
2307         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2308         * libio/genops.c (save_for_backup): Likewise.
2309         * libio/wgenops.c (save_for_wbackup): Likewise.
2310         * locale/programs/ld-collate.c (collate_read): Likewise.
2311         * locale/programs/linereader.c (get_string): Likewise.
2312         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2313         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2314         * resolv/res_debug.c (do_section): Likewise.
2315         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2316         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2317         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2318         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2319         * time/tzset.c (tzset_internal): Likewise.
2321 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2323         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2324         of ASSEMBLER.
2326 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2328         [BZ #5903]
2329         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2330         not stream for output file.  Open output file here.
2331         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2332         and output file name.
2333         (process_fd): Likewise.
2334         (process_file): Likewise.
2335         (main): Adjust callers of changed functions.
2336         * iconv/iconv_prog.h: Adjust prototype.
2338 2008-03-09  Andreas Jaeger  <aj@suse.de>
2340         [BZ #5753]
2341         * sysdeps/ia64/ieee754.h: Use protected namespace
2342         __BIG_ENDIAN/__LITTLE_ENDIAN.
2343         * sysdeps/ieee754/ieee754.h: Likewise.
2344         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2346 2008-03-08  Roland McGrath  <roland@frob.com>
2348         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2349         ignore a signal that came from a machine exception, treat it as a
2350         fatal core-dump signal instead.
2351         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2353         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2354         Clear DF bit in thread state's eflags.
2355         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2357 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2359         [BZ #5774]
2360         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2361         of NAN(...) sequence.
2362         * stdlib/Makefile (tests): Add tst-strtod6.
2363         * stdlib/tst-strtod6.c: New file.
2365         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2367         [BZ #5762]
2368         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2369         putting offending option character in quotes.  Clean up error
2370         messages.
2371         * po/be.po: Adjust msgstr in translation file.
2372         * po/bg.po: Likewise.
2373         * po/ca.po: Likewise.
2374         * po/cs.po: Likewise.
2375         * po/da.po: Likewise.
2376         * po/de.po: Likewise.
2377         * po/es.po: Likewise.
2378         * po/fr.po: Likewise.
2379         * po/hr.po: Likewise.
2380         * po/ko.po: Likewise.
2381         * po/nl.po: Likewise.
2382         * po/rw.po: Likewise.
2383         * po/sk.po: Likewise.
2384         * po/sv.po: Likewise.
2385         * po/tr.po: Likewise.
2386         * po/zh_CN.po: Likewise.
2387         * po/zh_TW.po: Likewise.
2389         [BZ #5760]
2390         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2391         Patch by Roland Bless <roland@bless.de>.
2393         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2394         .o file.
2395         * elf/Makefile (routines): Add dl-sysdep.
2396         (elide-routines.os): Likewise.
2398 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2400         [BZ #5786]
2401         * elf/dl-sysdep.c: Undefine ROUND after use.
2402         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2403         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2404         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2405         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2406         to ...
2407         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2408         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2409         if necessary.
2410         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2412         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2413         _dl_tls_get_addr_soft element.
2414         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2415         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2416         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2417         GLRO.
2418         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2419         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2420         of internal_function.
2422         * stdlib/Makefile (aux): Add tens_in_limb.
2423         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2424         * stdlib/tens_in_limb.c: ...here.  New file.
2426         [BZ #5778]
2427         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2428         __statfs_chown_restricted.
2429         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2430         for _PC_CHOWN_RESTRICTED.
2431         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2432         Implement __statfs_chown_restricted.
2433         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2434         _POSIX_CHOWN_RESTRICTED value to zero.
2435         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2436         defined to zero.
2438         * sysdeps/x86_64/rtld-memset.c: New file.
2440 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2442         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2444         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2445         Barcelona machine.  Make default fall through branch of
2446         __x86_64_preferred_memory_instruction check as the integer code path.
2448 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2450         * sysdeps/x86_64/cacheinfo.c
2451         (__x86_64_preferred_memory_instruction): New variable.
2452         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2454         * sysdeps/x86_64/memset.S: Rewrite.
2456 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2458         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2459         __obstack_printf_chk): New prototypes.
2460         (__vasprintf_chk, __vdprintf_chk,
2461         __obstack_vprintf_chk): Likewise.
2462         Add libc_hidden_proto.
2463         * libio/obprintf.c
2464         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2465         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2466         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2467         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2468         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2469         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2470         __obstack_vprintf_chk): New prototypes.
2471         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2472         obstack_vprintf): New inlines.
2473         * debug/dprintf_chk.c: New file.
2474         * debug/vdprintf_chk.c: New file.
2475         * debug/asprintf_chk.c: New file.
2476         * debug/vasprintf_chk.c: New file.
2477         * debug/obprintf_chk.c: New file.
2478         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2479         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2480         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2481         @@GLIBC_2.8.
2482         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2483         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2484         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2485         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2486         libc_hidden_proto.
2487         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2488         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2489         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2490         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2491         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2492         @@GLIBC_2.8.
2493         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2494         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2495         obstack_vprintf_chk.
2496         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2497         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2498         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2499         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2500         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2501         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2503 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2505         [BZ #5779]
2506         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2507         Patch by Roy Marples <roy@marples.name>.
2509         [BZ #5736]
2510         * malloc/malloc.c: Fix typo in comment.
2512         [BZ #5627]
2513         * locale/iso-639.def: Add Shuswap.
2515 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2517         [BZ #5790]
2518         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2519         overwrite *h_errnop/*errnop values from getanswer_r in case of
2520         failure.
2522 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2524         [BZ #5818]
2525         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2526         (verify_persistent_db): Remove one unnecessary test and add a new one
2527         for bad configuration.
2528         (nscd_init): Improve error reported when persistent database cannot
2529         be reused.
2530         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2531         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2532         .suggested_module and .max_db_size and case config file says the
2533         values are zero.
2534         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2536         [BZ #5854]
2537         * nis/ypclnt.c (yp_order): Fix handling of return value of
2538         do_ypcall_tr call.
2539         Patch by Jeff Moyer <jmoyer@redhat.com>.
2541         * po/fr.po: Update from translation team.
2543 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2544             Carlos O'Donell <carlos@systemhalted.org>
2546         [BZ #5012]
2547         * FAQ.in: Describe why glibc needs to be compiled with
2548         optimization.
2550 2008-02-19  Roland McGrath  <roland@redhat.com>
2552         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2554 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2556         [BZ #5737]
2557         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2558         __USE_MISC is defined.
2560 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2562         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2563         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2564         sys/timerfd.h.
2565         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2566         timerfd_gettime, timerfd_settime.
2567         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2568         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2570 2008-02-08  Roland McGrath  <roland@redhat.com>
2572         * elf/elf.h (NT_PPC_SPE): New macro.
2574 2008-02-06  Roland McGrath  <roland@redhat.com>
2576         * Makerules ($(common-objpfx)sysd-rules):
2577         Depend on $(sysdep-makeconfigs).
2579 2008-01-31  Roland McGrath  <roland@redhat.com>
2581         [BZ #5442]
2582         * configure.in: Use -print-file-name if it yields a directory,
2583         for each of include and include-fixed.
2584         * configure: Regenerated.
2586         * Makeconfig (sysd-rules-targets): New variable.
2587         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2588         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2590 2008-01-30  Roland McGrath  <roland@redhat.com>
2592         * manual/libc.texinfo: Update back-cover text.
2594         * elf/elf.h (NT_386_TLS): New macro.
2596 2008-01-29  Roland McGrath  <roland@redhat.com>
2598         * Makeconfig (sysd-rules-patterns): New variable.
2599         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2600         (check-inhibit-asm): New canned sequence, replaces ...
2601         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2602         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2603         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2604         (CFLAGS-rtld): Variable removed.
2606 2008-01-24  Roland McGrath  <roland@redhat.com>
2608         * configure.in: Let configure fragments set base_os.
2609         * configure: Regenerated.
2611 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2613         * po/ko.po: Update from translation team.
2615 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2617         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2619 2008-01-12  Andreas Jaeger  <aj@suse.de>
2621         [BZ #5040]
2622         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2623         Add EPOLLRDHUP.
2625 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2627         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2628         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2629         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2631 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2633         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2634         * elf/dl-close.c (_dl_close): Check for it.
2635         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2636         (_dl_allocate_static_tls): Likewise.
2637         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2638         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2639         to it.
2640         * elf/tst-tls16.c: New file.
2641         * elf/tst-tlsmod16a.c: New file.
2642         * elf/tst-tlsmod16b.c: New file.
2643         * elf/Makefile: Add rules to build and run tst-tls16.
2645 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2647         [BZ #5628]
2648         * bits/shm.h: Fix comment describing shmid_ds.
2649         * sysdeps/gnu/bits/shm.h: Likewise.
2650         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2651         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2652         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2653         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2654         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2655         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2656         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2657         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2658         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2660         [BZ #5607]
2661         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2662         prototypes.
2663         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2664         additional suffixes.
2665         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2666         Add optional functions mq_timedreceive and mq_timedsend.
2667         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2668         * conform/data/pthread.h-data: Fix prototype of
2669         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2670         * conform/data/semaphore.h-data: Allow time.h definitions.
2671         * conform/data/signal.h-data: Likewise.
2672         * conform/data/stdio.h-data: getw and putw are not required in v6.
2673         * conform/data/stdlib.h-data: Change setstate prototype.
2674         * conform/data/string.h-data: Fix strerror_r prototype.
2675         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2676         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2677         Fix readlink prototype.
2678         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2679         in6addr_loopback.
2680         * inet/netinet/in.h: Cleanup namespace.
2681         * posix/regex.h: Likewise.
2682         * resolv/netdb.h: Likewise.
2683         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2684         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2685         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2686         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2687         of names of in in6_addr.
2688         (default_precedence): Likewise.
2689         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2690         NULL definition.
2692 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2694         * conform/data/fmtmsg.h-data: Add missing allows.
2695         * conform/data/ftw.h-data: Likewise.
2696         * conform/data/inttypes.h-data: Likewise.
2697         * conform/data/math.h-data: Likewise.
2698         * conform/data/signal.h-data: Likewise.
2699         * conform/data/net/if.h-data: Likewise.
2700         * conform/data/netinet/in.h-data: Likewise.
2701         * conform/data/sys/socket.h-data: Likewise.
2703         [BZ #5614]
2704         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2705         (__strtok_r): Simplify.
2706         * string/tester.c (test_strtok_r): Add test case for futile search
2707         with single-character seach string.
2709 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2711         * po/ko.po: Update from translation team.
2713 2008-01-11  Andreas Jaeger  <aj@suse.de>
2715         [BZ #5600]
2716         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2717         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2718         kernel header.
2720 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2722         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2723         native interface lookup in all the relevant places.
2725 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2726             Ulrich Drepper  <drepper@redhat.com>
2728         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2729         field.  Use sockaddr_in6 for source_addr.
2730         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2731         (match_prefix): Likewise.
2732         (get_label): Likewise.
2733         (get_precedence): Likewise.
2734         (rfc3484_sort): Change to use indirect access to results array.
2735         Adjust to use of sockaddr_in6.  Replace service_order test with
2736         simple index comparison.
2737         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2738         service_order field.  Adjust qsort_t calls.  Access sorted result
2739         array indirectly through order array.
2740         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2741         * posix/tst-rfc3484-2.c: Likewise.
2742         * posix/tst-rfc3484-3.c: Likewise.
2744 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2746         [BZ #5541]
2747         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2748         pollfd structures.
2749         Patch by AndrĂ© Cruz.
2751         [BZ #5545]
2752         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2753         (clnt_spcreateerror): Likewise.
2755         [BZ #5553]
2756         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2757         (public_mEMALIGn): Likewise.
2758         Patch mostly by Daniel Jacobowitz.
2760 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2762         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2763         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2764         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2765         * stdlib/tst-makecontext2.c: New test.
2767 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2769         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2770         defined.
2771         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2772         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2773         transliteration hooks and REINIT_PARAMS afterwards.
2774         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2775         status.
2776         (REINIT_PARAMS): Define.
2777         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2778         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2779         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2780         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2781         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2782         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2783         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2784         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2785         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2786         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2787         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2788         * iconvdata/tst-iconv7.c: New test.
2790 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2792         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2794 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2796         [BZ #5112]
2797         * nscd/connections.c (restart): Fix condition.
2799 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2801         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2802         __ctype_toupper_loc): Add __THROW.
2804 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2806         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2807         recognition of interface family.
2809         * posix/getconf.c: Update copyright year.
2810         * nss/getent.c: Likewise.
2811         * iconv/iconvconfig.c: Likewise.
2812         * iconv/iconv_prog.c: Likewise.
2813         * elf/ldconfig.c: Likewise.
2814         * catgets/gencat.c: Likewise.
2815         * csu/version.c: Likewise.
2816         * elf/ldd.bash.in: Likewise.
2817         * elf/sprof.c (print_version): Likewise.
2818         * locale/programs/locale.c: Likewise.
2819         * locale/programs/localedef.c: Likewise.
2820         * nscd/nscd.c (print_version): Likewise.
2821         * debug/xtrace.sh: Likewise.
2822         * malloc/memusage.sh: Likewise.
2823         * malloc/mtrace.pl: Likewise.
2824         * debug/catchsegv.sh: Likewise.
2826 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2828         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2829         second lookup.
2831 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2833         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2834         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2836 2007-12-17  Roland McGrath  <roland@redhat.com>
2838         * inet/ether_line.c (ether_line): Remove unused variable.
2840 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2842         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2843         and winp.
2844         * login/openpty.c (openpty): Likewise.
2845         * login/pty.h (openpty, forkpty): Likewise.
2846         * manual/terminal.texi (openpty, forkpty): Likewise.
2848 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2850         * malloc/malloc.c (public_cALLOc): For arenas other than
2851         main_arena, count all bytes inside the mprotect_size range of the
2852         heap as uninitialized.
2854 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2856         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2857         executable stacks.
2859         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2860         mTRIm for all of them.
2861         (mTRIm): Additionally iterate over all free blocks and use madvise
2862         to free memory for all those blocks which contain at least one
2863         memory page.
2864         * malloc/tst-trim1.c: New file.
2865         * malloc/Makefile (tests): Add tst-trim1.
2867         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2869 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2871         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2872         First cast argument to long
2873         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2874         Return long.
2875         (__vdso_clock_gettime): Likewise.
2876         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2877         return long.
2879 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2881         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2882         * locale/nl_langinfo_l.c: Real implementation, copied from
2883         nl_langinfo.c.
2884         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2886 2007-12-01  Jim Meyering  <meyering@redhat.com>
2888         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2889         that would inhibit utf8-optimization of a regexp containing line-
2890         or buffer-anchors, e.g., `^', `$'.
2892 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2894         * time/bug-getdate1.c (do_test): Don't use century values which
2895         aren't valid on 32-bit systems.
2897 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2899         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2900         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2901         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2902         __strcat_g, __strncat_g): Add __asm__.
2904 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2906         [BZ #5477]
2907         * io/fchmodat.c: Fix typo in stub_warning use.
2908         Patch by Petr Salinger.
2910 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2912         * iconvdata/hp-thai8.c: New file.
2913         * iconvdata/Makefile: Add rules for hp-thai8.c.
2914         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2915         * iconvdata/gconv-modules: Likewise.
2917         [BZ #5464]
2918         * iconvdata/hp-greek8.c: New file.
2919         * iconvdata/Makefile: Add rules for hp-greek8.c.
2920         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2921         * iconvdata/gconv-modules: Likewise.
2923         [BZ #5463]
2924         * iconvdata/hp-turkish8.c: New file.
2925         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2926         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2927         * iconvdata/gconv-modules: Likewise.
2929         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2930         (shrink_heap): ... this new function.
2931         (heap_trim): Call shrink_heap instead of grow_heap.
2933         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2934         case don't call alloc_perturb.
2936 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2938         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2939         possible.
2940         * sysdeps/unix/sysv/linux/kernel-features.h
2941         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2942         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2944 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2946         [BZ #5424]
2947         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2948         * stdio-common/Makefile (tests): Add bug22.
2949         * stdio-common/bug22.c: New file.
2951         [BZ #5451]
2952         * time/getdate.c: Fix filling in default values.
2953         * time/bug-getdate1.c: New file.
2954         * time/Makefile: Add rules to build and run bug-getdate1.
2956         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2957         * iconvdata/ebcdic-es.c: Likewise.
2958         * iconvdata/ebcdic-es-a.c: Likewise.
2959         * iconvdata/ebcdic-uk.c: Likewise.
2960         * iconvdata/iso8859-16.c: Likewise.
2961         * iconvdata/viscii.c: Likewise.
2962         * iconvdata/iso8859-9e.c: Likewise.
2963         * iconvdata/Makefile: Adjust appropriately.
2965         [BZ #5428]
2966         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2967         __need_wint_t.
2969 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2971         [BZ #5427]
2972         * iconvdata/hp-roman9.c: New file.
2973         * iconvdata/Makefile: Add rules for hp-roman9.c.
2974         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2975         * iconvdata/gconv-modules: Likewise.
2977         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2978         * iconvdata/Makefile: Adjust appropriately.
2980         [BZ #5441]
2981         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2982         structure, it's allocated with alloca.
2983         * stdio-common/Makefile (tests): Add bug21.
2984         * stdio-common/bug21.c: New file.
2986 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2988         [BZ #5452]
2989         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2990         keyword for gcc's braced-groups.
2992 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2994         [BZ #5454]
2995         * inet/ether_line.c: Strip hostname of whitespaces.
2996         * inet/Makefile (tests): Add tst-ether_line.
2997         * inet/tst-ether_line.c: New file.
2999 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3001         [BZ #5439]
3002         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3004         [BZ #5435]
3005         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3007         * stdlib/tst-setcontext.c: Catch the case where the links gets
3008         messed up and we do not reach main again.
3010         * po/ca.po: Update from translation team.
3012 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3014         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3015         * posix/regex.h (REG_ENOSYS): Likewise.
3016         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3018 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3020         * nscd/nscd.h (MAX_STACK_USE): Define.
3021         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3022         (gc): Initialize stack_used based on allocation in prune_cache.
3023         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3024         Clear array before use.
3026         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3027         memory allocation failed.
3028         * nscd/hstcache.c (cache_addhst): Likewise.
3029         * nscd/grpcache.c (cache_addgr): Likewise.
3030         * nscd/servicescache.c (cache_addserv): Likewise.
3031         * nscd/pwdcache.c (cache_addpw): Likewise.
3032         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3034 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3037         and creat system calls.
3039         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3041 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3043         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3044         Add netiucv/iucv.h.
3045         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3046         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3047         protocol.
3048         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3049         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3050         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3052 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3054         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3055         strncat): Define as macros to avoid compile errors.
3057         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3058         creat entries.
3060 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3062         [BZ #5382]
3063         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3064         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3065         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3066         overflow it.
3067         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3069         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3070         Return zero in case the thread library is not NPTL.
3072         [BZ #5375]
3073         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3074         initializing interface list.
3076         [BZ #5378]
3077         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3078         use result of nss_getgrgid_r if nothing was found.  For other
3079         error return with a failure.
3080         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3082         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3083         macro name.
3085 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3087         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3088         (get_scope): For IPv4 scope, use scopes table.
3089         (fini): Free scopes table if necessary.
3090         (free_scopelist): New function.
3091         (scopecmp): New function.
3092         (gaiconf_init): Also handle scopev4 entries.
3093         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3094         * posix/tst-rfc3484-2.c (do_test): Likewise.
3095         * posix/gai.conf: Document scopev4 defaults.
3096         * posix/Makefile (tests): Add tst-rfc3484-3.
3097         * posix/tst-rfc3484-3.c: New file.
3099         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3100         Teredo tunnels.
3101         * posix/gai.conf: Update for current default tables.
3103 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3105         * po/tr.po: Update from translation team.
3107 2007-11-18  Roland McGrath  <roland@frob.com>
3109         * manual/arith.texi (Remainder Functions): Spelling fix.
3110         From Shaun Silk <genix@mysoul.com.au>.
3112         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3114 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3116         * po/zh_CN.po: Update from translation team.
3118         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3119         Add sys/signalfd.h and sys/eventfd.h.
3121 2007-11-15  Bruno Haible  <bruno@clisp.org>
3123         [BZ #5346]
3124         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3125         union.
3126         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3127         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3128         it needs only fixed stack space. Delay the initialization of
3129         msgid_len until it is needed.
3131 2007-11-15  Andreas Jaeger  <aj@suse.de>
3133         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3134         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3136 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3138         * po/ko.po: Update from translation team.
3140 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3142         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3143         significantly.  The device type is also part of the ifinfomsg data.
3145         * po/sv.po: Update from translation team.
3146         * po/nl.po: Likewise.
3148         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3149         to wake up in 24 hours.
3151         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3153 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3155         * po/cs.po: Update from translation team.
3156         * po/pl.po: Likewise.
3158         * include/ifaddrs.h: Remove in6ai_temporary.
3159         (struct in6addrinfo): Add index element.
3160         Declare __check_native.
3161         * inet/Makefile (aux): Add check_native.
3162         * sysdeps/unix/sysv/linux/check_native.c: New file.
3163         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3164         IFA_F_TEMPORARY.  Pass back ifa_index.
3165         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3166         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3167         call __check_native if necessary.
3168         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3169         to sort addresses.  Pass information about the results.
3170         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3171         of rfc3484_sort interface.
3172         * posix/tst-rfc3484-2.c: Likewise.
3174         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3175         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3176         for _quicksort.
3177         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3178         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3179         on as third parameter to compare function and _quicksort.
3180         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3181         to the compare function.
3182         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3183         * Versions.def: Add GLIBC_2.8 for libc.
3185         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3186         * posix/tst-rfc3484-2.c: Likewise.
3188         * include/kernel-features.h: Moved to...
3189         * sysdeps/mach/hurd/kernel-features.h: ...here.
3191 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3193         * sysdeps/i386/i586/memcpy_chk.S: New file.
3194         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3195         * sysdeps/i386/i586/memset_chk.S: Likewise.
3197 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3199         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3200         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3201         list of interfaces.  Also store prefix length.
3202         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3203         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3204         prefix if source and destination address are in the same subnet.
3205         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3206         Always look for matching record in in6ai list.
3207         Correct source_addr_len value for IPv6->IPv4 converted records.
3209 2007-11-11  Roland McGrath  <roland@frob.com>
3211         * include/kernel-features.h: New file.
3213 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3215         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3216         complications for 64-bit platforms.
3218         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3219         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3220         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3221         open64_2.
3222         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3223         entries.
3224         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3225         * sysdeps/wordsize-64/alphasort.c: New file.
3226         * sysdeps/wordsize-64/alphasort64.c: New file.
3227         * sysdeps/wordsize-64/fseeko.c: New file.
3228         * sysdeps/wordsize-64/fseeko64.c: New file.
3229         * sysdeps/wordsize-64/ftello.c: New file.
3230         * sysdeps/wordsize-64/ftello64.c: New file.
3231         * sysdeps/wordsize-64/ftw.c: New file.
3232         * sysdeps/wordsize-64/ftw64.c: New file.
3233         * sysdeps/wordsize-64/iofgetpos.c: New file.
3234         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3235         * sysdeps/wordsize-64/iofopen.c: New file.
3236         * sysdeps/wordsize-64/iofopen64.c: New file.
3237         * sysdeps/wordsize-64/iofsetpos.c: New file.
3238         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3239         * sysdeps/wordsize-64/lockf.c: New file.
3240         * sysdeps/wordsize-64/lockf64.c: New file.
3241         * sysdeps/wordsize-64/mkostemp.c: New file.
3242         * sysdeps/wordsize-64/mkostemp64.c: New file.
3243         * sysdeps/wordsize-64/mkstemp.c: New file.
3244         * sysdeps/wordsize-64/mkstemp64.c: New file.
3245         * sysdeps/wordsize-64/scandir.c: New file.
3246         * sysdeps/wordsize-64/scandir64.c: New file.
3247         * sysdeps/wordsize-64/tmpfile.c: New file.
3248         * sysdeps/wordsize-64/tmpfile64.c: New file.
3249         * sysdeps/wordsize-64/versionsort.c: New file.
3250         * sysdeps/wordsize-64/versionsort64.c: New file.
3251         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3252         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3253         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3254         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3255         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3256         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3257         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3258         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3259         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3260         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3261         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3262         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3264         * crypt/sha256-crypt.c: Fix a comment.
3265         * crypt/sha512-crypt.c: Likewise.
3267 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3269         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3271 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3273         [BZ #5277]
3274         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3275         because output buffer is too small break, don't loop.
3276         * iconvdata/Makefile (tests): Add bug-iconv6.
3277         * iconvdata/bug-iconv6.c: New file.
3279 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3281         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3282         with size_t type.
3283         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3284         size_t.  Add casts where needed.
3286         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3287         old headers, don't call avc_has_perm if we don't have the
3288         permission information.
3290 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3292         * elf/rtld.c (dl_main): Use the page size to find the map start.
3294 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3296         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3297         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3299         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3300         when the lookup call failed.
3302         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3303         Add prune_cond and wakeup_time.
3304         (CACHE_PRUNE_INTERNAL): Define.
3305         Update declarations of prune_cache and setup_thread.
3306         * nscd/connections.c (dbs): Update initializers.
3307         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3308         (nscd_init): Default number of threads is now 4.
3309         (invalidate_cache): Take lock before calling prune_cache.
3310         (handle_request): If SELinux forbids the request, say so.
3311         (readylist_cond): Use static initializer.
3312         (nscd_run_prune): New function.  Used only by pruning threads.
3313         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3314         here.
3315         (fd_ready): Update nscd_run reference.
3316         (start_threads): No need to initialize readylist_cond.
3317         Start pruning threads separately.
3318         * nscd/nscd_setup_thread.c: Change return value type to int and always
3319         return 0.
3320         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3321         to int and return nonzero value if we can use the TID address hack.
3322         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3323         the database is later than the new entry's timeout, update the
3324         wakeup time and wake the cleanup thread.
3325         (prune_cache): Return seconds the next entry in the database is still
3326         valid.  Remove locking for pruning here.
3327         * nscd/nscd.conf: Document default number of threads.
3329 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3331         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3332         stack is properly aligned for the target function.
3333         Correct unwind info.
3335         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3336         when using auditing libraries.
3338 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3340         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3341         _nss_dns_getnetbyaddr2_r.
3342         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3343         extra parameter to getanswer_r.
3344         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3345         _nss_dns_getnetbyaddr2_r.
3347         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3348         gethstbynm3_r.
3349         * nscd/gethstbynm2_r.c: Remove.
3350         * nscd/gethstbynm3_r.c: New file.
3351         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3352         __gethostbyaddr_r.
3353         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3354         __gethostbyaddr_r compatibility wrapper.
3355         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3356         determining timeout of entry.
3357         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3358         __gethostbyaddr2_r.
3359         (addhstbyX): Pass reference to variable for TTL to lookup and
3360         cache_addhst.
3361         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3362         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3363         and __nss_next2.  Remove __nss_services_lookup.
3364         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3365         Add compat wrapper.
3366         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3367         __nss_next2.
3368         * nss/getXXent_r.c: Likewise.
3369         * nss/getnssent_r.c: Likewise.
3370         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3371         does not exist in module, try the optional second name.
3372         (__nss_next2): New function.
3373         (__nss_next): Now wrapper around __nss_next2.
3374         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3375         Declare __nss_next2.
3376         Adjust definition of db_lookup_function type.
3377         * nss/service-lookup.c: Define NO_COMPAT.
3378         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3379         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3380         * inet/ether_ntoh.c: Likewise.
3381         * sunrpc/netname.c: Likewise.
3382         * sunrpc/publickey.c: Likewise.
3383         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3384         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3385         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3386         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3387         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3389         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3391         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3393 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3395         [BZ #5204]
3396         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3397         * crypt/sha512c-test.c: Likewise.
3399         [BZ #5225]
3400         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3401         to keep track of end of %[ format string element.
3402         * stdio-common/Makefile (tests): Add bug20.
3403         * stdio-common/bug20.c: New file.
3405         [BZ #5222]
3406         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3407         path elements in counting mode.
3409 2007-10-27  Andreas Jaeger  <aj@suse.de>
3411         [BZ #5040]
3412         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3414         [BZ #3112]
3415         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3416         (__cleanup): Free shared library when exiting.
3417         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3418         (__cleanup): Free shared library when exiting.
3420 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3422         [BZ #2549]
3423         * math/libm-test.inc (check_float_internal): Support
3424         denormalized return.
3426 2007-10-23  Andreas Jaeger  <aj@suse.de>
3428         [BZ #5208]
3429         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3430         __LONG_LONG_PAIR to handle little endian byte order.
3431         Suggested by abhishekrai@google.com
3433 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3435         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3437 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3439         * nscd/cache.c (prune_cache): Move test for modified file outside
3440         of locking.
3442 2007-10-21  Andreas Jaeger  <aj@suse.de>
3444         * manual/texinfo.tex: Update to latest version.
3446         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3448         * manual/arith.texi (Status bit operations): Fix formatting.
3450         * manual/errno.texi (Error Messages): Fix formatting.
3452         * manual/sysinfo.texi (System Parameters): Fix formatting.
3454         * manual/libc.texinfo: Update VERSION and UPDATED.
3456 2007-10-19  Roland McGrath  <roland@redhat.com>
3458         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3460 2007-10-06  David S. Miller  <davem@davemloft.net>
3462         * configure.in: Add sparcv9v2 and sparc64v2.
3463         * scripts/config.sub: Likewise.
3464         * configure: Regenerate.
3465         * elf/elf.h (HWCAP_SPARC_N2): New.
3466         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3467         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3468         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3469         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3470         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3471         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3472         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3474 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3476         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3477         even if the poll result indicates there is data to read.
3478         Patch by Jeff Moyer <jmoyer@redhat.com>.
3480 2007-10-18  Roland McGrath  <roland@redhat.com>
3482         * elf/elf.h (NT_PPC_VMX): New macro.
3484 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3486         * version.h (VERSION): Set to 2.7.90.
3488 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3490         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3491         weak_alias.
3493 2007-10-17  Roland McGrath  <roland@frob.com>
3495         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3496         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3498 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3500         * version.h (VERSION): Bump to 2.7.
3501         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3503         [BZ #5186]
3504         * time/tzset.c (__tz_convert): Don't force testing for a change of
3505         TZ if not called from localtime.  But then also see whether the
3506         file changed, in case __use_tzfile is set.
3508         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3509         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3510         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3511         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3512         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3513         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3514         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3515         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3517 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3519         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3520         and admin selects to be able to replace the gai.conf file, lock
3521         data structures around the qsort call.
3523 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3525         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3526         new memset.
3527         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3528         too high for the improvements.  Implement bzero unconditionally for
3529         use in libc.
3531 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3532             Jakub Jelinek  <jakub@redhat.com>
3534         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3535         even when time_t is 32-bit.
3536         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3537         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3538         always set after the search.
3540 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3542         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3543         unreachable code on 32-bit machines.
3545 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3547         [BZ #5184]
3548         * time/strftime_l.c: Include stdbool.h.
3549         (my_strftime): New wrapper, old function renamed to...
3550         (__strftime_internal): ... new function.  Add tzset_called
3551         argument, pass it down to recursive calls, don't call tzset ()
3552         if already true, set to true after call to tzset ().
3554 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3556         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3557         into account when copying TZ string.
3559 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3561         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3562         num_transition rather than num_transitions - 1.
3564 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3566         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3567         PIC indirect jump.
3569         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3570         a local label rather than HIDDEN_JUMPTARGET.
3572 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3574         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3575         (init_cacheinfo): Initialize it.
3576         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3577         Always define bzero.
3578         Remove non-glibc code.
3579         * sysdeps/x86_64/bzero.S: Make an empty file.
3581 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3583         * sysdeps/x86_64/cacheinfo.c
3584         (__x86_64_preferred_memory_instruction): New.
3585         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3587         * sysdeps/x86_64/memset.S: Rewrite.
3589 2007-10-15  Roland McGrath  <roland@redhat.com>
3591         * po/libc.pot: Regenerated.
3593 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3595         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3596         pointers.
3598         [BZ #3425]
3599         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3600         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3601         address record to T_A/T_AAAA requests.
3603 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3605         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3607         * posix/glob.c: Add some branch prediction throughout.
3609         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3610         read from nscd.
3612         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3613         service_order.
3614         (rfc3484_sort): Make sure that even if qsort doesn't support
3615         stable sorting out sorting here is stable by comparing service_order.
3616         (getaddrinfo): Initialize service_order.
3617         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3618         service_order field to sorting structure.
3619         * posix/tst-rfc3484-2.c (do_test): Likewise.
3621         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3622         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3623         __tzset_parse_tz and updating of daylight, timezone, tzname into
3624         update_vars.
3625         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3626         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3627         happens in __tz_compute.
3628         * time/tzfile.c (__tzfile_read): Also read TZ string.
3629         (find_transition): Fold into __tzfile_compute.
3630         (__tzfile_compute): For times beyond the last transition try to
3631         use the TZ string.
3632         * timezone/tst-timezone.c: Information in daylight and tzname does
3633         change for Asia/Tokyo timezone with more concrete information.
3634         Remove the test.
3636         * include/stdio.h: Add libc_hidden_proto for ftello.
3637         * libio/ftello.c: Add libc_hidden_def.
3639         [BZ #1140]
3640         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3641         on the specified time and not the last entries in the file.  Move
3642         code to determine tzname[] to...
3643         (find_transition): ...here.  Add ugly guess for times before the
3644         first transition.
3646 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3648         [BZ #3195]
3649         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3650         no entry.
3651         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3652         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3653         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3654         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3656         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3657         read mechanism when there are no group members and avoid no-op
3658         read syscall in this case.
3660         [BZ #3242]
3661         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3662         (__readall): If reading failed due to EAGAIN error wait a bit
3663         and possibly try again.
3664         (__readvall): Likewise.
3666 2007-10-13  Bruno Haible  <bruno@clisp.org>
3668         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3669         when we cannot recode the message.
3671 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3673         [BZ #4359]
3674         * libio/__freading.c (__freading): Don't return true for
3675         write-only streams.  For read/write streams, check whether we
3676         performed a read operation already.
3677         * libio/Makefile (tests): Add tst-ext2.
3678         * libio/tst-ext2.c: New file.
3680 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3682         * locale/programs/repertoire.c (repertoire_read): Always free
3683         memory for repertoire file name [Coverity CID 270].
3685         * elf/cache.c (save_aux_cache): Free memory allocated for
3686         temporary file name [Coverity CID 267].
3688 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3690         * misc/Makefile (headers): Add bits/error.h.
3692 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3694         * posix/fnmatch_loop.c: Take rule index returned as part of
3695         findidx return value into account when accessing weights.
3696         * posix/regcomp.c: Likewise.
3697         * posix/regexec.c: Likewise.
3699         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3700         (skip_to): Fix problems with parameter of elifdef/elifndef.
3702 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3704         * iconv/gconv_simple.c: Add some branch prediction.
3706 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3708         * locale/programs/ld-collate.c (collate_read): If ignore_content
3709         and nowtok is tok_define, eat any tok_eol tokens.
3711 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3713         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3714         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3716         * inet/netinet/in.h: Don't include bits/socket.h.
3717         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3718         macro.
3719         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3721 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3723         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3724         and tok_elifndef.
3725         * locale/programs/locfile-kw.gperf: Likewise.
3726         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3728 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3730         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3731         (__find_specwc): Change into __extern_always_inline function.
3732         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3733         (__parse_one_specmb): Remove ps argument.
3734         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3735         Adjust __find_specmb and __parse_one_specmb callers.
3736         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3737         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3738         Removed.
3739         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3740         caller.
3742 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3744         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3745         with some Pentium Ds.
3747 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3749         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3750         __read not read.
3751         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3752         __write not write.
3754 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3756         [BZ #181]
3757         * locale/C-time.c: Set week_1stday data to 19971201.
3758         * locale/programs/ld-time.c (time_finish): Default for
3759         first_workday is Monday.
3761         [BZ #2633]
3762         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3764         [BZ #5103]
3765         * posix/glob.c (glob): Recognize patterns starting \/.
3766         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3767         (main): Add test for pattern starting \/.
3769         * misc/error.h: Use __const instead of const.
3770         * misc/bits/error.h: Likewise.
3772 2007-10-07  Andreas Jaeger  <aj@suse.de>
3774         * include/bits/error.h: New file.
3776         * misc/bits/error.h (error_at_line): Fix prototype.
3778 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3780         [BZ #3924]
3781         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3782         more little bugs in creating the stack frame when pltexit has to
3783         be called.
3785         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3786         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3788         [BZ #4407]
3789         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3790         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3791         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3792         * math/libm-test.inc: Add test for this case.
3794         [BZ #5010]
3795         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3796         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3797         map service succeeded.
3798         (svc_is_mapped): New function.
3799         (svc_unregister): Use it before trying to unmap service.
3801 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3803         * timezone/zic.c: Update from tzcode2007h.
3805         [BZ #5063]
3806         * timezone/africa: Update from tzdata2007h.
3807         * timezone/antarctica: Likewise.
3808         * timezone/asia: Likewise.
3809         * timezone/australasia: Likewise.
3810         * timezone/europe: Likewise.
3811         * timezone/leapseconds: Likewise.
3812         * timezone/northamerica: Likewise.
3813         * timezone/southamerica: Likewise.
3814         * timzeone/zone.tab: Likewise.
3816         [BZ #5104]
3817         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3819         [BZ #5113]
3820         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3821         avoid warning with -Wconversion.
3822         (__strndup): Likewise.
3823         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3825         [BZ #5112]
3826         * nscd/connections.c (restart): Don't resync if database is
3827         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3829         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3830         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3832         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3833         evetnfd_read, eventfd_write.
3834         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3835         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3836         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3837         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3838         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3839         eventfd_write for GLIBC_2.7.
3841         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3842         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3843         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3844         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3846 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3848         * stdlib/msort.c: Include stdint.h.
3849         (struct msort_param): New type.
3850         (msort_with_tmp): Use struct msort_param pointer for unchanging
3851         parameters.  Add optimized handling for several common sizes
3852         and indirect sorting mode.
3853         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3854         sorting.
3855         Suggested by Belazougui Djamel .
3857         * stdlib/Makefile (tests): Add tst-qsort2.
3858         * stdlib/tst-qsort2.c: New test.
3860 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3862         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3863         for dup2 in case another thread races with the current one.  Retry
3864         in this case.
3866         * misc/error.h: Remove support for use outside of libc.  We have to
3867         include <features.h> now.  Include <bits/error.h> if possible.
3868         * misc/bits/error.h: New file.
3870 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3872         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3873         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3874         __extern_always_inline functions unconditionally, drop macros.
3876         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3877         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3878         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3880         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3881         add __artificial__ attribute.
3883 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3885         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3886         backward to forward direction.
3888         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3890         [BZ #645]
3891         * locale/programs/ld-collate.c (collate_finish): Compare against last
3892         used section which is known to have rules defined.
3893         (collate_read): After order_start, correctly record order of sections
3894         and queue sections up.
3896 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3898         [BZ #5071]
3899         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3900         the same number of pages.
3901         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3903         * locale/programs/ld-collate.c (collate_read): After initial copy
3904         statement, continue in state 0.
3906         * include/stdio_ext.h (__fsetlocking): Define as macro.
3908 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3910         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3911         of section order.
3913         * po/pt_BR.po: Fix typo.
3915 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3917         * iconvdata/Makefile (modules): Add ISO8859-9E.
3918         (distribute): Add iso8859-9e.c.
3919         (gen-8bit-gap-modules): Add iso8859-9e.
3920         * iconvdata/iso8859-9e.c: New file.
3921         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3922         * iconvdata/TESTS: Likewise.
3923         * iconvdata/tst-tables.sh: Likewise.
3925         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3927         * locale/iso-639.def: Add several new entries.
3929 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3931         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3932         void * pointers instead of struct link_map **.
3933         (_dl_scope_free): Change argument type to void *.
3934         * include/link.h (struct link_map): Change type of l_reldeps
3935         to struct link_map_reldeps, move l_reldepsact into that
3936         struct too.
3937         * elf/dl-deps.c: Include atomic.h.
3938         (_dl_map_object_deps): Only change l->l_initfini when it is
3939         fully populated, use _dl_scope_free for freeing it.  Optimize
3940         removal of libs from reldeps by using l_reserved flag, when
3941         some removal is needed, allocate a new list instead of
3942         reallocating and free the old with _dl_scope_free.  Adjust
3943         for l_reldeps and l_reldepsact changes.
3944         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3945         searching in l_initfini and l_reldeps without holding dl_load_lock.
3946         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3947         l_reldepsact changes.
3948         * elf/dl-close.c (_dl_close_worker): Likewise.
3949         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3951 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3953         * iconvdata/Makefile (modules): Add KOI8-RU.
3954         (distribute): Add koi8-ru.c.
3955         (gen-8bit-gap-modules): Add koi8-ru.
3956         * iconvdata/koi8-ru.c: New file.
3957         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3958         * iconvdata/TESTS: Likewise.
3959         * iconvdata/tst-tables.sh: Likewise.
3961         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3963 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3965         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3966         with __warning__/__error__ attributes.
3967         (__warnattr): Define.
3968         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3969         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3970         __warnattr.
3971         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3972         of __*_chk if compile time detectable overflow is found.
3973         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3974         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3975         with __warnattr.
3976         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3977         instead of __*_chk if compile time detectable overflow is found.
3978         (__gets_alias): Rename to...
3979         (__gets_warn): ... this.  Add __warnattr.
3980         (gets): Call __gets_warn instead of __gets_alias.
3981         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3982         aliases with __warnattr.
3983         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3984         time detectable overflow is found.
3985         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3986         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3987         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3988         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3989         __getdomainname_chk_warn): New aliases with __warnattr.
3990         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3991         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3992         __*_chk_warn instead of __*_chk if compile time detectable overflow
3993         is found.
3994         (__getgroups_chk): Rename argument to __listlen from listlen.
3995         (__getwd_alias): Rename to...
3996         (__getwd_warn): ... this.  Add __warnattr.
3997         (getwd): Call __getwd_warn instead of __getwd_alias.
3998         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3999         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4000         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4001         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4002         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4003         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4004         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4005         compile time detectable overflow is found.
4006         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4007         to use __*_chk or not.
4008         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4009         in comparisons which function should be called and in __*_chk*
4010         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4011         detectable overflow is found.
4012         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4013         __*_chk argument.
4014         * debug/tst-chk1.c (do_test): Add a few more tests.
4016 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4018         [BZ #5058]
4019         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4020         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4021         (_nl_unload_domain): Finalize conversions_lock.
4022         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4023         handling table of known conversions.
4025 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4027         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4028         close_not_cancel_no_status instead of close.
4030 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4032         [BZ #5028]
4033         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4034         nrules != 0 for multibyte chars.
4036 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4038         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4039         Provide better error message in case the type is unknown.
4041         [BZ #4963]
4042         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4043         * string/stratcliff.c: Make usable to test wide char functions.
4044         * wcsmbs/wcsatcliff.c: New file.
4045         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4047         [BZ #4972]
4048         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4049         (distribute): Add mac-centraleurope.c.
4050         (gen-8bit-gap-modules): Add mac-centraleurope.
4051         * iconvdata/mac-centraleurope.c: New file.
4052         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4053         * iconvdata/TESTS: Likewise.
4054         * iconvdata/tst-tables.sh: Likewise.
4056         [BZ #5043]
4057         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4059 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4061         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4062         from __x86_64_core_cache_size_half.
4063         (init_cacheinfo): Compute shared cache size for AMD processors with
4064         shared L3 correctly.
4065         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4066         name change.
4067         Patch in large parts by Evandro Menezes.
4069 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4071         * elf/dl-lookup.c (add_dependency): Handle failing memory
4072         allocation for dependency list.  Remove unnecessary check.
4074         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4075         open/close when determining source addresses.
4077         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4078         sha512-crypt, and sha512.
4079         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4080         (distribute): Add sha256.h and sha512.h.
4081         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4082         and call the appropriate code.
4083         * crypt/sha256-crypt.c: New file.
4084         * crypt/sha256.c: New file.
4085         * crypt/sha256.h: New file.
4086         * crypt/sha256c-test.c: New file.
4087         * crypt/sha256test.c: New file.
4088         * crypt/sha512-crypt.c: New file.
4089         * crypt/sha512.c: New file.
4090         * crypt/sha512.h: New file.
4091         * crypt/sha512c-test.c: New file.
4092         * crypt/sha512test.c: New file.
4094 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4096         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4097         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4098         __syslog_chk.
4100 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4102         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4103         %as in fscanf format strings.
4105         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4106         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4107         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4108         Likewise.
4109         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4110         Likewise.
4112         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4113         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4114         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4115         * elf/dl-sym.c (do_sym): Likewise.
4116         * include/link.h (struct link_map): Add l_serial field.
4117         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4118         * elf/dl-lookup.c (add_dependency): Add flags argument.
4119         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4120         flags, use THREAD_GSCOPE_RESET_FLAG before and
4121         THREAD_GSCOPE_SET_FLAG after
4122         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4123         Don't dereference map until it has been found on some list.
4124         If map->l_serial changed, return -1.
4126 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4128         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4129         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4130         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4131         libc_hidden_proto.
4132         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4133         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4134         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4135         add libc_hidden_proto.
4136         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4137         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4138         conformance requested.
4139         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4140         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4141         conformance requested.
4142         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4143         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4144         conformance requested.
4145         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4146         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4147         ISO C99 or POSIX conformance requested.
4148         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4149         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4150         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4151         and __isoc99_vsscanf@@GLIBC_2.7.
4152         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4153         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4154         (tests): Add scanf14.
4155         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4156         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4157         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4158         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4159         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4160         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4161         from using internal headers.
4162         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4163         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4164         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4165         and __isoc99_vswscanf@@GLIBC_2.7.
4166         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4167         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4168         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4169         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4170         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4171         * stdio-common/isoc99_scanf.c: New file.
4172         * stdio-common/isoc99_vsscanf.c: New file.
4173         * stdio-common/isoc99_vscanf.c: New file.
4174         * stdio-common/isoc99_vfscanf.c: New file.
4175         * stdio-common/isoc99_fscanf.c: New file.
4176         * stdio-common/isoc99_sscanf.c: New file.
4177         * wcsmbs/isoc99_fwscanf.c: New file.
4178         * wcsmbs/isoc99_vswscanf.c: New file.
4179         * wcsmbs/isoc99_swscanf.c: New file.
4180         * wcsmbs/isoc99_wscanf.c: New file.
4181         * wcsmbs/isoc99_vwscanf.c: New file.
4182         * wcsmbs/isoc99_vfwscanf.c: New file.
4183         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4184         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4185         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4186         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4187         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4188         * stdio-common/scanf14.c: New test.
4189         * stdio-common/scanf15.c: New test.
4190         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4191         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4192         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4193         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4194         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4195         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4196         __nldbl___isoc99_scanf@@GLIBC_2.7,
4197         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4198         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4199         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4200         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4201         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4202         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4203         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4204         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4205         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4206         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4207         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4208         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4209         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4210         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4211         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4212         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4213         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4214         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4215         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4216         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4217         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4218         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4219         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4220         functions.
4221         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4222         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4223         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4224         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4225         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4226         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4227         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4228         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4229         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4230         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4231         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4232         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4234         * stdio-common/Makefile (tests): Add scanf13.
4235         (scanf13-ENV): New.
4236         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4237         m modifier followed by l.
4238         (STRING_ARG): Add width argument.
4239         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4240         <case L_('C')>: Handle %mlc and %mC.
4241         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4242         arguments.
4243         * stdio-common/scanf13.c: New test.
4245         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4246         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4248 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4251         type and __THROW marker of splice, vmsplice, and tee.
4252         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4253         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4258         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4259         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4260         as cancellation points.
4262 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4264         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4265         parse more than three parts of the version number.
4267 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4269         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4270         modifier.  Patch by Jakub Jelinek.
4272 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4274         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4275         call_fallocate in misc subdir.
4276         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4277         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4278         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4279         instead of __fallocate64.
4280         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4282 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4284         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4285         * rt/Makefile (headers): Add bits/mqueue2.h.
4286         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4287         optimizing with GCC and __va_arg_pack_len is defined.
4288         * rt/bits/mqueue2.h: New file.
4289         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4290         (mq_open): New strong_alias.
4291         (__mq_open_2): New function.
4292         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4293         (mq_open): New strong_alias.
4294         (__mq_open_2): New function.
4295         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4296         * Versions.def (librt): Add GLIBC_2.7 version.
4297         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4298         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4300         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4301         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4302         is defined rather than when not C++.
4303         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4304         __openat64_alias): New redirects.
4305         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4306         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4307         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4308         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4309         functions instead of function-like macros.
4311 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4313         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4314         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4315         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4317 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4319         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4320         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4322 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4324         * inet/tst-network.c: Increment ERRORS for failing tests.
4326 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4328         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4329         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4330         implement as __extern_always_inline function.
4331         (vsyslog): Define as __extern_always_inline function unconditionally.
4332         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4333         When __va_arg_pack is defined, implement as __extern_always_inline
4334         functions.
4335         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4336         __extern_always_inline functions unconditionally.
4337         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4338         bits/stdio2.h will be included.
4339         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4340         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4341         implement as __extern_always_inline functions.
4342         (vswprintf, vwprintf, vfwprintf): Define as
4343         __extern_always_inline functions unconditionally.
4344         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4346 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4348         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4349         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4350         attribute.
4351         * include/features.h (__USE_EXTERN_INLINES): Define only when
4352         __extern_inline is defined.
4353         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4354         is defined instead of when not __cplusplus.
4355         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4356         is defined instead of when not __cplusplus.
4357         * socket/sys/socket.h: Include bits/socket2.h when
4358         __extern_always_inline is defined instead of when not __cplusplus.
4359         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4360         is defined instead of when not __cplusplus.
4361         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4362         is defined instead of when not __cplusplus.
4363         * string/string.h: Include bits/string3.h when __extern_always_inline
4364         is defined instead of when not __cplusplus.
4365         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4366         is defined instead of when not __cplusplus.
4367         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4368         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4369         is not defined.
4370         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4371         defined __extern_always_inline instead of !defined __cplusplus.
4372         * libio/bits/stdio-ldbl.h: Likewise.
4373         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4374         * misc/bits/syslog.h (syslog): Don't define for C++.
4375         (vsyslog): Use __extern_always_inline function for C++ instead of
4376         a macro.
4377         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4378         whenever that macro is defined.
4379         (vprintf): Don't provide the inline for C++.
4380         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4381         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4382         define the macros for C++.
4383         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4384         __extern_always_inline functions for C++.
4385         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4386         stat64, lstat64, fstat64, fstatat64): Don't define if not
4387         __USE_EXTERN_INLINES.
4388         * wcsmbs/bits/wchar2.h: Fix #error message.
4389         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4390         (vswprintf, vwprintf, vfwprintf): Define using
4391         __extern_always_inline functions for C++.
4392         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4393         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4394         strncpy, strcat, strncat): Define as __extern_always_inline
4395         functions instead of macros for C++.
4396         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4397         defined __extern_inline.
4398         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4399         to __extern_inline whenever that macro is defined.
4400         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4401         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4402         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4403         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4404         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4405         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4406         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4407         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4408         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4409         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4410         prototypes.  Only provide __extern_inline routines if
4411         __USE_EXTERN_INLINES.
4412         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4413         tests.
4414         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4415         For now avoid some *printf tests in C++.  Skip all testing
4416         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4417         is not.
4418         * debug/tst-chk4.cc: New file.
4419         * debug/tst-chk5.cc: New file.
4420         * debug/tst-chk6.cc: New file.
4421         * debug/tst-lfschk4.cc: New file.
4422         * debug/tst-lfschk5.cc: New file.
4423         * debug/tst-lfschk6.cc: New file.
4424         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4425         prototypes in C++.
4426         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4427         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4428         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4430 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4432         * po/cs.po: Update from translation team.
4434 2007-09-11  Roland McGrath  <roland@redhat.com>
4436         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4437         compiling.
4439 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4441         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4443 2007-09-05  Roland McGrath  <roland@redhat.com>
4445         * manual/signal.texi (Signaling Another Process): Typo fix.
4446         From Karl Berry <karl@freefriends.org>.
4448 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4450         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4451         zero if not defined.
4452         (make_request): Recognize optimistic addresses and treat them like
4453         deprecated addresses.
4454         Reported by Neil Horman <nhorman@redhat.com>.
4456 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4458         * nscd/connections.c (send_ro_fd): Also transfer file size.
4459         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4460         file size don't call fstat.
4462         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4463         ahead and map the file.  This should always be correct and we can
4464         catch problems later.
4466 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4468         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4469         prototypes.
4470         (__fread_alias, __fread_unlocked_alias): New aliases.
4471         (fread): New extern inline.
4472         (fread_unlocked): Likewise.  Undef macro before definition of
4473         the inline function.
4474         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4475         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4476         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4477         and __fread_unlocked_chk@@GLIBC_2.7.
4478         * debug/fread_chk.c: New file.
4479         * debug/fread_u_chk.c: New file.
4480         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4482 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4484         * sysdeps/unix/sysv/linux/syscalls.list
4485         (personality): Change caller to EXTRA.
4487 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4489         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4490         to keep gcc quiet.
4491         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4493         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4494         NDEBUG is defined.
4496         * Makerules: Use -p option with mkdir.
4498         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4499         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4500         (_xdr_directory_obj): Likewise.
4501         (xdr_entry_obj): Likewise.
4502         (xdr_group_obj): Likewise.
4503         (xdr_link_obj): Likewise.
4504         (xdr_table_obj): Likewise.
4505         (_xdr_nis_result): Likewise.
4506         (_xdr_ns_request): Likewise.
4507         (_xdr_ib_request): Likewise.
4508         (_xdr_nis_taglist): Likewise.
4509         (xdr_cback_data): Likewise.
4510         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4511         (xdr_ypresp_maplist): Likewise.
4513         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4515         * posix/regex_internal.h: Prevent some declarations and definitions
4516         to be seen when used in tests.
4518         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4519         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4521         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4523         * config.make.in (datarootdir): Add to shut up configure.
4525         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4526         associativity for fully-associative caches.
4528         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4529         requests.  Fill on more associativity values for L2.
4530         Patch mostly by Evandro Menezes.
4532 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4534         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4535         (_libc_vdso_platform_setup): Avoid using exported variable by using
4536         alias.
4538         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4540         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4541         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4542         defined.
4544 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4546         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4547         align stack for call if pltexit is to be used.
4549         [BZ #3924]
4550         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4551         align for function call in case pltexit has to be called later.
4553         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4554         implicit atomic operation when storing function pointer.
4555         (_dl_runtime_profile): Likewise.
4557 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4559         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4560         NIS_NOTFOUND.
4562 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4564         [BZ #4566]
4565         * string/strtok.c: Fix typo in comment.
4567         [BZ #4582]
4568         * debug/segfault.c: Fix typos in comments.
4570         [BZ #4588]
4571         * stdio-common/tempnam.c: Fix comment, it is not checked that
4572         TMPDIR points to a writable directory.
4574         [BZ #4726]
4575         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4576         memory allocated for the name server address.
4578         [BZ #4946]
4579         * nscd/connections.c (handle_request): Using sendfile always
4580         requires that mmap is used for the database.
4581         Patch by Petr Baudis <pasky@suse.cz>.
4583         [BZ #4905]
4584         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4585         suddenly has two or more addresses, ignore it and remove the old
4586         entry.
4588         [BZ #4814]
4589         * resolv/res_hconf.c: Prepare for compiling outside libc.
4590         * nscd/res_hconf.c: New file.
4591         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4592         the new file.
4593         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4594         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4596         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4598         [BZ #4925]
4599         * debug/pcprofiledump.c: Turn on internationalization by calling
4600         setlocale.  Patch mostly by Benno Schulenberg.
4602         [BZ #4936]
4603         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4604         the state.
4605         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4606         * iconvdata/bug-iconv5.c: New file.
4608 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4610         [BZ #4896]
4611         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4612         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4613         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4614         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4615         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4616         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4617         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4618         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4620 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4622         [BZ #4937]
4623         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4624         lookup loop.  Suggested by John Reiser.
4626 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4628         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4630 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4632         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4633         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4634         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4635         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4636         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4637         to...
4638         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4640 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4642         * po/nl.po: Update from translation team.
4644 2007-08-16  Andreas Jaeger  <aj@suse.de>
4646         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4647         Reported by Peter Festner <peter.festner@ewetel.net>.
4649 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4651         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4653 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4655         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4656         to check for undefined symbols.
4658         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4659         If the syscall fails, set errno to the actual returned error number
4660         rather than EINVAL.
4661         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4662         arguments are incorrect, set errno to EINVAL, if the syscall
4663         fails, set errno to the actual returned error number.
4665         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4666         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4668         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4669         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4670         file.
4671         (ASI_PNF, ASI_BLK_P): Don't define.
4672         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4673         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4674         file.
4675         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4676         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4677         file.
4679 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4681         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4682         FE_UNDERFLOW on Niagara CPUs.
4684         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4685         exceptions.
4687 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4689         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4690         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4691         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4692         flush should be used or not inside of the function.
4693         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4695         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4696         __thread_start): Use HIDDEN_JUMPTARGET.
4697         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4698         __thread_start): Likewise.
4699         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4701         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4702         Add libc_hidden_proto.
4703         (STRTOF): Add libc_hidden_proto.
4704         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4705         (strtold_l, wcstold_l): Use them as second argument for
4706         long_double_symbol.
4708 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4710         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4712 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4714         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4716 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4718         * po/bg.po: New file.  From the translation team.
4720 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4722         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4723         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4724         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4725         when each feature was introduced.
4727         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4728         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4729         (CHECK_HASH): New macro.
4730         (PREPARE_VERSION): Use it.
4732         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4733         prototype if not __ASSUME_PSELECT.
4734         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4735         prototype if not __ASSUME_PPOLL.
4737         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4739         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4740         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4741         is defined.
4743 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4745         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4746         (_libc_vdso_platform_setup): If vDSO is not available point
4747         __vdso_gettimeofday to the vsyscall.
4748         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4749         __vdso_gettimeofday instead of vsyscall.
4751 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4753         * nscd/servicescache.c: Include kernel-features.h.
4754         * nscd/gai.c: Likewise.
4755         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4756         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4757         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4758         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4759         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4760         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4761         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4762         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4763         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4765 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4767         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4768         and _dl_get_origin defines anymore.
4770         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4771         Build fix for systems which might lack POSIX timer support.
4773         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4774         (_libc_vdso_platform_setup): Mangle function pointers before storing
4775         them.
4776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4777         Demangle vdso pointer before use.
4778         (INTERNAL_VSYSCALL): Likewise.
4780         * elf/cache.c (primes): Mark as const.
4781         Noted by Roland McGrath.
4783 2007-08-01  Andreas Jaeger  <aj@suse.de>
4784             Jakub Jelinek  <jakub@redhat.com>
4786         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4787         (options): Add option.
4788         (parse_opt): Handle option.
4789         (manual_link): Adjust process_file caller.  Call implicit_soname.
4790         (search_dir): Formatting.  Use and populate auxiliary cache.
4791         (main): Load and save auxiliary cache.
4792         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4793         stat64 from fstat64 to caller.
4794         (implicit_soname): New function.
4795         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4796         leave *soname as NULL.
4797         * elf/cache.c: Include libgen.h.
4798         (print_entry, print_cache, compare, save_cache, add_to_cache):
4799         Formatting and cleanups.
4800         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4801         aux_cache_file): New structures.
4802         (AUX_CACHEMAGIC): Define.
4803         (primes): New array.
4804         (aux_hash_size, aux_hash): New variables.
4805         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4806         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4807         load_aux_cache, save_aux_cache): New functions.
4808         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4809         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4810         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4811         (process_file): Adjust prototype.
4813 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4815         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4816         with __need_size_t.
4818 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4820         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4821         r_found_version structure as second parameter.
4822         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4823         (_dl_vdso_vsym): Change type of second parameter accordingly.
4824         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4825         (_libc_vdso_platform_setup): Adjust.
4826         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4827         (_libc_vdso_platform_setup): Likewise.
4829         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4830         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4831         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4832         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4833         * csu/libc-start.c: Pretty printing.
4834         Use VDSO_SETUP if defined.
4835         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4836         and let generic code call into _libc_vdso_platform_setup.
4837         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4838         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4840         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4841         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4842         for GLIBC_PRIVATE.
4843         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4844         (sysdep_rountines): Add dl-vdso.
4846         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4847         of routines.
4849         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4850         attribute_hidden to __vdso_gettimeofday prototype.
4852 2007-08-12  Roland McGrath  <roland@redhat.com>
4854         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4855         From: Karl Berry <karl@freefriends.org>.
4857 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4859         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4860         an atime update for the files we read.
4862 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4864         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4866         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4867         instead of mkstemp.
4869         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4870         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4871         * misc/mkostemp.c: New file.
4872         * misc/mkostemp64.c: New file.
4873         * stdlib/stdlib.h: Declare the new functions.
4874         * sysdeps/posix/tempname.c: Add new parameter which is added to
4875         the flags for open.  Remove __GT_BIGFILE handling.
4876         * stdio-common/tempname.c: Likewise.
4877         * include/stdio.h: Adjust __gen_tempname prototype.
4878         Renumber __GT_* constants.
4879         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4880         * misc/mkdtemp.c: Likewise.
4881         * misc/mkstemp.c: Likewise.
4882         * misc/mkstemp64.c: Likewise.
4883         * misc/mktemp.c: Likewise.
4884         * stdio-common/tempnam.c: Likewise.
4885         * stdio-common/tmpfile.c: Likewise.
4886         * stdio-common/tmpfile64.c: Likewise.
4887         * stdio-common/tmpnam.c: Likewise.
4888         * stdio-common/tmpnam_r.c: Likewise.
4890 2007-08-10  Roland McGrath  <roland@frob.com>
4892         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4893         New macros.
4894         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4895         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4897 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4899         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4900         possible.
4901         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4902         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4903         * nss/nss_files/files-have_o_cloexec.c: New file.
4905         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4906         available.
4908 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4910         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4911         ___new_wcstold_l): New weak aliases.
4912         (strtold_l, wcstold_l): Use them as second argument for
4913         long_double_symbol.
4915 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4917         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4918         register in test for error.
4920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4921         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4923         * po/sv.po: Update from translation team.
4925 2007-08-06  Roland McGrath  <roland@redhat.com>
4927         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4928         Remove __strto*_l inlines.
4929         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4930         * stdlib/strtod.c: Add libc_hidden_def.
4931         * stdlib/strtod_l.c: Likewise.
4932         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4933         for __new_strtold and __new_wcstold.
4934         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4935         __STRTOF, STRTOF.
4936         * stdlib/strtol.c: Add libc_hidden_def.
4937         * stdlib/strtol_l.c: Likewise.
4938         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4939         strtoq.
4941         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4943         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4944         * scripts/data/localplt-generic.data: ... here.
4945         * elf/Makefile (check-data): Get generic file if no other.
4946         ($(objpfx)check-localplt.out): Make target unconditional.
4948         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4949         Use ElfW(Nhdr).
4951 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4953         * po/zh_CN.po: Updated translation from translation team.
4955 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4958         Don't use CGOTSETUP and CGOTRESTORE macros.
4960 2007-08-04  Roland McGrath  <roland@redhat.com>
4962         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4964 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4966         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4967         __extension__ around the whole statement expression.
4969 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4971         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4972         elements during initialization.
4974         * po/pl.po: Updated translation from translation team.
4975         * po/tr.po: Likewise.
4976         * po/nl.po: Likewise.
4978 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4980         * rt/aio.h: Add __nonnull attributes.
4982 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4984         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4985         * stdlib/Makefile (tests): Add tst-strtod5.
4986         (tst-strtod5-ENV): New.
4987         * stdlib/tst-strtod5.c: New file.
4989         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4990         failed.
4991         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4992         on failure.
4994         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4995         allocated.
4997 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4999         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5000         numbers.
5002 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5004         * io/Makefile (aux): Add have_o_cloexec.
5005         * include/fcntl.h: Declare __have_o_cloexec.
5006         * io/have_o_cloexec.c: New file.
5007         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5008         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5009         fcntl call if not necessary.
5010         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5011         of local variable.
5013         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5014         Avoid memset, add explicit initialization.
5015         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5016         to the end and change into zero-sized array.
5017         Move lock member to fill a hole on 64-bit platforms.
5019         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5020         inline functions.
5021         * include/stdlib.h: Add __strto*_internal prototypes here.
5022         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5023         inline functions.
5024         * include/wchar.h: Add __wcsto*_internal prototypes.
5025         * sysdeps/generic/inttypes.h: No need to protect the declaration
5026         of the __strto*_internal and __wcsto*_internal members here.
5028         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5030 2007-08-02  Roland McGrath  <roland@redhat.com>
5032         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5033         $(inst_bindir)/getconf if possible.
5035         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5036         (generated): Add it.
5037         ($(inst_libexecdir)/getconf): Use it.
5039 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5041         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5042         /proc is faster and sufficient.  /sys is still needed for
5043         __get_nprocs_conf.
5045 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5047         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5048         syscall as __fallocate64.
5049         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5050         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5052 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5054         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5055         value.
5057         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5058         if off_t is different rank from size_t.
5060         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5061         uw_frame_state_for): Avoid type punning warnings.
5062         * sysdeps/generic/unwind-dw2-fde-glibc.c
5063         (_Unwind_IteratePhdrCallback): Likewise.
5064         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5065         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5066         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5067         pointers.
5069 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5071         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5072         total processors using sysfs.
5073         (__get_nprocs): Use sysfs to determine which processors are online.
5075 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5077         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5078         syscall arguments count.
5080         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5082 2007-07-30  Roland McGrath  <roland@redhat.com>
5084         * manual/libc.texinfo: Update copyrights, formatting magic, and
5085         @dircategory.  From Karl Berry <karl@freefriends.org>.
5087 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5089         [BZ #4860]
5090         * io/Makefile (headers): Add bits/fcntl2.h.
5092         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5093         using gcc builtin.
5094         (__CPU_EQUAL_S): Likewise.
5096         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5097         (tests): Add tst-cpuset.
5098         * posix/sched_cpualloc.c: New file.
5099         * posix/sched_cpufree.c: New file.
5100         * posix/tst-cpuset.c: New file.
5101         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5102         GLIBC_2.7.
5103         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5104         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5105         macros.  Define CPU_*_S macros.
5107 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5109         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5110         entry.
5112         [BZ #4858]
5113         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5114         #.0g and value rounded to 1.0.
5115         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5117 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5119         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5120         for int_frac_digits and frac_digits.
5122         * login/logout.c (logout): Avoid aliasing violation.
5123         * login/logwtmp.c (logwtmp): Likewise.
5125         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5127         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5128         to avoid warning.
5129         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5130         warning.
5131         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5132         warning.
5133         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5134         to avoid warnings.
5136         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5137         void **.
5138         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5140         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5141         char * to avoid warning.
5142         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5144         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5146         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5147         allocate_arrays): Cast second argument to charmap_find_symbol
5148         to char * to avoid warnings.
5150         * locale/programs/repertoire.c (repertoire_new_char): Change
5151         from_nr, to_nr and cnt to unsigned long, adjust printf format
5152         string.
5154         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5155         Cast second argument to new_element to char * to avoid warnings.
5157         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5159         * intl/gettextP.h (struct loaded_domain): Change plural to const
5160         struct expression *.
5161         * intl/plural-eval.c (plural_eval): Change first argument to
5162         const struct expression *.
5163         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5164         argument to const struct expression **.
5165         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5166         prototypes.
5167         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5168         in call to __gettext_free_exp.
5170         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5171         unitialized wstring/wpattern var warnings.
5173         * posix/runtests.c (struct a_test): Make data field const char *.
5175         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5176         vars if not LDBL_MANT_DIG >= 106.
5178         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5180         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5181         __find_specmb to avoid warning.
5183         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5185         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5186         to avoid warnings.
5188         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5189         initializer.
5191         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5192         tv var when it will be actually used.
5194         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5195         to avoid warnings.
5197         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5198         char array resp. pointer.
5199         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5200         char array.
5201         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5202         to const unsigned char **.
5203         (ucs4_to_cns11643): Change second argument to unsigned char *.
5204         * iconvdata/euc-tw.c (BODY): Change endp type to
5205         const unsigned char *.
5206         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5207         to unsigned char *.
5208         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5209         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5210         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5211         types to unsigned char pointers/arrays instead of char.
5212         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5213         to unsigned char *.
5214         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5215         * iconvdata/jis0212.h: Include assert.h.
5216         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5217         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5218         of trying to handle that.
5219         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5220         shut up a warning.
5221         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5222         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5223         two dimensional const unsigned char arrays.
5224         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5225         Initialize endp to inptr to shut up a warning.
5227 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5229         [BZ #4772]
5230         * time/strptime_l.c (__strptime_internal): Silently ignore
5231         strftime modifiers and field width in recursive calls.
5233         * include/time.h (enum ptime_locale_status): Remove.
5234         (__strptime_internal): Remove decided and era_cnt arguments,
5235         add statep argument.
5236         * time/strptime_l.c (__strptime_internal): Remove decided
5237         and era_cnt arguments, add statep argument.  Don't recompute
5238         any fields in recursive calls, only update caller's tm
5239         and state, if recursive call fails, don't change tm nor
5240         any state.
5241         (get_alt_number): Adjust.
5242         (recursive): Adjust caller.
5243         (strptime): Likewise.
5244         * time/strptime.c (strptime): Likewise.
5246 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5248         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5249         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5250         if from and to charsets are the same.
5251         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5252         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5253         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5255 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5257         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5258         Don't define wint_t when __need_mbstate_t unless it
5259         is necessary.
5260         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5261         in the typedef if possible.
5262         * wctype/wctype.h (wint_t): Define by including
5263         wchar.h with __need_wint_t instead of including stddef.h
5264         with __need_wint_t and as fallback definining it ourselves.
5265         * iconv/gconv.h (__need_wint_t): Define before including
5266         wchar.h.
5267         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5268         or _GLIBCPP_USE_WCHAR_T.
5269         (__need_wchar_t): Don't define
5270         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5271         (__need_wint_t): Don't define before including stddef.h,
5272         define before including wchar.h only if _LIBC or
5273         _GLIBCPP_USE_WCHAR_T.
5274         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5275         * sysdeps/mach/hurd/_G_config.h: Likewise.
5276         * sysdeps/generic/_G_config.h: Likewise.
5277         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5278         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5279         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5280         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5282 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5284         * sysdeps/posix/posix_fallocate64.c: Undefine
5285         __posix_fallocate64_l64 before alias handling.
5286         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5287         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5288         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5289         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5291         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5293 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5295         * locale/programs/ld-collate.c (atwc): New variable.
5296         (add_to_tablewc): New toplevel function, moved from collate_output.
5297         (collate_output): Remove add_to_tablewc nested function.
5299         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5300         (name_insert): New function.
5301         (write_output): Remove hash_table and hash_size vars and name_insert
5302         nested function.
5304 2007-07-24  Roland McGrath  <roland@redhat.com>
5306         * Makerules (install-others-programs-nosubdir): New target.
5307         (install-no-libc.a-nosubdir): Depend on it.
5309         * iconv/Makefile (install-others-programs): Set this instead of
5310         install-others.
5311         * login/Makefile (install-others-programs): Likewise.
5312         * posix/Makefile (install-others-programs): Likewise.
5314         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5315         dependencies.
5317 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5319         * io/Makefile (tests): Add tst-posix_fallocate.
5320         * io/tst-posix_fallocate.c: New file.
5322         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5323         __ASSUME_FALLOCATE.
5325 2007-07-22  Roland McGrath  <roland@frob.com>
5327         * hurd/getdport.c: Add missing copyright year update.
5329         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5330         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5332 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5334         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5336         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5337         O_CLOEXEC is needed.
5338         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5339         Avoid additional fcntl to set O_CLOEXEC if not needed.
5340         * nis/nss_compat/compat-initgroups.c: Likewise.
5341         * nis/nss_compat/compat-pwd.c: Likewise.
5342         * nis/nss_compat/compat-spwd.c: Likewise.
5344 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5346         [BZ #3665]
5347         * manual/errno.texi: Change ECANCELED value to 119.
5349         [BZ #4610]
5350         * mach/lock-intern.h: Include <sys/cdefs.h>.
5352         [BZ #4178]
5353         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5354         reading A.
5356         [BZ #4126]
5357         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5358         to __sigsuspend.
5360         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5362 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5364         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5365         `__ASSEMBLER__'.
5366         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5368 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5370         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5371         descriptor received from nscd.
5373         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5375         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5376         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5377         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5378         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5379         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5380         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5382 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5384         [BZ #4816]
5385         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5387         [BZ #4813]
5388         * login/forkpty.c (forkpty): Close master and slave fds on
5389         fork failure.  Patch by
5390         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5392 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5394         * include/features.h (__USE_ISOC95): New define.
5395         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5396         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5397         for -std=iso9899:199409.
5398         * CONFORMANCE: Remove comments about unsupported AMD1.
5400 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5402         * sysdeps/ia64/sched_cpucount.c: New file.
5403         * sysdeps/powerpc/sched_cpucount.c: New file.
5405         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5406         __BEGIN_DECLS/__END_DECLS around the prototype.
5407         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5408         pointer to const cpu_set_t.
5410         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5411         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5412         __need_size_t and include stddef.h.
5413         * sysvipc/sys/msg.h: Likewise.
5414         * posix/sched.h: Likewise.
5415         * hurd/hurd/signal.h (__need_size_t): Define.
5417         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5418         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5419         no longer defines wint_t or wchar_t.
5421         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5422         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5423         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5424         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5425         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5426         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5427         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5428         * debug/printf_chk.c (__printf_chk): Likewise.
5429         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5430         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5432         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5433         Define.
5435         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5436         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5438 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5440         [BZ #4792]
5441         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5442         * malloc/malloc.h (realloc): Likewise.
5444         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5445         if one of proc_file_chain streams has that fileno.
5446         * stdio-common/Makefile (tests): Add tst-popen2.
5447         * stdio-common/tst-popen2.c: New test.
5449 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5451         * elf/ldconfig.c: Allow GPLv2 or any later version.
5452         * elf/readlib.c: Likewise.
5453         * elf/chroot_canon.c: Likewise.
5454         * elf/cache.c: Likewise.
5455         * nscd/mem.c: Likewise.
5456         * nscd/getpwuid_r.c: Likewise.
5457         * nscd/grpcache.c: Likewise.
5458         * nscd/aicache.c: Likewise.
5459         * nscd/getsrvbynm_r.c: Likewise.
5460         * nscd/nscd.c: Likewise.
5461         * nscd/servicescache.c: Likewise.
5462         * nscd/getsrvbypt_r.c: Likewise.
5463         * nscd/initgrcache.c: Likewise.
5464         * nscd/gethstbyad_r.c: Likewise.
5465         * nscd/gethstbynm2_r.c: Likewise.
5466         * nscd/getgrnam_r.c: Likewise.
5467         * nscd/nscd_setup_thread.c: Likewise.
5468         * nscd/getpwnam_r.c: Likewise.
5469         * nscd/gai.c: Likewise.
5470         * nscd/connections.c: Likewise.
5471         * nscd/dbg_log.c: Likewise.
5472         * nscd/cache.c: Likewise.
5473         * nscd/hstcache.c: Likewise.
5474         * nscd/nscd_conf.c: Likewise.
5475         * nscd/getgrgid_r.c: Likewise.
5476         * nscd/pwdcache.c: Likewise.
5477         * catgets/gencat.c: Likewise.
5478         * locale/programs/linereader.h: Likewise.
5479         * locale/programs/locarchive.c: Likewise.
5480         * locale/programs/ld-paper.c: Likewise.
5481         * locale/programs/locfile-kw.h: Likewise.
5482         * locale/programs/ld-address.c: Likewise.
5483         * locale/programs/xmalloc.c: Likewise.
5484         * locale/programs/ld-time.c: Likewise.
5485         * locale/programs/localedef.c: Likewise.
5486         * locale/programs/simple-hash.c: Likewise.
5487         * locale/programs/xstrdup.c: Likewise.
5488         * locale/programs/ld-numeric.c: Likewise.
5489         * locale/programs/locfile-kw.gperf: Likewise.
5490         * locale/programs/ld-collate.c: Likewise.
5491         * locale/programs/charmap-kw.gperf: Likewise.
5492         * locale/programs/charmap.h: Likewise.
5493         * locale/programs/charmap-kw.h: Likewise.
5494         * locale/programs/config.h: Likewise.
5495         * locale/programs/locfile.c: Likewise.
5496         * locale/programs/ld-ctype.c: Likewise.
5497         * locale/programs/charmap.c: Likewise.
5498         * locale/programs/ld-messages.c: Likewise.
5499         * locale/programs/repertoire.h: Likewise.
5500         * locale/programs/locale.c: Likewise.
5501         * locale/programs/ld-name.c: Likewise.
5502         * locale/programs/linereader.c: Likewise.
5503         * locale/programs/locfile.h: Likewise.
5504         * locale/programs/3level.h: Likewise.
5505         * locale/programs/ld-monetary.c: Likewise.
5506         * locale/programs/ld-measurement.c: Likewise.
5507         * locale/programs/charmap-dir.c: Likewise.
5508         * locale/programs/ld-identification.c: Likewise.
5509         * locale/programs/localedef.h: Likewise.
5510         * locale/programs/charmap-dir.h: Likewise.
5511         * locale/programs/repertoire.c: Likewise.
5512         * locale/programs/simple-hash.h: Likewise.
5513         * locale/programs/ld-telephone.c: Likewise.
5514         * locale/programs/locale-spec.c: Likewise.
5515         * locale/programs/locfile-token.h: Likewise.
5516         * posix/getconf.c: Likewise.
5517         * iconv/dummy-repertoire.c: Likewise.
5518         * iconv/iconv_charmap.c: Likewise.
5519         * iconv/iconvconfig.c: Likewise.
5520         * iconv/iconv_prog.c: Likewise.
5521         * malloc/memusagestat.c: Likewise.
5522         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5524 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5526         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5527         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5528         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5529         check for the first argument.
5531 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5533         [BZ #4775]
5534         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5535         (__tgmath_real_type): Fix if expr is const int or other const
5536         qualified integral type.
5537         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5538         expressions and handle const qualified arguments.
5539         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5540         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5541         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5542         statement expressions.
5543         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5544         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5545         (__TGMATH_UNARY_IMAG): Define.
5546         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5547         * math/Makefile (tests): Add test-tgmath2.
5548         (CFLAGS-test-tgmath2.c): Add.
5549         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5550         count_cfloat, count_cldouble): New variables.
5551         (NCCALLS): Define.
5552         (main): Check number of complex calls as well.
5553         (F(compile_test)): Add complex tests and tests with const qualified
5554         arguments.
5555         (y, z, ccount): Define.
5556         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5557         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5558         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5559         F(cproj)): New functions.
5560         * math/test-tgmath2.c: New test.
5562 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5564         [BZ #4776]
5565         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5566         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5567         instead output ".".
5568         * dlfcn/Makefile (distribute): Add glreflib3.c.
5569         (module-names): Add glreflib3.
5570         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5571         glreflib1.so.
5572         (LDFLAGS_glreflib3.so): New.
5573         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5574         glreflib1.so.
5575         * dlfcn/glreflib3.c: New file.
5577         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5578         returned -1, return NULL.
5579         * intl/explodename.c (_nl_explode_name): Return -1 if
5580         _nl_normalize_codeset failed.
5582 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5584         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5585         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5586         and avoid branch misspredicts for > 31 bytes memset case.
5587         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5588         Remove toc ref to __cache_line_size.
5590         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5591         to get ISA-V2.0 branch hints.
5592         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5593         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5594         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5595         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5596         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5597         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5598         Remove toc ref to __cache_line_size.
5600         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5601         Include math_ldbl_opt.h.
5603 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5605         [BZ #4773]
5606         * time/strptime_l.c (__strptime_internal): Implement greedy
5607         matching of weekday and month names.
5609 2007-07-09  Roland McGrath  <roland@redhat.com>
5611         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5612         (ELF_NOTE_ABI): Use it.
5613         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5615 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5617         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5618         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5620 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5622         [BZ #4745]
5623         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5624         in loop to look for conversion specifier to avoid testing of
5625         wrong errno value.
5626         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5627         * stdio-common/bug18.c: New file.
5628         * stdio-common/bug18a.c: New file.
5629         * stdio-common/bug19.c: New file.
5630         * stdio-common/bug19a.c: New file.
5632 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5634         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5635         running awk script.
5637 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5639         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5640         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5641         Return NULL if mmap failed instead of asserting it does not.
5642         (calloc): Check for integer overflow.
5644         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5645         than LONG_MAX / 10.
5647 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5649         [BZ #4702]
5650         * nis/nss-default.c: Include errno.h.
5651         (init): Preserve errno.
5653 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5655         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5657 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5659         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5661 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5663         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5665 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5667         * sysdeps/s390/dl-procinfo.c: New file.
5668         * sysdeps/s390/dl-procinfo.h: New file.
5669         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5671 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5673         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5674         in PT_NOTE segments with multiple notes.
5675         * elf/readelflib.c (process_elf_file): Likewise.
5677 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5679         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5680         ISO C compliant.
5682 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5684         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5686 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5688         * include/link.h: Don't include rtld-lowlevel.h.
5689         (struct link_map): Remove l_scope_lock.
5690         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5691         (_dl_scope_free_list): New field (variable) in _rtld_global.
5692         (DL_LOOKUP_SCOPE_LOCK): Remove.
5693         (_dl_scope_free): New prototype.
5694         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5695         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5696         (_dl_profile_fixup): Likewise.
5697         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5698         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5699         THREAD_GSCOPE_RESET_FLAG around it.
5700         * elf/dl-close.c (_dl_close_worker): Don't use
5701         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5702         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5703         scopes were queued or if l_scope_mem has been abandoned.
5704         * elf/dl-open.c (_dl_scope_free): New function.
5705         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5706         * elf/dl-support.c (_dl_scope_free_list): New variable.
5707         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5708         Remove DL_LOOKUP_SCOPE_LOCK handling.
5709         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5710         handling.
5711         * elf/dl-object.c (_dl_new_object): Don't use
5712         __rtld_mrlock_initialize.
5714 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5716         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5717         to fill in holes
5718         (rtld_global_ro): Likewise.
5720 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5722         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5723         Move PT_LOAD checking to...
5724         (_dl_addr_inside_object): ... here, new function.
5725         * elf/dl-sym.c (do_sym): If not l_contiguous,
5726         call _dl_addr_inside_object.
5727         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5728         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5729         * elf/dl-open.c (dl_open_worker): Likewise.
5730         (_dl_addr_inside_object): New function if IS_IN_rtld.
5731         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5732         holes are present or are PROT_NONE protected.
5733         * include/link.h (struct link_map): Add l_contiguous field.
5734         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5736 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5737             Tomas Janousek  <tjanouse@redhat.com>
5738             Ulrich Drepper  <drepper@redhat.com>
5740         [BZ #4647]
5741         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5742         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5743         socket.
5744         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5745         unused member a bitmap.
5746         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5747         servers are configured.
5749 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5751         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5753 2007-06-17  Andreas Schwab  <schwab@suse.de>
5755         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5757 2007-06-16  Andreas Jaeger  <aj@suse.de>
5759         [BZ #4125]
5760         * sysdeps/unix/sysv/linux/sys/ptrace.h
5761         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5762         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5763         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5764         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5765         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5766         Define.
5767         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5768         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5769         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5770         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5772 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5774         [BZ #4599]
5775         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5776         determining whether there are IPv4/IPv6 addresses, ignore loopback
5777         addresses.
5779 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5781         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5782         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5783         as the return type.  Change type of "r" variable to CMPtype.
5784         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5785         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5786         * soft-fp/gedf2.c (__gedf2): Likewise.
5787         * soft-fp/gesf2.c (__gesf2): Likewise.
5788         * soft-fp/getf2.c (__getf2): Likewise.
5789         * soft-fp/ledf2.c (__ledf2): Likewise.
5790         * soft-fp/lesf2.c (__lesf2): Likewise.
5791         * soft-fp/letf2.c (__letf2): Likewise.
5792         * soft-fp/unorddf2 (__unorddf2): Likewise.
5793         * soft-fp/unordsf2 (__unordsf2): Likewise.
5794         * soft-fp/unordtf2 (__unordtf2): Likewise.
5796 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5798         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5799         make sure gcc doesn't mess around with this.
5801 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5803         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5805 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5807         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5808         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5809         at most once per _dl_close_worker.
5811 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5813         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5814         __sched_cpucount as const.
5815         * posix/sched_cpucount.c: Adjust.
5817         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5818         instruction for counting bits.
5819         * sysdeps/x86_64/sched_cpucount.c: New file.
5821 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5823         * configure.in: Avoid variable named BASH.
5824         * config.make.in: Likewise.
5825         Patch in part by Mike Frysinger.
5827 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5829         [BZ #4586]
5830         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5831         pseudo-zeros as zero.
5832         * sysdeps/x86_64/ldbl2mpn.c: New file.
5833         * sysdeps/ia64/ldbl2mpn.c: New file.
5835 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5837         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5838         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5839         Remove unreachable code at the end.
5841 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5843         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5844         ldbl-128ibm in comment.
5845         (fpclassifyl): Correct classification of denormals.
5846         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5847         return value for MIN denormal. Rewrite using long double math too
5848         correctly handle denormals and canonicalize the results.
5850 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5852         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5853         (__mpn_construct_long_double): Fix conversion where result ought
5854         to be smaller than __LDBL_MIN__, or the low double should be
5855         denormal.  Fix decision where to negate low double - honor round
5856         to even rules.
5857         * stdio-common/tst-sprintf2.c: Include string.h.
5858         (COMPARE_LDBL): Define.
5859         (TEST): Also test whether a string hexadecimal float representation
5860         can be parsed back to the number.
5861         (main): Add a couple of further tests.
5863 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5865         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5866         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5867         is non-zero, but smaller than 2 * __DBL_MIN__.
5868         * stdio-common/tst-sprintf2.c: New test.
5869         * stdio-common/Makefile (tests): Add tst-sprintf2.
5871         * math/test-misc.c (main): Don't run last batch of tests with
5872         IBM long double format.
5874 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5876         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5877         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5878         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5879         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5880         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5881         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5882         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5883         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5884         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5885         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5888         New file.
5889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5890         New file.
5891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5892         New file.
5893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5894         New file.
5895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5896         New file.
5897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5899         New file.
5900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5901         New file.
5902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5903         New file.
5904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5905         New file.
5906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5907         New file.
5909 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5911         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5912         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5913         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5914         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5915         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5916         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5917         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5918         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5920 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5922         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5923         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5924         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5925         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5926         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5927         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5928         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5929         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5931 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5933         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5934         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5935         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5936         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5938 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5940         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5941         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5943 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5945         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5946         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5947         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5948         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5950 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5952         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5953         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5955 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5957         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5958         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5960         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5961         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5962         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5963         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5965 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5967         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5968         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5969         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5970         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5972 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5974         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5975         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5976         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5977         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5978         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5979         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5981 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5983         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5984         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5985         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5988 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5990         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5991         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5992         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5993         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5994         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5995         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5996         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5997         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5998         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5999         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6000         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6001         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6002         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6003         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6004         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6005         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6007 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6009         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6010         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6012 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6014         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6015         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6017 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6019         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6020         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6021         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6022         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6023         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6024         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6025         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6026         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6027         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6028         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6030 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6032         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6034 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6036         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6037         branch miss-predicts. Ensure that cache line crossing does not impact
6038         dispatch grouping.
6040 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6042         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6043         "../../powerpc32/power4/memcopy.h".
6044         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6045         "../../powerpc32/power4/wordcopy.c".
6047 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6049         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6050         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6051         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6052         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6053         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6054         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6056 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6058         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6060 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6062         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6063         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6064         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6065         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6066         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6067         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6068         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6069         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6071 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6073         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6075 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6077         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6078         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6079         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6080         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6081         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6082         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6083         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6085 2007-05-29  Roland McGrath  <roland@redhat.com>
6087         * po/Makefile (po-sed-cmd): New variable.
6088         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6090 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6092         * crypt/md5-crypt.c: Fix comment.
6094         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6095         of crashing.  When this is the case or if the reply is malformed,
6096         don't try to close the new file descriptor since it does not
6097         exist.
6098         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6100 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6102         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6103         if __NR_utimensat is not defined.
6105 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6107         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6109 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6111         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6112         (open): Fix comment typos.  Don't call __open_2 if flags
6113         is a compile time constant without O_CREAT.
6114         (__open64_2): Add nonnull attribute.
6115         (open64): Fix comment typos.  Don't call __open64_2 if flags
6116         is a compile time constant without O_CREAT.
6117         (__openat_2): Add nonnull attribute, fix nonnull attribute
6118         on redirect.
6119         (openat): Fix comment typos.  Don't call __openat_2 if flags
6120         is a compile time constant without O_CREAT.
6121         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6122         on redirect.
6123         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6124         is a compile time constant without O_CREAT.
6126 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6128         * Makerules (sysd-rules): Define PTW for ptw-* files.
6129         * Versions: Define GLIBC_2.7 for libc.
6130         * include/stdio.h: Declare __fortify_fail.
6131         * debug/fortify_fail.c: New file.
6132         * debug/Makefile (routines): Add fortify_fail.
6133         * debug/chk_fail.c: Use __fortify_fail.
6134         * debug/stack_chk_fail.c: Likewise.
6135         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6136         __openat64_2 for GLIBC_2.7.
6137         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6138         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6139         and fails if necessary.
6140         * io/open64.c: Likewise.
6141         * io/openat.c: Likewise.
6142         * io/openat64.c: Likewise.
6143         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6144         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6145         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6146         * io/bits/fcntl2.h: New file.
6147         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6148         __openat64_2.
6149         * include/bits/fcntl2.h: New file.
6150         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6151         Add open_2.
6152         * sysdeps/unix/sysv/linux/open_2.c: New file.
6154 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6156         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6157         as second parameter to handle_intel.
6159         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6160         the entry.
6162         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6163         handling to ...
6164         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6165         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6166         cacheinfo.
6167         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6168         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6169         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6171         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6173 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6175         [BZ #4525]
6176         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6177         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6178         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6180         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6182         [BZ #4514]
6183         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6184         reinitialize workend at the start of each do_positional format spec
6185         loop, free workstart before do_positional loops.
6186         (printf_unknown): Fix size of work_buffer.
6187         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6189         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6190         (public_sET_STATe): If ms->version < 3, put all chunks into
6191         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6192         chunks.
6194         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6195         * malloc/hooks.c: Likewise.
6196         * malloc/arena.c: Likewise.
6197         * malloc/malloc.c (do_check_malloc_state): Don't assert
6198         n_mmaps is not greater than n_mmaps_max.  This removes the need
6199         for the previous change.
6201         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6202         2007-05-07 commit.
6204 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6206         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6207         Define for kernel >= 2.6.22.
6209 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6211         * elf/dl-close.c (_dl_close_worker): When removing object from
6212         global scope, wait for all lookups to finish afterwards.
6213         * elf/dl-open.c (add_to_global): When global scope array must
6214         grow, allocate a new one and free old array only after all
6215         lookups finish.
6216         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6217         (_dl_lookup_symbol_x): Likewise.
6218         * elf/dl-support.c: Define _dl_wait_lookup_done.
6219         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6220         _dl_wait_lookup_done.
6222         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6223         not overlapping with arena.
6225         * malloc/mcheck.c (reallochook): If size==0, free the block.
6227         * rt/tst-shm.c: Use fstat64 instead of fstat.
6229         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6230         __NR_sync_file_range is not defined.
6232 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6234         Dummy files to prevent stub versions from being used.
6235         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6236         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6237         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6238         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6240         * version.h (VERSION): Set to 2.6.90.
6242 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6244         * version.h (VERSION): Define to 2.6.
6245         * include/features.h (__GLIBC_MINOR__): Define to 6.
6247         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6249         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6250         sizes.
6252 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6254         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6255         number of mmaps.  n_mmaps_max is the target.
6256         * malloc/hooks.c: Likewise.
6257         * malloc/arena.c: Likewise.
6259 2007-05-12  Andreas Jaeger  <aj@suse.de>
6261         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6262         getpid.
6264 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6266         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6267         adding new variables.
6269         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6270         optimize.  Completely extend global scope array before making the
6271         new entries visible.
6273 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6275         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6276         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6277         tst-getcpu.
6279         * include/link.h: Move l_version and l_nversion members around to
6280         fill gaps.
6282         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6284         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6285         (__sched_setaffinity_new): If syscall was successful and
6286         RESET_VGETCPU_CACHE is defined, use it before returning.
6287         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6289         * io/sys/stat.h: Make sure struct timespec is defined for
6290         __USE_ATFILE.
6292         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6293         UTIME_OMIT.
6294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6295         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6296         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6297         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6298         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6299         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6300         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6301         * io/sys/stat.h: Declare utimensat, futimens.
6302         * io/utimensat.c: New file.
6303         * io/futimens.c: New file.
6304         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6305         * sysdeps/unix/sysv/linux/futimens.c: New file.
6306         * io/Makefile (routines): Add utimensat, futimens.
6307         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6308         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6309         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6310         available.
6312         * include/sys/cdefs.h: Redefine __nonnull so that test for
6313         incorrect parameters in the libc code itself are not omitted.
6315 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6317         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6318         exception in addition to inexact when asked to raise only FE_INEXACT.
6320         [BZ #3427]
6321         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6322         in *envp.
6324 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6326         [BZ #4403]
6327         * string/strfry.c (strfry): Make result more random.
6329 2007-05-07  Richard Henderson  <rth@redhat.com>
6331         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6332         if __NO_LONG_DOUBLE_MATH.
6333         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6334         available in the compiler, add .arch directive to the assembly.
6336 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6338         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6339         compat_symbol to GLIBC_2_1.
6340         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6341         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6342         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6343         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6344         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6345         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6346         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6347         libc, not libm.
6348         (__isnanl): New compat_symbol.
6350 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6351             Jakub Jelinek  <jakub@redhat.com>
6353         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6354         (new_heap): Initialize mprotect_size.
6355         (grow_heap): When growing, only mprotect from mprotect_size till
6356         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6357         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6359 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6360             Peter Bergner  <bergner@us.ibm.com>
6362         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6363         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6364         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6365         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6366         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6367         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6368         Call __fe_mask_env() if all FP exceptions disabled.
6369         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6370         from old FPSCR to new fenv to propagate DFP rounding modes.
6371         Call __fe_mask_env() if FP exceptions previously enabled.
6372         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6373         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6374         transitioning from all exceptions disabled to any exception enabled
6375         or visa versa.
6376         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6377         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6378         when transitioning from all exceptions disabled to any exception
6379         enabled or visa versa.
6380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6387 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6389         [BZ #4465]
6390         * posix/unistd.h: Remove __THROW from fdatasync.
6392 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6394         [BZ #4465]
6395         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6397 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6399         * stdio-common/vfprintf.c (process_string_arg): Optimize
6400         ridiculous precision in wide char code printing multi-byte string.
6401         Reported by Jim Meyering <jim@meyering.net>.
6403         [BZ #4131]
6404         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6405         boundaries to work around systems with overlapping binary loading.
6406         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6408 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6410         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6411         __mbsnrtowcs after last change.
6413         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6414         (get_ident): Likewise.
6416 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6418         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6419         with setting the sticky bit.
6420         * math/test-misc.c (main): Add more truncation tests.
6422 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6424         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6425         double in the function declaration.
6426         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6427         double in the function declaration.
6428         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6429         float in the function declaration.
6430         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6431         float in the function declaration.
6433         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6434         denormal operands.  Do not generate FP_EX_DENORM exception.
6435         (FP_UNPACK_RAW_EP): Ditto.
6436         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6437         undefined _FP_UNPACK_RAW_E.
6438         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6439         undefined _FP_UNPACK_RAW_EP.
6440         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6441         undefined _FP_PACK_RAW_E.
6442         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6443         undefined _FP_PACK_RAW_EP.
6445         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6446         _FP_FRAC_COPY_2.
6447         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6448         _FP_FRAC_COPY_4.
6450 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6451             Jakub Jelinek  <jakub@redhat.com>
6453         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6454         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6455         this case.
6456         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6458 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6460         * math/test-misc.c (main): Add tests for rounding long double
6461         values close to smallest double denormalized value to double.
6463 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6465         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6466         condition for truncating to 0.  Set sticky bit for such
6467         truncation.
6469 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6471         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6472         fixed length array for ignore.
6474 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6476         [BZ #4438]
6477         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6478         stack for large precisions.
6479         * stdio-common/test-vfprintf.c (main): Add test for large
6480         precision.
6482 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6484         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6485         for exponent 0.
6486         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6488         [BZ #4439]
6489         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6490         account in the size check.
6491         * resolv/tst-inet_ntop.c: New test.
6492         * resolv/Makefile (tests): Add tst-inet_ntop.
6494 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6495             Jakub Jelinek  <jakub@redhat.com>
6497         [BZ #4349]
6498         * malloc/malloc.c: Keep separate list for first blocks on the bin
6499         lists with a given size.  This helps skipping over list elements
6500         we know won't fit in two places.
6501         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6503 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6505         [BZ #4102]
6506         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6507         label to Teredo tunnel addresses 2001://32.
6509 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6511         * locale/programs/ld-collate.c (collate_read): Allow order_start
6512         after copy.
6514         * locale/programs/ld-collate.c (collate_read): Fix printing of
6515         error message.
6517         [BZ #3213]
6518         * locale/C-translit.h.in: Add entry for U2044.
6520         [BZ #4342]
6521         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6522         hexa-decimal floats without exponent.
6523         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6525 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6527         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6528         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6529         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6530         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6531         GLIBC_2.6.
6532         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6533         Add sched_getcpu.
6535 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6537         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6538         of 0 after the out_fail label.
6540 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6542         [BZ #4406]
6543         * iconv/gconv_charset.h (strip): Allow ':'.
6544         * iconv/iconv_open.c (iconv_open): Adjust comment.
6546 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6548         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6549         version.
6551 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6553         [BZ #4381]
6554         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6555         alignment of buffer and tmp_buffer.
6556         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6557         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6558         alignment of buffer.
6559         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6560         bigger than INT_MAX.
6561         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6562         h_errnop arguments.  Fail if buflen is too small.
6563         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6565 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6567         [BZ #4405]
6568         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6569         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6571 2007-04-22  Roland McGrath  <roland@redhat.com>
6573         * elf/elf.h (NT_PRXFPREG): New macro.
6575 2007-04-19  Andreas Jaeger  <aj@suse.de>
6577         [BZ #3905]
6578         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6579         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6580         Added.
6582 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6584         * include/sys/mman.h: Mark madvise hidden.
6585         * misc/madvise.c: Add libc_hidden_def.
6587 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6589         * nis/nis_domain_of.c (__nis_domain_of): New function.
6590         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6591         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6592         * nis/nis_call.c (rec_dirsearch): Likewise.
6593         (first_shoot): Likewise.  Remove search_parent_first argument.
6594         (struct nis_server_cache): Rename search_parent_first field
6595         to search_parent.
6596         (nis_server_cache_search, nis_server_cache_add): Rename
6597         search_parent_first argument to search_parent.
6598         (__nisfind_server): Likewise.  If search_parent, call
6599         __nis_domain_of.
6601 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6603         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6605 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6607         [BZ #4368]
6608         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6610 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6612         [BZ #4364]
6613         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6615 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6617         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6618         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6619         current number of locales in SUPPORTED.
6620         (create_archive): Initialize serial.
6621         (enlarge_archive): Preserve aliases rather than duplicating
6622         their locrecs.
6624 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6626         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6627         after _IO_un_link, not before it.
6629         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6630         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6631         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6633 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6635         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6636         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6637         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6638         Remove __THROW.
6639         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6640         _IO_file_xsgetn_maybe_mmap): Likewise.
6641         * libio/oldfileops.c (old_do_write): Likewise.
6642         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6643         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6644         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6645         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6646         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6647         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6648         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6649         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6650         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6651         _IO_file_underflow, _IO_file_underflow_mmap,
6652         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6653         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6654         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6655         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6656         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6657         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6658         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6659         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6660         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6661         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6662         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6663         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6664         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6665         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6666         _IO_adjust_column_internal, _IO_default_uflow_internal,
6667         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6668         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6669         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6670         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6671         _IO_file_close_it_internal, _IO_file_underflow_internal,
6672         _IO_file_overflow_internal, _IO_file_attach_internal,
6673         _IO_file_fopen_internal, _IO_file_sync_internal,
6674         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6675         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6676         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6677         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6678         _IO_seekpos_unlocked): Likewise.
6679         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6680         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6682 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6684         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6685         argument in xmalloc size computation.
6687 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6689         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6690         math_opt_barrier and math_force_eval macros.
6692 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6694         [BZ #3306]
6695         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6696         * sysdeps/i386/fpu/math_private.h: New file.
6697         * sysdeps/x86_64/fpu/math_private.h: New file.
6698         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6699         math_force_eval macros.  Use "+m" constraint on asm rather than
6700         "=m" and "m".
6701         * math/s_nextafter.c (__nextafter): Likewise.
6702         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6703         Likewise.
6704         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6705         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6706         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6707         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6708         math_opt_barrier and math_force_eval macros.
6709         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6710         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6711         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6712         (__nexttoward): Use math_opt_barrier and
6713         math_force_eval macros.  Use "+m" constraint on asm rather than
6714         "=m" and "m".  Only use asm to force double result if
6715         FLT_EVAL_METHOD is 2.
6716         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6717         (__nexttowardf): Use math_opt_barrier and
6718         math_force_eval macros.  Use "+m" constraint on asm rather than
6719         "=m" and "m".  Only use asm to force double result if
6720         FLT_EVAL_METHOD is not 0.
6721         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6722         (__nexttowardf): Use math_opt_barrier and
6723         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6724         x to float using asm.
6725         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6726         (__nldbl_nexttowardf): Use math_opt_barrier and
6727         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6728         x to float using asm.
6729         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6730         (__nexttowardf): Use math_opt_barrier and math_force_eval
6731         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6732         * math/bug-nextafter.c (zero, inf): New variables.
6733         (main): Add new tests.
6734         * math/bug-nexttoward.c (zero, inf): New variables.
6735         (main): Add new tests.
6737 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6739         [BZ #3427]
6740         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6741         exceptions both in SW and MXCSR.
6742         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6743         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6744         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6745         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6746         in MXCSR if SSE is available.
6747         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6748         and ldsodefs.h.
6749         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6750         Fix comment typo.
6751         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6752         Return 0 rather than 1.
6753         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6754         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6755         * math/test-fenv.c (feholdexcept_tests): New function.
6756         (main): Call it.
6758 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6760         [BZ #3427]
6761         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6762         in SW.
6764 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6766         [BZ #4344]
6767         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6768         Reported by David Anderson <davea42@earthlink.net>.
6770 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6772         * posix/sys/wait.h: Remove unnecessary forward declaration.
6774 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6776         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6777         with obj->do_servers after first_shoot.
6779 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6781         * posix/Makefile (routines): Add sched_cpucount.
6782         (tests): Add tst-cpucount.
6783         * posix/sched_cpucount.c: New file.
6784         * posix/tst-cpucount.c: New file.
6785         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6786         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6787         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6788         * posix/sched.h: Define CPU_COUNT.
6790 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6792         * posix/fnmatch.c (STRUCT): Define.
6793         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6794         * posix/fnmatch_loop.c (struct STRUCT): New type.
6795         (FCT): Add ends argument.  If ends != NULL and normal * is
6796         seen in the pattern, store current pattern and string pointers
6797         and return.  Adjust recursive calls.
6798         (EXT): Adjust FCT callers.
6799         (STRUCT): Undef at the end of the file.
6800         * posix/Makefile (tests): Add tst-fnmatch2.
6801         * posix/tst-fnmatch2.c: New test.
6803 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6805         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6806         and 1 on failure.
6808         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6809         Change last argument to unsigned int.
6811 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6813         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6815 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6817         * config.h.in (HAVE_LIBCAP): Add.
6818         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6819         sys/capabilities.h.
6820         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6821         free_caps.  Cast away const from 4th cap_set_flag argument.
6823 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6825         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6826         GLIBC_2.6.
6827         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6828         Add sync_file_range.
6829         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6831 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6833         * sysdeps/powerpc/bits/atomic.h
6834         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6835         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6836         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6837         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6838         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6839         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6840         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6841         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6842         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6843         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6844         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6845         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6846         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6847         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6848         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6849         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6850         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6851         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6852         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6853         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6855 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6857         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6858         (__cache_line_size): Define the variable here.  Add
6859         attribute_hidden, remove weak_extern.
6860         (__libc_start_main): Set __cache_line_size
6861         unconditionally.
6862         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6863         (__cache_line_size): Define the variable here.  Add
6864         attribute_hidden, remove weak_extern.
6865         (DL_PLATFORM_AUXV): Set __cache_line_size
6866         unconditionally.
6867         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6868         weak_extern, add attribute_hidden.
6869         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6870         defined in ld.so.
6871         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6872         definition.
6873         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6875 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6877         [BZ #4276]
6878         * timezone/africa: Update from tzdata2007d.
6879         * timezone/asia: Likewise.
6880         * timezone/australasia: Likewise.
6881         * timezone/backward: Likewise.
6882         * timezone/europe: Likewise.
6883         * timezone/iso3166.tab: Likewise.
6884         * timezone/leapseconds: Likewise.
6885         * timezone/northamerica: Likewise.
6886         * timezone/southamerica: Likewise.
6887         * timezone/zone.tab: Likewise.
6889         * timezone/private.h: Update from tzcode2007d.
6890         * timezone/zdump.c: Likewise.
6891         * timezone/zic.c: Likewise.
6893 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6895         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6896         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6897         variables.
6898         (nis_server_cache_search, nis_server_cache_add): New functions.
6899         (__nisfind_server): Use them.  Add dbp and flags argument, if
6900         call __nisbind_create.
6901         (__nisbind_create): Add server_used and current_ep arguments,
6902         only call __nis_findfastest if server_used is ~0.
6903         (__do_niscall2, __prepare_niscall): Adjust callers.
6904         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6905         ckey_cache_euid, ckey_cache_lock): New variables.
6906         (get_ckey): New function.
6907         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6908         __pmap_getnisport.  Save __pmap_getnisport result in
6909         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6910         key.
6911         * nis/nis_lookup.c (nis_lookup): Likewise.
6912         * nis/nis_table.c (nis_list): Likewise.
6913         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6914         prototypes.
6916         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6917         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6918         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6919         _nss_nisplus_getservbyport_r): Likewise.
6920         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6921         _nss_nisplus_getnetbyaddr_r): Likewise.
6922         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6923         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6924         _nss_nisplus_getntohost_r): Likewise.
6925         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6926         _nss_nisplus_getrpcbynumber_r): Likewise.
6928 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6930         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6931         * configure: Rebuilt.
6933         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6934         bit-fields.
6935         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6937 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6939         [BZ #2831]
6940         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6941         bit-fields.
6943 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6945         * nscd/gai.c: Include alloca.h.
6946         (__libc_use_alloca): Define.
6948 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6950         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6951         smaller scopes.
6952         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6953         (DL_DST_REQUIRED): Adjust user.
6955         * include/dlfcn.h (struct link_map): New forward decl.
6957         * inet/getnameinfo.c: Include stddef.h.
6958         (getnameinfo): Use offsetof.
6960         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6962         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6964         * string/strerror_l.c: Include stdlib.h.
6966         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6967         * config.make.in (gnu89-inline-CFLAGS): New variable.
6968         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6969         -std=gnu99.
6970         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6971         * argp/argp.h: Use it.
6972         * bits/mathinline.h: Likewise.
6973         * bits/sigset.h: Likewise.
6974         * bits/string.h: Likewise.
6975         * ctype/ctype.h: Likewise.
6976         * hurd/hurd.h: Likewise.
6977         * hurd/hurd/fd.h: Likewise.
6978         * hurd/hurd/port.h: Likewise.
6979         * hurd/hurd/signal.h: Likewise.
6980         * hurd/hurd/threadvar.h: Likewise.
6981         * hurd/hurd/userlink.h: Likewise.
6982         * io/sys/stat.h: Likewise.
6983         * libio/bits/stdio.h: Likewise.
6984         * libio/bits/stdio2.h: Likewise.
6985         * mach/lock-intern.h: Likewise.
6986         * mach/mach/mig_support.h: Likewise.
6987         * math/bits/cmathcalls.h: Likewise.
6988         * posix/bits/unistd.h: Likewise.
6989         * socket/bits/socket2.h: Likewise.
6990         * stdlib/bits/stdlib.h: Likewise.
6991         * stdlib/stdlib.h: Likewise.
6992         * string/argz.h: Likewise.
6993         * string/bits/string2.h: Likewise.
6994         * string/bits/string3.h: Likewise.
6995         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6996         * sysdeps/generic/inttypes.h: Likewise.
6997         * sysdeps/generic/machine-lock.h: Likewise.
6998         * sysdeps/generic/machine-sp.h: Likewise.
6999         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7000         * sysdeps/i386/i486/bits/string.h: Likewise.
7001         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7002         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7003         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7004         * sysdeps/mach/i386/machine-lock.h: Likewise.
7005         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7006         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7007         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7008         * sysdeps/s390/bits/string.h: Likewise.
7009         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7010         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7011         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7012         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7013         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7014         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7015         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7016         * wcsmbs/bits/wchar2.h: Likewise.
7017         * wcsmbs/wchar.h: Likewise.
7018         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7019         __extern_inline definition.
7021 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7023         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7024         NULL.
7026         [BZ #3919]
7027         * math/libm-test.inc (log_test): Test -Inf and NaN.
7028         (log10_test, log1p_test, log2_test): Test -Inf.
7029         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7030         FE_INVALID when argument is qNaN.
7031         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7032         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7033         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7034         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7035         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7036         testb $4, %ah and jump if non-zero.
7037         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7038         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7040         [BZ #4101]
7041         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7042         ancestors with the same depths.
7043         Patch by Niels Moeller <nisse@lysator.liu.se>.
7044         (filter_doc): Don't crash if argp is NULL.
7045         * argp/Makefile (tests): Add tst-argp2.
7046         * argp/tst-argp2.c: New test.
7048         [BZ #4130]
7049         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7050         open_not_cancel_2.
7051         (updwtmp_file): Likewise.
7053         [BZ #4181]
7054         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7055         (inet6_opt_append): Don't check extlen is big enough if extbuf
7056         is NULL.
7057         (inet6_opt_finish): Likewise.
7058         * inet/Makefile (tests): Add test-inet6_opt.
7059         * inet/test-inet6_opt.c: New test.
7061         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7062         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7063         NLMSG_ERR.  Instead use a page sized buffer.
7064         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7065         buffer.
7067 2007-03-14  Richard Henderson  <rth@redhat.com>
7069         * sysdeps/alpha/fpu/s_llround.c: New file.
7070         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7071         * sysdeps/alpha/fpu/s_lround.c: New file.
7072         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7073         * sysdeps/alpha/fpu/s_round.c: New file.
7074         * sysdeps/alpha/fpu/s_roundf.c: New file.
7075         * sysdeps/alpha/fpu/s_trunc.c: New file.
7076         * sysdeps/alpha/fpu/s_truncf.c: New file.
7078         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7079         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7080         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7081         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7082         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7083         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7085         * sysdeps/alpha/fpu/s_fmax.S: New file.
7086         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7087         * sysdeps/alpha/fpu/s_fmin.S: New file.
7088         * sysdeps/alpha/fpu/s_fminf.S: New file.
7089         * sysdeps/alpha/fpu/s_isnan.c: New file.
7090         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7091         * sysdeps/alpha/fpu/s_llrint.c: New file.
7092         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7093         * sysdeps/alpha/fpu/s_lrint.c: New file.
7094         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7095         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7096         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7098         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7099         (__fdimf, fdimf, __fdim, fdim): Remove.
7100         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7101         (__isnanf, __isnan, __isnanl): New.
7103 2007-03-13  Richard Henderson  <rth@redhat.com>
7105         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7107 2007-03-13  Richard Henderson  <rth@redhat.com>
7109         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7110         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7111         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7112         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7113         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7114         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7116 2007-03-13  Richard Henderson  <rth@redhat.com>
7118         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7119         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7120         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7121         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7122         Move to dl-auxv.h; initialize instead of extern weak.
7123         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7124         weak symbol.
7125         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7126         Extern instead of initialized.
7128 2007-03-13  Richard Henderson  <rth@redhat.com>
7130         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7131         __sigsuspend_nocancel.
7133 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7135         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7136         172.16/12 address range.
7138 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7140         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7141         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7142         message.
7144 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7146         [BZ #4069]
7147         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7148         earlier.
7149         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7151         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7152         for x qNaN and y either +-inf or non-integer value.
7153         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7154         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7155         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7157 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7159         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7160         from sysdep_headers.
7162 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7164         * time/tzfile.c (find_transition): Instead of a linear search try to
7165         guess the transition index, use a linear search if the result is at
7166         most 10 transitions away from the guess or binary search otherwise.
7168 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7170         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7171         memory reallocation.
7173 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7175         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7176         and fix some typos.
7177         Optimize use of TOLOWER.
7179         [BZ #3325]
7180         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7181         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7182         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7184         [BZ #3458]
7185         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7186         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7188         [BZ #4076]
7189         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7190         (open_dir_stream): Likewise.
7191         * io/Makefile (tests): Add bug-ftw5.
7192         * io/bug-ftw5.c: New file.
7194         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7195         * nscd/servicescache.c (cache_addserv): Likewise.
7197         * nscd/grpcache.c (cache_addgr): In case a record changed on
7198         refresh, adjust key_copy.
7200         [BZ #4074]
7201         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7202         refresh, adjust key_copy.
7204         [BZ #4070]
7205         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7206         special cases.
7207         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7209 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7211         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7212         optimization.
7214         * stdio-common/vfscanf.c: Small cleanups throughout.
7216 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7218         [BZ #3325]
7219         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7220         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7221         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7222         Patch by Jared Casper <jaredcasper@gmail.com>.
7224         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7225         * sysdeps/unix/opendir.c: Likewise.
7226         * sysdeps/unix/readdir.c: Likewise.
7228         [BZ #2211]
7229         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7230         point numbers.
7231         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7233         * stdio-common/vfscanf.c: Fix problems in width accounting.
7234         * stdio-common/tst-sscanf.c (double_tests): New tests.
7235         (main): Hook them up.
7237         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7238         More simplifications of floating-point reader.
7240         * stdio-common/Makefile (tests): Add tst-swscanf.
7241         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7242         testing.
7243         * stdio-common/tst-swscanf.c: New file.
7245 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7247         [BZ #2633]
7248         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7249         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7250         Remove using for __jmp_buf_tag.
7251         * locale/locale.h (struct lconv): Also define in std namespace.
7252         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7254         [BZ #3842]
7255         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7256         using __libc_enable_secure.
7258         [BZ #3818]
7259         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7261         [BZ #3745]
7262         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7263         of names for ellipsises.
7265         [BZ #3348]
7266         * malloc/memusage.sh: Cleanups.
7267         * debug/xtrace.sh: Quoting and trap changes.
7269 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7271         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7273         * locale/iso-3166.def: Update entry for Serbia.
7274         * locale/iso-4217.def: Define RSD, remove CSD.
7276         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7277         and 64-bit operations.
7279         [BZ #4040]
7280         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7281         16-bit operations.
7283         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7284         of writev.
7286 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7288         [BZ #3991]
7289         * assert/assert.h (assert): Simplify.
7290         (assert_perror): Likewise.
7291         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7293         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7294         reqdata.
7296         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7297         change: don't pass NULL in place of an integer.
7299 2007-02-02  Bruno Haible  <bruno@clisp.org>
7301         [BZ #3954]
7302         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7303         Add mapping for U+327E.
7304         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7305         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7306         mapping of 0xD9 0xE8.
7307         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7308         mapping of U+327E.
7309         Reported by Jungshik Shin <jungshik@google.com>.
7311         [BZ #3955]
7312         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7313         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7314         Reported by Jungshik Shin <jungshik@google.com>.
7316 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7318         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7319         byte variants.
7321         [BZ #4040]
7322         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7323         byte variants.  Patch mostly be tom@tommay.net.
7325 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7327         [BZ #3996]
7328         * posix/glob.c (attribute_hidden): Define if not defined.
7329         (glob): Unescape dirname, filename or username when needed and not
7330         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7331         is NULL.  Handle unescaped [ in pattern without closing ].
7332         Don't pass GLOB_CHECK down to recursive glob for directories.
7333         (__glob_pattern_type): New function.
7334         (__glob_pattern_p): Implement using __glob_pattern_type.
7335         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7336         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7337         Remove unreachable code.
7338         * posix/globtest.sh: Add a couple of new tests.
7340 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7342         * po/ru.po: Update from translation team.
7344 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7346         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7347         to the list of i486+ CPUs.
7348         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7350 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7352         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7353         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7354         references.
7356 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7358         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7360         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7361         * resolv/res_mkquery.c: Define __res_nopt.
7362         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7363         try adding EDNS0 record.
7364         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7365         EDNS0 record was send make sure we don't try it again.
7366         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7367         * include/resolv.h: Declare __res_nopt.
7369 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7371         [BZ #3944]
7372         * time/strptime_l.c (__strptime_internal): Set have_mon for
7373         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7374         have been computed from tm_yday and tm_year.  Don't crash
7375         in day_of_the_week or day_of_the_year if not have_mon
7376         and tm_mon contains bogus value.
7377         * time/Makefile (tests): Add tst-strptime3.
7378         * time/tst-strptime3.c: New test.
7380 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7382         [BZ #3957]
7383         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7384         bit for RE_HAT_LISTS_NOT_NEWLINE.
7385         (build_charclass_op): Remove bogus comment.
7386         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7387         * posix/bug-regex27.c: New test.
7388         * posix/bug-regex28.c: New test.
7390 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7392         * po/sv.po: Update from translation team.
7394 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7396         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7398 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7400         * include/locale.h (__uselocale): Add libc_hidden_proto.
7401         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7403         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7404         gettimeofday.
7406 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7408         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7409         returning.
7410         (PTR_DEMANGLE): Real definition now that it's not the same as
7411         PRT_MANGLE anymore.
7412         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7414         * string/strerror_l.c: New file.
7415         * string/Makefile (routines): Add strerror_l.
7416         * string/string.h: Declare strerror_l.
7417         * string/Versions: Export strerror_l for GLIBC_2.6.
7419 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7421         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7422         as parameter.  Construct request record.  Try sending request
7423         before the first poll use, it usually succeeds.  Adjust all
7424         callers.
7425         * nscd/nscd-client.h: Define MAXKEYLEN.
7426         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7428 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7430         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7431         from return value.
7432         * nscd/nscd_helper.c: Include string.h.
7433         (__nscd_cache_search): Remove const qualifier from return value.
7434         On strict alignment architectures check hash entry and data head
7435         alignment.
7436         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7437         mmapped data during GC cycle contains garbage.  If
7438         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7439         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7440         dropped to 0.
7441         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7442         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7443         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7444         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7445         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7447 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7449         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7451 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7453         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7454         names not numbers in cfi_*.
7456 2007-01-26  Andreas Jaeger  <aj@suse.de>
7458         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7459         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7460         Correct values of PER_HPUX and PER_OSF4.
7462 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7464         * elf/dl-minimal.c: Undefine _itoa first.
7465         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7466         * malloc/mtrace.c: Revert last change.
7467         * posix/wordexp.c: Likewise.
7469 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7471         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7472         and __geode__ to the list of i486+ CPUs.
7473         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7475 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7477         * stdio-common/_itoa.c: Include <limits.h>.
7478         * stdio-common/_itowa.c: Likewise.
7480 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7482         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7483         platforms.
7484         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7485         64-bit platforms.
7486         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7487         possible.
7488         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7489         if possible.
7491         [BZ #3902]
7492         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7493         * stdio-common/Makefile (tests): Add bug17.
7494         * stdio-common/bug17.c: New file.
7496 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7498         * iconvdata/brf.c: New file.
7499         * iconvdata/testdata/BRF: New file.
7500         * iconvdata/testdata/BRF..UTF8: New file.
7501         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7502         * iconvdata/Makefile: Add rules to build BRF.
7503         * iconvdata/TESTS: Add BRF entry.
7504         * iconvdata/gconv-modules: Likewise.
7505         * iconvdata/tst-tables.sh: Likewise.
7507 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7509         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7510         type `long long int', not `long int'.
7511         (wcstoq): Likewise.
7513 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7515         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7516         of values on 64-bit platforms which are too large.
7518 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7519             Joe Kerian  <jkerian@us.us.ibm.com>
7521         [BZ #2749]
7522         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7523         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7524         (__copysignl): Use signbit() for comparison.
7525         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7526         SET_LDOUBLE_WORDS64.
7528         [BZ #2423, #2749]
7529         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7530         (__ceill): Remove calls to fegetround(), fesetround().
7531         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7535 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7537         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7539         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7541 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7543         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7544         demangle pointer.
7545         * csu/libc-start.c: Likewise.
7547 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7549         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7550         really work anyway.
7552 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7554         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7555         users.
7556         (handle_request): Remove unnecessary tests.
7558         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7560 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7562         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7563         workbits in semi-raw fraction.
7565         * math/test-misc.c: Add new tests.
7567 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7569         * math/basic-test.c: Include test-skeleton.c.
7570         (TEST_TRUNC): Define.
7571         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7572         (main): Rename to ...
7573         (do_test): ...this.  Run new tests.
7574         (TEST_FUNCTION): Define.
7576 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7577             Joe Kerian  <jkerian@us.us.ibm.com>
7579         [BZ #2749]
7580         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7581         handling for high words.
7582         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7583         and overflow for infinity.
7585 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7587         * nscd/connections.c (handle_request): Add a __builtin_expect.
7589         * nscd/connections.c (serv2db): Change type into structure which
7590         also says whether this is a request for data.  Renamed to
7591         servinfo.  All users changed.
7592         (handle_request): Much simpler test whether we should search the cache.
7594         * nscd/connections.c (handle_request): Fix thinko in selinux test
7595         invocation.
7597         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7598         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7599         it before getting dl_load_lock and then relock.
7600         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7601         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7602         case we unlocked the scope.
7603         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7604         _dl_lookup_symbol_x in case we locked the scope.
7605         (_dl_profile_fixup): Likewise.
7606         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7607         set DL_LOOKUP_SCOPE_LOCK.
7609 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7611         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7612         CFLAGS-getsrvbynpt_r.c.
7613         * nscd/getsrvbynm_r.c: New file.
7614         * nscd/getsrvbypt_r.c: New file.
7615         * nscd/nscd_getserv_r.c: New file.
7616         * nscd/servicescache.c: New file.
7617         * nscd/Makefile (routines): Add nscd_getserv_r.
7618         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7619         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7620         CFLAGS-getsrvbypt_r.c.
7621         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7622         table.  Add entries for services database.
7623         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7624         services database.
7625         (dbs): Add .reset_res and servdb initialization.
7626         (serv2db): Add entries for services database.
7627         (verify_persistent_db): Accept dbnr == servdb.
7628         (invalidate_cache): Rewrite database name recognition to use a table.
7629         Call res_init() if .reset_res is set for database.
7630         (handle_request): Add code to handle services database.
7631         * nscd/gai.c: Don't define __getservbyname_r.
7632         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7633         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7634         (serv_response_header): Define.
7635         (struct datahead): Add serv_response_header member.
7636         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7637         using table.
7638         * nscd/nscd.conf: Add entries for services database.
7639         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7640         Declare serv_iov_disabled.
7641         Declare addservbyname, readdservbyname, addservbyport, and
7642         readdservbyport.
7643         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7644         (find_db): Fix error message.
7645         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7646         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7647         * nscd/selinux.c (perms): Add entries for services database.
7648         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7649         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7651         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7652         * nscd/hstcache.c: Likewise.
7653         * nscd/pwdcache.c: Likewise.
7655         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7656         computation of keylen.
7658         * include/string.h: Only redefine strndupa if this is really for
7659         libc code.
7661 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7663         * nscd/nscd_gethst_r.c: Minor cleanups.
7665         * nscd/connections.c (handle_request): Check selinux permissions
7666         for all non-admin commands.
7668         * sysdeps/i386/i486/bits/atomic.h: Define
7669         atomic_compare_and_exchange_val_acq,
7670         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7671         using __sync_* built-ins for gcc >= 4.1.
7672         * sysdeps/x86_64/bits/atomic.h: Likewise.
7674         [BZ #3840]
7675         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7676         and .oS.d files.
7678 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7680         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7681         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7682         (do_test): Check errno and exit(0) if ENOSYS.
7684 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7686         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7687         thousands separators.
7688         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7689         * stdlib/tst-strtod4.c: New test.
7691         [BZ #3855]
7692         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7693         hexadecimal digit should accept just the initial 0.
7694         * stdlib/tst-strtod2.c (tests): New variable.
7695         (do_test): Run several tests rather than just one.
7697 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7699         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7700         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7702 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7704         * io/fts.c: Make sure fts_cur is always valid after return from
7705         fts_read.
7706         Patch by Miloslav Trmac <mitr@redhat.com>.
7708 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7710         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7711         (R_MIPS_NUM): Bump by 1.
7713 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7715         * posix/execvp.c: Include alloca.h.
7716         (allocate_scripts_argv): Renamed to...
7717         (scripts_argv): ... this.  Don't allocate buffer here nor count
7718         arguments.
7719         (execvp): Use alloca if possible.
7720         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7721         * posix/tst-vfork3.c: New test.
7723 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7725         * string/Makefile (tst-strxfrm2-ENV): Define.
7726         * stdlib/Makefile (tst-strtod3-ENV): Define.
7728 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7730         * posix/getconf.c: Update copyright year.
7731         * nss/getent.c: Likewise.
7732         * iconv/iconvconfig.c: Likewise.
7733         * iconv/iconv_prog.c: Likewise.
7734         * elf/ldconfig.c: Likewise.
7735         * catgets/gencat.c: Likewise.
7736         * csu/version.c: Likewise.
7737         * elf/ldd.bash.in: Likewise.
7738         * elf/sprof.c (print_version): Likewise.
7739         * locale/programs/locale.c: Likewise.
7740         * locale/programs/localedef.c: Likewise.
7741         * nscd/nscd.c (print_version): Likewise.
7742         * debug/xtrace.sh: Likewise.
7743         * malloc/memusage.sh: Likewise.
7744         * malloc/mtrace.pl: Likewise.
7745         * debug/catchsegv.sh: Likewise.
7747 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7749         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7750         attempts.
7752 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7754         * posix/wordexp.c: Remove some unnecessary tests.
7756 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7758         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7759         blacklist the group till after we look it up.
7761 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7763         * include/atomic.h (atomic_forced_read): New macro.
7765 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7767         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7769 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7771         * nss/getXXbyYY_r.c: Include atomic.h.
7772         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7773         add atomic_write_barrier () in between.
7775         * stdlib/Makefile (tests): Add tst-makecontext.
7776         * stdlib/tst-makecontext.c: New test.
7778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7779         (__makecontext): Don't realign uc_mcontext.uc_regs.
7781 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7783         * elf/dl-support.c: Include dl-procinfo.h.
7784         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7785         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7786         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7787         Define.
7788         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7789         hardcoded constants.
7790         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7791         PPC_PLATFORM_* macros for array designators.
7793 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7795         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7796         names to the beginning.
7797         (_dl_powerpc_platforms): Add "power6x".
7798         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7799         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7800         (_DL_PLATFORMS_COUNT): Increase.
7801         (_dl_string_platform): Handle power6x case.
7802         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7803         PPC_FEATURE_POWER6_EXT): Define.
7804         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7806 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7808         [BZ #3747]
7809         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7810         [-2^31 .. 2^31) range.
7811         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7812         targets.
7813         * stdlib/tst-rand48-2.c: New test.
7814         * stdlib/Makefile (tests): Add tst-rand48-2.
7816 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7818         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7820 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7822         * misc/tst-pselect.c (do_test): Make sure the helper process is
7823         terminating when the test is aborted.
7825 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7827         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7828         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7829         Handle relatime mount option.
7831         [BZ #2337]
7832         * libio/Makefile (tests): Add tst-setvbuf1.
7833         * libio/tst-setvbuf1.c: New file.
7835 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7837         [BZ #2337]
7838         * libio/genops.c (__uflow): Fix a typo.
7839         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7840         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7841         the narrow buffer size.
7843 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7845         [BZ #2337]
7846         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7847         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7848         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7849         in _flags.
7850         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7851         _IO_wstr_finish): Likewise.
7852         * libio/wmemstream.c (open_wmemstream): Likewise.
7853         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7854         even for wide streams.
7856 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7859         kernel-features.h.
7861 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7863         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7864         separators also if no non-zero digits found.
7865         * stdlib/Makefile (tests): Add tst-strtod3.
7867 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7869         [BZ #3632]
7870         * include/features.h: Fix comment about default value for
7871         _POSIX_C_SOURCE.
7873         [BZ #3664]
7874         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7875         empty parsed strings.
7876         * stdlib/Makefile (tests): Add tst-strtod2.
7877         * stdlib/tst-strtod2.c: New file.
7879         [BZ #3673]
7880         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7881         computation.
7882         * stdlib/Makefile (tests): Add tst-atof2.
7883         * stdlib/tst-atof2.c: New file.
7885         [BZ #3674]
7886         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7887         correctly if removing trailing zero of hex-float.
7888         * stdlib/Makefile (tests): Add tst-atof1.
7889         * stdlib/tst-atof1.c: New file.
7891 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7893         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7894         Start searching for next comma at p rather than rest.
7895         * misc/Makefile (tests): Add tst-mntent2.
7896         * misc/tst-mntent2.c: New test.
7898         * misc/getusershell.c (initshells): Check for integer overflows.
7899         Make strings buffer one bigger as fgets always succeeds when second
7900         argument is 1.  Don't use calloc for shells array.  Disallow
7901         / as shell.
7903 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7905         * malloc/memusage.c: Handle realloc with new size of zero and
7906         non-NULL pointer correctly.
7907         (me): Really write first record twice.
7908         (struct entry): Make format bi-arch safe.
7909         (dest): Write out more realloc statistics.
7910         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7912 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7914         * nis/nis_subr.c (nis_getnames): Revert last change.
7916 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7918         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7919         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7920         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7921         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7922         ENOTTY.
7923         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7924         * io/tst-ttyname_r.c: New test.
7926 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7928         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7930 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7932         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7933         jump table entries.
7935 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7937         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7938         `clone' function to ensure proper unwinding stop of gdb.
7939         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7941 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7943         * nscd/nscd.init: Remove obsolete and commented-out -S option
7944         handling.
7946 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7948         [BZ #3514]
7949         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7951         [BZ #3515]
7952         * manual/string.texi (strtok): Remove duplicate paragraph.
7954 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7956         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7957         libgcc not supporting `rflags' unwinding (register # >= 17).
7959 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7961         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7962         succeeded.
7964 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7965             Jakub Jelinek  <jakub@redhat.com>
7966             Jan Kratochvil  <jan.kratochvil@redhat.com>
7968         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7969         unwind information.
7970         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7971         'restore_rt' even in the 'signal' directory.
7972         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7974 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7976         [BZ #3559]
7977         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7978         malloc crashed.  Don't allocate memory unnecessarily in each
7979         loop.
7981 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7983         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7985 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7987         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7989 2006-11-18  Bruno Haible  <bruno@clisp.org>
7991         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7992         __sysconf only after having tried to call getgroups32.
7994 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7996         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7997         addresses for IPv4 queries if they can be mapped.
7999 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8001         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8002         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8003         (signmask): Add .size directive.
8004         (othermask): Add .type directive.
8006 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8008         * po/nl.po: Update from translation team.
8010         * timezone/zdump.c: Redo fix for BZ #3137.
8012 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8014         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8015         to first_unused after parsing :include: file.
8017 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8019         * timezone/africa: Update from tzdata2006o.
8020         * timezone/antarctica: Likewise.
8021         * timezone/asia: Likewise.
8022         * timezone/australasia: Likewise.
8023         * timezone/backward: Likewise.
8024         * timezone/europe: Likewise.
8025         * timezone/iso3166.tab: Likewise.
8026         * timezone/northamerica: Likewise.
8027         * timezone/southamerica: Likewise.
8028         * timezone/zone.tab: Likewise.
8030         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8031         on machines with 64-bit time_t.
8033         * timezone/checktab.awk: Update from tzcode2006o.
8034         * timezone/ialloc.c: Likewise.
8035         * timezone/private.h: Likewise.
8036         * timezone/scheck.c: Likewise.
8037         * timezone/tzfile.h: Likewise.
8038         * timezone/tzselect.ksh: Likewise.
8039         * timezone/zdump.c: Likewise.
8040         * timezone/zic.c: Likewise.
8042         [BZ #3483]
8043         * elf/ldconfig.c (main): Call setlocale and textdomain.
8044         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8046         [BZ #3480]
8047         * manual/argp.texi: Fix typos.
8048         * manual/charset.texi: Likewise.
8049         * manual/errno.texi: Likewise.
8050         * manual/filesys.texi: Likewise.
8051         * manual/lang.texi: Likewise.
8052         * manual/maint.texi: Likewise.
8053         * manual/memory.texi: Likewise.
8054         * manual/message.texi: Likewise.
8055         * manual/resource.texi: Likewise.
8056         * manual/search.texi: Likewise.
8057         * manual/signal.texi: Likewise.
8058         * manual/startup.texi: Likewise.
8059         * manual/stdio.texi: Likewise.
8060         * manual/sysinfo.texi: Likewise.
8061         * manual/syslog.texi: Likewise.
8062         * manual/time.texi: Likewise.
8063         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8065         [BZ #3465]
8066         * sunrpc/clnt_raw.c: Minimal message improvements.
8067         * sunrpc/pm_getmaps.c: Likewise.
8068         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8069         * nis/nis_print_group_entry.c: Likewise.
8070         * locale/programs/repertoire.c: Likewise.
8071         * locale/programs/charmap.c: Likewise.
8072         * malloc/memusage.sh: Likewise.
8073         * elf/dl-deps.c: Likewise.
8074         * locale/programs/ld-collate.c: Likewise.
8075         * libio/vswprintf.c: Likewise.
8076         * malloc/memusagestat.c: Likewise.
8077         * sunrpc/auth_unix.c: Likewise.
8078         * sunrpc/rpc_main.c: Likewise.
8079         * nscd/cache.c: Likewise.
8080         * locale/programs/repertoire.c: Unify output messages.
8081         * locale/programs/charmap.c: Likewise.
8082         * locale/programs/ld-ctype.c: Likewise.
8083         * locale/programs/ld-monetary.c: Likewise.
8084         * locale/programs/ld-numeric.c: Likewise.
8085         * locale/programs/ld-time.c: Likewise.
8086         * elf/ldconfig.c: Likewise.
8087         * nscd/selinux.c: Likewise.
8088         * elf/cache.c: Likewise.
8089         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8091         [BZ #3451]
8092         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8093         change atomic.
8094         (ceil): Likewise.
8096 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8098         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8099         if N is one bigger than return value.
8100         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8101         and l1 last arguments, if buf is defined, verify the return value
8102         equals to strlen (buf) and verify no byte beyond passed length
8103         is modified.
8105 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8107         * po/sv.po: Update from translation team.
8109 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8111         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8112         noinline attribute.
8114 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8116         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8117         noinline attribute.
8119         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8120         Use __new_sys_siglist instead of _sys_siglist_internal as
8121         second macro argument.
8122         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8123         strong_alias.
8125 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8127         [BZ #3493]
8128         * posix/unistd.h (sysconf): Remove const attribute.
8130         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8131         temporary or deprecated addresses.
8132         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8134         * string/Makefile (tests): Add tst-strxfrm2.
8135         * string/tst-strxfrm2.c: New file.
8137 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8139         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8140         rather than r->r_brk.
8142 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8144         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8145         optimization even if needed > n.
8147         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8148         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8149         return false, otherwise return true.
8150         (cache_rpath): Return decompose_rpath return value.
8152 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8154         * include/libc-symbols.h (declare_symbol): Rename to...
8155         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8156         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8157         .size directive.
8158         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8159         changes.
8160         * sysdeps/gnu/siglist.c: Likewise.
8162 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8164         * sysdeps/powerpc/fpu/bits/mathinline.h
8165         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8166         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8168 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8170         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8171         Update handling of cache descriptor 0x49 for new models.
8172         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8173         Likewise.
8175 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8177         * malloc/memusage.c (dest): Reset not_me back to false after
8178         printing statistics.
8180 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8182         * configure.in: Work around ld --help change and avoid -z relro
8183         test completely if the architecture doesn't care about security.
8185 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8187         * po/sv.po: Update from translation team.
8189 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8191         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8192         generate compatibility version.
8194 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8196         * configure.in: Relax -z relro requirement a bit.
8198         * po/sv.po: Update from translation team.
8200 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8202         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8203         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8204         * elf/dl-close.c (_dl_close_worker): Likewise.
8205         * elf/dl-open.c (_dl_open_worker): Likewise.
8206         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8208 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8210         * configure.in: Require assembler support for visibility, compiler
8211         support for visibility and aliases, linker support for various -z
8212         options.
8213         * Makeconfig: Remove conditional code which now is unnecessary.
8214         * config.h.in: Likewise.
8215         * config.make.in: Likewise.
8216         * dlfcn/Makefile: Likewise.
8217         * elf/Makefile: Likewise.
8218         * elf/dl-load.c: Likewise.
8219         * elf/rtld.c: Likewise.
8220         * include/libc-symbols.h: Likewise.
8221         * include/stdio.h: Likewise.
8222         * io/Makefile: Likewise.
8223         * io/fstat.c: Likewise.
8224         * io/fstat64.c: Likewise.
8225         * io/fstatat.c: Likewise.
8226         * io/fstatat64.c: Likewise.
8227         * io/lstat.c: Likewise.
8228         * io/lstat64.c: Likewise.
8229         * io/mknod.c: Likewise.
8230         * io/mknodat.c: Likewise.
8231         * io/stat.c: Likewise.
8232         * io/stat64.c: Likewise.
8233         * libio/stdio.c: Likewise.
8234         * nscd/Makefile: Likewise.
8235         * stdlib/Makefile: Likewise.
8236         * stdlib/atexit.c: Likewise.
8237         * sysdeps/generic/ldsodefs.h: Likewise.
8238         * sysdeps/i386/dl-machine.h: Likewise.
8239         * sysdeps/i386/sysdep.h: Likewise.
8240         * sysdeps/i386/i686/memcmp.S: Likewise.
8241         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8242         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8243         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8245         * Makerules: USE_TLS support is now default.
8246         * tls.make.c: Likewise.
8247         * csu/Versions: Likewise.
8248         * csu/libc-start.c: Likewise.
8249         * csu/libc-tls.c: Likewise.
8250         * csu/version.c: Likewise.
8251         * dlfcn/dlinfo.c: Likewise.
8252         * elf/dl-addr.c: Likewise.
8253         * elf/dl-cache.c: Likewise.
8254         * elf/dl-close.c: Likewise.
8255         * elf/dl-iteratephdr.c: Likewise.
8256         * elf/dl-load.c: Likewise.
8257         * elf/dl-lookup.c: Likewise.
8258         * elf/dl-object.c: Likewise.
8259         * elf/dl-open.c: Likewise.
8260         * elf/dl-reloc.c: Likewise.
8261         * elf/dl-support.c: Likewise.
8262         * elf/dl-sym.c: Likewise.
8263         * elf/dl-sysdep.c: Likewise.
8264         * elf/dl-tls.c: Likewise.
8265         * elf/ldconfig.c: Likewise.
8266         * elf/rtld.c: Likewise.
8267         * elf/tst-tls-dlinfo.c: Likewise.
8268         * elf/tst-tls1.c: Likewise.
8269         * elf/tst-tls10.h: Likewise.
8270         * elf/tst-tls14.c: Likewise.
8271         * elf/tst-tls2.c: Likewise.
8272         * elf/tst-tls3.c: Likewise.
8273         * elf/tst-tls4.c: Likewise.
8274         * elf/tst-tls5.c: Likewise.
8275         * elf/tst-tls6.c: Likewise.
8276         * elf/tst-tls7.c: Likewise.
8277         * elf/tst-tls8.c: Likewise.
8278         * elf/tst-tls9.c: Likewise.
8279         * elf/tst-tlsmod1.c: Likewise.
8280         * elf/tst-tlsmod13.c: Likewise.
8281         * elf/tst-tlsmod13a.c: Likewise.
8282         * elf/tst-tlsmod14a.c: Likewise.
8283         * elf/tst-tlsmod2.c: Likewise.
8284         * elf/tst-tlsmod3.c: Likewise.
8285         * elf/tst-tlsmod4.c: Likewise.
8286         * elf/tst-tlsmod5.c: Likewise.
8287         * elf/tst-tlsmod6.c: Likewise.
8288         * include/errno.h: Likewise.
8289         * include/link.h: Likewise.
8290         * include/tls.h: Likewise.
8291         * locale/global-locale.c: Likewise.
8292         * locale/localeinfo.h: Likewise.
8293         * malloc/arena.c: Likewise.
8294         * malloc/hooks.c: Likewise.
8295         * malloc/malloc.c: Likewise.
8296         * resolv/Versions: Likewise.
8297         * sysdeps/alpha/dl-machine.h: Likewise.
8298         * sysdeps/alpha/libc-tls.c: Likewise.
8299         * sysdeps/generic/ldsodefs.h: Likewise.
8300         * sysdeps/generic/tls.h: Likewise.
8301         * sysdeps/i386/dl-machine.h: Likewise.
8302         * sysdeps/ia64/dl-machine.h: Likewise.
8303         * sysdeps/ia64/libc-tls.c: Likewise.
8304         * sysdeps/mach/hurd/fork.c: Likewise.
8305         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8306         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8307         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8308         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8309         * sysdeps/s390/libc-tls.c: Likewise.
8310         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8311         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8312         * sysdeps/sh/dl-machine.h: Likewise.
8313         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8314         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8315         * sysdeps/x86_64/dl-machine.h: Likewise.
8317         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8318         split out locking and parameter checking.
8319         (_dl_close): Call _dl_close_worker after locking and checking.
8320         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8321         _dl_close.
8322         * elf/Makefile: Add rules to build and run tst-thrlock.
8323         * elf/tst-thrlock.c:  New file.
8325         [BZ #3426]
8326         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8327         reality.
8329         [BZ #3429]
8330         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8331         we are sure we do not need it anymore for _dl_close.  Also move
8332         the asserts inside the lock region.
8333         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8335 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8337         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8338         argument.
8339         (_dl_lookup_symbol_x): Adjust caller.
8341         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8342         _ns_global_scope.
8343         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8345         * elf/dl-libc.c: Revert l_scope name changes.
8346         * elf/dl-load.c: Likewise.
8347         * elf/dl-object.c: Likewise.
8348         * elf/rtld.c: Likewise.
8349         * elf/dl-close.c (_dl_close): Likewise.
8350         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8351         always use __rtld_mrlock_{change,done}.  Always free old scope list
8352         here if not l_scope_mem.
8353         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8354         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8355         the lookup and __rtld_mrlock_unlock it after the lookup.
8356         * elf/dl-sym.c: Likewise.
8357         * include/link.h (struct r_scoperec): Remove.
8358         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8359         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8361 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8363         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8365 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8367         * configure.in: Disable building profile libraries by default.
8369 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8371         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8372         as signed longs, check for x_base + pos overflow.
8373         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8374         * sunrpc/tst-xdrmem2.c: New test.
8376 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8378         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8379         _dl_lookup_symbol_x code.
8381 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8383         * elf/dl-runtime.c: Include sysdep-cancel.h.
8384         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8385         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8386         instead of catomic_* macros.
8387         * elf/dl-sym.c: Include sysdep-cancel.h.
8388         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8389         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8390         * elf/dl-close.c: Include sysdep-cancel.h.
8391         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8392         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8393         * elf/dl-open.c: Include sysdep-cancel.h.
8394         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8395         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8397 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8399         [BZ #3313]
8400         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8401         fastbin rather than end of fastbin array.
8403 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8405         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8406         body macro.
8407         * sysdeps/x86_64/bits/atomic.h
8408         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8409         (catomic_decrement): Use correct body macro.
8411 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8413         * include/atomic.h: Add a unique prefix to all local variables
8414         in macros.
8415         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8417 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8419         [BZ #3369]
8420         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8421         and 7.
8423 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8425         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8427 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8429         [BZ #3313]
8430         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8431         determine highest fast bin to consolidate, always look into all of
8432         them.
8433         (do_check_malloc_state): Only require for empty bins for large
8434         sizes in main arena.
8436         * libio/stdio.h: Add more __wur attributes.
8438         * elf/dl-minimal.c (realloc): Optimize last patch.
8440 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8442         [BZ #3352]
8443         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8444         and use memcpy() if it does.
8446 2006-11-12  Andreas Jaeger  <aj@suse.de>
8448         [BZ #2510]
8449         * manual/search.texi (Hash Search Function): Clarify.
8450         (Array Search Function): Clarify.
8452 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8454         [BZ #2830]
8455         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8456         shifting.
8457         * math/atest-exp2.c (read_mpn_hex): Likewise.
8458         * math/atest-sincos.c (main): Likewise.
8460 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8462         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8463         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8464         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8465         version GLIBC_2.6.
8466         * Versions.def: Add GLIBC_2.6 for libc.
8468         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8470         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8472 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8474         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8476         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8478         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8479         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8481 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8483         * include/atomic.c: Define catomic_* operations.
8484         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8485         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8486         * malloc/memusage.c: Likewise.
8487         * gmon/mcount.c: Likewise.
8488         * elf/dl-close.c: Likewise.
8489         * elf/dl-open.c: Likewise.
8490         * elf/dl-profile.c: Likewise.
8491         * elf/dl-sym.c: Likewise.
8492         * elf/dl-runtime.c: Likewise.
8493         * elf/dl-fptr.c: Likewise.
8494         * resolv/res_libc.c: Likewise.
8496 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8498         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8499         components which lack them.
8501         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8502         at least one entry consisting of the parameter concatenated with
8503         the domain.
8505 2006-10-10  Roland McGrath  <roland@frob.com>
8507         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8508         * sysdeps/mach/hurd/futimes.c: Likewise.
8509         * sysdeps/mach/hurd/lutimes.c: Likewise.
8511 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8512             Jakub Jelinek  <jakub@redhat.com>
8514         Implement reference counting of scope records.
8515         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8516         from the list in objects which remain.  Always allocate new scope
8517         record.
8518         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8519         don't resize, allocate a new one.
8520         * elf/dl-runtime.c: Update reference counters before using a scope
8521         array.
8522         * elf/dl-sym.c: Likewise.
8523         * elf/dl-libc.c: Adjust for l_scope name change.
8524         * elf/dl-load.c: Likewise.
8525         * elf/dl-object.c: Likewise.
8526         * elf/rtld.c: Likewise.
8527         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8528         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8529         Add l_scoperec_lock.
8530         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8531         * sysdeps/generic/rtld-lowlevel.h: New file.
8533         * include/atomic.h: Rename atomic_and to atomic_and_val and
8534         atomic_or to atomic_or_val.  Define new macros atomic_and and
8535         atomic_or which do not return values.
8536         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8537         Various cleanups.
8538         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8540         * po/sv.po: Update from translation team.
8542 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8544         * Versions.def: Add GLIBC_2.6 to libpthread.
8546         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8547         (versioned_symbol): Likewise.
8548         (compat_symbol): Likewise.
8550         * po/tr.po: Update from translation team.
8552 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8554         * nis/Banner: Removed.  It's been integral part forever and the
8555         author info is incomplete anyway.
8556         * libio/Banner: Likewise.
8558         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8559         code, make sure the nis_freeresult call doesn't crash and that the
8560         result is reported correctly.
8562 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8564         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8565         when callback is NULL.
8567         * nis/Versions (libnss_nisplus): Add
8568         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8569         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8570         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8571         _nss_create_tablename): Rename to...
8572         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8573         ... these.  No longer static.
8574         (internal_setgrent): Adjust users.
8575         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8576         Don't use locking around _nss_grp_create_tablename call.
8577         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8579 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8581         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8583 2006-10-06  Andreas Jaeger  <aj@suse.de>
8585         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8587 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8589         * po/pl.po: Update from translation team.
8591         * nscd/nscd.c (main): Fix typo in message.
8592         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8594 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8596         [BZ #3291]
8597         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8598         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8599         (__sigprocmask): Define.
8601 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8603         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8604         used.
8606 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8608         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8609         in oldtotal and newtotal calculation.
8610         * nscd/nscd-client.h (struct mapped_database): Add datasize
8611         field.
8612         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8613         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8614         increased.
8615         (__nscd_cache_search): Add checks to make sure we never reference
8616         data beyond the current mapping.
8618 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8620         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8621         variables const to avoid compiler warnings.
8623         * io/fts.c (fts_close): Remove redundant checks.
8624         (fts_build): Likewise.
8625         (fts_palloc): Likewise.
8627         * manual/message.texi (Advanced gettext functions,
8628         Using gettextized software): Fix typos.
8630 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8632         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8633         explain why there are no leaks.
8635 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8637         * libio/wmemstream.c: Include <wchar.h>.
8638         * libio/bug-wmemstream1.c: Likewise.
8639         * libio/tst-wmemstream1.c: Likewise.
8640         * libio/tst-wmemstream2.c: Likewise.
8642         * version.h (RELEASE): Bump to 2.5.
8643         * README: Regenerated.
8645         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8647         [BZ #3273]
8648         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8649         found no group members.
8650         Patch by Petr Baudis.
8652 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8654         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8655         assert bootstrap_map.l_tls_modid is zero.
8656         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8657         if USE___THREAD.
8659 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8661         * libio/stdio.h: Move open_wmemstream prototype to ...
8662         * wcsmbs/wchar.h: ... here.
8664 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8666         [BZ #3252]
8667         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8668         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8669         __{,l}chown to handle the rest.
8670         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8671         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8672         __{,l}chown to handle the rest.
8673         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8674         i386/fchownat.c.
8675         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8676         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8678         [BZ #3253]
8679         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8680         time, rather allocate increasingly bigger arrays of pointers, if
8681         possible with alloca, if too large with malloc.
8683 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8685         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8687         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8689 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8691         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8692         home addresses.
8693         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8694         IFA_F_HOMEADDRESS flag for interfaces.
8695         * include/ifaddrs.h (struct in6addrinfo): Define
8696         in6ai_homeaddress.
8698 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8700         [BZ #3225]
8701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8702         PTR_DEMANGLE3): Define.
8703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8704         PTR_DEMANGLE3): Likewise.
8705         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8706         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8707         Likewise.
8708         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8710 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8712         * po/libc.pot: Regenerated.
8713         * po/be.po: Updated.
8714         * po/ca.po: Likewise.
8715         * po/cs.po: Likewise.
8716         * po/da.po: Likewise.
8717         * po/de.po: Likewise.
8718         * po/el.po: Likewise.
8719         * po/en_GB.po: Likewise.
8720         * po/es.po: Likewise.
8721         * po/fi.po: Likewise.
8722         * po/fr.po: Likewise.
8723         * po/gl.po: Likewise.
8724         * po/hr.po: Likewise.
8725         * po/hu.po: Likewise.
8726         * po/ja.po: Likewise.
8727         * po/ko.po: Likewise.
8728         * po/nb.po: Likewise.
8729         * po/nl.po: Likewise.
8730         * po/pl.po: Likewise.
8731         * po/pt_BR.po: Likewise.
8732         * po/ru.po: Likewise.
8733         * po/rw.po: Likewise.
8734         * po/sk.po: Likewise.
8735         * po/sv.po: Likewise.
8736         * po/tr.po: Likewise.
8737         * po/zh_CN.po: Likewise.
8738         * po/zh_TW.po: Likewise.
8740         [BZ #3137]
8741         * iconv/iconv_prog.c (main): Fix spelling in error message.
8742         * iconv/iconvconfig.c (main): Likewise.
8743         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8744         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8745         * locale/programs/localedef.c (main): Likewise.
8746         * locale/programs/repertoire.c (repertoire_read): Likewise.
8747         * timezone/zdump.c (main): Likewise.
8748         * nscd/connections.c (handle_request): Fix spelling in log message.
8749         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8751 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8753         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8754         interfaces.
8756 2006-09-20  Andreas Jaeger  <aj@suse.de>
8758         * math/libm-test.inc (lrint_test_upward): Fix typo.
8760 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8762         [BZ #2592]
8763         * math/libm-test.inc (lrint_test_tonearest): New function.
8764         (lrint_test_towardzero): New function.
8765         (lrint_test_downward): New function.
8766         (lrint_test_upward): New function.
8767         (main): Run these new tests.
8768         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8769         of values near to 0.
8770         (two52): Use double not long double.
8771         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8772         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8773         (two23): Use float not double.
8774         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8775         (two23): Use float not double.
8776         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8777         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8778         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8779         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8781 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8783         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8784         Cast sp to unsigned long to avoid compiler warning.
8785         Use __makecontext_ret function instead of a trampoline on the stack.
8786         (__makecontext_ret): New function.
8787         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8789 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8791         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8792         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8793         bits.
8795 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8797         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8798         sure no reference to the unloaded map's search list remains in the
8799         dependency's scope.
8801 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8803         * elf/Makefile: Add rules to build and run unload7 test.
8804         * elf/unload7.c: New test.
8805         * elf/unload7mod1.c: New file.
8806         * elf/unload7mod2.c: New file.
8808 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8810         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8811         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8812         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8813         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8814         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8815         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8816         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8817         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8818         PTRACE_GETEVENTMSG): Likewise.
8819         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8820         values.
8822 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8824         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8825         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8826         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8827         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8829 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8831         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8832         write '\0' to the fd.
8833         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8834         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8835         Change regs to unsigned long pointer from unsigned int, fix fscr
8836         offset.
8838 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8840         * io/Makefile (CFLAGS-fstatat.c): Set.
8841         (CFLAGS-fstatat64.c): Likewise.
8842         (CFLAGS-mknodat.c): Likewise.
8844         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8845         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8846         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8847         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8849 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8850             Steven Munroe  <sjmunroe@us.ibm.com>
8852         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8853         names to the beginning.  Rename "cell" to "cellbe".
8854         (_dl_powerpc_platforms): New.
8855         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8856         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8857         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8858         (_DL_HWCAP_PLATFORM): Define to new mask.
8859         (_dl_platform_string, _dl_string_platform): New functions.
8860         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8861         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8863 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8865         [BZ #2526]
8866         * README.libm: Fix a thinko in sqrt algorithm description.
8868         [BZ #3143]
8869         * manual/string.texi (argz_delete): Fix prototype.
8870         Patch by <alpt@freaknet.org>.
8872 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8874         [BZ #3138]
8875         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8876         * io/tst-fcntl.c (do_prepare): Likewise.
8877         * posix/tst-exec.c (do_prepare): Likewise.
8878         * posix/tst-preadwrite.c (do_prepare): Likewise.
8879         * posix/tst-spawn.c (do_prepare): Likewise.
8880         * posix/tst-truncate.c (do_prepare): Likewise.
8881         * rt/tst-aio.c (do_prepare): Likewise.
8882         * rt/tst-aio64.c (do_prepare): Likewise.
8883         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8884         size_t.
8886 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8888         [BZ #2821]
8889         * time/mktime.c (guess_time_tm): Fix overflow detection.
8890         * time/Makefile (tests): Add bug-mktime1.
8891         * time/bug-mktime1.c: New file.
8893         [BZ #3189, #3188]
8894         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8895         (mremap): Likewise.
8897 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8899         [BZ #1006]
8900         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8901         Ensure relocation doesn't clobber any bits outside of the
8902         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8903         R_SPARC_HI22 and R_SPARC_H44.
8905         [BZ #2775]
8906         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8907         (long) (MINSIZE + nb - old_size) is positive.
8909         * malloc/arena.c (grow_heap): When growing bail even if new_size
8910         is negative.
8912         [BZ #3155]
8913         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8914         stack below r1.
8916 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8918         * posix/regex_internal.c (re_string_reconstruct): Handle
8919         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8920         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8921         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8922         re_string_context_at.
8923         * posix/Makefile: Add rules to build and run bug-regex26 test.
8924         * posix/bug-regex26.c: New test.
8926         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8927         rather than col_sym_free.  Move seqp declaration earlier.
8929         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8931 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8933         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8934         decl before first goto out.
8936 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8938         * Makerules (shlib.lds): If have-hash-style, put .hash section
8939         at the end of the RO segment.
8941 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8943         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8944         style hash table format is used.
8946 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8948         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8949         randomization rather than before.
8950         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8952 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8954         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8956         * malloc/malloc.c (_int_malloc): Use full list insert and not
8957         shortcut which assumes the list is empty for large requests
8958         too.
8960         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8962 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8964         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8965         and offout arguments to the prototype.
8966         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8967         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8968         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8969         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8970         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8971         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8973         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8975 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8977         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8979         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8980         dlopen parameters.
8982 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8984         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8985         only if herrno is NETDB_INTERNAL.  Handle errors other than
8986         ERANGE outside of the loops, handle TRY_AGAIN.
8988         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8989         if other's ctype category was missing.
8990         * locale/programs/ld-collate.c (collate_read): Return if
8991         copy_locale's collate category is missing.
8993 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8995         [BZ #2684]
8996         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8997         arenas if allocation failed.
8998         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9000 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9002         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9003         waste bins[0..1].
9004         (malloc_state): Reduce bins size by 2.
9005         (_int_malloc): Fix test for large enough buffer for early termination.
9006         When no unsorted block matches perfectly and an exiting block has
9007         to be split, use full list insert and not shortcut which assumes
9008         the list is empty.
9010         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9011         failure.
9013 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9015         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9016         do anything.
9018         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9019         symbol require exact match (these are PLTs).
9020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9021         (_dl_ppc64_addr_sym_match): Likewise.
9023         [BZ #2683]
9024         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9025         If symbol has a value use it.
9026         * elf/tst-dladdr1.c: New file.
9027         * elf/Makefile: Add rules to build and run tst-addr1.
9029 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9031         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9032         keeps failing and heap growth or new heap creation isn't
9033         successful either.
9034         * malloc/tst-malloc.c (main): Add new tests.
9036 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9038         [BZ #2734]
9039         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9040         as in the x86-64 code to use bswap.
9042 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9044         [BZ #2680]
9045         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9046         __USE_UNIX98.
9047         * posix/bits/unistd.h: Likewise.
9049 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9051         [BZ #2751]
9052         * string/strchr.c: Add cast to avoid warning.
9054 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9056         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9057         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9058         limit is needed to avoid the exploding of the address space
9059         requirement for secondary heaps.
9060         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9061         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9063 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9065         [BZ #3018]
9066         * Makerules (depfiles): Handle extra-test-objs the same as
9067         extra-objs.
9068         (common-mostlyclean): Likewise.
9069         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9070         instead.
9071         * elf/Makefile (extra-objs): Likewise.
9072         * stdlib/Makefile (extra-objs): Likewise.
9074 2006-08-14  Eric Blake  <ebb9@byu.net>
9076         [BZ #3044]
9077         * misc/error.h: Assume C89 or better.
9078         * misc/error.c: Likewise.
9080 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9082         [BZ #3040]
9083         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9084         __ASSUME_ATFCTS is defined.
9086 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9088         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9089         to sort in each call.
9091         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9092         is empty simply return and use next service.
9093         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9095         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9096         tells us when not finding a charmap file is an error.
9097         * locale/programs/charmap.h: Adjust charmap_read prototype.
9098         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9099         cannot find a charmap.
9100         * locale/programs/localedef.c (main): Adjust charmap_read call.
9102 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9104         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9105         sysdeps/posix/pause.c implementation instead.
9107 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9109         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9110         to EPERM.
9112 2006-08-13  Andreas Schwab  <schwab@suse.de>
9114         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9115         Don't clobber caller's LRSAVE.
9116         (_dl_prof_resolve): Likewise.
9118 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9120         [BZ #1996]
9121         * libio/memstream.c (open_memstream): Allocate initial buffer with
9122         calloc.
9123         * libio/wmemstream.c (open_wmemstream): Likewise.
9124         * libio/strops.c: Pretty printing.
9125         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9126         (enlarge_userbuf): New function.
9127         (_IO_str_seekoff): Call it if seek position is larger than current
9128         buffer.
9129         * libio/wstrops.c: Likewise.
9130         * libio/vasprintf.c: Add comment as to why we do not have to use
9131         calloc instead of malloc to allocate initial buffer.
9132         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9133         * libio/bug-memstream1.c: New file.
9134         * libio/bug-wmemstream1.c: New file.
9136 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9138         * libio/wstrops.c: Remove dead macro definitions and comments.
9139         * libio/strops.c: Likewise.
9141         [BZ #2764]
9142         * login/utmpname.c (__utmpname): Remove unnecessary test.
9144 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9146         [BZ #2832]
9147         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9148         0s from integers.
9150 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9152         [BZ #2987]
9153         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9154         for CPU clocks.
9155         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9156         setting of CPU clocks.
9158 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9160         [BZ #2841]
9161         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9162         since C99 requires the result to promote to 'int' when uint_least8_t
9163         and uint_least16_t promote to 'int'.
9165 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9167         [BZ #3013]
9168         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9169         lenght of one output field, correct bitmask creation.
9170         * locale/programs/ld-time.c: Add alignment.
9172         [BZ #2997]
9173         * misc/error.c: Add space between program name and message if file
9174         name is missing.
9176 2006-08-03  Eric Blake  <ebb9@byu.net>
9178         [BZ #2998]
9179         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9181 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9183         * malloc/memusagestat.c: Silence warnings.
9185         * malloc/malloc.c: Dynamically size mmap treshold if the program
9186         frees mmaped blocks.
9187         Patch by Valerie Henson and Arjan van de Ven.
9189 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9191         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9192         __USE_GNU.
9194         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9195         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9196         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9197         Only provide var definitions in strtol_l (or for *ull*
9198         in strtoll_l).
9200         * stdio-common/bug16.c (tests): New array.
9201         (do_tests): Allow the first hexadecimal digit
9202         to be 1, 2, 4 or 8.  Do 3 additional tests.
9204         * sysdeps/s390/fpu/libm-test-ulps: Update.
9206         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9207         fchownat syscall if available.
9208         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9209         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9210         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9212 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9214         * nis/nis_xdr.c: Avoid some function calls.
9216 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9217             Ulrich Drepper  <drepper@redhat.com>
9219         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9220         short cut if only one name component is stripped away.
9222 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9224         * nis/nis_call.c: Minor cleanups throughout.
9225         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9226         (first_shoot): Add search_parent_first parameter.  Only if it is set
9227         search parent server first.
9228         If directory for table found through cold start cache is not the same
9229         as referenced in the cache, don't use it.
9230         (__nisfind_server): Take additional parameter.  Pass it on to
9231         first_shoot.
9232         (__prepare_niscall): Adjust __nisfind_server call.
9233         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9234         * nis/nis_table.c: Adjust __nisfind_server call.
9235         * nis/nis_lookup.c: Likewise.
9236         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9238 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9240         [BZ #2182]
9241         * math/s_cacosh.c: Return values from positive branch.
9242         * math/s_cacoshf.c: Likewise.
9243         * math/s_cacoshl.c: Likewise.
9245         [BZ #2883]
9246         * sysvipc/sys/msg.h: Change return value to ssize_t.
9247         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9248         * sysvipc/msgrcv.c: Likewise.
9249         * include/sys/msg.h: Likewise.
9251         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9252         test introduced in patch for bz #661.
9253         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9254         element for NEWGROUPS.
9256         [BZ #2908]
9257         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9258         'f', use '1' as leading digit not '\1'.
9259         * stdio-common/Makefile (tests): Add bug16.
9260         * stdio-common/bug16.c: New file.
9262         [BZ #2914]
9263         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9264         and don't try to open it.  The patch introducing the macro
9265         contained a bug and used the same file name as the new file
9266         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9267         this out completely.
9269         [BZ #2926]
9270         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9271         Patch by Jerry James <Jerry.James@usu.edu>.
9273         * rt/Makefile (tests): Add tst-clock2.
9274         * rt/tst-clock2.c: New file.
9276         [BZ #2978]
9277         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9278         function and its parameters and pass it to new thread.
9279         (__gai_notify): Add support for alternative waiting for completion.
9280         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9281         waiting for completion.
9282         * resolv/getaddrinfo_a.c: Likewise.
9283         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9284         waiting for completion is used.
9285         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9286         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9287         * resolv/gai_error.c: Likewise.
9288         * resolv/gai_sigqueue.c: Likewise.
9290 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9292         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9293         errno to EBADF and return MACH_PORT_NULL.
9295 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9297         [BZ #2980]
9298         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9300 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9302         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9303         walk them instead of the symbol table.
9305 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9307         [BZ #2098]
9308         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9309         status of NSS calls, not the number of returned entries.
9311         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9312         request_key, keyctl.
9314 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9316         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9318 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9320         * elf/tst-auditmod1.c: Fix typo in #error.
9322 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9324         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9326         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9328 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9330         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9331         that the directory is empty even on non-POSIX filesystems.
9333 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9335         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9337         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9338         the backend NSS module.  If backend setgrent call failed, don't have
9339         internal_setgrent fail.  Just remember this until it is needed.
9340         * nis/nss_compat/compat-pwd.c: Likewise.
9341         * nis/nss_compat/compat-spwd.c: Likewise.
9343 2006-07-30  Roland McGrath  <roland@redhat.com>
9345         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9346         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9347         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9348         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9350         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9351         (nanosleep_not_cancel): New macro.
9352         (sigsuspend_not_cancel): new macro.
9353         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9354         (do_sigsuspend): Define as inline.
9355         (__sigsuspend): Always use do_sigsuspend.
9356         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9357         * include/signal.h: Declare __sigsuspend_nocancel.
9358         * sysdeps/posix/pause.c
9359         [! NO_CANCELLATION] (__pause_nocancel): New function.
9361         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9362         * include/time.h (__nanosleep_nocancel): Likewise.
9364 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9366         * locale/programs/localedef.c (add_to_readlist): Rename local
9367         variables to avoid confusion.
9369         * locale/programs/charmap.c (charmap_read): Emit error message if
9370         charmap couldn't be found or read.
9372 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9374         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9375         __ASSUME_FUTEX_LOCK_PI.
9376         * include/time.h: Declare __nanosleep_nocancel.
9377         * include/unistd.h: Declare __pause_nocancel.
9379         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9380         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9381         get the __stack_chk_fail_local definition when it's needed.
9383 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9385         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9386         * dlfcn/bug-atexit3.c: New file.
9387         * dlfcn/bug-atexit3-lib.cc: New file.
9389         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9390         used when the namespace is not the base namespace.
9392 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9394         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9395         (__new_exitfn): Bump it in every successful call.
9396         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9397         more exit handlers, call them right away.
9398         * stdlib/exit.h: Declare __new_exitfn_called.
9400 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9402         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9403         calling registered handler.
9405         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9406         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9407         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9408         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9409         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9410         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9411         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9412         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9414 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9416         * elf/dl-lookup.c (dl_new_hash): New functions.
9417         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9418         value here.  Compute new-style hash value.  Pass new hash value
9419         and reference to variable with the old value to do_lookup_x.
9420         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9421         old-style hash table.
9422         (_dl_debug_bindings): Pass new hash value and reference to variable
9423         with the old value to do_lookup_x.
9424         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9425         new-style hash value and change old-style hash value parameter to
9426         be a reference.  Reoganize functions to determine whether
9427         new-style hash table is available.  Only fall back on old-style
9428         table.  If old-style hash value is needed, compute it here.
9429         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9430         entry.
9431         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9432         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9433         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9434         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9435         * Makeconfig: If linker supports --hash-style option add it to all
9436         linker command lines to build DSOs.
9437         * config.make.in: Define have-hash-style.
9438         * configure.in: Test whether linker supports --hash-style option.
9440         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9441         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9443 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9445         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9446         auditing.
9448         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9449         RPATH of main map twice.
9451 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9453         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9454         look further, return original strings.
9455         (_nl_find_msg): Do not return found translation if the conversion
9456         failed.  Either signal the string is unusable or that something went
9457         wrong and the original should be used.
9459 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9461         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9463 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9465         [BZ #2766]
9466         * misc/insremque.c (insque): Handle prev == NULL.
9467         * misc/Makefile (tests): Add tst-insremque.
9468         * misc/tst-insremque.c: New test.
9470 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9472         [BZ #2792]
9473         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9474         conflict with DL_DST_REQUIRED.
9476 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9478         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9479         match what Solaris does.
9481 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9483         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9484         local_setegid instead of seteuid and setegid.
9485         * sysdeps/generic/local-setxid.h: New file.
9486         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9488         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9490         * string/Makefile (tests): Add bug-envz1.
9491         * string/bug-envz1.c: New file.
9493 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9495         * posix/regex_internal.c (re_string_skip_chars): If no character has
9496         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9497         to the byte which couldn't be converted.
9498         (re_string_reconstruct): Don't clear valid_raw_len before calling
9499         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9500         tip_context using re_string_context_at.
9501         * posix/Makefile: Add rules to build and run bug-regex25 test.
9502         * posix/bug-regex25.c: New test.
9504 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9506         [BZ #2703]
9507         * string/envz.c (envz_strip): Correct erroneously reversed src
9508         and dest parameters to memmove() invocation.
9510 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9512         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9513         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9514         to make sure the database has been already invalidated.
9515         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9516         after the cache has been invalidated.  Use pthread_mutex_lock rather
9517         than pthread_mutex_trylock if fd != -1.
9518         * nscd/connections.c (invalidate_cache): Add fd argument, write
9519         response to fd if not calling prune_cache, pass fd to prune_cache.
9520         (handle_request): Adjust invalidate_cache caller.
9521         (nscd_run): Pass -1 as fd to prune_cache.
9523 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9525         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9526         the correct place.
9528 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9530         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9531         * nscd/cache.c (prune_cache): Take prunelock before starting the
9532         work.  Just return in case it is already taken.
9533         * nscd/connections.c (dbs): Initialize .prunelock.
9535 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9537         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9538         copying.  No need to allocate new array for group members.  Just
9539         move the pointers and update the size.
9541         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9542         Avoid memory leak in case realloc fails.  Simplification for
9543         better code generation.
9545         Avoid deprecation warning because of libc_hidden_proto for
9546         inet6_option_alloc.
9547         * inet/inet6_option.c (option_alloc): Renamed from
9548         inet6_option_alloc.  Made static.
9549         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9550         (inet6_option_append): Call option_alloc.
9551         * include/netinet/in.h: Remove libc_hidden_proto for
9552         inet6_option_alloc.
9554         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9555         for cleanup when cb!=NULL [Coverity CID 233].
9557 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9559         [BZ #2693]
9560         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9561         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9562         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9563         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9564         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9565         and inet6_rth_getaddr.
9566         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9567         array.
9568         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9569         Mark inet6_option_* interfaces as deprecated.
9570         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9571         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9572         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9573         inet6_rth_segments, and inet6_rth_getaddr.
9574         * inet/inet6_opt.c: New file.
9575         * inet/inet6_rth.c: New file.
9577         * inet/netinet/icmp6.h: Pretty printing.
9579         [BZ #2683]
9580         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9582 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9584         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9585         doing it all here.  When server does not know the answer do not
9586         fail immediate, try parent first.
9588         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9589         overflow test.
9591 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9593         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9594         from __do_niscall.
9595         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9596         and exported.
9597         (__follow_path): New function.  Split out from nis_list.
9598         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9599         _xdr_nis_result.
9600         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9601         _xdr_nis_result.
9602         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9603         and __follow_path.
9604         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9605         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9606         from libnsl for version GLIBC_PRIVATE.
9607         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9608         Remove entry parameter from _nss_nisplus_parse_pwent and
9609         _nss_nisplus_parse_grent.
9610         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9611         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9612         again.  Rewrite getpwent handling to not use nis_first_entry and
9613         nis_next_entry.  Roll out own niscall handling.
9614         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9616         * sunrpc/xdr_rec.c: Fix typo in comment.
9618 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9620         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9621         handling.
9623         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9624         to allocate memory for my_pollfd.  Better initialization of
9625         cb_is_running.  Use TEMP_FAILURE_RETRY.
9627         * malloc/memusage.sh (memusageso): Add quotes.
9628         (memusagestat): Likewise.
9629         * debug/xtrace.sh (pcprofileso): Likewise.
9630         (pcprofiledump): Likewise.
9631         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9632         replacement.
9633         * malloc/Makefile ($(objpfx)memusage): Likewise.
9635         * nis/nis_callback.c (__nis_create_callback): Calls to
9636         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9637         asprintf call fails.
9639         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9640         no uninitialized memory is passed to sendto.
9642 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9644         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9645         of snprintf+strdup.  Handle OOM.
9646         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9647         cb->serv together.  Remove now obsolete free calls.
9648         (__nis_destroy_callback): Remove now obsolete free call.
9650 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9652         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9653         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9654         and ULA respectively). Set precedence for IPv4 address to 10 as
9655         defined in RFC3484 for preferring IPv6.
9656         * posix/gai.conf: Update to match the new default tables.
9658 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9660         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9661         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9662         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9663         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9665         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9666         Removed.
9667         (init_nss_interface): Remove initialization of these variables.
9669 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9671         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9672         nis_free_directory forward to avoid duplication.
9674 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9676         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9677         rec_dirsearch returning NULL.
9678         (first_shoot): Handle __nis_finddirectory returning NULL.
9679         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9681         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9682         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9684 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9686         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9687         pid changed.
9689 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9691         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9693         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9694         * nscd/nscd_getgr_r.c: Likewise.
9696         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9698         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9699         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9701         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9703         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9705         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9707         * include/rpc/auth.h: Mark xdr_des_block_internal and
9708         xdr_opaque_auth_internal as hidden.
9710         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9711         hidden.
9713         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9715         * misc/getusershell.c (okshells): Don't use static initializers,
9716         do it dynamically.
9718         * stdlib/fmtmsg.c (keywords): Change type of len element to
9719         uint32_t to not waste space on 64bit machines.
9721         * locale/setlocale.c: Change _nl_category_names into a string.
9722         Add new _nl_category_name_idxs.  Change all users.
9723         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9724         Declare _nl_category_name_idxs.
9725         * locale/findlocale.c: Adjust for _nl_category_names change.
9726         * locale/loadlocale.c: Likewise.
9727         * locale/newlocale.c: Likewise.
9728         * intl/dcigettext.c: Likewise.
9730         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9731         (add_alias2): ...here.  New function.
9732         (__gconv_read_conf): Simplify builtin alias handling.
9733         (builtin_aliases): Convert to string to avoid relocations.
9734         * iconv/gconv_builtin.h: Add comment about correct formatting.
9736 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9738         * resolv/res_debug.c (loc_ntoa): Make error const.
9740 2006-05-14  Andreas Schwab  <schwab@suse.de>
9742         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9744 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9746         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9747         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9748         sizeof (cpu_set_t).
9750 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9752         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9754         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9756         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9757         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9759         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9760         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9762         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9763         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9764         xdr_cback_data.
9766         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9767         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9768         xdr_ypupdate_args.
9770         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9771         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9773         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9774         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9776         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9777         * include/rpcsvc/nis_callback.h: New file.
9779         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9780         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9782         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9783         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9785         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9786         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9788         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9789         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9791         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9792         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9793         xdr_ypdelete_args.
9795         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9796         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9798         * nis/nis_error.c: Remove table of strings.  Use position
9799         independent mechanism.
9800         * nis/nis_error.h: New file.
9802 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9804         * locale/programs/ld-time.c (time_finish): If wide era name or
9805         format aren't provided, set both wname and wformat to L"".
9807 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9809         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9810         results if the call was succesful.
9812         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9814         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9815         as hidden.
9817 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9819         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9821 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9823         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9824         caller makes sure this is not the case.
9825         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9827 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9829         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9830         calls.
9832         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9833         [Coverity CID 229, 230]
9835         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9836         DGETTEXT calls.
9837         (hol_help): Likewise.  [Coverity CID 226, 227]
9839         * string/argz-replace.c (__argz_replace): Unconditionally call
9840         free on SRC.  [Coverity CID 225]
9842         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9843         the return value of __nis_default_owner and __nis_default_group,
9844         it has been especially allocated.  [Coverity CID 224]
9846         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9847         searchgroup and searchowner.  Significantly simplified.
9848         (__nis_default_owner): Remove duplication.  Do not locally copy the
9849         string before duplicating it.
9850         (__nis_default_group): Likewise.
9852         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9853         we must clear the variable before calling __nisfind_server.
9855         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9856         nis_getnames.  [Coverity CID 223]
9858         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9859         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9861         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9862         allocate memory for the input to add_bytes.  [Coverity CID 221]
9864         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9865         was allocated here.  [Coverity CID 219, 220]
9867         * posix/getconf.c (print_all): Free confstr data after printing.
9868         [Coverity CID 218]
9870         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9871         list allocation fails.  [Coverity CID 215]
9873         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9874         [Coverity CID 213]
9876         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9877         string is NULL.  [Coverity CID 212]
9878         * argp/Makefile: Add rules to build and run bug-argp1.
9879         * argp/bug-argp1.c: New file.
9881         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9882         end of string.
9883         * stdlib/canonicalize.c (__realpath): Likewise.
9885         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9886         pointer.  [Coverity CID 206]
9888         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9889         in statically linked code.
9890         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9891         statically built code, be prepared to have no link map.
9892         [Coverity CID 205]
9894         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9895         dgettext calls. [Coverity CID 204]
9897         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9898         the one user.
9899         (uparam_names): Reduce size.  Avoid relative relocations.
9900         Moved to read-only segment.
9901         (fill_in_uparams): Update for new layout.
9903         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9904         assumed to always be != NULL. [Coverity CID 202]
9906         * argp/argp-help.c (hol_entry_help): Remove some dead code
9907         [Coverity CID 200].
9909         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9910         away a few more unconditional yperr2nss calls.
9911         (_nss_nis_getservbyname_r): Likewise.
9913 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9915         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9916         architectures.
9918         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9919         that unused memory passed to sendto is nevertheless initialized.
9921         [BZ #2499]
9922         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9923         possibly unaligned memory accesses.
9925         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9926         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9927         and __putlong respectively.  Correct buffer overflow check for
9928         NS_NOTIFY_OP.
9930         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9932         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9933         (send_dg): Rewrite error handling to be more compact and avoid
9934         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9936         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9938         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9939         instead of ns_get16.
9940         (res_queriesmatch): Likewise.  Minor optimization.
9942         [BZ #2499]
9943         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9944         __libc_res_nsend might reallocate the buffer for the answer.  In
9945         this case we have to reload the HP pointer.
9947 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9949         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9950         some branch prediction hints.
9952         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9953         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9954         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9955         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9956         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9957         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9958         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9959         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9961 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9963         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9964         by a GOT relocation to make Scrt1.o position independent.
9965         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9967         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9968         six system call parameters.
9969         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9971 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9973         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9974         malloc&bzero.
9976         * sunrpc/svc_udp.c (BZERO): Remove definition.
9977         (CALLOC): Define.
9978         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9980         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9981         (des_SPtrans): Use uint32_t type.
9982         (des_skb): Likewise.
9984         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9986 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9988         [BZ #2509]
9989         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9990         on 32-bit arches.
9992 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9994         * locale/programs/ld-address.c (address_finish): Fix one more
9995         place where the iso639 array might be accessed beyond the limits.
9997 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9999         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10000         filling it for the first time.
10002         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10003         Adjust all callers.
10004         Free res object content before returning.
10006         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10008         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10009         client->cl_auth.
10011         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10012         cleanup for initial thread, just the free call on TVP.
10014         * nscd/gai.c (__getline): Define.
10017 See ChangeLog.16 for earlier changes.