* sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
[glibc.git] / ChangeLog
blobeada0c52a8bcdf69393ad3c4c1afbce00005f3eb
1 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4         (stackinfo_sub_sp): Define.
6 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
8         [BZ #9750]
9         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
10         * include/alloca.h (alloca_account): Define.
11         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
12         (stackinfo_sub_sp): Define.
14         * nscd/connections.c (nscd_init): If database file access be
15         opened check whether this is due to permission problems and bail
16         in that case.
18         [BZ #9741]
19         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
20         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
22 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
24         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
25         Add "t" to clobber list.
26         (INTERNAL_SYSCALL_NCS): Likewise.
28 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
30         * nss/getent.c (print_networks): Don't print comma between aliases.
32 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
34         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
36         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
37         the hash table.
38         * misc/Makefile (tests): Add bug-hsearch1.
39         * misc/bug-hsearch1.c: New file.
41 2009-01-22  Roland McGrath  <roland@redhat.com>
43         * Makeconfig (%.v.i): Strip trailing # comments,
44         not only whole-line comments.
46 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
48         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
49         one parameter.  If non-NULL use it to initialize return value.
50         (_dl_setup_pointer_guard): New function.
51         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
52         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
53         * elf/rtld.c (security_init): Pass _dl_random to
54         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
55         pointer_chk_guard.
56         * elf/dl-sysdep.c (_dl_random): New variable.
57         (_dl_sysdep_start): Handle AT_RANDOM.
58         (_dl_show_auxv): Likewise.
59         * elf/dl-support.c (_dl_random): New variable.
60         (_dl_aux_init): Handle AT_RANDOM.
61         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
62         to _dl_setup_stack_chk_guard.
64         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
66 2009-01-10  Roland McGrath  <roland@redhat.com>
68         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
70 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
72         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
74         [BZ #9706]
75         * nss/nss_files/files-parse.c (strtou32): New function.
76         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
77         across 32-bit and 64-bit platforms.
78         (INT_FIELD_MAYBE_NULL): Likewise.
80 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
82         [BZ #9720]
83         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
84         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
85         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
86         Likewise.
88 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
90         [BZ #697]
91         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
92         being NULL also if there are no backreferences.
93         * posix/rxspencer/tests: Add testcases.
95 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
97         [BZ #9697]
98         * posix/bug-regex17.c: Add testcases.
99         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
100         handling.
102 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
104         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
105         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
106         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
107         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
108         for elf subdir.
109         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
110         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
111         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
112         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
113         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
114         * sysdeps/unix/sysv/linux/s390/Versions: New file.
116 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
118         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
119         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
120         re_string_skip_chars, re_string_reconstruct): Likewise.
121         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
123 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
125         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
126         adjust the buffer alignment.
128 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
130         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
131         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
132         net/route.h.
134         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
135         flavor to description only when flavor is not NULL.
137         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
138         mutex after SIGIO/SIGURG lookup loop.
140 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
142         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
144 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
146         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
147         handling.
149 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
151         * sysdeps/unix/sysv/linux/kernel-features.h
152         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
154         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
155         if no output is written.
157         * version.h: Bump to 2.10 development.
159         * posix/getconf.c: Update copyright year.
160         * nss/getent.c: Likewise.
161         * iconv/iconvconfig.c: Likewise.
162         * iconv/iconv_prog.c: Likewise.
163         * elf/ldconfig.c: Likewise.
164         * catgets/gencat.c: Likewise.
165         * csu/version.c: Likewise.
166         * elf/ldd.bash.in: Likewise.
167         * elf/sprof.c (print_version): Likewise.
168         * locale/programs/locale.c: Likewise.
169         * locale/programs/localedef.c: Likewise.
170         * nscd/nscd.c (print_version): Likewise.
171         * debug/xtrace.sh: Likewise.
172         * malloc/memusage.sh: Likewise.
173         * malloc/mtrace.pl: Likewise.
174         * debug/catchsegv.sh: Likewise.
176 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
178         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
179         script.
181 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
183         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
184         gethostbyname4_r function call succeeded, just leave the loop.
186         [BZ #9694]
187         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
188         very end.
189         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
190         * wctype/Makefile (tests): Add bug-wctypeh.
191         * wctype/bug-wctypeh.c: New file.
193         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
194         LOCALDOMAIN is defined.
195         * nscd/nscd_getai.c (__nscd_getai): Likewise.
197         * sysdeps/x86_64/bits/select.h: New file.
199         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
201 2008-12-21  Bruno Haible  <bruno@clisp.org>
203         [BZ #9677]
204         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
205         if no output is written.
207 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
209         * login/utmp_file.c (pututline_file): Replace call to dup2 with
210         libc internal symbol __dup2 to avoid access through the PLT.
212 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
214         [BZ #6545]
215         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
216         available only for __USE_GNU.
218         * inet/Makefile (tests): Add tst-getni2.
219         * inet/tst-getni2.c: New file.
221         [BZ #7080]
222         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
223         NULL when NI_NAMEREQD is set.
224         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
225         * inet/Makefile (tests): Add tst-getni1.
226         * inet/tst-getni1.c: New file.
228 2008-12-03  Petr Baudis  <pasky@suse.cz>
230         [BZ #7067]
231         * nscd/connections.c (invalidate_cache): Use prune_run_lock
232         instead of prune_lock.
233         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
234         * nscd/nscd.h (database_dyn): Add prune_run_cache.
236 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
238         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
239         use.
241         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
242         handling.
244         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
245         after reading name server list.
247         [BZ #7058]
248         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
249         handling for host name aliases.
251 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
253         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
254         instead of doing things manually.
256 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
258         * posix/regex_internal.h (build_wcs_upper_buffer):
259         Return type is reg_error_t.
261 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
263         * posix/globtest.sh: Use mktemp to create temporary file and
264         directory.
266         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
267         sets correctly.
268         (__CPU_CLR_S): Likewise.
269         (__CPU_ISSET_S): Likewise.
271 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
272             Ulrich Drepper  <drepper@redhat.com>
274         * scripts/firstversion.awk: Use custom comparison function to compare
275         version numbers.
276         * scripts/versions.awk: Use sort invocation which can handle
277         multi-digit sub-version numbers.
279 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
281         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
282         * locale/iso-639.def: Add Chhattisgarhi entry.
284 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
286         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
287         ESRCH return value.
288         (_nss_dns_gethostbyname4_r): Likewise.
289         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
290         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
291         gethostbyname4_r, we don't have a separate IPv6 status, so copy
292         the no_data variable.
294         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
295         information at the correct index.
297         * socket/sys/socket.h: Declare accept4.
298         * socket/accept4.c: New file.
299         * sysdeps/unix/sysv/linux/accept4.c: New file.
300         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
301         * socket/Makefile (routines): Add accept4.
302         * socket/Versions: Export accept4 with version GLIBC_2.10.
303         * socket/paccept.c: Removed.
304         * sysdeps/unix/sysv/linux/paccept.c: Removed.
305         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
306         * Versions.def: Define GLIBC_2.10 for libc.
307         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
309         * nscd/connections.c: Use accept4.
311         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
313 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
315         * resolv/res_send.c (send_dg): Create sockets with non-blocking
316         flag already set.
318         * stdlib/setenv.c (unsetenv): Don't search environment if it does
319         not exist.
320         * stdlib/Makefile (tests): Add tst-unsetenv1.
321         * stdlib/tst-unsetenv1.c: New file.
323 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
325         * login/utmp_file.c (file_writable): New variable.
326         (setutent_file): Don't try to open file for writing.
327         (pututline_file): Before writing, make descriptor writable if
328         necessary.
330 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
332         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
333         to IPv4 or IPv6 if an interface has been found.
335 2008-11-26  Roland McGrath  <roland@redhat.com>
337         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
338         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
340         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
341         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
342         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
344         * elf/elf.h (NT_386_IOPERM): New macro.
345         (NT_PPC_VSX): New macro.
347 2008-11-25  Roland McGrath  <roland@redhat.com>
349         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
350         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
351         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
352         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
353         Subdirectories moved to ports repository.
354         * configure.in (base_machine): Remove alpha case.
356 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
358         * sysdeps/mach/strerror_l.c: New file.
360 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
362         [BZ #6411]
363         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
364         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
365         magic numbers.
366         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
367         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
368         (relax_fenv_state): Same as above.
369         (FPSCR_29): Reserve bit in ISA 2.05.
370         (FPSCR_NI): Provide define for compat.
371         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
372         magic numbers.
373         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
374         magic numbers.
375         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
376         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
377         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
378         access to hwcap to account for hwcap size increase to uint64_t.
379         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
380         Likewise.
381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
382         (*setcontext): Likewise.
383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
384         New file.
385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
386         New file.
387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
388         (*setcontext): dynamically select mtfsf insn based on
389         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
390         increase to uint64_t.
391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
392         (*swapcontext): dynamically select mtfsf insn based on
393         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
394         increase to uint64_t.
395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
396         New file.
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
398         New file.
399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
400         (*setcontext): dynamically select mtfsf insn based on
401         PPC_FEATURE_HAS_DFP.
402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
403         (*swapcontext): dynamically select mtfsf insn based on
404         PPC_FEATURE_HAS_DFP.
406 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
408         * version.h: Bump for 2.9 release.
409         * include/features.h (__GLIBC_MINOR__): Bump to 9.
411         [BZ #7029]
412         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
413         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
414         all the rounding.
416 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
418         [BZ #7009]
419         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
420         unknown request types for now.
422 2008-11-11  Roland McGrath  <roland@redhat.com>
424         * sysdeps/x86_64/configure: New file.
426         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
427         * configure: Regenerated.
429 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
431         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
432         correct instruction to remove the stack frame.
434 2008-11-03  Michael Matz  <matz@suse.de>
436         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
437         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
439 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
441         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
442         Remove.
444         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
445         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
446         of the thread variable instead of void *.
447         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
448         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
449         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
450         __libc_tsd_define arguments.
451         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
452         __libc_tsd_address arguments.  Remove union hack.
453         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
454         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
455         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
456         Adjust __libc_tsd_{set,get} arguments.
457         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
458         __libc_tsd_define arguments.
459         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
460         arguments.
461         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
462         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
463         (LOCALE): Adjust __libc_tsd_define arguments.
464         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
465         arguments.
466         (LOCALE): Adjust __libc_tsd_define arguments.
467         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
468         arguments.
469         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
470         arguments.
472 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
474         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
475         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
477 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
479         [BZ #6966]
480         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
482 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
483             Ulrich Drepper  <drepper@redhat.com>
485         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
486         definition for GCC 3.1 and later.
488 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
490         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
491         refetch dtv, as it might have changed.
492         * elf/Makefile: Add rules to build and run tst-tls18.
493         * elf/tst-tls18.c: New test.
494         * elf/tst-tlsmod18a.c: New file.
496 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
498         [BZ #6875]
499         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
501 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
503         [BZ #6867]
504         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
506         [BZ #6919]
507         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
508         Fix length of copy operation.
510 2008-10-02  Pierre Habouzit <madcoder@debian.org>
512         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
513         and fix its calling convention.
515 2008-10-07  Andreas Schwab  <schwab@suse.de>
517         [BZ #6942]
518         * resolv/res_send.c (send_vc): Fix last change.
519         (send_dg): Align here as well.
521 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
523         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
524         return value in case rlimit is RLIM_INFINITY.
526         [BZ #6947]
527         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
528         for UL_SETFSIZE.
529         * resource/Makefile (tests): Add bug-ulimit1.
530         * resource/bug-ulimit1.c: New file.
532         [BZ #6974]
533         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
534         without dot.  Properly terminate the string with a null byte.
535         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
537         [BZ #6980]
538         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
539         negative sizees.
540         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
541         negative __size.
543         [BZ #6995]
544         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
546 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
548         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
549         abort if there is no initgroups_dyn function.
551         * resolv/res_send.c (send_dg): On timeout, only return nonzero
552         result if any of the queries really provided an answer.
554 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
556         * po/lt.po: Update from translation team.
558 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
560         * po/id.po: Update from translation team.
562 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
564         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
565         Fix tests for existence of second reply.
567 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
569         * po/id.po: New file.
570         Contributed by the Indonesian translation team.
572 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
574         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
575         initialization.
577 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
579         * elf/Makefile: Add rules to build and run tst-tls17.
580         * elf/tst-tls17.c: New test.
581         * elf/tst-tlsmod17a.c: New file.
582         * elf/tst-tlsmod17b.c: Likewise.
584 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
586         * stdlib/divmod_1.c: Use correct type for dummy variable.
587         * stdlib/mod_1.c: Likewise.
589 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
591         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
593 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
595         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
596         __nonnull order for C++.
597         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
598         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
600 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
602         * stdlib/longlong.h: Update from GCC.
604 2008-10-09  Jakub Jelinek <jakub@redhat.com>
605             David S. Miller  <davem@davemloft.net>
607         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
608         make sure any registers used with 64-bit 'branch-on-register'
609         instructions have their top 32-bits clear.
610         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
611         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
613 2008-09-18  Andreas Schwab  <schwab@suse.de>
615         [BZ #6942]
616         * resolv/res_send.c (send_vc): Fix use of unaligned address.
617         Properly handle partial reads.
619 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
621         * elf/elf.h (STO_MIPS_PLT): New.
622         (R_MIPS_COPY): New.
623         (R_MIPS_JUMP_SLOT): New.
624         (R_MIPS_NUM): Redefine to 128.
625         (DT_MIPS_PLTGOT): New.
626         (DT_MIPS_RWPLT): New.
627         (DT_MIPS_NUM): Redefine to 0x35.
629 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
631         * timezone/africa: Update from tzdata2008f.
632         * timezone/asia: Likewise.
633         * timezone/australasia: Likewise.
634         * timezone/europe: Likewise.
635         * timezone/leapseconds: Likewise.
636         * timezone/northamerica: Likewise.
637         * timezone/southamerica: Likewise.
638         * timezone/zone.tab: Likewise.
640 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
642         * nscd/connections.c: Disable use of paccept for now.
644 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
646         * socket/Versions: Remove paccept export for GLIBC_2.9.
647         * socket/Makefile (routines): Remove paccept.
648         * socket/sys/socket.h: Remove paccept declaration.
650         * po/sv.po: Update from translation team.
652 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
654         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
655         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
657 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
659         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
660         Patch by Olivier Fourdan <ofourdan@redhat.com>.
662 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
664         * sunrpc/rpc/svc.h: Declare svcfd_create.
665         Patch by Michael Solberg <msolberg@redhat.com>.
667 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
668             Ulrich Drepper  <drepper@redhat.com>
670         * malloc/malloc.c (public_vALLOc): Try other arenas in case
671         _int_valloc fails.
672         (public_pVALLOc): Likewise.
674 2008-09-02  Andreas Jaeger  <aj@suse.de>
676         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
677         commit.
679 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
681         [BZ #6860]
682         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
684 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
686         * Makefile (check-data): Check data directory in add-ons.
687         * elf/Makefile (check-data): Likewise.
689 2008-08-18  Roland McGrath  <roland@redhat.com>
691         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
692         * configure: Regenerated.
693         * config.make.in (cflags-cpu): New substituted variable.
694         (with-cpu): Variable removed.
695         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
697 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
699         [BZ #6845]
700         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
701         __signbitl definition and __LONG_DOUBLE_128__ guard from:
702         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
703         redundant.  Functions which call floating point assembler operations
704         should go into a sysdeps powerpc/fpu directory.
706 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
708         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
709         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
711 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
713         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
715         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
716         change related to AT_EXECFN.  We cannot use that string.
717         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
718         _dl_execfn member.
719         * elf/dl-support.c: Remove _dl_execfn variable.
720         (_dl_aux_init): Remove handling of AT_EXECFN.
721         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
722         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
724 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
726         [BZ #6544]
727         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
728         byte gets added to writes and seeks from the end use the length of
729         the buffer and not the currently terminating NUL byte.
731         [BZ #6634]
732         * login/utmp_file.c (getutent_r_file): Take additional parameter.
733         Set to true if locking failed.
734         (getutid_r_file): Adjust caller.
735         (pututline_file): Likewise.  Return NULL in this case.
736         Patch mostly by halesh.s@gmail.com.
738 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
740         [BZ #6589]
741         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
742         Define.
743         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
745 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
747         [BZ #6839]
748         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
749         macro since it is now available in elf/dynamic-link.h.
751 2008-08-12  Roland McGrath  <roland@frob.com>
753         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
754         in case used outside of libc.
755         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
757 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
759         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
760         directly instead of going through dn_comp.
762 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
764         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
765         Fix asm constraints.
767 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
769         [BZ #6790]
770         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
771         (IPV6_PMTUDISC_PROBE): Likewise.
773 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
775         [BZ #6791]
776         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
778 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
779             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
781         [BZ #6817]
782         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
783         Added the members 'vsx' and 'arch_2_06'.
784         (_dl_powerpc_platforms): Add the member 'power7'.
785         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
786         to reflect the changes required by VSX and ISA 2.06.
787         Modify _DL_PLATFORMS_COUNT to reflect the addition of
788         'power7'.
789         Defined PPC_PLATFORM_POWER7.
790         (_dl_string_platform): Add support for POWER7.
791         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
792         capability and ISA 2.06.
794 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
796         [BZ #6824]
797         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
798         macro to detect use of 128 bit long double.
799         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
801 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
803         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
805         [BZ #5794]
806         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
807         parameters.
808         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
809         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
811 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
813         * nscd/connections.c (main_loop_poll): Pass a buffer which is
814         guaranteed to be large enough to read inotify event.  Ignore
815         EAGAIN error.  Better error message.  Add branch predicition.
816         (main_loop_epoll): Likewise.
818 2008-08-02  Roland McGrath  <roland@frob.com>
820         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
821         Add memory clobbers.
823 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
825         * manual/arith.texi: Avoid @strong{Note:}.
826         * manual/creature.texi: Likewise.
827         * manual/filesys.texi: Likewise.
828         * manual/math.texi: Likewise.
829         * manual/memory.texi: Likewise.
830         * manual/resource.texi: Likewise.
831         * manual/syslog.texi: Likewise.
832         * manual/time.texi: Likewise.
834         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
835         to prevent warning.
837 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
839         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
840         new epoll_create1 interface.
841         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
842         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
843         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
845         * include/arpa/nameser.h (NS_GET16): Use const pointer.
846         (NS_GET32): Likewise.
848         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
849         syscalls, too.
851         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
852         use the AT_EXECFN value if it is no absolute path.
853         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
854         __ASSUME_AT_EXECFN.
856         * Versions.def: Add GLIBC_2.9 to libresolv.
857         * include/resolv.h: Remove hidden proto declarations for __ns_*
858         functions.  Add them for __dn_count_labels and __p_secstodate.
859         * include/arpa/nameser.h: Add a number of hidden proto declarations.
860         Define ns_msg_getflags macro here.
861         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
862         and __p_secstodate.
863         * resolv/Versions: Export functions from <arpa/nameser.h> from
864         libresolv in version GLIBC_2.9.
865         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
866         hidden definitions.
867         * resolv/ns_netint.c: Likewise.
868         * resolv/ns_parse.c: Likewise.
869         * resolv/ns_print.c: Likewise.
870         * resolv/ns_samedomain.c: Likewise.
871         * resolv/ns_ttl.c: Likewise.
872         * resolv/arpa/nameser_compat.h: Likewise.
873         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
874         function calls.
875         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
876         instead of ns_get16.
877         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
878         __ns_get32 instead of ns_get16 and ns_get32 respectively.
879         (gaih_getanswer_slice): Likewise.
880         * resolv/Makefile (libresolv-routines): Add ns_date.
881         * resolv/ns_date.c: New file.
883         * elf/Makefile (check-localplt.out): Also check libresolv and
884         libcrypt.
886 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
888         * sysdeps/unix/sysv/linux/kernel-features.h: Define
889         __ASSUME_O_CLOEXEC.
891 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
893         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
894         buffer passed to NSS functions.
896         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
898         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
899         Define.
901         * misc/syslog.c (openlog_internal): Fix compile problem.
903 2008-07-28  Roland McGrath  <roland@redhat.com>
905         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
907 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
909         * io/ftw.c (add_object): Remove inline to avoid warning.
911         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
913         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
914         Use it instead of locally defined resplen2 variable.
915         (res_nsend): Adjust for __libc_res_nsend interface change.
916         (send_vc): Initialize *resplen2 if necessary.  Read length of
917         package into an appropriately aligned variable.  Store converted length
918         in new variable and use it appropriately.
919         Add branch prediction help.
920         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
921         and pass it on to __libc_res_nsend.  Adjust all callers.
922         (__libc_res_nsearch): Likewise.
923         (__libc_res_nqeurydomain): Likewise.
924         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
925         change.
926         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
927         Define resplen2 variable and pass it to __libc_res_nsearch and then
928         to gaih_getanswer.
929         (getanswer_r): In case of incorrect DNS data don't overread buffer.
930         Add branch prediction.
931         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
932         (gaih_getanswer): Don't decode second slice if first one failed due
933         to a too small buffer.  Don't let not found status of second
934         decoder shadow results of the first.
935         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
936         and __libc_res_nquery interface changes
937         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
938         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
939         __libc_res_nsearch, and __libc_res_nsend.
940         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
941         change.
942         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
943         __libc_res_nsearch interface changes.
945 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
947         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
949         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
950         file descriptors with close-on-exec set.
951         (exec_comm_child): Fix the case where the write end of the pipe is
952         STDOUT_FILENO already.  In case it is, clear close-on-exec.
954         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
955         * io/pipe2.c: Likewise.
956         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
957         instead of __ASSUME_PACCEPT.
958         * include/unistd.h: Declare __have_pipe2.
959         * libio/iopopen.c: Implement "e" flag.
960         * libio/Makefile (tests): Add tst-popen1.
961         * libio/tst-popen1.c: New file.
963         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
964         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
966 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
968         [BZ #6771]
969         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
970         success call of _IO_SEEKOFF or calls which failed because the
971         descriptor is for a pipe.
973         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
974         magic number.
976         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
978         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
979         F_SETFD use if we know fopen set the flag.
981         * login/utmp_file.c (setutent_file): Minor optimization in case
982         O_CLOEXEC is available.
984 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
986         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
987         * elf/Makefile: Use pie-ccflag variable.
988         * nscd/Makefile: Likewise.
989         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
991 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
993         [BZ #6724]
994         * Versions.def: Add GLIBC_2.9 version tag for libutil.
995         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
996         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
997         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
998         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
999         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1000         utmp32, utmpx32 and login32.
1001         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1002         versions of struct utmp functions to libc and libutil.
1003         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1004         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1005         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1006         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1007         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1008         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1009         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1010         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1011         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1012         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1013         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1014         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1015         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1016         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1017         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1018         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1019         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1020         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1021         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1022         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1023         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1024         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1026 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1028         * scripts/gen-as-const.awk: Generate more widely usable code by
1029         using 64-bit arithmetic.
1031         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1032         the same treatment as narrow output code in last patch.
1034         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1036         [BZ #6763]
1037         * elf/dl-load.c (local_strdup): Remove inline.
1038         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1039         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1040         part of the object.
1042         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1044 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1046         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1047         the new syscalls, too.
1049         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1050         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1052         [BZ #6698]
1053         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1054         parameter for end of buffer.  If temporary copy is too large use
1055         malloc.
1056         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1057         interface change.
1058         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1059         string rewrite when allocating buffer.
1061         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1062         syscalls, too.
1064         * nscd/connections.c (nscd_init): Clean up fcntl call.
1066         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1067         SOCK_NONBLOCK if possible.
1069         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1070         SOCK_CLOEXEC if available.
1072         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1073         __libc_clntudp_bufcreate_internal.
1074         * include/sys/socket.h: Declare __have_sock_cloexec.
1075         * socket/Makefile (aux): Add have_sock_cloexec.
1076         * socket/have_sock_cloexec.c: New file.
1077         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1078         __libc_clntudp_bufcreate.
1079         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1080         which takes an additional parameter.  Create socket with non-blocking
1081         mode and close-on-exec flag set, if wanted.
1082         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1083         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1084         instead of clntudp_create.  The socket has already the close-on-exec
1085         flag set if SOCK_CLOEXEC is defined.
1087 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1089         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1090         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1091         appropriate.
1092         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1093         non-blocking mode by using socket, paccept, and inotify_init1.
1095         * Versions.def (glibc): Add GLIBC_2.9.
1096         * io/Makefile (routines): Add dup3 and pipe2.
1097         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1098         * io/dup3.c: New file.
1099         * io/pipe2.c: New file.
1100         * posix/unistd.h: Declare dup3 and pipe2.
1101         * socket/Makefile (routines): Add paccept.
1102         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1103         * socket/paccept.c: New file.
1104         * socket/sys/socket.h: Declare paccept.
1105         * sysdeps/unix/syscalls.list: Add entry for dup3.
1106         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1107         epoll_create2 and inotify_init1.
1108         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1109         * sysdeps/unix/sysv/linux/paccept.c: New file.
1110         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1111         possible.
1112         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1113         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1114         inotify_init1, and pipe2 entries.
1115         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1116         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1117         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1118         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1119         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1120         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1121         SOCK_NONBLOCK.
1122         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1123         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1124         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1125         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1126         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1127         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1128         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1129         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1130         EPOLL_NONBLOCK.  Declare epoll_create2.
1131         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1132         EFD_NONBLOCK.
1133         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1134         IN_NONBLOCK.  Declare inotify_init1.
1135         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1136         SFD_NONBLOCK.
1137         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1138         TFD_NONBLOCK.
1140         * elf/elf.h: Define AT_EXECFN.
1141         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1142         LD_ORIGIN_PATH.
1143         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1144         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1145         if __ASSUME_AT_EXECFN is defined.
1146         (_dl_aux_init): Handle AT_EXECFN.
1147         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1148         for 2.6.27 and up.
1149         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1150         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1151         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1152         _dl_execfn if available and avoid compatibility code if
1153         __ASSUME_AT_EXECFN is defined.
1155         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1156         _dl_discover_osversion only for older kernels.
1158 2008-07-22  Roland McGrath  <roland@frob.com>
1160         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1162 2008-07-21  Roland McGrath  <roland@frob.com>
1164         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1165         returned too much data out of line.
1167 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1169         * locale/setlocale.c (setname): Remove inline to avoid compiler
1170         warning.
1172         [BZ #6712]
1173         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1175 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1177         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1178         doesn't manage to write anything, fail.
1180         * malloc/hooks.c (__malloc_check_init): Remove printf.
1182 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1184         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1186 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1188         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1189         from inotify.
1190         (main_loop_epoll): Likewise.
1192 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1194         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1196         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1197         if DEBUG is defined.
1199         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1200         query.  Adjust buffer size computation for padding.
1202 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1204         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1205         * stdio-common/tst-setvbuf1.c: New file.
1206         * stdio-common/tst-setvbuf1.expect: New file.
1208         [BZ #6719]
1209         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1210         when selecting fully-buffered stream.
1211         Patch by Wang Xin <wxinee@gmail.com>.
1213 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1215         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1216         (__open_2): New function.
1217         (__open64_2): New alias to __open_2.
1218         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1219         (__openat_2): New function.
1220         (__openat64_2): New alias to __openat_2.
1222 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1224         [BZ #6723]
1225         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1227 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1229         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1230         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1231         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1232         __hurd_dfail.
1233         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1234         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1235         * sysdeps/mach/hurd/send.c (__send): Likewise.
1236         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1237         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1239 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1241         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1242         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1243         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1244         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1245         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1246         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1248 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1250         [BZ #6657]
1251         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1252         of %EY.
1253         Patch by Petr Baudis.
1255 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1257         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1258         Patch by Peter Jones <pjones@redhat.com>.
1260 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1262         [BZ #6654]
1263         * stdlib/canonicalize.c (__realpath): readlink can write too much
1264         into the buffer on platforms without PATH_MAX.
1266 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1268         [BZ #6653]
1269         * posix/tst-regex.c (main): Rename to...
1270         (do_test): ... this. Remove cmdline option processing.
1271         (TIMEOUT): Define.
1272         (TEST_FUNCTION): Define.
1273         (CMDLINE_OPTIONS): Define.
1275 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1277         [BZ #5210]
1278         * configure.in: Add -Werror to -fstack-protector test to catch
1279         unsupported architectures.
1280         Patch by Gilles Esponasse <g.esp@free.fr>.
1282 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1284         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1285         getcontext returns ENOSYS.
1287 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1289         * nscd/connections.c (main_loop_poll): Fix test for read error.
1290         (main_loop_epoll): Likewise.
1292 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1294         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1295         better place so it is not called when nscd is used.
1297         * nscd/connections.c: Also recognize and handle changes to the
1298         resolver configuration file.
1300 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1302         * time/strftime.c: Pass reference to tzset_called around to handle
1303         recursive calls.
1305         [BZ #6612]
1306         * time/strftime.c (__strftime_internal): Call tzset() only
1307         when printing timezone-dependent values.
1308         Based on a patch by Petr Baudis <pasky@suse.cz>.
1310         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1311         unconditionally use second gaih_getanswer_slice result.
1313         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1314         (getaddrinfo): RES must always be non-NULL.
1316 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1318         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1319         cr[34] registers.
1320         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1321         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1322         Likewise.
1323         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1324         register.
1326 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1328         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1329         fields.
1330         * nscd/connections.c (inotify_fd): New variable.
1331         (nscd_init): Try to open an inotify descriptor.
1332         If successful, watch files for databases using inotify instead of
1333         having prune threads stat the files.
1334         (nscd_run_prune): Recognize clear_cache flag being set and call
1335         prune_cache appropriately.
1336         (main_loop_poll): Add inotify descriptor to wait set and handle the
1337         reported changes.
1338         (main_loop_epoll): Likewise.
1339         * nscd/cache.c (prune_cache): Don't stat files for databases if
1340         inotify is used.
1341         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1342         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1344         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1345         fixed-size portion of the record.
1346         * nscd/servicescache.c (cache_addserv): Likewise.
1347         * nscd/pwdcache.c (cache_addpw): Likewise.
1348         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1350 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1352         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1353         out we don't use uninitialized memory.
1355         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1356         the client.
1358 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1360         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1361         ignore T_DNAME messages.
1362         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1364 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1366         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1367         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1369 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1371         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1372         instead of portstr to nscd_getserv_r.  Patch by
1373         Roman Kagan <rkagan@mail.ru>.
1375 2008-05-26  Jim Meyering  <meyering@redhat.com>
1377         Remove more useless "if" tests before "free".
1378         * include/inline-hashtab.h (htab_delete): Likewise.
1379         * libio/freopen.c (freopen): Likewise.
1380         * libio/freopen64.c (freopen64): Likewise.
1381         * locale/programs/ld-collate.c (collate_read): Likewise.
1382         * misc/fstab.c (libc_freeres_fn): Likewise.
1383         * posix/glob.c (globfree): Likewise.
1385 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1387         * string/Makefile (strop-tests): Add memmem.
1388         * string/test-memmem.c: New file.
1389         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1390         (test_init): Size buf1 according to BUF1PAGES.
1392 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1394         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1395         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1396         (CFLAGS-scanf17.c): New.
1397         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1398         * stdio-common/scanf15.c (main): Likewise.
1399         * stdio-common/scanf16.c: New file.
1400         * stdio-common/scanf17.c: New file.
1402 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1404         * resolv/res_send.c (send_dg): If we already have one of two
1405         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1406         use the one answer insted of failing.
1408 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1410         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1411         being executed on PowerPC as the expected result exceeds IBM
1412         long double 128 __LDBL_MAX__.
1414 2008-05-21  Roland McGrath  <roland@redhat.com>
1416         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1418         * Makefile (check-data): Use $(abi-name) before other guesses.
1419         Look in $(add-ons) dirs before scripts/data/.
1420         * elf/Makefile (check-data): Likewise.
1422         * scripts/soversions.awk: Grok ABI line.
1423         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1424         Emit definition for abi-name variable.
1426 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1428         * string/endian.h: Define new fixed-size hto* and *toh macros only
1429         if [__USE_BSD].
1431         * iconvdata/Depend: Add localedata.
1433 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1435         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1437 2008-05-08  David S. Miller  <davem@davemloft.net>
1439         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1440         HIDDEN_JUMPTARGET.
1441         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1442         (__SYSCALL_CLOBBERS): Remove %g* registers.
1443         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1444         (__SYSCALL_CLOBBERS): Likewise.
1445         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1446         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1448 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1450         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1451         (CALL_ERRNO_LOCATION): Define.
1452         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1453         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1454         (CALL_ERRNO_LOCATION): Define.
1455         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1456         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1457         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1459 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1461         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1462         variable.
1464 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1466         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1467         (FIRST_FRAME_POINTER): Define.
1469 2008-05-09  David S. Miller  <davem@davemloft.net>
1471         * sysdeps/sparc/sparc64/backtrace.c: New file.
1473 2008-05-14  David S. Miller  <davem@davemloft.net>
1475         * sysdeps/sparc/machine-gmon.h: New file.
1476         * sysdeps/sparc/sparc-mcount.S: Likewise.
1477         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1478         sysdep_routines in gmon directory.
1480 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1482         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1484 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1486         * resolv/res_query.c (__libc_res_nquery): In case one of two
1487         answer was too short don't try to read that answer's header.
1489         * resolv/res_send.c (send_dg): In case of timeout and there are
1490         two queries and one has been answered, return value indicating
1491         success.
1493 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1495         * nscd/cache.c (cache_add): Take additional parameter specifying
1496         whether this is in response of a cache refill.  Check alignment
1497         of package data.  Revamp waking of pruning thread.
1498         (prune_cache): Small optimization.
1499         * nscd/nscd.h: Adjust cache_add prototypes.
1500         * nscd/aicache.c: Adjust cache_add calls.
1501         * nscd/grpcache.c: Likewise.
1502         * nscd/hstcache.c: Likewise.
1503         * nscd/initgrcache.c: Likewise.
1504         * nscd/pwdcache.c: Likewise.
1505         * nscd/servicescache.c: Likewise.
1506         * nscd/connections.c (restart): Really disable cache use before
1507         exec attempt.  If it fails, reenable cache.
1508         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1509         time to max to be able to notice concurrent cache additions.  Unlock
1510         prune_lock while performing gc.  Afterwards compute wakeup time with
1511         current wakeup_time value in mind.
1513 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1515         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1517         * nscd/mem.c (gc): Correctly determine highest used array element
1518         in mark.
1520         * nscd/mem.c (markrange): Add assert to check entries are all
1521         aligned.  Small cleanup in bitmap use.
1523         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1524         blockoff of type nscd_ssize_t.
1525         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1526         (mempoll_alloc): Record block offset and not address.
1528         * nscd/mem.c (gc): Fix test for stack overuse.
1530         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1531         more asserts.
1533         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1534         entry is available, believe it.
1536         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1537         no answers return NSS_STATUS_NOTFOUND.
1538         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1539         buffer does not have any content.
1541 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1543         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1545         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1546         lookup, don't assign canon unconditionally.
1548 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1550         * string/Makefile (distribute): Add str-two-way.h.
1552 2008-03-29  Eric Blake  <ebb9@byu.net>
1554         Rewrite string searches to O(n) rather than O(n^2).
1555         * string/str-two-way.h: New file.  For linear fixed-allocation
1556         string searching.
1557         * string/memmem.c: New implementation.
1558         * string/strstr.c: New implementation.
1559         * string/strcasestr.c: New implementation.
1561 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1563         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1564         opr.ctx_type.
1565         (calc_first): Initialize constraint field.
1566         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1567         Use search_duplicated_node to avoid loops.  Fix grammar.
1568         (duplicate_node): Merge constraint field for all node types.
1569         (calc_eclosure_iter): Look at constraint field for all node types.
1570         * posix/regex_internal.c (create_cd_newstate): Don't look at
1571         create_cd_newstate.
1573 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1575         [BZ #6428]
1576         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1578         [BZ #6442]
1579         * string/endian.h: Add macros for fixed-size endian conversion.
1580         * bits/byteswap.h: Allow inclusion from <endian.h>.
1581         * sysdeps/i386/bits/byteswap.h: Likewise.
1582         * sysdeps/ia64/bits/byteswap.h: Likewise.
1583         * sysdeps/s390/bits/byteswap.h: Likewise.
1584         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1585         * string/Makefile (tests): Add tst-endian.
1586         * string/tst-endian.c: New file.
1588         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1589         Patch by Reuben Thomas.
1591 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1593         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1595 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1597         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1599         [BZ #6461]
1600         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1601         Add missing braces.
1602         (BODY for __gconv_transform_internal_ascii): Likewise.
1604         [BZ #6472]
1605         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1606         to be treated like link-local addresses.
1607         (match_prefix): Don't treat IPv4 loopback address special when
1608         converting to v4 mapped addressed.
1610         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1611         if necessary.
1612         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1613         * posix/tst-rfc3484-2.c: Likewise.
1614         * posix/tst-rfc3484-3.c: Likewise.
1616         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1617         and SCTP.
1619         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1621         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1623         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1625 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1627         * po/lt.po: New file.  From Lituanian translation team.
1629 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1631         Introduce TLS descriptors for i386 and x86_64.
1632         * include/inline-hashtab.h: New file, copied from 2005's
1633         libiberty, with fix for memory leak imported afterwards by
1634         Glauber de Oliveira Costa.
1635         * elf/tlsdeschtab.h: New file.
1636         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1637         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1638         (CHECK_STATIC_TLS): Move to...
1639         * elf/dynamic-link.h: ... this file.
1640         (TRY_STATIC_TLS): New macro.
1641         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1642         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1643         R_386_TLS_DESC): Define.
1644         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1645         binutils.
1646         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1647         R_X86_64_TLSDESC): Define.
1648         (R_386_NUM, R_X86_64_NUM): Adjust.
1649         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1650         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1651         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1652         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1653         release tlsdesc_table.
1654         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1655         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1656         (elf_machine_rel): Handle R_386_TLS_DESC.
1657         (elf_machine_rela): Likewise.
1658         (elf_machine_lazy_rel): Likewise.
1659         (elf_machine_lazy_rela): Likewise.
1660         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1661         * sysdeps/i386/dl-tlsdesc.S: New file.
1662         * sysdeps/i386/dl-tlsdesc.h: New file.
1663         * sysdeps/i386/tlsdesc.c: New file.
1664         * sysdeps/i386/tlsdesc.sym: New file.
1665         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1666         tlsdesc_table.
1667         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1668         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1669         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1670         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1671         release tlsdesc_table.
1672         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1673         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1674         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1675         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1676         (elf_machine_rela): Likewise.
1677         (elf_machine_lazy_rel): Likewise.
1678         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1679         (__tls_get_addr): Do not declare for non-shared compiles.
1680         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1681         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1682         * sysdeps/x86_64/tlsdesc.c: New file.
1683         * sysdeps/x86_64/tlsdesc.sym: New file.
1684         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1685         tlsdesc_table for both 32- and 64-bit structs.
1687 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1689         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1690         its own function.  This reduces the frame setup costs and more.
1692 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1694         [BZ #3406]
1695         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1696         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1698 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1700         * io/openat.c (__openat_2): Also pass fd to __openat.
1701         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1702         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1704         * string/tester.c (test_memcmp): Add a few more tests.
1705         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1707 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1709         * nscd/cache.c (cache_add): Before returning with failure and this
1710         is the first use of the record, mark it as unusable.
1711         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1712         reporting a failure.
1713         * nscd/grpcache.c: Likewise
1714         * nscd/hstcache.c: Likewise.
1715         * nscd/initgrcache.c: Likewise.
1716         * nscd/pwdcache.c: Likewise.
1717         * nscd/servicescache.c: Likewise.
1719 2008-05-10  Roland McGrath  <roland@redhat.com>
1721         [BZ #6505]
1722         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1724 2008-05-08  David S. Miller  <davem@davemloft.net>
1726         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1728         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1729         (__ieee754_y0l): Likewise.
1730         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1731         (__ieee754_y1l): Likewise.
1732         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1733         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1734         frexpl and ldexpl.  math_private.h provides them and the latter
1735         is not even used.
1736         (__log1pl): Use __frexpl.
1738 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1740         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1741         prototypes.
1742         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1743         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1744         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1745         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1746         af==AF_UNSPEC.
1747         (_nss_nis_gethostbyname4_r): New function.
1748         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1749         Change to also handle af==AF_UNSPEC.
1750         (get_tablename): New function.  Use it to avoid duplication.
1751         (_nss_nisplus_gethostbyname4_r): New function.
1752         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1753         available.
1754         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1755         * nss/nss.h: Define struct gaih_addrtuple.
1756         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1757         af==AF_UNSPEC.
1758         (_nss_files_gethostbyname4_r): New function.
1759         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1760         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1761         calls.
1762         * resolv/res_query.c (__libc_res_nquery): Take two additional
1763         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1764         look up IPv4 and IPv6.
1765         Change all callers.
1766         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1767         for an additional query and answer buffer.  Pass to send_vc and
1768         send_dg.
1769         (send_vc): Send possibly two requests and receive two answers.
1770         (send_dg): Likewise.
1771         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1772         __libc_res_nquery.
1773         (_nss_dns_gethostbyname4_r): New function.
1774         (gaih_getanswer_slice): Likewise.
1775         (gaih_getanswer): Likewise.
1776         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1777         __libc_res_nquery call.
1778         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1779         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1780         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1781         available.
1783 2008-05-05  David S. Miller  <davem@davemloft.net>
1785         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1786         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1788 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1790         Fix termios bit macros.
1791         Move *DLY definitions where they belong, in termios.h.
1792         Add *[0-3] definitions.
1793         Fixes confusion between VT and FF.
1794         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1795         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1796         are already defined to avoid collision with termios.h.
1797         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1798         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1799         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1800         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1801         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1802         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1803         VTDLY, VT0, VT1): New macros.
1804         [__USE_GNU] (OLCUC): Change value of macro.
1805         [__USE_XOPEN] (OFILL): New macro.
1806         [__USE_BSD] (CRTSCTS): Change value.
1807         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1808         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1809         (B7200, B14400, B28800, B76800): New macros.
1811 2008-05-01  David S. Miller  <davem@davemloft.net>
1813         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1814         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1815         (gen-as-const-headers): Add it.
1816         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1817         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1818         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1819         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1821         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1822         six system call parameters.
1823         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1825 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1827         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1828         RUSAGE_LWP.
1829         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1830         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1832 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1834         * stdlib/tst-setcontext.c: Include unistd.h.
1836 2008-04-25  David S. Miller  <davem@davemloft.net>
1838         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1839         Pass "union semun" properly in to sys_ipc, it must be passed
1840         by value, not by reference.
1842 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1844         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1845         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1846         * nscd/connections.c (mem_in_flight): Likewise.
1848         * nscd/nscd.h (dbs): Make hidden.
1850         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1851         Avoid returning -1, return 0 instead.
1853 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1855         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1857 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1859         [BZ #5209]
1860         * sysdeps/unix/sysv/linux/times.c: New file.
1862         [BZ #5381]
1863         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1864         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1865         prototype.
1866         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1867         appropriate mem_in_flight element.
1868         (gc): Take allocations which have not yet been committed to the
1869         database into account.
1870         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1871         Reset mem_in_flight before returning.
1872         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1873         cue it up in mem_in_flight_list.
1874         * nscd/aicache.c: Adjust mempool_alloc call.
1875         * nscd/grpcache.c: Likewise.
1876         * nscd/hstcache.c: Likewise.
1877         * nscd/initgrcache.c: Likewise.
1878         * nscd/pwdcache.c: Likewise.
1879         * nscd/servicescache.c: Likewise.
1880         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1881         of -fpie.
1883         * nscd/connections.c (handle_request): Provide better error message
1884         in case SELinux forbids the service.
1886         * version.h (VERSION): Bump to 2.8.90.
1888 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1890         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1892 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1894         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1895         Also use for 32-bit.
1896         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1897         __nextafter instead of nextafter to avoid local PLT.
1898         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1899         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1901         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1903         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1904         __fe_nomask_env.
1905         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1906         <fenv_libc.h> instead of <fenv.h>.
1907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1910         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1912         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1913         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1914         function from fegetexcept and make old name weak alias.
1915         * include/fenv.h: Declare __fegetexcept.
1916         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1917         fegetexcept.
1918         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1919         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1920         to fetestexcept.
1921         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1922         instead of frexpl to avoid local PLT.
1923         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1924         ilogbl to avoid local PLT.
1925         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1926         instead of ldexpl to avoid local PLT.
1927         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1928         __roundl not roundl to avoid local PLT.
1929         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1930         local PLTs.  Use __sincosl instead of separate sinl and cosl
1931         calls.
1932         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1934         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1935         version for ppc64 to 2.4.21 since without it makecontext will fail.
1937         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1938         to the ABI in use.
1939         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1940         .__tls_get_addr.
1941         [__powerpc64__] (TLS_GD): Likewise.
1943 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1945         [BZ #4997]
1946         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1947         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1948         mantissa.
1949         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1950         Likewise.  Also account for when x is an odd number between 2^52
1951         and 2^53-1.
1952         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1953         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1954         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1955         detect aforementioned erroneous conditions.
1957 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1959         * configure.in: Check for -fno-section-anchors in addition to
1960         -fno-toplevel-reorder.
1962 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1964         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1966         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1967         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1968         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1969         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1970         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1971         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1973 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1975         [BZ #5443]
1976         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1977         * time/alt_digit.c: Likewise.
1978         * wcsmbs/wcsmbsload.c: Likewise.
1980 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1982         * version.h (VERSION): Bump to 2.8.
1984         * timzeone/asia: Update from tzdata2008b.
1985         * timezone/backward: Likewise.
1986         * timezone/europe: Likewise.
1987         * timezone/northamerica: Likewise.
1988         * timezone/southamerica: Likewise.
1989         * timezone/iso3166.tab: Likewise.
1990         * timezone/leapseconds: Likewise.
1991         * timezone/zone.tab: Likewise.
1992         * timezone/private.h: Update from tzcode2008a.
1993         * timezone/zdump.c: Likewise.
1994         * timezone/zic.c: Likewise.
1996 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1998         [BZ #5741]
1999         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2000         Define additonal Data Cache Block instruction macros.
2001         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2002         Replace dcbst with dcbf and sync with sync/isync.
2004 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2006         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2007         Always set ELF_RTYPE_CLASS_PLT.
2008         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2010 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2012         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2013         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2014         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2015         For ISA 2.01 and later replace mftb with mfspr 268.
2017 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2019         [BZ #5768]
2020         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2021         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2023 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2025         [BZ #5768]
2026         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2027         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2028         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2029         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2031 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2033         * stdlib/tst-makecontext.c (othervar): New variable.
2034         (cf): Test sign extending the argument to long.
2036 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2038         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2039         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2040         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2041         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2042         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2043         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2044         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2046 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2048         * elf/Makefile (tests): Substitute tests-vis-yes here.
2049         (tests-vis-yes): Delete.
2050         (modules-name, modules-vis-yes): Similarly.
2052 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2054         [BZ #4407]
2055         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2056         Preserve sign in signgamp when x is zero.
2058 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2060         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2061         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2062         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2063         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2064         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2065         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2067 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2069         [BZ #4314]
2070         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2071         buffers.
2073         [BZ #5209]
2074         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2075         a reserved error value.
2077         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2078         value to check for correct sign extension.
2080         [BZ #5436]
2081         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2082         Copy 64-bit parameter values even though this is not required in
2083         the standard.
2085         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2086         PC save.
2088 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2090         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2091         PC save.
2093 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2095         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2097 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2099         [BZ #5998]
2100         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2101         in line-buffered stream failed.
2102         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2104 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2106         [BZ #6024]
2107         * scripts/abi-versions.awk: If the version specified by
2108         --enable-oldest-abi is older than the first version for this
2109         architecture, use the default version.
2111         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2112         as well when ignoring the whole category.
2114 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2116         [BZ #6042]
2117         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2118         ETHERTYPE_* definitions.
2119         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2121 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2123         * stdlib/mbtowc.c (__no_r_state): Remove.
2124         (mbtowc): New static state variable.  Use it instead of
2125         __no_r_state.
2126         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2127         (__wctomb_state): New hidden variable.
2128         (wctomb): Use __wctomb_state instead of __no_r_state.
2129         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2130         (__wctomb_state): New extern decl.
2131         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2133 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2135         [BZ #5475]
2136         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2138 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2140         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2142 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2144         * po/nl.po: Update from translation team.
2146 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2148         [BZ #6007]
2149         * string/strfry.c: Handle empty strings again.
2151 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2153         [BZ #5443]
2154         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2155         before looking for translation.
2156         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2157         * locale/freelocale.c: Likewise.
2158         * locale/newlocale.c: Likewise.
2159         * locale/setlocale.c: Likewise.
2160         Based partially on a patch by ryo@np.css.fujitsu.com.
2162 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2164         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2165         acquiring wrlock.  Do conv_tab allocation while holding lock.
2166         * intl/Makefile: Add rules to build and run tst-gettext6.
2167         * intl/tst-gettext6.c: New test.
2168         * intl/tst-gettext6.sh: New file.
2170 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2172         * po/nl.po: Update from translation team.
2174         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2175         provided through st_blksize, try the default size before giving up.
2177 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2179         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2181         [BZ #5939]
2182         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2184         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2185         error message.  POSIX today does not require the messages to be in
2186         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2188         [BZ #5979]
2189         * sunrpc/auth_unix.c: Unify printed strings.
2190         * sunrpc/clnt_tcp.c: Likewise.
2191         * sunrpc/clnt_udp.c: Likewise.
2192         * sunrpc/clnt_unix.c: Likewise.
2193         * sunrpc/svc_tcp.c: Likewise.
2194         * sunrpc/svc_udp.c: Likewise.
2195         * sunrpc/svc_unix.c: Likewise.
2196         * sunrpc/xdr.c: Likewise.
2197         * sunrpc/xdr_array.c: Likewise.
2198         * sunrpc/xdr_rec.c: Likewise.
2199         * sunrpc/xdr_ref.c: Likewise.
2200         * locale/programs/ld-time.c (time_finish): Unify messages.
2201         * locale/programs/locfile.c (handle_copy): Fix typo.
2202         * nscd/nscd.c (options): Fix typo.
2204         [BZ #5995]
2205         * stdlib/strtod_l.c: Use correct sign for result in one more
2206         underflow case.
2207         Patch by Eric Blake <ebb9@byu.net>.
2209 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2211         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2212         and creat system calls.
2213         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2214         call.
2215         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2216         system calls.
2217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2218         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2219         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2221 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2223         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2224         <linux/limits.h> has defined it.
2225         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2226         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2227         headers.
2228         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2229         it instead of ARG_MAX.
2231 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2233         * posix/gai.conf: Fix comment for scope nullbits.
2234         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2235         default to 128 bits for v4 mapped addresses.
2237 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2239         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2240         ptrace call to get the ieee_instruction_pointer from the kernel.
2241         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2242         ptrace call to set the ieee_instructtion_pointer.
2243         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2244         Add comment that ieee_instruction_pointer is always 0.
2246 2008-03-09  Andreas Jaeger  <aj@suse.de>
2248         [BZ #5857]
2249         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2250         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2251         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2253         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2254         (rint_test): Likewise.
2256 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2258         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2259         call.
2260         (__nisfind_server): Similar for open readColdStartFile call.
2261         Patch partially by Jim Meyering.
2262         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2263         around internal_setent call.
2265         * po/vi.po: New Vietnamese translation.
2267         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2268         ADJ_OFFSET_SS_READ.
2270         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2271         remove CLONE_STOPPED.
2273 2008-02-10  Jim Meyering  <meyering@redhat.com>
2275         Remove useless "if" before "free":
2276         * elf/ldconfig.c (parse_conf_include): Likewise.
2277         * gmon/gmon.c (weak_alias): Likewise.
2278         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2279         * inet/rcmd.c (__validuser2_sa): Likewise.
2280         * intl/bindtextdom.c (set_binding_values): Likewise.
2281         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2282         * libio/genops.c (save_for_backup): Likewise.
2283         * libio/wgenops.c (save_for_wbackup): Likewise.
2284         * locale/programs/ld-collate.c (collate_read): Likewise.
2285         * locale/programs/linereader.c (get_string): Likewise.
2286         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2287         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2288         * resolv/res_debug.c (do_section): Likewise.
2289         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2290         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2291         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2292         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2293         * time/tzset.c (tzset_internal): Likewise.
2295 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2297         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2298         of ASSEMBLER.
2300 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2302         [BZ #5903]
2303         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2304         not stream for output file.  Open output file here.
2305         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2306         and output file name.
2307         (process_fd): Likewise.
2308         (process_file): Likewise.
2309         (main): Adjust callers of changed functions.
2310         * iconv/iconv_prog.h: Adjust prototype.
2312 2008-03-09  Andreas Jaeger  <aj@suse.de>
2314         [BZ #5753]
2315         * sysdeps/ia64/ieee754.h: Use protected namespace
2316         __BIG_ENDIAN/__LITTLE_ENDIAN.
2317         * sysdeps/ieee754/ieee754.h: Likewise.
2318         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2320 2008-03-08  Roland McGrath  <roland@frob.com>
2322         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2323         ignore a signal that came from a machine exception, treat it as a
2324         fatal core-dump signal instead.
2325         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2327         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2328         Clear DF bit in thread state's eflags.
2329         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2331 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2333         [BZ #5774]
2334         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2335         of NAN(...) sequence.
2336         * stdlib/Makefile (tests): Add tst-strtod6.
2337         * stdlib/tst-strtod6.c: New file.
2339         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2341         [BZ #5762]
2342         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2343         putting offending option character in quotes.  Clean up error
2344         messages.
2345         * po/be.po: Adjust msgstr in translation file.
2346         * po/bg.po: Likewise.
2347         * po/ca.po: Likewise.
2348         * po/cs.po: Likewise.
2349         * po/da.po: Likewise.
2350         * po/de.po: Likewise.
2351         * po/es.po: Likewise.
2352         * po/fr.po: Likewise.
2353         * po/hr.po: Likewise.
2354         * po/ko.po: Likewise.
2355         * po/nl.po: Likewise.
2356         * po/rw.po: Likewise.
2357         * po/sk.po: Likewise.
2358         * po/sv.po: Likewise.
2359         * po/tr.po: Likewise.
2360         * po/zh_CN.po: Likewise.
2361         * po/zh_TW.po: Likewise.
2363         [BZ #5760]
2364         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2365         Patch by Roland Bless <roland@bless.de>.
2367         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2368         .o file.
2369         * elf/Makefile (routines): Add dl-sysdep.
2370         (elide-routines.os): Likewise.
2372 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2374         [BZ #5786]
2375         * elf/dl-sysdep.c: Undefine ROUND after use.
2376         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2377         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2378         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2379         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2380         to ...
2381         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2382         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2383         if necessary.
2384         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2386         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2387         _dl_tls_get_addr_soft element.
2388         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2389         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2390         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2391         GLRO.
2392         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2393         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2394         of internal_function.
2396         * stdlib/Makefile (aux): Add tens_in_limb.
2397         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2398         * stdlib/tens_in_limb.c: ...here.  New file.
2400         [BZ #5778]
2401         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2402         __statfs_chown_restricted.
2403         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2404         for _PC_CHOWN_RESTRICTED.
2405         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2406         Implement __statfs_chown_restricted.
2407         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2408         _POSIX_CHOWN_RESTRICTED value to zero.
2409         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2410         defined to zero.
2412         * sysdeps/x86_64/rtld-memset.c: New file.
2414 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2416         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2418         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2419         Barcelona machine.  Make default fall through branch of
2420         __x86_64_preferred_memory_instruction check as the integer code path.
2422 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2424         * sysdeps/x86_64/cacheinfo.c
2425         (__x86_64_preferred_memory_instruction): New variable.
2426         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2428         * sysdeps/x86_64/memset.S: Rewrite.
2430 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2432         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2433         __obstack_printf_chk): New prototypes.
2434         (__vasprintf_chk, __vdprintf_chk,
2435         __obstack_vprintf_chk): Likewise.
2436         Add libc_hidden_proto.
2437         * libio/obprintf.c
2438         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2439         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2440         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2441         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2442         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2443         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2444         __obstack_vprintf_chk): New prototypes.
2445         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2446         obstack_vprintf): New inlines.
2447         * debug/dprintf_chk.c: New file.
2448         * debug/vdprintf_chk.c: New file.
2449         * debug/asprintf_chk.c: New file.
2450         * debug/vasprintf_chk.c: New file.
2451         * debug/obprintf_chk.c: New file.
2452         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2453         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2454         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2455         @@GLIBC_2.8.
2456         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2457         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2458         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2459         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2460         libc_hidden_proto.
2461         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2462         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2463         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2464         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2465         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2466         @@GLIBC_2.8.
2467         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2468         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2469         obstack_vprintf_chk.
2470         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2471         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2472         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2473         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2474         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2475         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2477 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2479         [BZ #5779]
2480         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2481         Patch by Roy Marples <roy@marples.name>.
2483         [BZ #5736]
2484         * malloc/malloc.c: Fix typo in comment.
2486         [BZ #5627]
2487         * locale/iso-639.def: Add Shuswap.
2489 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2491         [BZ #5790]
2492         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2493         overwrite *h_errnop/*errnop values from getanswer_r in case of
2494         failure.
2496 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2498         [BZ #5818]
2499         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2500         (verify_persistent_db): Remove one unnecessary test and add a new one
2501         for bad configuration.
2502         (nscd_init): Improve error reported when persistent database cannot
2503         be reused.
2504         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2505         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2506         .suggested_module and .max_db_size and case config file says the
2507         values are zero.
2508         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2510         [BZ #5854]
2511         * nis/ypclnt.c (yp_order): Fix handling of return value of
2512         do_ypcall_tr call.
2513         Patch by Jeff Moyer <jmoyer@redhat.com>.
2515         * po/fr.po: Update from translation team.
2517 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2518             Carlos O'Donell <carlos@systemhalted.org>
2520         [BZ #5012]
2521         * FAQ.in: Describe why glibc needs to be compiled with
2522         optimization.
2524 2008-02-19  Roland McGrath  <roland@redhat.com>
2526         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2528 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2530         [BZ #5737]
2531         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2532         __USE_MISC is defined.
2534 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2536         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2537         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2538         sys/timerfd.h.
2539         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2540         timerfd_gettime, timerfd_settime.
2541         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2542         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2544 2008-02-08  Roland McGrath  <roland@redhat.com>
2546         * elf/elf.h (NT_PPC_SPE): New macro.
2548 2008-02-06  Roland McGrath  <roland@redhat.com>
2550         * Makerules ($(common-objpfx)sysd-rules):
2551         Depend on $(sysdep-makeconfigs).
2553 2008-01-31  Roland McGrath  <roland@redhat.com>
2555         [BZ #5442]
2556         * configure.in: Use -print-file-name if it yields a directory,
2557         for each of include and include-fixed.
2558         * configure: Regenerated.
2560         * Makeconfig (sysd-rules-targets): New variable.
2561         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2562         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2564 2008-01-30  Roland McGrath  <roland@redhat.com>
2566         * manual/libc.texinfo: Update back-cover text.
2568         * elf/elf.h (NT_386_TLS): New macro.
2570 2008-01-29  Roland McGrath  <roland@redhat.com>
2572         * Makeconfig (sysd-rules-patterns): New variable.
2573         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2574         (check-inhibit-asm): New canned sequence, replaces ...
2575         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2576         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2577         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2578         (CFLAGS-rtld): Variable removed.
2580 2008-01-24  Roland McGrath  <roland@redhat.com>
2582         * configure.in: Let configure fragments set base_os.
2583         * configure: Regenerated.
2585 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2587         * po/ko.po: Update from translation team.
2589 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2591         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2593 2008-01-12  Andreas Jaeger  <aj@suse.de>
2595         [BZ #5040]
2596         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2597         Add EPOLLRDHUP.
2599 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2601         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2602         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2603         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2605 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2607         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2608         * elf/dl-close.c (_dl_close): Check for it.
2609         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2610         (_dl_allocate_static_tls): Likewise.
2611         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2612         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2613         to it.
2614         * elf/tst-tls16.c: New file.
2615         * elf/tst-tlsmod16a.c: New file.
2616         * elf/tst-tlsmod16b.c: New file.
2617         * elf/Makefile: Add rules to build and run tst-tls16.
2619 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2621         [BZ #5628]
2622         * bits/shm.h: Fix comment describing shmid_ds.
2623         * sysdeps/gnu/bits/shm.h: Likewise.
2624         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2625         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2626         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2627         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2628         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2629         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2630         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2631         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2632         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2634         [BZ #5607]
2635         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2636         prototypes.
2637         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2638         additional suffixes.
2639         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2640         Add optional functions mq_timedreceive and mq_timedsend.
2641         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2642         * conform/data/pthread.h-data: Fix prototype of
2643         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2644         * conform/data/semaphore.h-data: Allow time.h definitions.
2645         * conform/data/signal.h-data: Likewise.
2646         * conform/data/stdio.h-data: getw and putw are not required in v6.
2647         * conform/data/stdlib.h-data: Change setstate prototype.
2648         * conform/data/string.h-data: Fix strerror_r prototype.
2649         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2650         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2651         Fix readlink prototype.
2652         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2653         in6addr_loopback.
2654         * inet/netinet/in.h: Cleanup namespace.
2655         * posix/regex.h: Likewise.
2656         * resolv/netdb.h: Likewise.
2657         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2658         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2659         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2660         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2661         of names of in in6_addr.
2662         (default_precedence): Likewise.
2663         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2664         NULL definition.
2666 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2668         * conform/data/fmtmsg.h-data: Add missing allows.
2669         * conform/data/ftw.h-data: Likewise.
2670         * conform/data/inttypes.h-data: Likewise.
2671         * conform/data/math.h-data: Likewise.
2672         * conform/data/signal.h-data: Likewise.
2673         * conform/data/net/if.h-data: Likewise.
2674         * conform/data/netinet/in.h-data: Likewise.
2675         * conform/data/sys/socket.h-data: Likewise.
2677         [BZ #5614]
2678         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2679         (__strtok_r): Simplify.
2680         * string/tester.c (test_strtok_r): Add test case for futile search
2681         with single-character seach string.
2683 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2685         * po/ko.po: Update from translation team.
2687 2008-01-11  Andreas Jaeger  <aj@suse.de>
2689         [BZ #5600]
2690         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2691         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2692         kernel header.
2694 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2696         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2697         native interface lookup in all the relevant places.
2699 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2700             Ulrich Drepper  <drepper@redhat.com>
2702         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2703         field.  Use sockaddr_in6 for source_addr.
2704         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2705         (match_prefix): Likewise.
2706         (get_label): Likewise.
2707         (get_precedence): Likewise.
2708         (rfc3484_sort): Change to use indirect access to results array.
2709         Adjust to use of sockaddr_in6.  Replace service_order test with
2710         simple index comparison.
2711         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2712         service_order field.  Adjust qsort_t calls.  Access sorted result
2713         array indirectly through order array.
2714         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2715         * posix/tst-rfc3484-2.c: Likewise.
2716         * posix/tst-rfc3484-3.c: Likewise.
2718 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2720         [BZ #5541]
2721         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2722         pollfd structures.
2723         Patch by AndrĂ© Cruz.
2725         [BZ #5545]
2726         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2727         (clnt_spcreateerror): Likewise.
2729         [BZ #5553]
2730         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2731         (public_mEMALIGn): Likewise.
2732         Patch mostly by Daniel Jacobowitz.
2734 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2736         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2737         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2738         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2739         * stdlib/tst-makecontext2.c: New test.
2741 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2743         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2744         defined.
2745         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2746         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2747         transliteration hooks and REINIT_PARAMS afterwards.
2748         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2749         status.
2750         (REINIT_PARAMS): Define.
2751         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2752         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2753         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2754         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2755         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2756         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2757         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2758         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2759         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2760         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2761         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2762         * iconvdata/tst-iconv7.c: New test.
2764 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2766         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2768 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2770         [BZ #5112]
2771         * nscd/connections.c (restart): Fix condition.
2773 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2775         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2776         __ctype_toupper_loc): Add __THROW.
2778 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2780         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2781         recognition of interface family.
2783         * posix/getconf.c: Update copyright year.
2784         * nss/getent.c: Likewise.
2785         * iconv/iconvconfig.c: Likewise.
2786         * iconv/iconv_prog.c: Likewise.
2787         * elf/ldconfig.c: Likewise.
2788         * catgets/gencat.c: Likewise.
2789         * csu/version.c: Likewise.
2790         * elf/ldd.bash.in: Likewise.
2791         * elf/sprof.c (print_version): Likewise.
2792         * locale/programs/locale.c: Likewise.
2793         * locale/programs/localedef.c: Likewise.
2794         * nscd/nscd.c (print_version): Likewise.
2795         * debug/xtrace.sh: Likewise.
2796         * malloc/memusage.sh: Likewise.
2797         * malloc/mtrace.pl: Likewise.
2798         * debug/catchsegv.sh: Likewise.
2800 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2802         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2803         second lookup.
2805 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2807         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2808         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2810 2007-12-17  Roland McGrath  <roland@redhat.com>
2812         * inet/ether_line.c (ether_line): Remove unused variable.
2814 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2816         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2817         and winp.
2818         * login/openpty.c (openpty): Likewise.
2819         * login/pty.h (openpty, forkpty): Likewise.
2820         * manual/terminal.texi (openpty, forkpty): Likewise.
2822 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2824         * malloc/malloc.c (public_cALLOc): For arenas other than
2825         main_arena, count all bytes inside the mprotect_size range of the
2826         heap as uninitialized.
2828 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2830         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2831         executable stacks.
2833         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2834         mTRIm for all of them.
2835         (mTRIm): Additionally iterate over all free blocks and use madvise
2836         to free memory for all those blocks which contain at least one
2837         memory page.
2838         * malloc/tst-trim1.c: New file.
2839         * malloc/Makefile (tests): Add tst-trim1.
2841         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2843 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2845         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2846         First cast argument to long
2847         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2848         Return long.
2849         (__vdso_clock_gettime): Likewise.
2850         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2851         return long.
2853 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2855         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2856         * locale/nl_langinfo_l.c: Real implementation, copied from
2857         nl_langinfo.c.
2858         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2860 2007-12-01  Jim Meyering  <meyering@redhat.com>
2862         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2863         that would inhibit utf8-optimization of a regexp containing line-
2864         or buffer-anchors, e.g., `^', `$'.
2866 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2868         * time/bug-getdate1.c (do_test): Don't use century values which
2869         aren't valid on 32-bit systems.
2871 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2873         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2874         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2875         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2876         __strcat_g, __strncat_g): Add __asm__.
2878 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2880         [BZ #5477]
2881         * io/fchmodat.c: Fix typo in stub_warning use.
2882         Patch by Petr Salinger.
2884 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2886         * iconvdata/hp-thai8.c: New file.
2887         * iconvdata/Makefile: Add rules for hp-thai8.c.
2888         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2889         * iconvdata/gconv-modules: Likewise.
2891         [BZ #5464]
2892         * iconvdata/hp-greek8.c: New file.
2893         * iconvdata/Makefile: Add rules for hp-greek8.c.
2894         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2895         * iconvdata/gconv-modules: Likewise.
2897         [BZ #5463]
2898         * iconvdata/hp-turkish8.c: New file.
2899         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2900         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2901         * iconvdata/gconv-modules: Likewise.
2903         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2904         (shrink_heap): ... this new function.
2905         (heap_trim): Call shrink_heap instead of grow_heap.
2907         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2908         case don't call alloc_perturb.
2910 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2912         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2913         possible.
2914         * sysdeps/unix/sysv/linux/kernel-features.h
2915         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2916         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2918 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2920         [BZ #5424]
2921         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2922         * stdio-common/Makefile (tests): Add bug22.
2923         * stdio-common/bug22.c: New file.
2925         [BZ #5451]
2926         * time/getdate.c: Fix filling in default values.
2927         * time/bug-getdate1.c: New file.
2928         * time/Makefile: Add rules to build and run bug-getdate1.
2930         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2931         * iconvdata/ebcdic-es.c: Likewise.
2932         * iconvdata/ebcdic-es-a.c: Likewise.
2933         * iconvdata/ebcdic-uk.c: Likewise.
2934         * iconvdata/iso8859-16.c: Likewise.
2935         * iconvdata/viscii.c: Likewise.
2936         * iconvdata/iso8859-9e.c: Likewise.
2937         * iconvdata/Makefile: Adjust appropriately.
2939         [BZ #5428]
2940         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2941         __need_wint_t.
2943 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2945         [BZ #5427]
2946         * iconvdata/hp-roman9.c: New file.
2947         * iconvdata/Makefile: Add rules for hp-roman9.c.
2948         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2949         * iconvdata/gconv-modules: Likewise.
2951         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2952         * iconvdata/Makefile: Adjust appropriately.
2954         [BZ #5441]
2955         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2956         structure, it's allocated with alloca.
2957         * stdio-common/Makefile (tests): Add bug21.
2958         * stdio-common/bug21.c: New file.
2960 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2962         [BZ #5452]
2963         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2964         keyword for gcc's braced-groups.
2966 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2968         [BZ #5454]
2969         * inet/ether_line.c: Strip hostname of whitespaces.
2970         * inet/Makefile (tests): Add tst-ether_line.
2971         * inet/tst-ether_line.c: New file.
2973 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2975         [BZ #5439]
2976         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2978         [BZ #5435]
2979         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2981         * stdlib/tst-setcontext.c: Catch the case where the links gets
2982         messed up and we do not reach main again.
2984         * po/ca.po: Update from translation team.
2986 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2988         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2989         * posix/regex.h (REG_ENOSYS): Likewise.
2990         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2992 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2994         * nscd/nscd.h (MAX_STACK_USE): Define.
2995         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2996         (gc): Initialize stack_used based on allocation in prune_cache.
2997         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2998         Clear array before use.
3000         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3001         memory allocation failed.
3002         * nscd/hstcache.c (cache_addhst): Likewise.
3003         * nscd/grpcache.c (cache_addgr): Likewise.
3004         * nscd/servicescache.c (cache_addserv): Likewise.
3005         * nscd/pwdcache.c (cache_addpw): Likewise.
3006         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3008 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3011         and creat system calls.
3013         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3015 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3017         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3018         Add netiucv/iucv.h.
3019         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3020         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3021         protocol.
3022         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3023         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3024         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3026 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3028         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3029         strncat): Define as macros to avoid compile errors.
3031         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3032         creat entries.
3034 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3036         [BZ #5382]
3037         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3038         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3039         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3040         overflow it.
3041         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3043         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3044         Return zero in case the thread library is not NPTL.
3046         [BZ #5375]
3047         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3048         initializing interface list.
3050         [BZ #5378]
3051         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3052         use result of nss_getgrgid_r if nothing was found.  For other
3053         error return with a failure.
3054         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3056         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3057         macro name.
3059 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3061         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3062         (get_scope): For IPv4 scope, use scopes table.
3063         (fini): Free scopes table if necessary.
3064         (free_scopelist): New function.
3065         (scopecmp): New function.
3066         (gaiconf_init): Also handle scopev4 entries.
3067         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3068         * posix/tst-rfc3484-2.c (do_test): Likewise.
3069         * posix/gai.conf: Document scopev4 defaults.
3070         * posix/Makefile (tests): Add tst-rfc3484-3.
3071         * posix/tst-rfc3484-3.c: New file.
3073         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3074         Teredo tunnels.
3075         * posix/gai.conf: Update for current default tables.
3077 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3079         * po/tr.po: Update from translation team.
3081 2007-11-18  Roland McGrath  <roland@frob.com>
3083         * manual/arith.texi (Remainder Functions): Spelling fix.
3084         From Shaun Silk <genix@mysoul.com.au>.
3086         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3088 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3090         * po/zh_CN.po: Update from translation team.
3092         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3093         Add sys/signalfd.h and sys/eventfd.h.
3095 2007-11-15  Bruno Haible  <bruno@clisp.org>
3097         [BZ #5346]
3098         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3099         union.
3100         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3101         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3102         it needs only fixed stack space. Delay the initialization of
3103         msgid_len until it is needed.
3105 2007-11-15  Andreas Jaeger  <aj@suse.de>
3107         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3108         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3110 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3112         * po/ko.po: Update from translation team.
3114 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3116         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3117         significantly.  The device type is also part of the ifinfomsg data.
3119         * po/sv.po: Update from translation team.
3120         * po/nl.po: Likewise.
3122         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3123         to wake up in 24 hours.
3125         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3127 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3129         * po/cs.po: Update from translation team.
3130         * po/pl.po: Likewise.
3132         * include/ifaddrs.h: Remove in6ai_temporary.
3133         (struct in6addrinfo): Add index element.
3134         Declare __check_native.
3135         * inet/Makefile (aux): Add check_native.
3136         * sysdeps/unix/sysv/linux/check_native.c: New file.
3137         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3138         IFA_F_TEMPORARY.  Pass back ifa_index.
3139         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3140         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3141         call __check_native if necessary.
3142         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3143         to sort addresses.  Pass information about the results.
3144         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3145         of rfc3484_sort interface.
3146         * posix/tst-rfc3484-2.c: Likewise.
3148         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3149         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3150         for _quicksort.
3151         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3152         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3153         on as third parameter to compare function and _quicksort.
3154         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3155         to the compare function.
3156         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3157         * Versions.def: Add GLIBC_2.8 for libc.
3159         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3160         * posix/tst-rfc3484-2.c: Likewise.
3162         * include/kernel-features.h: Moved to...
3163         * sysdeps/mach/hurd/kernel-features.h: ...here.
3165 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3167         * sysdeps/i386/i586/memcpy_chk.S: New file.
3168         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3169         * sysdeps/i386/i586/memset_chk.S: Likewise.
3171 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3173         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3174         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3175         list of interfaces.  Also store prefix length.
3176         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3177         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3178         prefix if source and destination address are in the same subnet.
3179         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3180         Always look for matching record in in6ai list.
3181         Correct source_addr_len value for IPv6->IPv4 converted records.
3183 2007-11-11  Roland McGrath  <roland@frob.com>
3185         * include/kernel-features.h: New file.
3187 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3189         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3190         complications for 64-bit platforms.
3192         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3193         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3194         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3195         open64_2.
3196         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3197         entries.
3198         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3199         * sysdeps/wordsize-64/alphasort.c: New file.
3200         * sysdeps/wordsize-64/alphasort64.c: New file.
3201         * sysdeps/wordsize-64/fseeko.c: New file.
3202         * sysdeps/wordsize-64/fseeko64.c: New file.
3203         * sysdeps/wordsize-64/ftello.c: New file.
3204         * sysdeps/wordsize-64/ftello64.c: New file.
3205         * sysdeps/wordsize-64/ftw.c: New file.
3206         * sysdeps/wordsize-64/ftw64.c: New file.
3207         * sysdeps/wordsize-64/iofgetpos.c: New file.
3208         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3209         * sysdeps/wordsize-64/iofopen.c: New file.
3210         * sysdeps/wordsize-64/iofopen64.c: New file.
3211         * sysdeps/wordsize-64/iofsetpos.c: New file.
3212         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3213         * sysdeps/wordsize-64/lockf.c: New file.
3214         * sysdeps/wordsize-64/lockf64.c: New file.
3215         * sysdeps/wordsize-64/mkostemp.c: New file.
3216         * sysdeps/wordsize-64/mkostemp64.c: New file.
3217         * sysdeps/wordsize-64/mkstemp.c: New file.
3218         * sysdeps/wordsize-64/mkstemp64.c: New file.
3219         * sysdeps/wordsize-64/scandir.c: New file.
3220         * sysdeps/wordsize-64/scandir64.c: New file.
3221         * sysdeps/wordsize-64/tmpfile.c: New file.
3222         * sysdeps/wordsize-64/tmpfile64.c: New file.
3223         * sysdeps/wordsize-64/versionsort.c: New file.
3224         * sysdeps/wordsize-64/versionsort64.c: New file.
3225         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3226         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3227         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3228         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3229         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3230         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3231         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3232         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3233         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3234         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3235         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3236         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3238         * crypt/sha256-crypt.c: Fix a comment.
3239         * crypt/sha512-crypt.c: Likewise.
3241 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3243         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3245 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3247         [BZ #5277]
3248         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3249         because output buffer is too small break, don't loop.
3250         * iconvdata/Makefile (tests): Add bug-iconv6.
3251         * iconvdata/bug-iconv6.c: New file.
3253 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3255         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3256         with size_t type.
3257         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3258         size_t.  Add casts where needed.
3260         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3261         old headers, don't call avc_has_perm if we don't have the
3262         permission information.
3264 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3266         * elf/rtld.c (dl_main): Use the page size to find the map start.
3268 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3270         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3271         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3273         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3274         when the lookup call failed.
3276         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3277         Add prune_cond and wakeup_time.
3278         (CACHE_PRUNE_INTERNAL): Define.
3279         Update declarations of prune_cache and setup_thread.
3280         * nscd/connections.c (dbs): Update initializers.
3281         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3282         (nscd_init): Default number of threads is now 4.
3283         (invalidate_cache): Take lock before calling prune_cache.
3284         (handle_request): If SELinux forbids the request, say so.
3285         (readylist_cond): Use static initializer.
3286         (nscd_run_prune): New function.  Used only by pruning threads.
3287         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3288         here.
3289         (fd_ready): Update nscd_run reference.
3290         (start_threads): No need to initialize readylist_cond.
3291         Start pruning threads separately.
3292         * nscd/nscd_setup_thread.c: Change return value type to int and always
3293         return 0.
3294         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3295         to int and return nonzero value if we can use the TID address hack.
3296         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3297         the database is later than the new entry's timeout, update the
3298         wakeup time and wake the cleanup thread.
3299         (prune_cache): Return seconds the next entry in the database is still
3300         valid.  Remove locking for pruning here.
3301         * nscd/nscd.conf: Document default number of threads.
3303 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3305         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3306         stack is properly aligned for the target function.
3307         Correct unwind info.
3309         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3310         when using auditing libraries.
3312 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3314         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3315         _nss_dns_getnetbyaddr2_r.
3316         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3317         extra parameter to getanswer_r.
3318         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3319         _nss_dns_getnetbyaddr2_r.
3321         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3322         gethstbynm3_r.
3323         * nscd/gethstbynm2_r.c: Remove.
3324         * nscd/gethstbynm3_r.c: New file.
3325         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3326         __gethostbyaddr_r.
3327         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3328         __gethostbyaddr_r compatibility wrapper.
3329         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3330         determining timeout of entry.
3331         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3332         __gethostbyaddr2_r.
3333         (addhstbyX): Pass reference to variable for TTL to lookup and
3334         cache_addhst.
3335         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3336         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3337         and __nss_next2.  Remove __nss_services_lookup.
3338         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3339         Add compat wrapper.
3340         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3341         __nss_next2.
3342         * nss/getXXent_r.c: Likewise.
3343         * nss/getnssent_r.c: Likewise.
3344         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3345         does not exist in module, try the optional second name.
3346         (__nss_next2): New function.
3347         (__nss_next): Now wrapper around __nss_next2.
3348         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3349         Declare __nss_next2.
3350         Adjust definition of db_lookup_function type.
3351         * nss/service-lookup.c: Define NO_COMPAT.
3352         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3353         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3354         * inet/ether_ntoh.c: Likewise.
3355         * sunrpc/netname.c: Likewise.
3356         * sunrpc/publickey.c: Likewise.
3357         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3358         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3359         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3360         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3361         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3363         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3365         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3367 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3369         [BZ #5204]
3370         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3371         * crypt/sha512c-test.c: Likewise.
3373         [BZ #5225]
3374         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3375         to keep track of end of %[ format string element.
3376         * stdio-common/Makefile (tests): Add bug20.
3377         * stdio-common/bug20.c: New file.
3379         [BZ #5222]
3380         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3381         path elements in counting mode.
3383 2007-10-27  Andreas Jaeger  <aj@suse.de>
3385         [BZ #5040]
3386         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3388         [BZ #3112]
3389         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3390         (__cleanup): Free shared library when exiting.
3391         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3392         (__cleanup): Free shared library when exiting.
3394 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3396         [BZ #2549]
3397         * math/libm-test.inc (check_float_internal): Support
3398         denormalized return.
3400 2007-10-23  Andreas Jaeger  <aj@suse.de>
3402         [BZ #5208]
3403         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3404         __LONG_LONG_PAIR to handle little endian byte order.
3405         Suggested by abhishekrai@google.com
3407 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3409         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3411 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3413         * nscd/cache.c (prune_cache): Move test for modified file outside
3414         of locking.
3416 2007-10-21  Andreas Jaeger  <aj@suse.de>
3418         * manual/texinfo.tex: Update to latest version.
3420         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3422         * manual/arith.texi (Status bit operations): Fix formatting.
3424         * manual/errno.texi (Error Messages): Fix formatting.
3426         * manual/sysinfo.texi (System Parameters): Fix formatting.
3428         * manual/libc.texinfo: Update VERSION and UPDATED.
3430 2007-10-19  Roland McGrath  <roland@redhat.com>
3432         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3434 2007-10-06  David S. Miller  <davem@davemloft.net>
3436         * configure.in: Add sparcv9v2 and sparc64v2.
3437         * scripts/config.sub: Likewise.
3438         * configure: Regenerate.
3439         * elf/elf.h (HWCAP_SPARC_N2): New.
3440         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3441         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3442         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3443         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3444         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3445         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3446         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3448 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3450         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3451         even if the poll result indicates there is data to read.
3452         Patch by Jeff Moyer <jmoyer@redhat.com>.
3454 2007-10-18  Roland McGrath  <roland@redhat.com>
3456         * elf/elf.h (NT_PPC_VMX): New macro.
3458 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3460         * version.h (VERSION): Set to 2.7.90.
3462 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3464         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3465         weak_alias.
3467 2007-10-17  Roland McGrath  <roland@frob.com>
3469         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3470         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3472 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3474         * version.h (VERSION): Bump to 2.7.
3475         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3477         [BZ #5186]
3478         * time/tzset.c (__tz_convert): Don't force testing for a change of
3479         TZ if not called from localtime.  But then also see whether the
3480         file changed, in case __use_tzfile is set.
3482         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3483         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3484         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3485         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3486         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3487         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3488         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3489         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3491 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3493         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3494         and admin selects to be able to replace the gai.conf file, lock
3495         data structures around the qsort call.
3497 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3499         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3500         new memset.
3501         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3502         too high for the improvements.  Implement bzero unconditionally for
3503         use in libc.
3505 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3506             Jakub Jelinek  <jakub@redhat.com>
3508         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3509         even when time_t is 32-bit.
3510         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3511         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3512         always set after the search.
3514 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3516         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3517         unreachable code on 32-bit machines.
3519 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3521         [BZ #5184]
3522         * time/strftime_l.c: Include stdbool.h.
3523         (my_strftime): New wrapper, old function renamed to...
3524         (__strftime_internal): ... new function.  Add tzset_called
3525         argument, pass it down to recursive calls, don't call tzset ()
3526         if already true, set to true after call to tzset ().
3528 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3530         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3531         into account when copying TZ string.
3533 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3535         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3536         num_transition rather than num_transitions - 1.
3538 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3540         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3541         PIC indirect jump.
3543         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3544         a local label rather than HIDDEN_JUMPTARGET.
3546 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3548         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3549         (init_cacheinfo): Initialize it.
3550         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3551         Always define bzero.
3552         Remove non-glibc code.
3553         * sysdeps/x86_64/bzero.S: Make an empty file.
3555 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3557         * sysdeps/x86_64/cacheinfo.c
3558         (__x86_64_preferred_memory_instruction): New.
3559         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3561         * sysdeps/x86_64/memset.S: Rewrite.
3563 2007-10-15  Roland McGrath  <roland@redhat.com>
3565         * po/libc.pot: Regenerated.
3567 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3569         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3570         pointers.
3572         [BZ #3425]
3573         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3574         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3575         address record to T_A/T_AAAA requests.
3577 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3579         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3581         * posix/glob.c: Add some branch prediction throughout.
3583         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3584         read from nscd.
3586         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3587         service_order.
3588         (rfc3484_sort): Make sure that even if qsort doesn't support
3589         stable sorting out sorting here is stable by comparing service_order.
3590         (getaddrinfo): Initialize service_order.
3591         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3592         service_order field to sorting structure.
3593         * posix/tst-rfc3484-2.c (do_test): Likewise.
3595         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3596         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3597         __tzset_parse_tz and updating of daylight, timezone, tzname into
3598         update_vars.
3599         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3600         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3601         happens in __tz_compute.
3602         * time/tzfile.c (__tzfile_read): Also read TZ string.
3603         (find_transition): Fold into __tzfile_compute.
3604         (__tzfile_compute): For times beyond the last transition try to
3605         use the TZ string.
3606         * timezone/tst-timezone.c: Information in daylight and tzname does
3607         change for Asia/Tokyo timezone with more concrete information.
3608         Remove the test.
3610         * include/stdio.h: Add libc_hidden_proto for ftello.
3611         * libio/ftello.c: Add libc_hidden_def.
3613         [BZ #1140]
3614         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3615         on the specified time and not the last entries in the file.  Move
3616         code to determine tzname[] to...
3617         (find_transition): ...here.  Add ugly guess for times before the
3618         first transition.
3620 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3622         [BZ #3195]
3623         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3624         no entry.
3625         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3626         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3627         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3628         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3630         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3631         read mechanism when there are no group members and avoid no-op
3632         read syscall in this case.
3634         [BZ #3242]
3635         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3636         (__readall): If reading failed due to EAGAIN error wait a bit
3637         and possibly try again.
3638         (__readvall): Likewise.
3640 2007-10-13  Bruno Haible  <bruno@clisp.org>
3642         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3643         when we cannot recode the message.
3645 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3647         [BZ #4359]
3648         * libio/__freading.c (__freading): Don't return true for
3649         write-only streams.  For read/write streams, check whether we
3650         performed a read operation already.
3651         * libio/Makefile (tests): Add tst-ext2.
3652         * libio/tst-ext2.c: New file.
3654 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3656         * locale/programs/repertoire.c (repertoire_read): Always free
3657         memory for repertoire file name [Coverity CID 270].
3659         * elf/cache.c (save_aux_cache): Free memory allocated for
3660         temporary file name [Coverity CID 267].
3662 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3664         * misc/Makefile (headers): Add bits/error.h.
3666 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3668         * posix/fnmatch_loop.c: Take rule index returned as part of
3669         findidx return value into account when accessing weights.
3670         * posix/regcomp.c: Likewise.
3671         * posix/regexec.c: Likewise.
3673         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3674         (skip_to): Fix problems with parameter of elifdef/elifndef.
3676 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3678         * iconv/gconv_simple.c: Add some branch prediction.
3680 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3682         * locale/programs/ld-collate.c (collate_read): If ignore_content
3683         and nowtok is tok_define, eat any tok_eol tokens.
3685 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3687         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3688         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3690         * inet/netinet/in.h: Don't include bits/socket.h.
3691         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3692         macro.
3693         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3695 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3697         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3698         and tok_elifndef.
3699         * locale/programs/locfile-kw.gperf: Likewise.
3700         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3702 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3704         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3705         (__find_specwc): Change into __extern_always_inline function.
3706         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3707         (__parse_one_specmb): Remove ps argument.
3708         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3709         Adjust __find_specmb and __parse_one_specmb callers.
3710         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3711         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3712         Removed.
3713         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3714         caller.
3716 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3718         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3719         with some Pentium Ds.
3721 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3723         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3724         __read not read.
3725         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3726         __write not write.
3728 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3730         [BZ #181]
3731         * locale/C-time.c: Set week_1stday data to 19971201.
3732         * locale/programs/ld-time.c (time_finish): Default for
3733         first_workday is Monday.
3735         [BZ #2633]
3736         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3738         [BZ #5103]
3739         * posix/glob.c (glob): Recognize patterns starting \/.
3740         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3741         (main): Add test for pattern starting \/.
3743         * misc/error.h: Use __const instead of const.
3744         * misc/bits/error.h: Likewise.
3746 2007-10-07  Andreas Jaeger  <aj@suse.de>
3748         * include/bits/error.h: New file.
3750         * misc/bits/error.h (error_at_line): Fix prototype.
3752 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3754         [BZ #3924]
3755         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3756         more little bugs in creating the stack frame when pltexit has to
3757         be called.
3759         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3760         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3762         [BZ #4407]
3763         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3764         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3765         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3766         * math/libm-test.inc: Add test for this case.
3768         [BZ #5010]
3769         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3770         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3771         map service succeeded.
3772         (svc_is_mapped): New function.
3773         (svc_unregister): Use it before trying to unmap service.
3775 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3777         * timezone/zic.c: Update from tzcode2007h.
3779         [BZ #5063]
3780         * timezone/africa: Update from tzdata2007h.
3781         * timezone/antarctica: Likewise.
3782         * timezone/asia: Likewise.
3783         * timezone/australasia: Likewise.
3784         * timezone/europe: Likewise.
3785         * timezone/leapseconds: Likewise.
3786         * timezone/northamerica: Likewise.
3787         * timezone/southamerica: Likewise.
3788         * timzeone/zone.tab: Likewise.
3790         [BZ #5104]
3791         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3793         [BZ #5113]
3794         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3795         avoid warning with -Wconversion.
3796         (__strndup): Likewise.
3797         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3799         [BZ #5112]
3800         * nscd/connections.c (restart): Don't resync if database is
3801         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3803         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3804         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3806         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3807         evetnfd_read, eventfd_write.
3808         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3809         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3810         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3811         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3812         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3813         eventfd_write for GLIBC_2.7.
3815         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3816         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3817         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3818         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3820 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3822         * stdlib/msort.c: Include stdint.h.
3823         (struct msort_param): New type.
3824         (msort_with_tmp): Use struct msort_param pointer for unchanging
3825         parameters.  Add optimized handling for several common sizes
3826         and indirect sorting mode.
3827         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3828         sorting.
3829         Suggested by Belazougui Djamel .
3831         * stdlib/Makefile (tests): Add tst-qsort2.
3832         * stdlib/tst-qsort2.c: New test.
3834 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3836         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3837         for dup2 in case another thread races with the current one.  Retry
3838         in this case.
3840         * misc/error.h: Remove support for use outside of libc.  We have to
3841         include <features.h> now.  Include <bits/error.h> if possible.
3842         * misc/bits/error.h: New file.
3844 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3846         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3847         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3848         __extern_always_inline functions unconditionally, drop macros.
3850         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3851         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3852         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3854         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3855         add __artificial__ attribute.
3857 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3859         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3860         backward to forward direction.
3862         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3864         [BZ #645]
3865         * locale/programs/ld-collate.c (collate_finish): Compare against last
3866         used section which is known to have rules defined.
3867         (collate_read): After order_start, correctly record order of sections
3868         and queue sections up.
3870 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3872         [BZ #5071]
3873         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3874         the same number of pages.
3875         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3877         * locale/programs/ld-collate.c (collate_read): After initial copy
3878         statement, continue in state 0.
3880         * include/stdio_ext.h (__fsetlocking): Define as macro.
3882 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3884         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3885         of section order.
3887         * po/pt_BR.po: Fix typo.
3889 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3891         * iconvdata/Makefile (modules): Add ISO8859-9E.
3892         (distribute): Add iso8859-9e.c.
3893         (gen-8bit-gap-modules): Add iso8859-9e.
3894         * iconvdata/iso8859-9e.c: New file.
3895         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3896         * iconvdata/TESTS: Likewise.
3897         * iconvdata/tst-tables.sh: Likewise.
3899         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3901         * locale/iso-639.def: Add several new entries.
3903 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3905         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3906         void * pointers instead of struct link_map **.
3907         (_dl_scope_free): Change argument type to void *.
3908         * include/link.h (struct link_map): Change type of l_reldeps
3909         to struct link_map_reldeps, move l_reldepsact into that
3910         struct too.
3911         * elf/dl-deps.c: Include atomic.h.
3912         (_dl_map_object_deps): Only change l->l_initfini when it is
3913         fully populated, use _dl_scope_free for freeing it.  Optimize
3914         removal of libs from reldeps by using l_reserved flag, when
3915         some removal is needed, allocate a new list instead of
3916         reallocating and free the old with _dl_scope_free.  Adjust
3917         for l_reldeps and l_reldepsact changes.
3918         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3919         searching in l_initfini and l_reldeps without holding dl_load_lock.
3920         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3921         l_reldepsact changes.
3922         * elf/dl-close.c (_dl_close_worker): Likewise.
3923         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3925 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3927         * iconvdata/Makefile (modules): Add KOI8-RU.
3928         (distribute): Add koi8-ru.c.
3929         (gen-8bit-gap-modules): Add koi8-ru.
3930         * iconvdata/koi8-ru.c: New file.
3931         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3932         * iconvdata/TESTS: Likewise.
3933         * iconvdata/tst-tables.sh: Likewise.
3935         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3937 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3939         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3940         with __warning__/__error__ attributes.
3941         (__warnattr): Define.
3942         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3943         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3944         __warnattr.
3945         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3946         of __*_chk if compile time detectable overflow is found.
3947         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3948         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3949         with __warnattr.
3950         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3951         instead of __*_chk if compile time detectable overflow is found.
3952         (__gets_alias): Rename to...
3953         (__gets_warn): ... this.  Add __warnattr.
3954         (gets): Call __gets_warn instead of __gets_alias.
3955         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3956         aliases with __warnattr.
3957         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3958         time detectable overflow is found.
3959         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3960         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3961         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3962         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3963         __getdomainname_chk_warn): New aliases with __warnattr.
3964         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3965         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3966         __*_chk_warn instead of __*_chk if compile time detectable overflow
3967         is found.
3968         (__getgroups_chk): Rename argument to __listlen from listlen.
3969         (__getwd_alias): Rename to...
3970         (__getwd_warn): ... this.  Add __warnattr.
3971         (getwd): Call __getwd_warn instead of __getwd_alias.
3972         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3973         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3974         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3975         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3976         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3977         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3978         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3979         compile time detectable overflow is found.
3980         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3981         to use __*_chk or not.
3982         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3983         in comparisons which function should be called and in __*_chk*
3984         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3985         detectable overflow is found.
3986         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3987         __*_chk argument.
3988         * debug/tst-chk1.c (do_test): Add a few more tests.
3990 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3992         [BZ #5058]
3993         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3994         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3995         (_nl_unload_domain): Finalize conversions_lock.
3996         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3997         handling table of known conversions.
3999 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4001         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4002         close_not_cancel_no_status instead of close.
4004 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4006         [BZ #5028]
4007         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4008         nrules != 0 for multibyte chars.
4010 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4012         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4013         Provide better error message in case the type is unknown.
4015         [BZ #4963]
4016         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4017         * string/stratcliff.c: Make usable to test wide char functions.
4018         * wcsmbs/wcsatcliff.c: New file.
4019         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4021         [BZ #4972]
4022         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4023         (distribute): Add mac-centraleurope.c.
4024         (gen-8bit-gap-modules): Add mac-centraleurope.
4025         * iconvdata/mac-centraleurope.c: New file.
4026         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4027         * iconvdata/TESTS: Likewise.
4028         * iconvdata/tst-tables.sh: Likewise.
4030         [BZ #5043]
4031         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4033 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4035         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4036         from __x86_64_core_cache_size_half.
4037         (init_cacheinfo): Compute shared cache size for AMD processors with
4038         shared L3 correctly.
4039         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4040         name change.
4041         Patch in large parts by Evandro Menezes.
4043 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4045         * elf/dl-lookup.c (add_dependency): Handle failing memory
4046         allocation for dependency list.  Remove unnecessary check.
4048         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4049         open/close when determining source addresses.
4051         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4052         sha512-crypt, and sha512.
4053         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4054         (distribute): Add sha256.h and sha512.h.
4055         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4056         and call the appropriate code.
4057         * crypt/sha256-crypt.c: New file.
4058         * crypt/sha256.c: New file.
4059         * crypt/sha256.h: New file.
4060         * crypt/sha256c-test.c: New file.
4061         * crypt/sha256test.c: New file.
4062         * crypt/sha512-crypt.c: New file.
4063         * crypt/sha512.c: New file.
4064         * crypt/sha512.h: New file.
4065         * crypt/sha512c-test.c: New file.
4066         * crypt/sha512test.c: New file.
4068 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4070         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4071         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4072         __syslog_chk.
4074 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4076         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4077         %as in fscanf format strings.
4079         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4080         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4081         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4082         Likewise.
4083         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4084         Likewise.
4086         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4087         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4088         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4089         * elf/dl-sym.c (do_sym): Likewise.
4090         * include/link.h (struct link_map): Add l_serial field.
4091         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4092         * elf/dl-lookup.c (add_dependency): Add flags argument.
4093         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4094         flags, use THREAD_GSCOPE_RESET_FLAG before and
4095         THREAD_GSCOPE_SET_FLAG after
4096         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4097         Don't dereference map until it has been found on some list.
4098         If map->l_serial changed, return -1.
4100 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4102         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4103         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4104         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4105         libc_hidden_proto.
4106         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4107         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4108         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4109         add libc_hidden_proto.
4110         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4111         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4112         conformance requested.
4113         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4114         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4115         conformance requested.
4116         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4117         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4118         conformance requested.
4119         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4120         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4121         ISO C99 or POSIX conformance requested.
4122         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4123         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4124         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4125         and __isoc99_vsscanf@@GLIBC_2.7.
4126         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4127         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4128         (tests): Add scanf14.
4129         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4130         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4131         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4132         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4133         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4134         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4135         from using internal headers.
4136         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4137         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4138         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4139         and __isoc99_vswscanf@@GLIBC_2.7.
4140         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4141         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4142         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4143         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4144         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4145         * stdio-common/isoc99_scanf.c: New file.
4146         * stdio-common/isoc99_vsscanf.c: New file.
4147         * stdio-common/isoc99_vscanf.c: New file.
4148         * stdio-common/isoc99_vfscanf.c: New file.
4149         * stdio-common/isoc99_fscanf.c: New file.
4150         * stdio-common/isoc99_sscanf.c: New file.
4151         * wcsmbs/isoc99_fwscanf.c: New file.
4152         * wcsmbs/isoc99_vswscanf.c: New file.
4153         * wcsmbs/isoc99_swscanf.c: New file.
4154         * wcsmbs/isoc99_wscanf.c: New file.
4155         * wcsmbs/isoc99_vwscanf.c: New file.
4156         * wcsmbs/isoc99_vfwscanf.c: New file.
4157         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4158         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4159         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4160         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4161         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4162         * stdio-common/scanf14.c: New test.
4163         * stdio-common/scanf15.c: New test.
4164         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4165         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4166         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4167         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4168         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4169         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4170         __nldbl___isoc99_scanf@@GLIBC_2.7,
4171         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4172         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4173         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4174         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4175         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4176         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4177         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4178         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4179         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4180         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4181         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4182         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4183         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4184         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4185         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4186         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4187         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4188         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4189         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4190         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4191         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4192         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4193         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4194         functions.
4195         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4196         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4197         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4198         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4199         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4200         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4201         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4202         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4203         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4204         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4205         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4206         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4208         * stdio-common/Makefile (tests): Add scanf13.
4209         (scanf13-ENV): New.
4210         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4211         m modifier followed by l.
4212         (STRING_ARG): Add width argument.
4213         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4214         <case L_('C')>: Handle %mlc and %mC.
4215         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4216         arguments.
4217         * stdio-common/scanf13.c: New test.
4219         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4220         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4222 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4224         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4225         type and __THROW marker of splice, vmsplice, and tee.
4226         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4227         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4228         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4229         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4230         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4231         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4232         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4233         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4234         as cancellation points.
4236 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4238         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4239         parse more than three parts of the version number.
4241 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4243         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4244         modifier.  Patch by Jakub Jelinek.
4246 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4248         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4249         call_fallocate in misc subdir.
4250         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4251         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4252         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4253         instead of __fallocate64.
4254         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4256 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4258         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4259         * rt/Makefile (headers): Add bits/mqueue2.h.
4260         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4261         optimizing with GCC and __va_arg_pack_len is defined.
4262         * rt/bits/mqueue2.h: New file.
4263         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4264         (mq_open): New strong_alias.
4265         (__mq_open_2): New function.
4266         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4267         (mq_open): New strong_alias.
4268         (__mq_open_2): New function.
4269         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4270         * Versions.def (librt): Add GLIBC_2.7 version.
4271         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4272         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4274         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4275         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4276         is defined rather than when not C++.
4277         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4278         __openat64_alias): New redirects.
4279         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4280         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4281         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4282         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4283         functions instead of function-like macros.
4285 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4287         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4288         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4289         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4291 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4293         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4294         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4296 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4298         * inet/tst-network.c: Increment ERRORS for failing tests.
4300 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4302         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4303         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4304         implement as __extern_always_inline function.
4305         (vsyslog): Define as __extern_always_inline function unconditionally.
4306         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4307         When __va_arg_pack is defined, implement as __extern_always_inline
4308         functions.
4309         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4310         __extern_always_inline functions unconditionally.
4311         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4312         bits/stdio2.h will be included.
4313         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4314         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4315         implement as __extern_always_inline functions.
4316         (vswprintf, vwprintf, vfwprintf): Define as
4317         __extern_always_inline functions unconditionally.
4318         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4320 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4322         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4323         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4324         attribute.
4325         * include/features.h (__USE_EXTERN_INLINES): Define only when
4326         __extern_inline is defined.
4327         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4328         is defined instead of when not __cplusplus.
4329         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4330         is defined instead of when not __cplusplus.
4331         * socket/sys/socket.h: Include bits/socket2.h when
4332         __extern_always_inline is defined instead of when not __cplusplus.
4333         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4334         is defined instead of when not __cplusplus.
4335         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4336         is defined instead of when not __cplusplus.
4337         * string/string.h: Include bits/string3.h when __extern_always_inline
4338         is defined instead of when not __cplusplus.
4339         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4340         is defined instead of when not __cplusplus.
4341         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4342         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4343         is not defined.
4344         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4345         defined __extern_always_inline instead of !defined __cplusplus.
4346         * libio/bits/stdio-ldbl.h: Likewise.
4347         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4348         * misc/bits/syslog.h (syslog): Don't define for C++.
4349         (vsyslog): Use __extern_always_inline function for C++ instead of
4350         a macro.
4351         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4352         whenever that macro is defined.
4353         (vprintf): Don't provide the inline for C++.
4354         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4355         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4356         define the macros for C++.
4357         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4358         __extern_always_inline functions for C++.
4359         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4360         stat64, lstat64, fstat64, fstatat64): Don't define if not
4361         __USE_EXTERN_INLINES.
4362         * wcsmbs/bits/wchar2.h: Fix #error message.
4363         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4364         (vswprintf, vwprintf, vfwprintf): Define using
4365         __extern_always_inline functions for C++.
4366         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4367         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4368         strncpy, strcat, strncat): Define as __extern_always_inline
4369         functions instead of macros for C++.
4370         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4371         defined __extern_inline.
4372         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4373         to __extern_inline whenever that macro is defined.
4374         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4375         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4376         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4377         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4378         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4379         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4380         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4381         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4382         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4383         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4384         prototypes.  Only provide __extern_inline routines if
4385         __USE_EXTERN_INLINES.
4386         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4387         tests.
4388         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4389         For now avoid some *printf tests in C++.  Skip all testing
4390         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4391         is not.
4392         * debug/tst-chk4.cc: New file.
4393         * debug/tst-chk5.cc: New file.
4394         * debug/tst-chk6.cc: New file.
4395         * debug/tst-lfschk4.cc: New file.
4396         * debug/tst-lfschk5.cc: New file.
4397         * debug/tst-lfschk6.cc: New file.
4398         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4399         prototypes in C++.
4400         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4401         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4402         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4404 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4406         * po/cs.po: Update from translation team.
4408 2007-09-11  Roland McGrath  <roland@redhat.com>
4410         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4411         compiling.
4413 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4415         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4417 2007-09-05  Roland McGrath  <roland@redhat.com>
4419         * manual/signal.texi (Signaling Another Process): Typo fix.
4420         From Karl Berry <karl@freefriends.org>.
4422 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4424         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4425         zero if not defined.
4426         (make_request): Recognize optimistic addresses and treat them like
4427         deprecated addresses.
4428         Reported by Neil Horman <nhorman@redhat.com>.
4430 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4432         * nscd/connections.c (send_ro_fd): Also transfer file size.
4433         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4434         file size don't call fstat.
4436         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4437         ahead and map the file.  This should always be correct and we can
4438         catch problems later.
4440 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4442         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4443         prototypes.
4444         (__fread_alias, __fread_unlocked_alias): New aliases.
4445         (fread): New extern inline.
4446         (fread_unlocked): Likewise.  Undef macro before definition of
4447         the inline function.
4448         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4449         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4450         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4451         and __fread_unlocked_chk@@GLIBC_2.7.
4452         * debug/fread_chk.c: New file.
4453         * debug/fread_u_chk.c: New file.
4454         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4456 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4458         * sysdeps/unix/sysv/linux/syscalls.list
4459         (personality): Change caller to EXTRA.
4461 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4463         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4464         to keep gcc quiet.
4465         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4467         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4468         NDEBUG is defined.
4470         * Makerules: Use -p option with mkdir.
4472         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4473         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4474         (_xdr_directory_obj): Likewise.
4475         (xdr_entry_obj): Likewise.
4476         (xdr_group_obj): Likewise.
4477         (xdr_link_obj): Likewise.
4478         (xdr_table_obj): Likewise.
4479         (_xdr_nis_result): Likewise.
4480         (_xdr_ns_request): Likewise.
4481         (_xdr_ib_request): Likewise.
4482         (_xdr_nis_taglist): Likewise.
4483         (xdr_cback_data): Likewise.
4484         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4485         (xdr_ypresp_maplist): Likewise.
4487         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4489         * posix/regex_internal.h: Prevent some declarations and definitions
4490         to be seen when used in tests.
4492         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4493         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4495         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4497         * config.make.in (datarootdir): Add to shut up configure.
4499         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4500         associativity for fully-associative caches.
4502         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4503         requests.  Fill on more associativity values for L2.
4504         Patch mostly by Evandro Menezes.
4506 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4508         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4509         (_libc_vdso_platform_setup): Avoid using exported variable by using
4510         alias.
4512         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4514         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4515         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4516         defined.
4518 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4520         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4521         align stack for call if pltexit is to be used.
4523         [BZ #3924]
4524         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4525         align for function call in case pltexit has to be called later.
4527         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4528         implicit atomic operation when storing function pointer.
4529         (_dl_runtime_profile): Likewise.
4531 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4533         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4534         NIS_NOTFOUND.
4536 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4538         [BZ #4566]
4539         * string/strtok.c: Fix typo in comment.
4541         [BZ #4582]
4542         * debug/segfault.c: Fix typos in comments.
4544         [BZ #4588]
4545         * stdio-common/tempnam.c: Fix comment, it is not checked that
4546         TMPDIR points to a writable directory.
4548         [BZ #4726]
4549         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4550         memory allocated for the name server address.
4552         [BZ #4946]
4553         * nscd/connections.c (handle_request): Using sendfile always
4554         requires that mmap is used for the database.
4555         Patch by Petr Baudis <pasky@suse.cz>.
4557         [BZ #4905]
4558         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4559         suddenly has two or more addresses, ignore it and remove the old
4560         entry.
4562         [BZ #4814]
4563         * resolv/res_hconf.c: Prepare for compiling outside libc.
4564         * nscd/res_hconf.c: New file.
4565         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4566         the new file.
4567         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4568         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4570         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4572         [BZ #4925]
4573         * debug/pcprofiledump.c: Turn on internationalization by calling
4574         setlocale.  Patch mostly by Benno Schulenberg.
4576         [BZ #4936]
4577         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4578         the state.
4579         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4580         * iconvdata/bug-iconv5.c: New file.
4582 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4584         [BZ #4896]
4585         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4586         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4587         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4588         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4589         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4590         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4591         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4592         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4594 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4596         [BZ #4937]
4597         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4598         lookup loop.  Suggested by John Reiser.
4600 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4602         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4604 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4606         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4607         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4608         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4609         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4610         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4611         to...
4612         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4614 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4616         * po/nl.po: Update from translation team.
4618 2007-08-16  Andreas Jaeger  <aj@suse.de>
4620         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4621         Reported by Peter Festner <peter.festner@ewetel.net>.
4623 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4625         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4627 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4629         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4630         to check for undefined symbols.
4632         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4633         If the syscall fails, set errno to the actual returned error number
4634         rather than EINVAL.
4635         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4636         arguments are incorrect, set errno to EINVAL, if the syscall
4637         fails, set errno to the actual returned error number.
4639         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4640         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4642         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4643         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4644         file.
4645         (ASI_PNF, ASI_BLK_P): Don't define.
4646         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4647         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4648         file.
4649         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4650         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4651         file.
4653 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4655         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4656         FE_UNDERFLOW on Niagara CPUs.
4658         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4659         exceptions.
4661 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4663         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4664         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4665         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4666         flush should be used or not inside of the function.
4667         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4669         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4670         __thread_start): Use HIDDEN_JUMPTARGET.
4671         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4672         __thread_start): Likewise.
4673         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4675         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4676         Add libc_hidden_proto.
4677         (STRTOF): Add libc_hidden_proto.
4678         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4679         (strtold_l, wcstold_l): Use them as second argument for
4680         long_double_symbol.
4682 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4684         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4686 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4688         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4690 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4692         * po/bg.po: New file.  From the translation team.
4694 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4696         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4697         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4698         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4699         when each feature was introduced.
4701         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4702         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4703         (CHECK_HASH): New macro.
4704         (PREPARE_VERSION): Use it.
4706         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4707         prototype if not __ASSUME_PSELECT.
4708         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4709         prototype if not __ASSUME_PPOLL.
4711         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4713         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4714         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4715         is defined.
4717 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4719         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4720         (_libc_vdso_platform_setup): If vDSO is not available point
4721         __vdso_gettimeofday to the vsyscall.
4722         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4723         __vdso_gettimeofday instead of vsyscall.
4725 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4727         * nscd/servicescache.c: Include kernel-features.h.
4728         * nscd/gai.c: Likewise.
4729         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4730         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4731         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4732         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4733         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4734         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4735         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4736         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4737         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4739 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4741         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4742         and _dl_get_origin defines anymore.
4744         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4745         Build fix for systems which might lack POSIX timer support.
4747         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4748         (_libc_vdso_platform_setup): Mangle function pointers before storing
4749         them.
4750         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4751         Demangle vdso pointer before use.
4752         (INTERNAL_VSYSCALL): Likewise.
4754         * elf/cache.c (primes): Mark as const.
4755         Noted by Roland McGrath.
4757 2007-08-01  Andreas Jaeger  <aj@suse.de>
4758             Jakub Jelinek  <jakub@redhat.com>
4760         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4761         (options): Add option.
4762         (parse_opt): Handle option.
4763         (manual_link): Adjust process_file caller.  Call implicit_soname.
4764         (search_dir): Formatting.  Use and populate auxiliary cache.
4765         (main): Load and save auxiliary cache.
4766         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4767         stat64 from fstat64 to caller.
4768         (implicit_soname): New function.
4769         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4770         leave *soname as NULL.
4771         * elf/cache.c: Include libgen.h.
4772         (print_entry, print_cache, compare, save_cache, add_to_cache):
4773         Formatting and cleanups.
4774         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4775         aux_cache_file): New structures.
4776         (AUX_CACHEMAGIC): Define.
4777         (primes): New array.
4778         (aux_hash_size, aux_hash): New variables.
4779         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4780         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4781         load_aux_cache, save_aux_cache): New functions.
4782         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4783         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4784         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4785         (process_file): Adjust prototype.
4787 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4789         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4790         with __need_size_t.
4792 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4794         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4795         r_found_version structure as second parameter.
4796         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4797         (_dl_vdso_vsym): Change type of second parameter accordingly.
4798         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4799         (_libc_vdso_platform_setup): Adjust.
4800         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4801         (_libc_vdso_platform_setup): Likewise.
4803         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4804         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4805         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4806         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4807         * csu/libc-start.c: Pretty printing.
4808         Use VDSO_SETUP if defined.
4809         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4810         and let generic code call into _libc_vdso_platform_setup.
4811         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4812         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4813         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4814         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4815         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4816         for GLIBC_PRIVATE.
4817         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4818         (sysdep_rountines): Add dl-vdso.
4820         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4821         of routines.
4823         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4824         attribute_hidden to __vdso_gettimeofday prototype.
4826 2007-08-12  Roland McGrath  <roland@redhat.com>
4828         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4829         From: Karl Berry <karl@freefriends.org>.
4831 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4833         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4834         an atime update for the files we read.
4836 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4838         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4840         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4841         instead of mkstemp.
4843         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4844         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4845         * misc/mkostemp.c: New file.
4846         * misc/mkostemp64.c: New file.
4847         * stdlib/stdlib.h: Declare the new functions.
4848         * sysdeps/posix/tempname.c: Add new parameter which is added to
4849         the flags for open.  Remove __GT_BIGFILE handling.
4850         * stdio-common/tempname.c: Likewise.
4851         * include/stdio.h: Adjust __gen_tempname prototype.
4852         Renumber __GT_* constants.
4853         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4854         * misc/mkdtemp.c: Likewise.
4855         * misc/mkstemp.c: Likewise.
4856         * misc/mkstemp64.c: Likewise.
4857         * misc/mktemp.c: Likewise.
4858         * stdio-common/tempnam.c: Likewise.
4859         * stdio-common/tmpfile.c: Likewise.
4860         * stdio-common/tmpfile64.c: Likewise.
4861         * stdio-common/tmpnam.c: Likewise.
4862         * stdio-common/tmpnam_r.c: Likewise.
4864 2007-08-10  Roland McGrath  <roland@frob.com>
4866         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4867         New macros.
4868         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4869         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4871 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4873         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4874         possible.
4875         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4876         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4877         * nss/nss_files/files-have_o_cloexec.c: New file.
4879         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4880         available.
4882 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4884         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4885         ___new_wcstold_l): New weak aliases.
4886         (strtold_l, wcstold_l): Use them as second argument for
4887         long_double_symbol.
4889 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4891         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4892         register in test for error.
4894         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4895         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4897         * po/sv.po: Update from translation team.
4899 2007-08-06  Roland McGrath  <roland@redhat.com>
4901         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4902         Remove __strto*_l inlines.
4903         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4904         * stdlib/strtod.c: Add libc_hidden_def.
4905         * stdlib/strtod_l.c: Likewise.
4906         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4907         for __new_strtold and __new_wcstold.
4908         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4909         __STRTOF, STRTOF.
4910         * stdlib/strtol.c: Add libc_hidden_def.
4911         * stdlib/strtol_l.c: Likewise.
4912         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4913         strtoq.
4915         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4917         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4918         * scripts/data/localplt-generic.data: ... here.
4919         * elf/Makefile (check-data): Get generic file if no other.
4920         ($(objpfx)check-localplt.out): Make target unconditional.
4922         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4923         Use ElfW(Nhdr).
4925 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4927         * po/zh_CN.po: Updated translation from translation team.
4929 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4932         Don't use CGOTSETUP and CGOTRESTORE macros.
4934 2007-08-04  Roland McGrath  <roland@redhat.com>
4936         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4938 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4940         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4941         __extension__ around the whole statement expression.
4943 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4945         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4946         elements during initialization.
4948         * po/pl.po: Updated translation from translation team.
4949         * po/tr.po: Likewise.
4950         * po/nl.po: Likewise.
4952 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4954         * rt/aio.h: Add __nonnull attributes.
4956 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4958         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4959         * stdlib/Makefile (tests): Add tst-strtod5.
4960         (tst-strtod5-ENV): New.
4961         * stdlib/tst-strtod5.c: New file.
4963         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4964         failed.
4965         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4966         on failure.
4968         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4969         allocated.
4971 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4973         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4974         numbers.
4976 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4978         * io/Makefile (aux): Add have_o_cloexec.
4979         * include/fcntl.h: Declare __have_o_cloexec.
4980         * io/have_o_cloexec.c: New file.
4981         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4982         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4983         fcntl call if not necessary.
4984         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4985         of local variable.
4987         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4988         Avoid memset, add explicit initialization.
4989         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4990         to the end and change into zero-sized array.
4991         Move lock member to fill a hole on 64-bit platforms.
4993         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4994         inline functions.
4995         * include/stdlib.h: Add __strto*_internal prototypes here.
4996         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4997         inline functions.
4998         * include/wchar.h: Add __wcsto*_internal prototypes.
4999         * sysdeps/generic/inttypes.h: No need to protect the declaration
5000         of the __strto*_internal and __wcsto*_internal members here.
5002         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5004 2007-08-02  Roland McGrath  <roland@redhat.com>
5006         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5007         $(inst_bindir)/getconf if possible.
5009         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5010         (generated): Add it.
5011         ($(inst_libexecdir)/getconf): Use it.
5013 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5015         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5016         /proc is faster and sufficient.  /sys is still needed for
5017         __get_nprocs_conf.
5019 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5021         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5022         syscall as __fallocate64.
5023         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5024         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5026 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5028         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5029         value.
5031         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5032         if off_t is different rank from size_t.
5034         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5035         uw_frame_state_for): Avoid type punning warnings.
5036         * sysdeps/generic/unwind-dw2-fde-glibc.c
5037         (_Unwind_IteratePhdrCallback): Likewise.
5038         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5039         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5040         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5041         pointers.
5043 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5045         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5046         total processors using sysfs.
5047         (__get_nprocs): Use sysfs to determine which processors are online.
5049 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5051         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5052         syscall arguments count.
5054         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5056 2007-07-30  Roland McGrath  <roland@redhat.com>
5058         * manual/libc.texinfo: Update copyrights, formatting magic, and
5059         @dircategory.  From Karl Berry <karl@freefriends.org>.
5061 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5063         [BZ #4860]
5064         * io/Makefile (headers): Add bits/fcntl2.h.
5066         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5067         using gcc builtin.
5068         (__CPU_EQUAL_S): Likewise.
5070         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5071         (tests): Add tst-cpuset.
5072         * posix/sched_cpualloc.c: New file.
5073         * posix/sched_cpufree.c: New file.
5074         * posix/tst-cpuset.c: New file.
5075         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5076         GLIBC_2.7.
5077         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5078         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5079         macros.  Define CPU_*_S macros.
5081 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5083         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5084         entry.
5086         [BZ #4858]
5087         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5088         #.0g and value rounded to 1.0.
5089         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5091 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5093         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5094         for int_frac_digits and frac_digits.
5096         * login/logout.c (logout): Avoid aliasing violation.
5097         * login/logwtmp.c (logwtmp): Likewise.
5099         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5101         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5102         to avoid warning.
5103         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5104         warning.
5105         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5106         warning.
5107         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5108         to avoid warnings.
5110         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5111         void **.
5112         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5114         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5115         char * to avoid warning.
5116         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5118         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5120         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5121         allocate_arrays): Cast second argument to charmap_find_symbol
5122         to char * to avoid warnings.
5124         * locale/programs/repertoire.c (repertoire_new_char): Change
5125         from_nr, to_nr and cnt to unsigned long, adjust printf format
5126         string.
5128         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5129         Cast second argument to new_element to char * to avoid warnings.
5131         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5133         * intl/gettextP.h (struct loaded_domain): Change plural to const
5134         struct expression *.
5135         * intl/plural-eval.c (plural_eval): Change first argument to
5136         const struct expression *.
5137         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5138         argument to const struct expression **.
5139         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5140         prototypes.
5141         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5142         in call to __gettext_free_exp.
5144         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5145         unitialized wstring/wpattern var warnings.
5147         * posix/runtests.c (struct a_test): Make data field const char *.
5149         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5150         vars if not LDBL_MANT_DIG >= 106.
5152         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5154         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5155         __find_specmb to avoid warning.
5157         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5159         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5160         to avoid warnings.
5162         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5163         initializer.
5165         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5166         tv var when it will be actually used.
5168         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5169         to avoid warnings.
5171         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5172         char array resp. pointer.
5173         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5174         char array.
5175         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5176         to const unsigned char **.
5177         (ucs4_to_cns11643): Change second argument to unsigned char *.
5178         * iconvdata/euc-tw.c (BODY): Change endp type to
5179         const unsigned char *.
5180         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5181         to unsigned char *.
5182         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5183         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5184         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5185         types to unsigned char pointers/arrays instead of char.
5186         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5187         to unsigned char *.
5188         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5189         * iconvdata/jis0212.h: Include assert.h.
5190         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5191         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5192         of trying to handle that.
5193         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5194         shut up a warning.
5195         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5196         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5197         two dimensional const unsigned char arrays.
5198         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5199         Initialize endp to inptr to shut up a warning.
5201 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5203         [BZ #4772]
5204         * time/strptime_l.c (__strptime_internal): Silently ignore
5205         strftime modifiers and field width in recursive calls.
5207         * include/time.h (enum ptime_locale_status): Remove.
5208         (__strptime_internal): Remove decided and era_cnt arguments,
5209         add statep argument.
5210         * time/strptime_l.c (__strptime_internal): Remove decided
5211         and era_cnt arguments, add statep argument.  Don't recompute
5212         any fields in recursive calls, only update caller's tm
5213         and state, if recursive call fails, don't change tm nor
5214         any state.
5215         (get_alt_number): Adjust.
5216         (recursive): Adjust caller.
5217         (strptime): Likewise.
5218         * time/strptime.c (strptime): Likewise.
5220 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5222         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5223         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5224         if from and to charsets are the same.
5225         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5226         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5227         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5229 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5231         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5232         Don't define wint_t when __need_mbstate_t unless it
5233         is necessary.
5234         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5235         in the typedef if possible.
5236         * wctype/wctype.h (wint_t): Define by including
5237         wchar.h with __need_wint_t instead of including stddef.h
5238         with __need_wint_t and as fallback definining it ourselves.
5239         * iconv/gconv.h (__need_wint_t): Define before including
5240         wchar.h.
5241         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5242         or _GLIBCPP_USE_WCHAR_T.
5243         (__need_wchar_t): Don't define
5244         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5245         (__need_wint_t): Don't define before including stddef.h,
5246         define before including wchar.h only if _LIBC or
5247         _GLIBCPP_USE_WCHAR_T.
5248         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5249         * sysdeps/mach/hurd/_G_config.h: Likewise.
5250         * sysdeps/generic/_G_config.h: Likewise.
5251         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5252         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5253         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5254         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5256 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5258         * sysdeps/posix/posix_fallocate64.c: Undefine
5259         __posix_fallocate64_l64 before alias handling.
5260         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5261         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5262         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5263         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5265         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5267 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5269         * locale/programs/ld-collate.c (atwc): New variable.
5270         (add_to_tablewc): New toplevel function, moved from collate_output.
5271         (collate_output): Remove add_to_tablewc nested function.
5273         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5274         (name_insert): New function.
5275         (write_output): Remove hash_table and hash_size vars and name_insert
5276         nested function.
5278 2007-07-24  Roland McGrath  <roland@redhat.com>
5280         * Makerules (install-others-programs-nosubdir): New target.
5281         (install-no-libc.a-nosubdir): Depend on it.
5283         * iconv/Makefile (install-others-programs): Set this instead of
5284         install-others.
5285         * login/Makefile (install-others-programs): Likewise.
5286         * posix/Makefile (install-others-programs): Likewise.
5288         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5289         dependencies.
5291 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5293         * io/Makefile (tests): Add tst-posix_fallocate.
5294         * io/tst-posix_fallocate.c: New file.
5296         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5297         __ASSUME_FALLOCATE.
5299 2007-07-22  Roland McGrath  <roland@frob.com>
5301         * hurd/getdport.c: Add missing copyright year update.
5303         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5304         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5306 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5308         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5310         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5311         O_CLOEXEC is needed.
5312         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5313         Avoid additional fcntl to set O_CLOEXEC if not needed.
5314         * nis/nss_compat/compat-initgroups.c: Likewise.
5315         * nis/nss_compat/compat-pwd.c: Likewise.
5316         * nis/nss_compat/compat-spwd.c: Likewise.
5318 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5320         [BZ #3665]
5321         * manual/errno.texi: Change ECANCELED value to 119.
5323         [BZ #4610]
5324         * mach/lock-intern.h: Include <sys/cdefs.h>.
5326         [BZ #4178]
5327         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5328         reading A.
5330         [BZ #4126]
5331         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5332         to __sigsuspend.
5334         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5336 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5338         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5339         `__ASSEMBLER__'.
5340         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5342 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5344         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5345         descriptor received from nscd.
5347         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5349         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5350         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5351         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5352         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5353         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5354         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5356 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5358         [BZ #4816]
5359         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5361         [BZ #4813]
5362         * login/forkpty.c (forkpty): Close master and slave fds on
5363         fork failure.  Patch by
5364         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5366 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5368         * include/features.h (__USE_ISOC95): New define.
5369         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5370         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5371         for -std=iso9899:199409.
5372         * CONFORMANCE: Remove comments about unsupported AMD1.
5374 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5376         * sysdeps/ia64/sched_cpucount.c: New file.
5377         * sysdeps/powerpc/sched_cpucount.c: New file.
5379         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5380         __BEGIN_DECLS/__END_DECLS around the prototype.
5381         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5382         pointer to const cpu_set_t.
5384         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5385         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5386         __need_size_t and include stddef.h.
5387         * sysvipc/sys/msg.h: Likewise.
5388         * posix/sched.h: Likewise.
5389         * hurd/hurd/signal.h (__need_size_t): Define.
5391         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5392         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5393         no longer defines wint_t or wchar_t.
5395         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5396         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5397         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5398         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5399         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5400         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5401         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5402         * debug/printf_chk.c (__printf_chk): Likewise.
5403         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5404         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5406         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5407         Define.
5409         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5410         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5412 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5414         [BZ #4792]
5415         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5416         * malloc/malloc.h (realloc): Likewise.
5418         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5419         if one of proc_file_chain streams has that fileno.
5420         * stdio-common/Makefile (tests): Add tst-popen2.
5421         * stdio-common/tst-popen2.c: New test.
5423 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5425         * elf/ldconfig.c: Allow GPLv2 or any later version.
5426         * elf/readlib.c: Likewise.
5427         * elf/chroot_canon.c: Likewise.
5428         * elf/cache.c: Likewise.
5429         * nscd/mem.c: Likewise.
5430         * nscd/getpwuid_r.c: Likewise.
5431         * nscd/grpcache.c: Likewise.
5432         * nscd/aicache.c: Likewise.
5433         * nscd/getsrvbynm_r.c: Likewise.
5434         * nscd/nscd.c: Likewise.
5435         * nscd/servicescache.c: Likewise.
5436         * nscd/getsrvbypt_r.c: Likewise.
5437         * nscd/initgrcache.c: Likewise.
5438         * nscd/gethstbyad_r.c: Likewise.
5439         * nscd/gethstbynm2_r.c: Likewise.
5440         * nscd/getgrnam_r.c: Likewise.
5441         * nscd/nscd_setup_thread.c: Likewise.
5442         * nscd/getpwnam_r.c: Likewise.
5443         * nscd/gai.c: Likewise.
5444         * nscd/connections.c: Likewise.
5445         * nscd/dbg_log.c: Likewise.
5446         * nscd/cache.c: Likewise.
5447         * nscd/hstcache.c: Likewise.
5448         * nscd/nscd_conf.c: Likewise.
5449         * nscd/getgrgid_r.c: Likewise.
5450         * nscd/pwdcache.c: Likewise.
5451         * catgets/gencat.c: Likewise.
5452         * locale/programs/linereader.h: Likewise.
5453         * locale/programs/locarchive.c: Likewise.
5454         * locale/programs/ld-paper.c: Likewise.
5455         * locale/programs/locfile-kw.h: Likewise.
5456         * locale/programs/ld-address.c: Likewise.
5457         * locale/programs/xmalloc.c: Likewise.
5458         * locale/programs/ld-time.c: Likewise.
5459         * locale/programs/localedef.c: Likewise.
5460         * locale/programs/simple-hash.c: Likewise.
5461         * locale/programs/xstrdup.c: Likewise.
5462         * locale/programs/ld-numeric.c: Likewise.
5463         * locale/programs/locfile-kw.gperf: Likewise.
5464         * locale/programs/ld-collate.c: Likewise.
5465         * locale/programs/charmap-kw.gperf: Likewise.
5466         * locale/programs/charmap.h: Likewise.
5467         * locale/programs/charmap-kw.h: Likewise.
5468         * locale/programs/config.h: Likewise.
5469         * locale/programs/locfile.c: Likewise.
5470         * locale/programs/ld-ctype.c: Likewise.
5471         * locale/programs/charmap.c: Likewise.
5472         * locale/programs/ld-messages.c: Likewise.
5473         * locale/programs/repertoire.h: Likewise.
5474         * locale/programs/locale.c: Likewise.
5475         * locale/programs/ld-name.c: Likewise.
5476         * locale/programs/linereader.c: Likewise.
5477         * locale/programs/locfile.h: Likewise.
5478         * locale/programs/3level.h: Likewise.
5479         * locale/programs/ld-monetary.c: Likewise.
5480         * locale/programs/ld-measurement.c: Likewise.
5481         * locale/programs/charmap-dir.c: Likewise.
5482         * locale/programs/ld-identification.c: Likewise.
5483         * locale/programs/localedef.h: Likewise.
5484         * locale/programs/charmap-dir.h: Likewise.
5485         * locale/programs/repertoire.c: Likewise.
5486         * locale/programs/simple-hash.h: Likewise.
5487         * locale/programs/ld-telephone.c: Likewise.
5488         * locale/programs/locale-spec.c: Likewise.
5489         * locale/programs/locfile-token.h: Likewise.
5490         * posix/getconf.c: Likewise.
5491         * iconv/dummy-repertoire.c: Likewise.
5492         * iconv/iconv_charmap.c: Likewise.
5493         * iconv/iconvconfig.c: Likewise.
5494         * iconv/iconv_prog.c: Likewise.
5495         * malloc/memusagestat.c: Likewise.
5496         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5498 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5500         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5501         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5502         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5503         check for the first argument.
5505 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5507         [BZ #4775]
5508         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5509         (__tgmath_real_type): Fix if expr is const int or other const
5510         qualified integral type.
5511         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5512         expressions and handle const qualified arguments.
5513         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5514         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5515         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5516         statement expressions.
5517         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5518         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5519         (__TGMATH_UNARY_IMAG): Define.
5520         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5521         * math/Makefile (tests): Add test-tgmath2.
5522         (CFLAGS-test-tgmath2.c): Add.
5523         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5524         count_cfloat, count_cldouble): New variables.
5525         (NCCALLS): Define.
5526         (main): Check number of complex calls as well.
5527         (F(compile_test)): Add complex tests and tests with const qualified
5528         arguments.
5529         (y, z, ccount): Define.
5530         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5531         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5532         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5533         F(cproj)): New functions.
5534         * math/test-tgmath2.c: New test.
5536 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5538         [BZ #4776]
5539         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5540         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5541         instead output ".".
5542         * dlfcn/Makefile (distribute): Add glreflib3.c.
5543         (module-names): Add glreflib3.
5544         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5545         glreflib1.so.
5546         (LDFLAGS_glreflib3.so): New.
5547         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5548         glreflib1.so.
5549         * dlfcn/glreflib3.c: New file.
5551         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5552         returned -1, return NULL.
5553         * intl/explodename.c (_nl_explode_name): Return -1 if
5554         _nl_normalize_codeset failed.
5556 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5558         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5559         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5560         and avoid branch misspredicts for > 31 bytes memset case.
5561         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5562         Remove toc ref to __cache_line_size.
5564         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5565         to get ISA-V2.0 branch hints.
5566         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5567         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5568         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5569         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5570         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5571         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5572         Remove toc ref to __cache_line_size.
5574         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5575         Include math_ldbl_opt.h.
5577 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5579         [BZ #4773]
5580         * time/strptime_l.c (__strptime_internal): Implement greedy
5581         matching of weekday and month names.
5583 2007-07-09  Roland McGrath  <roland@redhat.com>
5585         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5586         (ELF_NOTE_ABI): Use it.
5587         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5589 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5591         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5592         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5594 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5596         [BZ #4745]
5597         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5598         in loop to look for conversion specifier to avoid testing of
5599         wrong errno value.
5600         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5601         * stdio-common/bug18.c: New file.
5602         * stdio-common/bug18a.c: New file.
5603         * stdio-common/bug19.c: New file.
5604         * stdio-common/bug19a.c: New file.
5606 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5608         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5609         running awk script.
5611 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5613         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5614         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5615         Return NULL if mmap failed instead of asserting it does not.
5616         (calloc): Check for integer overflow.
5618         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5619         than LONG_MAX / 10.
5621 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5623         [BZ #4702]
5624         * nis/nss-default.c: Include errno.h.
5625         (init): Preserve errno.
5627 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5629         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5631 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5633         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5635 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5637         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5639 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5641         * sysdeps/s390/dl-procinfo.c: New file.
5642         * sysdeps/s390/dl-procinfo.h: New file.
5643         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5645 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5647         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5648         in PT_NOTE segments with multiple notes.
5649         * elf/readelflib.c (process_elf_file): Likewise.
5651 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5653         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5654         ISO C compliant.
5656 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5658         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5660 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5662         * include/link.h: Don't include rtld-lowlevel.h.
5663         (struct link_map): Remove l_scope_lock.
5664         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5665         (_dl_scope_free_list): New field (variable) in _rtld_global.
5666         (DL_LOOKUP_SCOPE_LOCK): Remove.
5667         (_dl_scope_free): New prototype.
5668         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5669         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5670         (_dl_profile_fixup): Likewise.
5671         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5672         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5673         THREAD_GSCOPE_RESET_FLAG around it.
5674         * elf/dl-close.c (_dl_close_worker): Don't use
5675         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5676         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5677         scopes were queued or if l_scope_mem has been abandoned.
5678         * elf/dl-open.c (_dl_scope_free): New function.
5679         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5680         * elf/dl-support.c (_dl_scope_free_list): New variable.
5681         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5682         Remove DL_LOOKUP_SCOPE_LOCK handling.
5683         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5684         handling.
5685         * elf/dl-object.c (_dl_new_object): Don't use
5686         __rtld_mrlock_initialize.
5688 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5690         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5691         to fill in holes
5692         (rtld_global_ro): Likewise.
5694 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5696         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5697         Move PT_LOAD checking to...
5698         (_dl_addr_inside_object): ... here, new function.
5699         * elf/dl-sym.c (do_sym): If not l_contiguous,
5700         call _dl_addr_inside_object.
5701         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5702         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5703         * elf/dl-open.c (dl_open_worker): Likewise.
5704         (_dl_addr_inside_object): New function if IS_IN_rtld.
5705         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5706         holes are present or are PROT_NONE protected.
5707         * include/link.h (struct link_map): Add l_contiguous field.
5708         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5710 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5711             Tomas Janousek  <tjanouse@redhat.com>
5712             Ulrich Drepper  <drepper@redhat.com>
5714         [BZ #4647]
5715         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5716         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5717         socket.
5718         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5719         unused member a bitmap.
5720         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5721         servers are configured.
5723 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5725         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5727 2007-06-17  Andreas Schwab  <schwab@suse.de>
5729         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5731 2007-06-16  Andreas Jaeger  <aj@suse.de>
5733         [BZ #4125]
5734         * sysdeps/unix/sysv/linux/sys/ptrace.h
5735         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5736         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5737         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5738         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5739         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5740         Define.
5741         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5742         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5743         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5744         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5746 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5748         [BZ #4599]
5749         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5750         determining whether there are IPv4/IPv6 addresses, ignore loopback
5751         addresses.
5753 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5755         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5756         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5757         as the return type.  Change type of "r" variable to CMPtype.
5758         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5759         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5760         * soft-fp/gedf2.c (__gedf2): Likewise.
5761         * soft-fp/gesf2.c (__gesf2): Likewise.
5762         * soft-fp/getf2.c (__getf2): Likewise.
5763         * soft-fp/ledf2.c (__ledf2): Likewise.
5764         * soft-fp/lesf2.c (__lesf2): Likewise.
5765         * soft-fp/letf2.c (__letf2): Likewise.
5766         * soft-fp/unorddf2 (__unorddf2): Likewise.
5767         * soft-fp/unordsf2 (__unordsf2): Likewise.
5768         * soft-fp/unordtf2 (__unordtf2): Likewise.
5770 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5772         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5773         make sure gcc doesn't mess around with this.
5775 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5777         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5779 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5781         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5782         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5783         at most once per _dl_close_worker.
5785 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5787         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5788         __sched_cpucount as const.
5789         * posix/sched_cpucount.c: Adjust.
5791         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5792         instruction for counting bits.
5793         * sysdeps/x86_64/sched_cpucount.c: New file.
5795 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5797         * configure.in: Avoid variable named BASH.
5798         * config.make.in: Likewise.
5799         Patch in part by Mike Frysinger.
5801 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5803         [BZ #4586]
5804         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5805         pseudo-zeros as zero.
5806         * sysdeps/x86_64/ldbl2mpn.c: New file.
5807         * sysdeps/ia64/ldbl2mpn.c: New file.
5809 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5811         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5812         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5813         Remove unreachable code at the end.
5815 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5817         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5818         ldbl-128ibm in comment.
5819         (fpclassifyl): Correct classification of denormals.
5820         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5821         return value for MIN denormal. Rewrite using long double math too
5822         correctly handle denormals and canonicalize the results.
5824 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5826         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5827         (__mpn_construct_long_double): Fix conversion where result ought
5828         to be smaller than __LDBL_MIN__, or the low double should be
5829         denormal.  Fix decision where to negate low double - honor round
5830         to even rules.
5831         * stdio-common/tst-sprintf2.c: Include string.h.
5832         (COMPARE_LDBL): Define.
5833         (TEST): Also test whether a string hexadecimal float representation
5834         can be parsed back to the number.
5835         (main): Add a couple of further tests.
5837 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5839         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5840         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5841         is non-zero, but smaller than 2 * __DBL_MIN__.
5842         * stdio-common/tst-sprintf2.c: New test.
5843         * stdio-common/Makefile (tests): Add tst-sprintf2.
5845         * math/test-misc.c (main): Don't run last batch of tests with
5846         IBM long double format.
5848 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5850         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5851         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5852         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5853         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5854         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5855         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5856         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5857         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5858         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5859         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5862         New file.
5863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5864         New file.
5865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5866         New file.
5867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5868         New file.
5869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5870         New file.
5871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5873         New file.
5874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5875         New file.
5876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5877         New file.
5878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5879         New file.
5880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5881         New file.
5883 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5885         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5886         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5887         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5888         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5889         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5890         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5891         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5892         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5894 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5896         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5897         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5898         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5899         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5900         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5901         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5902         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5903         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5905 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5907         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5908         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5909         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5910         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5912 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5914         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5915         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5917 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5919         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5920         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5921         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5922         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5924 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5926         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5927         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5929 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5931         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5932         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5934         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5935         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5936         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5937         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5939 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5941         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5942         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5943         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5944         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5946 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5948         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5949         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5950         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5951         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5952         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5953         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5955 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5957         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5958         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5959         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5960         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5962 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5964         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5965         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5966         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5967         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5968         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5969         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5970         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5971         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5972         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5973         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5974         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5975         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5976         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5977         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5978         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5979         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5981 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5983         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5984         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5986 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5988         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5989         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5991 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5993         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5994         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5995         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5996         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5997         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5998         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5999         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6000         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6001         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6002         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6004 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6006         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6008 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6010         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6011         branch miss-predicts. Ensure that cache line crossing does not impact
6012         dispatch grouping.
6014 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6016         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6017         "../../powerpc32/power4/memcopy.h".
6018         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6019         "../../powerpc32/power4/wordcopy.c".
6021 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6023         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6024         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6025         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6026         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6027         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6028         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6030 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6032         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6034 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6036         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6037         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6038         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6039         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6040         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6041         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6042         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6043         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6045 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6047         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6049 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6051         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6052         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6053         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6054         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6055         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6056         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6057         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6059 2007-05-29  Roland McGrath  <roland@redhat.com>
6061         * po/Makefile (po-sed-cmd): New variable.
6062         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6064 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6066         * crypt/md5-crypt.c: Fix comment.
6068         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6069         of crashing.  When this is the case or if the reply is malformed,
6070         don't try to close the new file descriptor since it does not
6071         exist.
6072         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6074 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6076         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6077         if __NR_utimensat is not defined.
6079 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6081         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6083 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6085         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6086         (open): Fix comment typos.  Don't call __open_2 if flags
6087         is a compile time constant without O_CREAT.
6088         (__open64_2): Add nonnull attribute.
6089         (open64): Fix comment typos.  Don't call __open64_2 if flags
6090         is a compile time constant without O_CREAT.
6091         (__openat_2): Add nonnull attribute, fix nonnull attribute
6092         on redirect.
6093         (openat): Fix comment typos.  Don't call __openat_2 if flags
6094         is a compile time constant without O_CREAT.
6095         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6096         on redirect.
6097         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6098         is a compile time constant without O_CREAT.
6100 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6102         * Makerules (sysd-rules): Define PTW for ptw-* files.
6103         * Versions: Define GLIBC_2.7 for libc.
6104         * include/stdio.h: Declare __fortify_fail.
6105         * debug/fortify_fail.c: New file.
6106         * debug/Makefile (routines): Add fortify_fail.
6107         * debug/chk_fail.c: Use __fortify_fail.
6108         * debug/stack_chk_fail.c: Likewise.
6109         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6110         __openat64_2 for GLIBC_2.7.
6111         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6112         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6113         and fails if necessary.
6114         * io/open64.c: Likewise.
6115         * io/openat.c: Likewise.
6116         * io/openat64.c: Likewise.
6117         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6118         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6119         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6120         * io/bits/fcntl2.h: New file.
6121         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6122         __openat64_2.
6123         * include/bits/fcntl2.h: New file.
6124         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6125         Add open_2.
6126         * sysdeps/unix/sysv/linux/open_2.c: New file.
6128 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6130         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6131         as second parameter to handle_intel.
6133         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6134         the entry.
6136         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6137         handling to ...
6138         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6139         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6140         cacheinfo.
6141         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6142         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6143         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6145         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6147 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6149         [BZ #4525]
6150         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6151         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6152         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6154         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6156         [BZ #4514]
6157         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6158         reinitialize workend at the start of each do_positional format spec
6159         loop, free workstart before do_positional loops.
6160         (printf_unknown): Fix size of work_buffer.
6161         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6163         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6164         (public_sET_STATe): If ms->version < 3, put all chunks into
6165         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6166         chunks.
6168         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6169         * malloc/hooks.c: Likewise.
6170         * malloc/arena.c: Likewise.
6171         * malloc/malloc.c (do_check_malloc_state): Don't assert
6172         n_mmaps is not greater than n_mmaps_max.  This removes the need
6173         for the previous change.
6175         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6176         2007-05-07 commit.
6178 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6180         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6181         Define for kernel >= 2.6.22.
6183 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6185         * elf/dl-close.c (_dl_close_worker): When removing object from
6186         global scope, wait for all lookups to finish afterwards.
6187         * elf/dl-open.c (add_to_global): When global scope array must
6188         grow, allocate a new one and free old array only after all
6189         lookups finish.
6190         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6191         (_dl_lookup_symbol_x): Likewise.
6192         * elf/dl-support.c: Define _dl_wait_lookup_done.
6193         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6194         _dl_wait_lookup_done.
6196         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6197         not overlapping with arena.
6199         * malloc/mcheck.c (reallochook): If size==0, free the block.
6201         * rt/tst-shm.c: Use fstat64 instead of fstat.
6203         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6204         __NR_sync_file_range is not defined.
6206 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6208         Dummy files to prevent stub versions from being used.
6209         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6210         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6211         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6212         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6214         * version.h (VERSION): Set to 2.6.90.
6216 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6218         * version.h (VERSION): Define to 2.6.
6219         * include/features.h (__GLIBC_MINOR__): Define to 6.
6221         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6223         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6224         sizes.
6226 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6228         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6229         number of mmaps.  n_mmaps_max is the target.
6230         * malloc/hooks.c: Likewise.
6231         * malloc/arena.c: Likewise.
6233 2007-05-12  Andreas Jaeger  <aj@suse.de>
6235         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6236         getpid.
6238 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6240         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6241         adding new variables.
6243         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6244         optimize.  Completely extend global scope array before making the
6245         new entries visible.
6247 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6249         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6250         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6251         tst-getcpu.
6253         * include/link.h: Move l_version and l_nversion members around to
6254         fill gaps.
6256         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6258         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6259         (__sched_setaffinity_new): If syscall was successful and
6260         RESET_VGETCPU_CACHE is defined, use it before returning.
6261         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6263         * io/sys/stat.h: Make sure struct timespec is defined for
6264         __USE_ATFILE.
6266         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6267         UTIME_OMIT.
6268         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6269         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6270         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6271         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6272         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6273         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6274         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6275         * io/sys/stat.h: Declare utimensat, futimens.
6276         * io/utimensat.c: New file.
6277         * io/futimens.c: New file.
6278         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6279         * sysdeps/unix/sysv/linux/futimens.c: New file.
6280         * io/Makefile (routines): Add utimensat, futimens.
6281         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6282         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6283         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6284         available.
6286         * include/sys/cdefs.h: Redefine __nonnull so that test for
6287         incorrect parameters in the libc code itself are not omitted.
6289 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6291         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6292         exception in addition to inexact when asked to raise only FE_INEXACT.
6294         [BZ #3427]
6295         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6296         in *envp.
6298 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6300         [BZ #4403]
6301         * string/strfry.c (strfry): Make result more random.
6303 2007-05-07  Richard Henderson  <rth@redhat.com>
6305         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6306         if __NO_LONG_DOUBLE_MATH.
6307         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6308         available in the compiler, add .arch directive to the assembly.
6310 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6312         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6313         compat_symbol to GLIBC_2_1.
6314         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6315         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6316         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6317         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6318         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6319         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6320         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6321         libc, not libm.
6322         (__isnanl): New compat_symbol.
6324 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6325             Jakub Jelinek  <jakub@redhat.com>
6327         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6328         (new_heap): Initialize mprotect_size.
6329         (grow_heap): When growing, only mprotect from mprotect_size till
6330         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6331         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6333 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6334             Peter Bergner  <bergner@us.ibm.com>
6336         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6337         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6338         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6339         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6340         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6341         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6342         Call __fe_mask_env() if all FP exceptions disabled.
6343         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6344         from old FPSCR to new fenv to propagate DFP rounding modes.
6345         Call __fe_mask_env() if FP exceptions previously enabled.
6346         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6347         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6348         transitioning from all exceptions disabled to any exception enabled
6349         or visa versa.
6350         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6351         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6352         when transitioning from all exceptions disabled to any exception
6353         enabled or visa versa.
6354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6361 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6363         [BZ #4465]
6364         * posix/unistd.h: Remove __THROW from fdatasync.
6366 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6368         [BZ #4465]
6369         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6371 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6373         * stdio-common/vfprintf.c (process_string_arg): Optimize
6374         ridiculous precision in wide char code printing multi-byte string.
6375         Reported by Jim Meyering <jim@meyering.net>.
6377         [BZ #4131]
6378         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6379         boundaries to work around systems with overlapping binary loading.
6380         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6382 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6384         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6385         __mbsnrtowcs after last change.
6387         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6388         (get_ident): Likewise.
6390 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6392         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6393         with setting the sticky bit.
6394         * math/test-misc.c (main): Add more truncation tests.
6396 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6398         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6399         double in the function declaration.
6400         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6401         double in the function declaration.
6402         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6403         float in the function declaration.
6404         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6405         float in the function declaration.
6407         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6408         denormal operands.  Do not generate FP_EX_DENORM exception.
6409         (FP_UNPACK_RAW_EP): Ditto.
6410         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6411         undefined _FP_UNPACK_RAW_E.
6412         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6413         undefined _FP_UNPACK_RAW_EP.
6414         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6415         undefined _FP_PACK_RAW_E.
6416         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6417         undefined _FP_PACK_RAW_EP.
6419         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6420         _FP_FRAC_COPY_2.
6421         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6422         _FP_FRAC_COPY_4.
6424 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6425             Jakub Jelinek  <jakub@redhat.com>
6427         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6428         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6429         this case.
6430         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6432 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6434         * math/test-misc.c (main): Add tests for rounding long double
6435         values close to smallest double denormalized value to double.
6437 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6439         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6440         condition for truncating to 0.  Set sticky bit for such
6441         truncation.
6443 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6445         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6446         fixed length array for ignore.
6448 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6450         [BZ #4438]
6451         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6452         stack for large precisions.
6453         * stdio-common/test-vfprintf.c (main): Add test for large
6454         precision.
6456 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6458         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6459         for exponent 0.
6460         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6462         [BZ #4439]
6463         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6464         account in the size check.
6465         * resolv/tst-inet_ntop.c: New test.
6466         * resolv/Makefile (tests): Add tst-inet_ntop.
6468 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6469             Jakub Jelinek  <jakub@redhat.com>
6471         [BZ #4349]
6472         * malloc/malloc.c: Keep separate list for first blocks on the bin
6473         lists with a given size.  This helps skipping over list elements
6474         we know won't fit in two places.
6475         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6477 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6479         [BZ #4102]
6480         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6481         label to Teredo tunnel addresses 2001://32.
6483 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6485         * locale/programs/ld-collate.c (collate_read): Allow order_start
6486         after copy.
6488         * locale/programs/ld-collate.c (collate_read): Fix printing of
6489         error message.
6491         [BZ #3213]
6492         * locale/C-translit.h.in: Add entry for U2044.
6494         [BZ #4342]
6495         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6496         hexa-decimal floats without exponent.
6497         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6499 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6501         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6502         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6503         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6504         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6505         GLIBC_2.6.
6506         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6507         Add sched_getcpu.
6509 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6511         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6512         of 0 after the out_fail label.
6514 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6516         [BZ #4406]
6517         * iconv/gconv_charset.h (strip): Allow ':'.
6518         * iconv/iconv_open.c (iconv_open): Adjust comment.
6520 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6522         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6523         version.
6525 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6527         [BZ #4381]
6528         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6529         alignment of buffer and tmp_buffer.
6530         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6531         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6532         alignment of buffer.
6533         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6534         bigger than INT_MAX.
6535         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6536         h_errnop arguments.  Fail if buflen is too small.
6537         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6539 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6541         [BZ #4405]
6542         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6543         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6545 2007-04-22  Roland McGrath  <roland@redhat.com>
6547         * elf/elf.h (NT_PRXFPREG): New macro.
6549 2007-04-19  Andreas Jaeger  <aj@suse.de>
6551         [BZ #3905]
6552         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6553         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6554         Added.
6556 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6558         * include/sys/mman.h: Mark madvise hidden.
6559         * misc/madvise.c: Add libc_hidden_def.
6561 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6563         * nis/nis_domain_of.c (__nis_domain_of): New function.
6564         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6565         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6566         * nis/nis_call.c (rec_dirsearch): Likewise.
6567         (first_shoot): Likewise.  Remove search_parent_first argument.
6568         (struct nis_server_cache): Rename search_parent_first field
6569         to search_parent.
6570         (nis_server_cache_search, nis_server_cache_add): Rename
6571         search_parent_first argument to search_parent.
6572         (__nisfind_server): Likewise.  If search_parent, call
6573         __nis_domain_of.
6575 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6577         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6579 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6581         [BZ #4368]
6582         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6584 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6586         [BZ #4364]
6587         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6589 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6591         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6592         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6593         current number of locales in SUPPORTED.
6594         (create_archive): Initialize serial.
6595         (enlarge_archive): Preserve aliases rather than duplicating
6596         their locrecs.
6598 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6600         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6601         after _IO_un_link, not before it.
6603         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6604         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6605         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6607 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6609         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6610         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6611         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6612         Remove __THROW.
6613         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6614         _IO_file_xsgetn_maybe_mmap): Likewise.
6615         * libio/oldfileops.c (old_do_write): Likewise.
6616         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6617         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6618         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6619         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6620         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6621         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6622         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6623         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6624         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6625         _IO_file_underflow, _IO_file_underflow_mmap,
6626         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6627         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6628         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6629         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6630         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6631         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6632         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6633         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6634         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6635         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6636         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6637         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6638         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6639         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6640         _IO_adjust_column_internal, _IO_default_uflow_internal,
6641         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6642         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6643         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6644         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6645         _IO_file_close_it_internal, _IO_file_underflow_internal,
6646         _IO_file_overflow_internal, _IO_file_attach_internal,
6647         _IO_file_fopen_internal, _IO_file_sync_internal,
6648         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6649         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6650         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6651         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6652         _IO_seekpos_unlocked): Likewise.
6653         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6654         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6656 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6658         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6659         argument in xmalloc size computation.
6661 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6663         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6664         math_opt_barrier and math_force_eval macros.
6666 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6668         [BZ #3306]
6669         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6670         * sysdeps/i386/fpu/math_private.h: New file.
6671         * sysdeps/x86_64/fpu/math_private.h: New file.
6672         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6673         math_force_eval macros.  Use "+m" constraint on asm rather than
6674         "=m" and "m".
6675         * math/s_nextafter.c (__nextafter): Likewise.
6676         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6677         Likewise.
6678         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6679         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6680         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6681         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6682         math_opt_barrier and math_force_eval macros.
6683         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6684         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6685         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6686         (__nexttoward): Use math_opt_barrier and
6687         math_force_eval macros.  Use "+m" constraint on asm rather than
6688         "=m" and "m".  Only use asm to force double result if
6689         FLT_EVAL_METHOD is 2.
6690         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6691         (__nexttowardf): Use math_opt_barrier and
6692         math_force_eval macros.  Use "+m" constraint on asm rather than
6693         "=m" and "m".  Only use asm to force double result if
6694         FLT_EVAL_METHOD is not 0.
6695         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6696         (__nexttowardf): Use math_opt_barrier and
6697         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6698         x to float using asm.
6699         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6700         (__nldbl_nexttowardf): Use math_opt_barrier and
6701         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6702         x to float using asm.
6703         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6704         (__nexttowardf): Use math_opt_barrier and math_force_eval
6705         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6706         * math/bug-nextafter.c (zero, inf): New variables.
6707         (main): Add new tests.
6708         * math/bug-nexttoward.c (zero, inf): New variables.
6709         (main): Add new tests.
6711 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6713         [BZ #3427]
6714         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6715         exceptions both in SW and MXCSR.
6716         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6717         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6718         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6719         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6720         in MXCSR if SSE is available.
6721         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6722         and ldsodefs.h.
6723         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6724         Fix comment typo.
6725         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6726         Return 0 rather than 1.
6727         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6728         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6729         * math/test-fenv.c (feholdexcept_tests): New function.
6730         (main): Call it.
6732 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6734         [BZ #3427]
6735         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6736         in SW.
6738 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6740         [BZ #4344]
6741         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6742         Reported by David Anderson <davea42@earthlink.net>.
6744 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6746         * posix/sys/wait.h: Remove unnecessary forward declaration.
6748 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6750         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6751         with obj->do_servers after first_shoot.
6753 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6755         * posix/Makefile (routines): Add sched_cpucount.
6756         (tests): Add tst-cpucount.
6757         * posix/sched_cpucount.c: New file.
6758         * posix/tst-cpucount.c: New file.
6759         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6760         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6761         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6762         * posix/sched.h: Define CPU_COUNT.
6764 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6766         * posix/fnmatch.c (STRUCT): Define.
6767         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6768         * posix/fnmatch_loop.c (struct STRUCT): New type.
6769         (FCT): Add ends argument.  If ends != NULL and normal * is
6770         seen in the pattern, store current pattern and string pointers
6771         and return.  Adjust recursive calls.
6772         (EXT): Adjust FCT callers.
6773         (STRUCT): Undef at the end of the file.
6774         * posix/Makefile (tests): Add tst-fnmatch2.
6775         * posix/tst-fnmatch2.c: New test.
6777 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6779         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6780         and 1 on failure.
6782         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6783         Change last argument to unsigned int.
6785 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6787         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6789 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6791         * config.h.in (HAVE_LIBCAP): Add.
6792         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6793         sys/capabilities.h.
6794         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6795         free_caps.  Cast away const from 4th cap_set_flag argument.
6797 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6799         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6800         GLIBC_2.6.
6801         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6802         Add sync_file_range.
6803         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6805 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6807         * sysdeps/powerpc/bits/atomic.h
6808         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6809         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6810         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6811         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6812         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6813         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6814         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6815         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6816         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6817         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6818         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6819         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6820         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6821         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6822         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6823         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6824         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6825         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6826         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6827         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6829 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6831         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6832         (__cache_line_size): Define the variable here.  Add
6833         attribute_hidden, remove weak_extern.
6834         (__libc_start_main): Set __cache_line_size
6835         unconditionally.
6836         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6837         (__cache_line_size): Define the variable here.  Add
6838         attribute_hidden, remove weak_extern.
6839         (DL_PLATFORM_AUXV): Set __cache_line_size
6840         unconditionally.
6841         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6842         weak_extern, add attribute_hidden.
6843         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6844         defined in ld.so.
6845         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6846         definition.
6847         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6849 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6851         [BZ #4276]
6852         * timezone/africa: Update from tzdata2007d.
6853         * timezone/asia: Likewise.
6854         * timezone/australasia: Likewise.
6855         * timezone/backward: Likewise.
6856         * timezone/europe: Likewise.
6857         * timezone/iso3166.tab: Likewise.
6858         * timezone/leapseconds: Likewise.
6859         * timezone/northamerica: Likewise.
6860         * timezone/southamerica: Likewise.
6861         * timezone/zone.tab: Likewise.
6863         * timezone/private.h: Update from tzcode2007d.
6864         * timezone/zdump.c: Likewise.
6865         * timezone/zic.c: Likewise.
6867 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6869         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6870         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6871         variables.
6872         (nis_server_cache_search, nis_server_cache_add): New functions.
6873         (__nisfind_server): Use them.  Add dbp and flags argument, if
6874         call __nisbind_create.
6875         (__nisbind_create): Add server_used and current_ep arguments,
6876         only call __nis_findfastest if server_used is ~0.
6877         (__do_niscall2, __prepare_niscall): Adjust callers.
6878         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6879         ckey_cache_euid, ckey_cache_lock): New variables.
6880         (get_ckey): New function.
6881         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6882         __pmap_getnisport.  Save __pmap_getnisport result in
6883         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6884         key.
6885         * nis/nis_lookup.c (nis_lookup): Likewise.
6886         * nis/nis_table.c (nis_list): Likewise.
6887         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6888         prototypes.
6890         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6891         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6892         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6893         _nss_nisplus_getservbyport_r): Likewise.
6894         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6895         _nss_nisplus_getnetbyaddr_r): Likewise.
6896         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6897         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6898         _nss_nisplus_getntohost_r): Likewise.
6899         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6900         _nss_nisplus_getrpcbynumber_r): Likewise.
6902 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6904         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6905         * configure: Rebuilt.
6907         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6908         bit-fields.
6909         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6911 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6913         [BZ #2831]
6914         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6915         bit-fields.
6917 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6919         * nscd/gai.c: Include alloca.h.
6920         (__libc_use_alloca): Define.
6922 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6924         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6925         smaller scopes.
6926         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6927         (DL_DST_REQUIRED): Adjust user.
6929         * include/dlfcn.h (struct link_map): New forward decl.
6931         * inet/getnameinfo.c: Include stddef.h.
6932         (getnameinfo): Use offsetof.
6934         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6936         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6938         * string/strerror_l.c: Include stdlib.h.
6940         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6941         * config.make.in (gnu89-inline-CFLAGS): New variable.
6942         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6943         -std=gnu99.
6944         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6945         * argp/argp.h: Use it.
6946         * bits/mathinline.h: Likewise.
6947         * bits/sigset.h: Likewise.
6948         * bits/string.h: Likewise.
6949         * ctype/ctype.h: Likewise.
6950         * hurd/hurd.h: Likewise.
6951         * hurd/hurd/fd.h: Likewise.
6952         * hurd/hurd/port.h: Likewise.
6953         * hurd/hurd/signal.h: Likewise.
6954         * hurd/hurd/threadvar.h: Likewise.
6955         * hurd/hurd/userlink.h: Likewise.
6956         * io/sys/stat.h: Likewise.
6957         * libio/bits/stdio.h: Likewise.
6958         * libio/bits/stdio2.h: Likewise.
6959         * mach/lock-intern.h: Likewise.
6960         * mach/mach/mig_support.h: Likewise.
6961         * math/bits/cmathcalls.h: Likewise.
6962         * posix/bits/unistd.h: Likewise.
6963         * socket/bits/socket2.h: Likewise.
6964         * stdlib/bits/stdlib.h: Likewise.
6965         * stdlib/stdlib.h: Likewise.
6966         * string/argz.h: Likewise.
6967         * string/bits/string2.h: Likewise.
6968         * string/bits/string3.h: Likewise.
6969         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6970         * sysdeps/generic/inttypes.h: Likewise.
6971         * sysdeps/generic/machine-lock.h: Likewise.
6972         * sysdeps/generic/machine-sp.h: Likewise.
6973         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6974         * sysdeps/i386/i486/bits/string.h: Likewise.
6975         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6976         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6977         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6978         * sysdeps/mach/i386/machine-lock.h: Likewise.
6979         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6980         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6981         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6982         * sysdeps/s390/bits/string.h: Likewise.
6983         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6984         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6985         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6986         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6987         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6988         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6989         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6990         * wcsmbs/bits/wchar2.h: Likewise.
6991         * wcsmbs/wchar.h: Likewise.
6992         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6993         __extern_inline definition.
6995 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6997         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6998         NULL.
7000         [BZ #3919]
7001         * math/libm-test.inc (log_test): Test -Inf and NaN.
7002         (log10_test, log1p_test, log2_test): Test -Inf.
7003         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7004         FE_INVALID when argument is qNaN.
7005         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7006         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7007         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7008         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7009         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7010         testb $4, %ah and jump if non-zero.
7011         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7012         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7014         [BZ #4101]
7015         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7016         ancestors with the same depths.
7017         Patch by Niels Moeller <nisse@lysator.liu.se>.
7018         (filter_doc): Don't crash if argp is NULL.
7019         * argp/Makefile (tests): Add tst-argp2.
7020         * argp/tst-argp2.c: New test.
7022         [BZ #4130]
7023         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7024         open_not_cancel_2.
7025         (updwtmp_file): Likewise.
7027         [BZ #4181]
7028         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7029         (inet6_opt_append): Don't check extlen is big enough if extbuf
7030         is NULL.
7031         (inet6_opt_finish): Likewise.
7032         * inet/Makefile (tests): Add test-inet6_opt.
7033         * inet/test-inet6_opt.c: New test.
7035         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7036         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7037         NLMSG_ERR.  Instead use a page sized buffer.
7038         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7039         buffer.
7041 2007-03-14  Richard Henderson  <rth@redhat.com>
7043         * sysdeps/alpha/fpu/s_llround.c: New file.
7044         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7045         * sysdeps/alpha/fpu/s_lround.c: New file.
7046         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7047         * sysdeps/alpha/fpu/s_round.c: New file.
7048         * sysdeps/alpha/fpu/s_roundf.c: New file.
7049         * sysdeps/alpha/fpu/s_trunc.c: New file.
7050         * sysdeps/alpha/fpu/s_truncf.c: New file.
7052         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7053         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7054         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7055         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7056         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7057         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7059         * sysdeps/alpha/fpu/s_fmax.S: New file.
7060         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7061         * sysdeps/alpha/fpu/s_fmin.S: New file.
7062         * sysdeps/alpha/fpu/s_fminf.S: New file.
7063         * sysdeps/alpha/fpu/s_isnan.c: New file.
7064         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7065         * sysdeps/alpha/fpu/s_llrint.c: New file.
7066         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7067         * sysdeps/alpha/fpu/s_lrint.c: New file.
7068         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7069         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7070         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7072         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7073         (__fdimf, fdimf, __fdim, fdim): Remove.
7074         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7075         (__isnanf, __isnan, __isnanl): New.
7077 2007-03-13  Richard Henderson  <rth@redhat.com>
7079         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7081 2007-03-13  Richard Henderson  <rth@redhat.com>
7083         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7084         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7085         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7086         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7087         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7088         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7090 2007-03-13  Richard Henderson  <rth@redhat.com>
7092         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7093         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7094         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7095         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7096         Move to dl-auxv.h; initialize instead of extern weak.
7097         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7098         weak symbol.
7099         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7100         Extern instead of initialized.
7102 2007-03-13  Richard Henderson  <rth@redhat.com>
7104         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7105         __sigsuspend_nocancel.
7107 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7109         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7110         172.16/12 address range.
7112 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7114         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7115         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7116         message.
7118 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7120         [BZ #4069]
7121         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7122         earlier.
7123         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7125         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7126         for x qNaN and y either +-inf or non-integer value.
7127         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7128         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7129         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7131 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7133         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7134         from sysdep_headers.
7136 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7138         * time/tzfile.c (find_transition): Instead of a linear search try to
7139         guess the transition index, use a linear search if the result is at
7140         most 10 transitions away from the guess or binary search otherwise.
7142 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7144         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7145         memory reallocation.
7147 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7149         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7150         and fix some typos.
7151         Optimize use of TOLOWER.
7153         [BZ #3325]
7154         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7155         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7156         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7158         [BZ #3458]
7159         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7160         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7162         [BZ #4076]
7163         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7164         (open_dir_stream): Likewise.
7165         * io/Makefile (tests): Add bug-ftw5.
7166         * io/bug-ftw5.c: New file.
7168         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7169         * nscd/servicescache.c (cache_addserv): Likewise.
7171         * nscd/grpcache.c (cache_addgr): In case a record changed on
7172         refresh, adjust key_copy.
7174         [BZ #4074]
7175         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7176         refresh, adjust key_copy.
7178         [BZ #4070]
7179         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7180         special cases.
7181         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7183 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7185         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7186         optimization.
7188         * stdio-common/vfscanf.c: Small cleanups throughout.
7190 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7192         [BZ #3325]
7193         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7194         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7195         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7196         Patch by Jared Casper <jaredcasper@gmail.com>.
7198         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7199         * sysdeps/unix/opendir.c: Likewise.
7200         * sysdeps/unix/readdir.c: Likewise.
7202         [BZ #2211]
7203         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7204         point numbers.
7205         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7207         * stdio-common/vfscanf.c: Fix problems in width accounting.
7208         * stdio-common/tst-sscanf.c (double_tests): New tests.
7209         (main): Hook them up.
7211         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7212         More simplifications of floating-point reader.
7214         * stdio-common/Makefile (tests): Add tst-swscanf.
7215         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7216         testing.
7217         * stdio-common/tst-swscanf.c: New file.
7219 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7221         [BZ #2633]
7222         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7223         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7224         Remove using for __jmp_buf_tag.
7225         * locale/locale.h (struct lconv): Also define in std namespace.
7226         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7228         [BZ #3842]
7229         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7230         using __libc_enable_secure.
7232         [BZ #3818]
7233         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7235         [BZ #3745]
7236         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7237         of names for ellipsises.
7239         [BZ #3348]
7240         * malloc/memusage.sh: Cleanups.
7241         * debug/xtrace.sh: Quoting and trap changes.
7243 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7245         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7247         * locale/iso-3166.def: Update entry for Serbia.
7248         * locale/iso-4217.def: Define RSD, remove CSD.
7250         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7251         and 64-bit operations.
7253         [BZ #4040]
7254         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7255         16-bit operations.
7257         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7258         of writev.
7260 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7262         [BZ #3991]
7263         * assert/assert.h (assert): Simplify.
7264         (assert_perror): Likewise.
7265         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7267         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7268         reqdata.
7270         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7271         change: don't pass NULL in place of an integer.
7273 2007-02-02  Bruno Haible  <bruno@clisp.org>
7275         [BZ #3954]
7276         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7277         Add mapping for U+327E.
7278         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7279         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7280         mapping of 0xD9 0xE8.
7281         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7282         mapping of U+327E.
7283         Reported by Jungshik Shin <jungshik@google.com>.
7285         [BZ #3955]
7286         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7287         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7288         Reported by Jungshik Shin <jungshik@google.com>.
7290 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7292         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7293         byte variants.
7295         [BZ #4040]
7296         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7297         byte variants.  Patch mostly be tom@tommay.net.
7299 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7301         [BZ #3996]
7302         * posix/glob.c (attribute_hidden): Define if not defined.
7303         (glob): Unescape dirname, filename or username when needed and not
7304         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7305         is NULL.  Handle unescaped [ in pattern without closing ].
7306         Don't pass GLOB_CHECK down to recursive glob for directories.
7307         (__glob_pattern_type): New function.
7308         (__glob_pattern_p): Implement using __glob_pattern_type.
7309         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7310         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7311         Remove unreachable code.
7312         * posix/globtest.sh: Add a couple of new tests.
7314 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7316         * po/ru.po: Update from translation team.
7318 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7320         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7321         to the list of i486+ CPUs.
7322         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7324 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7326         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7327         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7328         references.
7330 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7332         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7334         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7335         * resolv/res_mkquery.c: Define __res_nopt.
7336         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7337         try adding EDNS0 record.
7338         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7339         EDNS0 record was send make sure we don't try it again.
7340         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7341         * include/resolv.h: Declare __res_nopt.
7343 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7345         [BZ #3944]
7346         * time/strptime_l.c (__strptime_internal): Set have_mon for
7347         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7348         have been computed from tm_yday and tm_year.  Don't crash
7349         in day_of_the_week or day_of_the_year if not have_mon
7350         and tm_mon contains bogus value.
7351         * time/Makefile (tests): Add tst-strptime3.
7352         * time/tst-strptime3.c: New test.
7354 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7356         [BZ #3957]
7357         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7358         bit for RE_HAT_LISTS_NOT_NEWLINE.
7359         (build_charclass_op): Remove bogus comment.
7360         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7361         * posix/bug-regex27.c: New test.
7362         * posix/bug-regex28.c: New test.
7364 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7366         * po/sv.po: Update from translation team.
7368 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7370         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7372 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7374         * include/locale.h (__uselocale): Add libc_hidden_proto.
7375         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7377         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7378         gettimeofday.
7380 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7382         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7383         returning.
7384         (PTR_DEMANGLE): Real definition now that it's not the same as
7385         PRT_MANGLE anymore.
7386         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7388         * string/strerror_l.c: New file.
7389         * string/Makefile (routines): Add strerror_l.
7390         * string/string.h: Declare strerror_l.
7391         * string/Versions: Export strerror_l for GLIBC_2.6.
7393 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7395         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7396         as parameter.  Construct request record.  Try sending request
7397         before the first poll use, it usually succeeds.  Adjust all
7398         callers.
7399         * nscd/nscd-client.h: Define MAXKEYLEN.
7400         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7402 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7404         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7405         from return value.
7406         * nscd/nscd_helper.c: Include string.h.
7407         (__nscd_cache_search): Remove const qualifier from return value.
7408         On strict alignment architectures check hash entry and data head
7409         alignment.
7410         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7411         mmapped data during GC cycle contains garbage.  If
7412         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7413         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7414         dropped to 0.
7415         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7416         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7417         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7418         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7419         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7421 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7423         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7425 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7427         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7428         names not numbers in cfi_*.
7430 2007-01-26  Andreas Jaeger  <aj@suse.de>
7432         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7433         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7434         Correct values of PER_HPUX and PER_OSF4.
7436 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7438         * elf/dl-minimal.c: Undefine _itoa first.
7439         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7440         * malloc/mtrace.c: Revert last change.
7441         * posix/wordexp.c: Likewise.
7443 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7445         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7446         and __geode__ to the list of i486+ CPUs.
7447         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7449 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7451         * stdio-common/_itoa.c: Include <limits.h>.
7452         * stdio-common/_itowa.c: Likewise.
7454 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7456         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7457         platforms.
7458         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7459         64-bit platforms.
7460         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7461         possible.
7462         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7463         if possible.
7465         [BZ #3902]
7466         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7467         * stdio-common/Makefile (tests): Add bug17.
7468         * stdio-common/bug17.c: New file.
7470 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7472         * iconvdata/brf.c: New file.
7473         * iconvdata/testdata/BRF: New file.
7474         * iconvdata/testdata/BRF..UTF8: New file.
7475         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7476         * iconvdata/Makefile: Add rules to build BRF.
7477         * iconvdata/TESTS: Add BRF entry.
7478         * iconvdata/gconv-modules: Likewise.
7479         * iconvdata/tst-tables.sh: Likewise.
7481 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7483         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7484         type `long long int', not `long int'.
7485         (wcstoq): Likewise.
7487 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7489         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7490         of values on 64-bit platforms which are too large.
7492 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7493             Joe Kerian  <jkerian@us.us.ibm.com>
7495         [BZ #2749]
7496         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7497         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7498         (__copysignl): Use signbit() for comparison.
7499         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7500         SET_LDOUBLE_WORDS64.
7502         [BZ #2423, #2749]
7503         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7504         (__ceill): Remove calls to fegetround(), fesetround().
7505         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7506         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7507         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7509 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7511         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7513         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7515 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7517         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7518         demangle pointer.
7519         * csu/libc-start.c: Likewise.
7521 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7523         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7524         really work anyway.
7526 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7528         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7529         users.
7530         (handle_request): Remove unnecessary tests.
7532         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7534 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7536         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7537         workbits in semi-raw fraction.
7539         * math/test-misc.c: Add new tests.
7541 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7543         * math/basic-test.c: Include test-skeleton.c.
7544         (TEST_TRUNC): Define.
7545         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7546         (main): Rename to ...
7547         (do_test): ...this.  Run new tests.
7548         (TEST_FUNCTION): Define.
7550 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7551             Joe Kerian  <jkerian@us.us.ibm.com>
7553         [BZ #2749]
7554         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7555         handling for high words.
7556         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7557         and overflow for infinity.
7559 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7561         * nscd/connections.c (handle_request): Add a __builtin_expect.
7563         * nscd/connections.c (serv2db): Change type into structure which
7564         also says whether this is a request for data.  Renamed to
7565         servinfo.  All users changed.
7566         (handle_request): Much simpler test whether we should search the cache.
7568         * nscd/connections.c (handle_request): Fix thinko in selinux test
7569         invocation.
7571         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7572         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7573         it before getting dl_load_lock and then relock.
7574         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7575         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7576         case we unlocked the scope.
7577         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7578         _dl_lookup_symbol_x in case we locked the scope.
7579         (_dl_profile_fixup): Likewise.
7580         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7581         set DL_LOOKUP_SCOPE_LOCK.
7583 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7585         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7586         CFLAGS-getsrvbynpt_r.c.
7587         * nscd/getsrvbynm_r.c: New file.
7588         * nscd/getsrvbypt_r.c: New file.
7589         * nscd/nscd_getserv_r.c: New file.
7590         * nscd/servicescache.c: New file.
7591         * nscd/Makefile (routines): Add nscd_getserv_r.
7592         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7593         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7594         CFLAGS-getsrvbypt_r.c.
7595         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7596         table.  Add entries for services database.
7597         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7598         services database.
7599         (dbs): Add .reset_res and servdb initialization.
7600         (serv2db): Add entries for services database.
7601         (verify_persistent_db): Accept dbnr == servdb.
7602         (invalidate_cache): Rewrite database name recognition to use a table.
7603         Call res_init() if .reset_res is set for database.
7604         (handle_request): Add code to handle services database.
7605         * nscd/gai.c: Don't define __getservbyname_r.
7606         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7607         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7608         (serv_response_header): Define.
7609         (struct datahead): Add serv_response_header member.
7610         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7611         using table.
7612         * nscd/nscd.conf: Add entries for services database.
7613         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7614         Declare serv_iov_disabled.
7615         Declare addservbyname, readdservbyname, addservbyport, and
7616         readdservbyport.
7617         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7618         (find_db): Fix error message.
7619         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7620         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7621         * nscd/selinux.c (perms): Add entries for services database.
7622         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7623         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7625         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7626         * nscd/hstcache.c: Likewise.
7627         * nscd/pwdcache.c: Likewise.
7629         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7630         computation of keylen.
7632         * include/string.h: Only redefine strndupa if this is really for
7633         libc code.
7635 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7637         * nscd/nscd_gethst_r.c: Minor cleanups.
7639         * nscd/connections.c (handle_request): Check selinux permissions
7640         for all non-admin commands.
7642         * sysdeps/i386/i486/bits/atomic.h: Define
7643         atomic_compare_and_exchange_val_acq,
7644         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7645         using __sync_* built-ins for gcc >= 4.1.
7646         * sysdeps/x86_64/bits/atomic.h: Likewise.
7648         [BZ #3840]
7649         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7650         and .oS.d files.
7652 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7654         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7655         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7656         (do_test): Check errno and exit(0) if ENOSYS.
7658 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7660         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7661         thousands separators.
7662         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7663         * stdlib/tst-strtod4.c: New test.
7665         [BZ #3855]
7666         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7667         hexadecimal digit should accept just the initial 0.
7668         * stdlib/tst-strtod2.c (tests): New variable.
7669         (do_test): Run several tests rather than just one.
7671 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7673         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7674         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7676 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7678         * io/fts.c: Make sure fts_cur is always valid after return from
7679         fts_read.
7680         Patch by Miloslav Trmac <mitr@redhat.com>.
7682 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7684         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7685         (R_MIPS_NUM): Bump by 1.
7687 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7689         * posix/execvp.c: Include alloca.h.
7690         (allocate_scripts_argv): Renamed to...
7691         (scripts_argv): ... this.  Don't allocate buffer here nor count
7692         arguments.
7693         (execvp): Use alloca if possible.
7694         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7695         * posix/tst-vfork3.c: New test.
7697 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7699         * string/Makefile (tst-strxfrm2-ENV): Define.
7700         * stdlib/Makefile (tst-strtod3-ENV): Define.
7702 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7704         * posix/getconf.c: Update copyright year.
7705         * nss/getent.c: Likewise.
7706         * iconv/iconvconfig.c: Likewise.
7707         * iconv/iconv_prog.c: Likewise.
7708         * elf/ldconfig.c: Likewise.
7709         * catgets/gencat.c: Likewise.
7710         * csu/version.c: Likewise.
7711         * elf/ldd.bash.in: Likewise.
7712         * elf/sprof.c (print_version): Likewise.
7713         * locale/programs/locale.c: Likewise.
7714         * locale/programs/localedef.c: Likewise.
7715         * nscd/nscd.c (print_version): Likewise.
7716         * debug/xtrace.sh: Likewise.
7717         * malloc/memusage.sh: Likewise.
7718         * malloc/mtrace.pl: Likewise.
7719         * debug/catchsegv.sh: Likewise.
7721 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7723         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7724         attempts.
7726 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7728         * posix/wordexp.c: Remove some unnecessary tests.
7730 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7732         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7733         blacklist the group till after we look it up.
7735 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7737         * include/atomic.h (atomic_forced_read): New macro.
7739 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7741         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7743 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7745         * nss/getXXbyYY_r.c: Include atomic.h.
7746         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7747         add atomic_write_barrier () in between.
7749         * stdlib/Makefile (tests): Add tst-makecontext.
7750         * stdlib/tst-makecontext.c: New test.
7752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7753         (__makecontext): Don't realign uc_mcontext.uc_regs.
7755 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7757         * elf/dl-support.c: Include dl-procinfo.h.
7758         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7759         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7760         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7761         Define.
7762         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7763         hardcoded constants.
7764         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7765         PPC_PLATFORM_* macros for array designators.
7767 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7769         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7770         names to the beginning.
7771         (_dl_powerpc_platforms): Add "power6x".
7772         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7773         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7774         (_DL_PLATFORMS_COUNT): Increase.
7775         (_dl_string_platform): Handle power6x case.
7776         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7777         PPC_FEATURE_POWER6_EXT): Define.
7778         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7780 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7782         [BZ #3747]
7783         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7784         [-2^31 .. 2^31) range.
7785         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7786         targets.
7787         * stdlib/tst-rand48-2.c: New test.
7788         * stdlib/Makefile (tests): Add tst-rand48-2.
7790 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7792         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7794 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7796         * misc/tst-pselect.c (do_test): Make sure the helper process is
7797         terminating when the test is aborted.
7799 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7801         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7802         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7803         Handle relatime mount option.
7805         [BZ #2337]
7806         * libio/Makefile (tests): Add tst-setvbuf1.
7807         * libio/tst-setvbuf1.c: New file.
7809 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7811         [BZ #2337]
7812         * libio/genops.c (__uflow): Fix a typo.
7813         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7814         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7815         the narrow buffer size.
7817 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7819         [BZ #2337]
7820         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7821         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7822         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7823         in _flags.
7824         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7825         _IO_wstr_finish): Likewise.
7826         * libio/wmemstream.c (open_wmemstream): Likewise.
7827         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7828         even for wide streams.
7830 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7833         kernel-features.h.
7835 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7837         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7838         separators also if no non-zero digits found.
7839         * stdlib/Makefile (tests): Add tst-strtod3.
7841 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7843         [BZ #3632]
7844         * include/features.h: Fix comment about default value for
7845         _POSIX_C_SOURCE.
7847         [BZ #3664]
7848         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7849         empty parsed strings.
7850         * stdlib/Makefile (tests): Add tst-strtod2.
7851         * stdlib/tst-strtod2.c: New file.
7853         [BZ #3673]
7854         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7855         computation.
7856         * stdlib/Makefile (tests): Add tst-atof2.
7857         * stdlib/tst-atof2.c: New file.
7859         [BZ #3674]
7860         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7861         correctly if removing trailing zero of hex-float.
7862         * stdlib/Makefile (tests): Add tst-atof1.
7863         * stdlib/tst-atof1.c: New file.
7865 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7867         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7868         Start searching for next comma at p rather than rest.
7869         * misc/Makefile (tests): Add tst-mntent2.
7870         * misc/tst-mntent2.c: New test.
7872         * misc/getusershell.c (initshells): Check for integer overflows.
7873         Make strings buffer one bigger as fgets always succeeds when second
7874         argument is 1.  Don't use calloc for shells array.  Disallow
7875         / as shell.
7877 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7879         * malloc/memusage.c: Handle realloc with new size of zero and
7880         non-NULL pointer correctly.
7881         (me): Really write first record twice.
7882         (struct entry): Make format bi-arch safe.
7883         (dest): Write out more realloc statistics.
7884         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7886 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7888         * nis/nis_subr.c (nis_getnames): Revert last change.
7890 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7892         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7893         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7894         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7895         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7896         ENOTTY.
7897         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7898         * io/tst-ttyname_r.c: New test.
7900 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7902         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7904 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7906         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7907         jump table entries.
7909 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7911         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7912         `clone' function to ensure proper unwinding stop of gdb.
7913         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7915 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7917         * nscd/nscd.init: Remove obsolete and commented-out -S option
7918         handling.
7920 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7922         [BZ #3514]
7923         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7925         [BZ #3515]
7926         * manual/string.texi (strtok): Remove duplicate paragraph.
7928 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7930         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7931         libgcc not supporting `rflags' unwinding (register # >= 17).
7933 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7935         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7936         succeeded.
7938 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7939             Jakub Jelinek  <jakub@redhat.com>
7940             Jan Kratochvil  <jan.kratochvil@redhat.com>
7942         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7943         unwind information.
7944         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7945         'restore_rt' even in the 'signal' directory.
7946         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7948 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7950         [BZ #3559]
7951         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7952         malloc crashed.  Don't allocate memory unnecessarily in each
7953         loop.
7955 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7957         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7959 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7961         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7963 2006-11-18  Bruno Haible  <bruno@clisp.org>
7965         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7966         __sysconf only after having tried to call getgroups32.
7968 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7970         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7971         addresses for IPv4 queries if they can be mapped.
7973 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7975         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7976         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7977         (signmask): Add .size directive.
7978         (othermask): Add .type directive.
7980 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7982         * po/nl.po: Update from translation team.
7984         * timezone/zdump.c: Redo fix for BZ #3137.
7986 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7988         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7989         to first_unused after parsing :include: file.
7991 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7993         * timezone/africa: Update from tzdata2006o.
7994         * timezone/antarctica: Likewise.
7995         * timezone/asia: Likewise.
7996         * timezone/australasia: Likewise.
7997         * timezone/backward: Likewise.
7998         * timezone/europe: Likewise.
7999         * timezone/iso3166.tab: Likewise.
8000         * timezone/northamerica: Likewise.
8001         * timezone/southamerica: Likewise.
8002         * timezone/zone.tab: Likewise.
8004         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8005         on machines with 64-bit time_t.
8007         * timezone/checktab.awk: Update from tzcode2006o.
8008         * timezone/ialloc.c: Likewise.
8009         * timezone/private.h: Likewise.
8010         * timezone/scheck.c: Likewise.
8011         * timezone/tzfile.h: Likewise.
8012         * timezone/tzselect.ksh: Likewise.
8013         * timezone/zdump.c: Likewise.
8014         * timezone/zic.c: Likewise.
8016         [BZ #3483]
8017         * elf/ldconfig.c (main): Call setlocale and textdomain.
8018         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8020         [BZ #3480]
8021         * manual/argp.texi: Fix typos.
8022         * manual/charset.texi: Likewise.
8023         * manual/errno.texi: Likewise.
8024         * manual/filesys.texi: Likewise.
8025         * manual/lang.texi: Likewise.
8026         * manual/maint.texi: Likewise.
8027         * manual/memory.texi: Likewise.
8028         * manual/message.texi: Likewise.
8029         * manual/resource.texi: Likewise.
8030         * manual/search.texi: Likewise.
8031         * manual/signal.texi: Likewise.
8032         * manual/startup.texi: Likewise.
8033         * manual/stdio.texi: Likewise.
8034         * manual/sysinfo.texi: Likewise.
8035         * manual/syslog.texi: Likewise.
8036         * manual/time.texi: Likewise.
8037         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8039         [BZ #3465]
8040         * sunrpc/clnt_raw.c: Minimal message improvements.
8041         * sunrpc/pm_getmaps.c: Likewise.
8042         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8043         * nis/nis_print_group_entry.c: Likewise.
8044         * locale/programs/repertoire.c: Likewise.
8045         * locale/programs/charmap.c: Likewise.
8046         * malloc/memusage.sh: Likewise.
8047         * elf/dl-deps.c: Likewise.
8048         * locale/programs/ld-collate.c: Likewise.
8049         * libio/vswprintf.c: Likewise.
8050         * malloc/memusagestat.c: Likewise.
8051         * sunrpc/auth_unix.c: Likewise.
8052         * sunrpc/rpc_main.c: Likewise.
8053         * nscd/cache.c: Likewise.
8054         * locale/programs/repertoire.c: Unify output messages.
8055         * locale/programs/charmap.c: Likewise.
8056         * locale/programs/ld-ctype.c: Likewise.
8057         * locale/programs/ld-monetary.c: Likewise.
8058         * locale/programs/ld-numeric.c: Likewise.
8059         * locale/programs/ld-time.c: Likewise.
8060         * elf/ldconfig.c: Likewise.
8061         * nscd/selinux.c: Likewise.
8062         * elf/cache.c: Likewise.
8063         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8065         [BZ #3451]
8066         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8067         change atomic.
8068         (ceil): Likewise.
8070 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8072         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8073         if N is one bigger than return value.
8074         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8075         and l1 last arguments, if buf is defined, verify the return value
8076         equals to strlen (buf) and verify no byte beyond passed length
8077         is modified.
8079 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8081         * po/sv.po: Update from translation team.
8083 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8085         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8086         noinline attribute.
8088 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8090         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8091         noinline attribute.
8093         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8094         Use __new_sys_siglist instead of _sys_siglist_internal as
8095         second macro argument.
8096         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8097         strong_alias.
8099 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8101         [BZ #3493]
8102         * posix/unistd.h (sysconf): Remove const attribute.
8104         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8105         temporary or deprecated addresses.
8106         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8108         * string/Makefile (tests): Add tst-strxfrm2.
8109         * string/tst-strxfrm2.c: New file.
8111 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8113         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8114         rather than r->r_brk.
8116 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8118         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8119         optimization even if needed > n.
8121         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8122         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8123         return false, otherwise return true.
8124         (cache_rpath): Return decompose_rpath return value.
8126 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8128         * include/libc-symbols.h (declare_symbol): Rename to...
8129         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8130         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8131         .size directive.
8132         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8133         changes.
8134         * sysdeps/gnu/siglist.c: Likewise.
8136 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8138         * sysdeps/powerpc/fpu/bits/mathinline.h
8139         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8140         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8142 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8144         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8145         Update handling of cache descriptor 0x49 for new models.
8146         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8147         Likewise.
8149 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8151         * malloc/memusage.c (dest): Reset not_me back to false after
8152         printing statistics.
8154 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8156         * configure.in: Work around ld --help change and avoid -z relro
8157         test completely if the architecture doesn't care about security.
8159 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8161         * po/sv.po: Update from translation team.
8163 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8165         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8166         generate compatibility version.
8168 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8170         * configure.in: Relax -z relro requirement a bit.
8172         * po/sv.po: Update from translation team.
8174 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8176         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8177         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8178         * elf/dl-close.c (_dl_close_worker): Likewise.
8179         * elf/dl-open.c (_dl_open_worker): Likewise.
8180         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8182 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8184         * configure.in: Require assembler support for visibility, compiler
8185         support for visibility and aliases, linker support for various -z
8186         options.
8187         * Makeconfig: Remove conditional code which now is unnecessary.
8188         * config.h.in: Likewise.
8189         * config.make.in: Likewise.
8190         * dlfcn/Makefile: Likewise.
8191         * elf/Makefile: Likewise.
8192         * elf/dl-load.c: Likewise.
8193         * elf/rtld.c: Likewise.
8194         * include/libc-symbols.h: Likewise.
8195         * include/stdio.h: Likewise.
8196         * io/Makefile: Likewise.
8197         * io/fstat.c: Likewise.
8198         * io/fstat64.c: Likewise.
8199         * io/fstatat.c: Likewise.
8200         * io/fstatat64.c: Likewise.
8201         * io/lstat.c: Likewise.
8202         * io/lstat64.c: Likewise.
8203         * io/mknod.c: Likewise.
8204         * io/mknodat.c: Likewise.
8205         * io/stat.c: Likewise.
8206         * io/stat64.c: Likewise.
8207         * libio/stdio.c: Likewise.
8208         * nscd/Makefile: Likewise.
8209         * stdlib/Makefile: Likewise.
8210         * stdlib/atexit.c: Likewise.
8211         * sysdeps/generic/ldsodefs.h: Likewise.
8212         * sysdeps/i386/dl-machine.h: Likewise.
8213         * sysdeps/i386/sysdep.h: Likewise.
8214         * sysdeps/i386/i686/memcmp.S: Likewise.
8215         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8216         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8217         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8219         * Makerules: USE_TLS support is now default.
8220         * tls.make.c: Likewise.
8221         * csu/Versions: Likewise.
8222         * csu/libc-start.c: Likewise.
8223         * csu/libc-tls.c: Likewise.
8224         * csu/version.c: Likewise.
8225         * dlfcn/dlinfo.c: Likewise.
8226         * elf/dl-addr.c: Likewise.
8227         * elf/dl-cache.c: Likewise.
8228         * elf/dl-close.c: Likewise.
8229         * elf/dl-iteratephdr.c: Likewise.
8230         * elf/dl-load.c: Likewise.
8231         * elf/dl-lookup.c: Likewise.
8232         * elf/dl-object.c: Likewise.
8233         * elf/dl-open.c: Likewise.
8234         * elf/dl-reloc.c: Likewise.
8235         * elf/dl-support.c: Likewise.
8236         * elf/dl-sym.c: Likewise.
8237         * elf/dl-sysdep.c: Likewise.
8238         * elf/dl-tls.c: Likewise.
8239         * elf/ldconfig.c: Likewise.
8240         * elf/rtld.c: Likewise.
8241         * elf/tst-tls-dlinfo.c: Likewise.
8242         * elf/tst-tls1.c: Likewise.
8243         * elf/tst-tls10.h: Likewise.
8244         * elf/tst-tls14.c: Likewise.
8245         * elf/tst-tls2.c: Likewise.
8246         * elf/tst-tls3.c: Likewise.
8247         * elf/tst-tls4.c: Likewise.
8248         * elf/tst-tls5.c: Likewise.
8249         * elf/tst-tls6.c: Likewise.
8250         * elf/tst-tls7.c: Likewise.
8251         * elf/tst-tls8.c: Likewise.
8252         * elf/tst-tls9.c: Likewise.
8253         * elf/tst-tlsmod1.c: Likewise.
8254         * elf/tst-tlsmod13.c: Likewise.
8255         * elf/tst-tlsmod13a.c: Likewise.
8256         * elf/tst-tlsmod14a.c: Likewise.
8257         * elf/tst-tlsmod2.c: Likewise.
8258         * elf/tst-tlsmod3.c: Likewise.
8259         * elf/tst-tlsmod4.c: Likewise.
8260         * elf/tst-tlsmod5.c: Likewise.
8261         * elf/tst-tlsmod6.c: Likewise.
8262         * include/errno.h: Likewise.
8263         * include/link.h: Likewise.
8264         * include/tls.h: Likewise.
8265         * locale/global-locale.c: Likewise.
8266         * locale/localeinfo.h: Likewise.
8267         * malloc/arena.c: Likewise.
8268         * malloc/hooks.c: Likewise.
8269         * malloc/malloc.c: Likewise.
8270         * resolv/Versions: Likewise.
8271         * sysdeps/alpha/dl-machine.h: Likewise.
8272         * sysdeps/alpha/libc-tls.c: Likewise.
8273         * sysdeps/generic/ldsodefs.h: Likewise.
8274         * sysdeps/generic/tls.h: Likewise.
8275         * sysdeps/i386/dl-machine.h: Likewise.
8276         * sysdeps/ia64/dl-machine.h: Likewise.
8277         * sysdeps/ia64/libc-tls.c: Likewise.
8278         * sysdeps/mach/hurd/fork.c: Likewise.
8279         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8280         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8281         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8282         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8283         * sysdeps/s390/libc-tls.c: Likewise.
8284         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8285         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8286         * sysdeps/sh/dl-machine.h: Likewise.
8287         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8288         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8289         * sysdeps/x86_64/dl-machine.h: Likewise.
8291         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8292         split out locking and parameter checking.
8293         (_dl_close): Call _dl_close_worker after locking and checking.
8294         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8295         _dl_close.
8296         * elf/Makefile: Add rules to build and run tst-thrlock.
8297         * elf/tst-thrlock.c:  New file.
8299         [BZ #3426]
8300         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8301         reality.
8303         [BZ #3429]
8304         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8305         we are sure we do not need it anymore for _dl_close.  Also move
8306         the asserts inside the lock region.
8307         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8309 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8311         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8312         argument.
8313         (_dl_lookup_symbol_x): Adjust caller.
8315         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8316         _ns_global_scope.
8317         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8319         * elf/dl-libc.c: Revert l_scope name changes.
8320         * elf/dl-load.c: Likewise.
8321         * elf/dl-object.c: Likewise.
8322         * elf/rtld.c: Likewise.
8323         * elf/dl-close.c (_dl_close): Likewise.
8324         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8325         always use __rtld_mrlock_{change,done}.  Always free old scope list
8326         here if not l_scope_mem.
8327         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8328         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8329         the lookup and __rtld_mrlock_unlock it after the lookup.
8330         * elf/dl-sym.c: Likewise.
8331         * include/link.h (struct r_scoperec): Remove.
8332         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8333         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8335 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8337         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8339 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8341         * configure.in: Disable building profile libraries by default.
8343 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8345         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8346         as signed longs, check for x_base + pos overflow.
8347         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8348         * sunrpc/tst-xdrmem2.c: New test.
8350 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8352         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8353         _dl_lookup_symbol_x code.
8355 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8357         * elf/dl-runtime.c: Include sysdep-cancel.h.
8358         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8359         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8360         instead of catomic_* macros.
8361         * elf/dl-sym.c: Include sysdep-cancel.h.
8362         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8363         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8364         * elf/dl-close.c: Include sysdep-cancel.h.
8365         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8366         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8367         * elf/dl-open.c: Include sysdep-cancel.h.
8368         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8369         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8371 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8373         [BZ #3313]
8374         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8375         fastbin rather than end of fastbin array.
8377 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8379         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8380         body macro.
8381         * sysdeps/x86_64/bits/atomic.h
8382         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8383         (catomic_decrement): Use correct body macro.
8385 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8387         * include/atomic.h: Add a unique prefix to all local variables
8388         in macros.
8389         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8391 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8393         [BZ #3369]
8394         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8395         and 7.
8397 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8399         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8401 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8403         [BZ #3313]
8404         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8405         determine highest fast bin to consolidate, always look into all of
8406         them.
8407         (do_check_malloc_state): Only require for empty bins for large
8408         sizes in main arena.
8410         * libio/stdio.h: Add more __wur attributes.
8412         * elf/dl-minimal.c (realloc): Optimize last patch.
8414 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8416         [BZ #3352]
8417         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8418         and use memcpy() if it does.
8420 2006-11-12  Andreas Jaeger  <aj@suse.de>
8422         [BZ #2510]
8423         * manual/search.texi (Hash Search Function): Clarify.
8424         (Array Search Function): Clarify.
8426 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8428         [BZ #2830]
8429         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8430         shifting.
8431         * math/atest-exp2.c (read_mpn_hex): Likewise.
8432         * math/atest-sincos.c (main): Likewise.
8434 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8436         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8437         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8438         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8439         version GLIBC_2.6.
8440         * Versions.def: Add GLIBC_2.6 for libc.
8442         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8444         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8446 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8448         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8450         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8452         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8453         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8455 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8457         * include/atomic.c: Define catomic_* operations.
8458         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8459         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8460         * malloc/memusage.c: Likewise.
8461         * gmon/mcount.c: Likewise.
8462         * elf/dl-close.c: Likewise.
8463         * elf/dl-open.c: Likewise.
8464         * elf/dl-profile.c: Likewise.
8465         * elf/dl-sym.c: Likewise.
8466         * elf/dl-runtime.c: Likewise.
8467         * elf/dl-fptr.c: Likewise.
8468         * resolv/res_libc.c: Likewise.
8470 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8472         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8473         components which lack them.
8475         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8476         at least one entry consisting of the parameter concatenated with
8477         the domain.
8479 2006-10-10  Roland McGrath  <roland@frob.com>
8481         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8482         * sysdeps/mach/hurd/futimes.c: Likewise.
8483         * sysdeps/mach/hurd/lutimes.c: Likewise.
8485 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8486             Jakub Jelinek  <jakub@redhat.com>
8488         Implement reference counting of scope records.
8489         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8490         from the list in objects which remain.  Always allocate new scope
8491         record.
8492         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8493         don't resize, allocate a new one.
8494         * elf/dl-runtime.c: Update reference counters before using a scope
8495         array.
8496         * elf/dl-sym.c: Likewise.
8497         * elf/dl-libc.c: Adjust for l_scope name change.
8498         * elf/dl-load.c: Likewise.
8499         * elf/dl-object.c: Likewise.
8500         * elf/rtld.c: Likewise.
8501         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8502         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8503         Add l_scoperec_lock.
8504         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8505         * sysdeps/generic/rtld-lowlevel.h: New file.
8507         * include/atomic.h: Rename atomic_and to atomic_and_val and
8508         atomic_or to atomic_or_val.  Define new macros atomic_and and
8509         atomic_or which do not return values.
8510         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8511         Various cleanups.
8512         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8514         * po/sv.po: Update from translation team.
8516 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8518         * Versions.def: Add GLIBC_2.6 to libpthread.
8520         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8521         (versioned_symbol): Likewise.
8522         (compat_symbol): Likewise.
8524         * po/tr.po: Update from translation team.
8526 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8528         * nis/Banner: Removed.  It's been integral part forever and the
8529         author info is incomplete anyway.
8530         * libio/Banner: Likewise.
8532         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8533         code, make sure the nis_freeresult call doesn't crash and that the
8534         result is reported correctly.
8536 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8538         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8539         when callback is NULL.
8541         * nis/Versions (libnss_nisplus): Add
8542         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8543         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8544         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8545         _nss_create_tablename): Rename to...
8546         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8547         ... these.  No longer static.
8548         (internal_setgrent): Adjust users.
8549         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8550         Don't use locking around _nss_grp_create_tablename call.
8551         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8553 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8555         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8557 2006-10-06  Andreas Jaeger  <aj@suse.de>
8559         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8561 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8563         * po/pl.po: Update from translation team.
8565         * nscd/nscd.c (main): Fix typo in message.
8566         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8568 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8570         [BZ #3291]
8571         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8572         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8573         (__sigprocmask): Define.
8575 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8577         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8578         used.
8580 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8582         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8583         in oldtotal and newtotal calculation.
8584         * nscd/nscd-client.h (struct mapped_database): Add datasize
8585         field.
8586         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8587         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8588         increased.
8589         (__nscd_cache_search): Add checks to make sure we never reference
8590         data beyond the current mapping.
8592 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8594         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8595         variables const to avoid compiler warnings.
8597         * io/fts.c (fts_close): Remove redundant checks.
8598         (fts_build): Likewise.
8599         (fts_palloc): Likewise.
8601         * manual/message.texi (Advanced gettext functions,
8602         Using gettextized software): Fix typos.
8604 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8606         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8607         explain why there are no leaks.
8609 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8611         * libio/wmemstream.c: Include <wchar.h>.
8612         * libio/bug-wmemstream1.c: Likewise.
8613         * libio/tst-wmemstream1.c: Likewise.
8614         * libio/tst-wmemstream2.c: Likewise.
8616         * version.h (RELEASE): Bump to 2.5.
8617         * README: Regenerated.
8619         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8621         [BZ #3273]
8622         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8623         found no group members.
8624         Patch by Petr Baudis.
8626 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8628         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8629         assert bootstrap_map.l_tls_modid is zero.
8630         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8631         if USE___THREAD.
8633 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8635         * libio/stdio.h: Move open_wmemstream prototype to ...
8636         * wcsmbs/wchar.h: ... here.
8638 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8640         [BZ #3252]
8641         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8642         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8643         __{,l}chown to handle the rest.
8644         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8645         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8646         __{,l}chown to handle the rest.
8647         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8648         i386/fchownat.c.
8649         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8650         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8652         [BZ #3253]
8653         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8654         time, rather allocate increasingly bigger arrays of pointers, if
8655         possible with alloca, if too large with malloc.
8657 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8659         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8661         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8663 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8665         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8666         home addresses.
8667         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8668         IFA_F_HOMEADDRESS flag for interfaces.
8669         * include/ifaddrs.h (struct in6addrinfo): Define
8670         in6ai_homeaddress.
8672 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8674         [BZ #3225]
8675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8676         PTR_DEMANGLE3): Define.
8677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8678         PTR_DEMANGLE3): Likewise.
8679         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8680         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8681         Likewise.
8682         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8684 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8686         * po/libc.pot: Regenerated.
8687         * po/be.po: Updated.
8688         * po/ca.po: Likewise.
8689         * po/cs.po: Likewise.
8690         * po/da.po: Likewise.
8691         * po/de.po: Likewise.
8692         * po/el.po: Likewise.
8693         * po/en_GB.po: Likewise.
8694         * po/es.po: Likewise.
8695         * po/fi.po: Likewise.
8696         * po/fr.po: Likewise.
8697         * po/gl.po: Likewise.
8698         * po/hr.po: Likewise.
8699         * po/hu.po: Likewise.
8700         * po/ja.po: Likewise.
8701         * po/ko.po: Likewise.
8702         * po/nb.po: Likewise.
8703         * po/nl.po: Likewise.
8704         * po/pl.po: Likewise.
8705         * po/pt_BR.po: Likewise.
8706         * po/ru.po: Likewise.
8707         * po/rw.po: Likewise.
8708         * po/sk.po: Likewise.
8709         * po/sv.po: Likewise.
8710         * po/tr.po: Likewise.
8711         * po/zh_CN.po: Likewise.
8712         * po/zh_TW.po: Likewise.
8714         [BZ #3137]
8715         * iconv/iconv_prog.c (main): Fix spelling in error message.
8716         * iconv/iconvconfig.c (main): Likewise.
8717         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8718         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8719         * locale/programs/localedef.c (main): Likewise.
8720         * locale/programs/repertoire.c (repertoire_read): Likewise.
8721         * timezone/zdump.c (main): Likewise.
8722         * nscd/connections.c (handle_request): Fix spelling in log message.
8723         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8725 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8727         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8728         interfaces.
8730 2006-09-20  Andreas Jaeger  <aj@suse.de>
8732         * math/libm-test.inc (lrint_test_upward): Fix typo.
8734 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8736         [BZ #2592]
8737         * math/libm-test.inc (lrint_test_tonearest): New function.
8738         (lrint_test_towardzero): New function.
8739         (lrint_test_downward): New function.
8740         (lrint_test_upward): New function.
8741         (main): Run these new tests.
8742         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8743         of values near to 0.
8744         (two52): Use double not long double.
8745         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8746         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8747         (two23): Use float not double.
8748         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8749         (two23): Use float not double.
8750         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8751         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8752         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8753         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8755 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8757         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8758         Cast sp to unsigned long to avoid compiler warning.
8759         Use __makecontext_ret function instead of a trampoline on the stack.
8760         (__makecontext_ret): New function.
8761         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8763 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8765         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8766         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8767         bits.
8769 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8771         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8772         sure no reference to the unloaded map's search list remains in the
8773         dependency's scope.
8775 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8777         * elf/Makefile: Add rules to build and run unload7 test.
8778         * elf/unload7.c: New test.
8779         * elf/unload7mod1.c: New file.
8780         * elf/unload7mod2.c: New file.
8782 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8784         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8785         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8786         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8787         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8788         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8789         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8790         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8791         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8792         PTRACE_GETEVENTMSG): Likewise.
8793         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8794         values.
8796 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8798         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8799         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8800         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8801         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8803 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8805         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8806         write '\0' to the fd.
8807         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8808         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8809         Change regs to unsigned long pointer from unsigned int, fix fscr
8810         offset.
8812 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8814         * io/Makefile (CFLAGS-fstatat.c): Set.
8815         (CFLAGS-fstatat64.c): Likewise.
8816         (CFLAGS-mknodat.c): Likewise.
8818         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8819         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8820         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8821         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8823 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8824             Steven Munroe  <sjmunroe@us.ibm.com>
8826         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8827         names to the beginning.  Rename "cell" to "cellbe".
8828         (_dl_powerpc_platforms): New.
8829         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8830         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8831         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8832         (_DL_HWCAP_PLATFORM): Define to new mask.
8833         (_dl_platform_string, _dl_string_platform): New functions.
8834         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8835         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8837 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8839         [BZ #2526]
8840         * README.libm: Fix a thinko in sqrt algorithm description.
8842         [BZ #3143]
8843         * manual/string.texi (argz_delete): Fix prototype.
8844         Patch by <alpt@freaknet.org>.
8846 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8848         [BZ #3138]
8849         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8850         * io/tst-fcntl.c (do_prepare): Likewise.
8851         * posix/tst-exec.c (do_prepare): Likewise.
8852         * posix/tst-preadwrite.c (do_prepare): Likewise.
8853         * posix/tst-spawn.c (do_prepare): Likewise.
8854         * posix/tst-truncate.c (do_prepare): Likewise.
8855         * rt/tst-aio.c (do_prepare): Likewise.
8856         * rt/tst-aio64.c (do_prepare): Likewise.
8857         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8858         size_t.
8860 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8862         [BZ #2821]
8863         * time/mktime.c (guess_time_tm): Fix overflow detection.
8864         * time/Makefile (tests): Add bug-mktime1.
8865         * time/bug-mktime1.c: New file.
8867         [BZ #3189, #3188]
8868         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8869         (mremap): Likewise.
8871 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8873         [BZ #1006]
8874         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8875         Ensure relocation doesn't clobber any bits outside of the
8876         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8877         R_SPARC_HI22 and R_SPARC_H44.
8879         [BZ #2775]
8880         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8881         (long) (MINSIZE + nb - old_size) is positive.
8883         * malloc/arena.c (grow_heap): When growing bail even if new_size
8884         is negative.
8886         [BZ #3155]
8887         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8888         stack below r1.
8890 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8892         * posix/regex_internal.c (re_string_reconstruct): Handle
8893         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8894         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8895         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8896         re_string_context_at.
8897         * posix/Makefile: Add rules to build and run bug-regex26 test.
8898         * posix/bug-regex26.c: New test.
8900         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8901         rather than col_sym_free.  Move seqp declaration earlier.
8903         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8905 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8907         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8908         decl before first goto out.
8910 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8912         * Makerules (shlib.lds): If have-hash-style, put .hash section
8913         at the end of the RO segment.
8915 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8917         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8918         style hash table format is used.
8920 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8922         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8923         randomization rather than before.
8924         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8926 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8928         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8930         * malloc/malloc.c (_int_malloc): Use full list insert and not
8931         shortcut which assumes the list is empty for large requests
8932         too.
8934         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8936 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8938         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8939         and offout arguments to the prototype.
8940         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8941         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8942         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8943         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8944         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8945         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8946         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8947         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8949 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8951         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8953         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8954         dlopen parameters.
8956 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8958         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8959         only if herrno is NETDB_INTERNAL.  Handle errors other than
8960         ERANGE outside of the loops, handle TRY_AGAIN.
8962         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8963         if other's ctype category was missing.
8964         * locale/programs/ld-collate.c (collate_read): Return if
8965         copy_locale's collate category is missing.
8967 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8969         [BZ #2684]
8970         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8971         arenas if allocation failed.
8972         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8974 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8976         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8977         waste bins[0..1].
8978         (malloc_state): Reduce bins size by 2.
8979         (_int_malloc): Fix test for large enough buffer for early termination.
8980         When no unsorted block matches perfectly and an exiting block has
8981         to be split, use full list insert and not shortcut which assumes
8982         the list is empty.
8984         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8985         failure.
8987 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8989         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8990         do anything.
8992         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8993         symbol require exact match (these are PLTs).
8994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8995         (_dl_ppc64_addr_sym_match): Likewise.
8997         [BZ #2683]
8998         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8999         If symbol has a value use it.
9000         * elf/tst-dladdr1.c: New file.
9001         * elf/Makefile: Add rules to build and run tst-addr1.
9003 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9005         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9006         keeps failing and heap growth or new heap creation isn't
9007         successful either.
9008         * malloc/tst-malloc.c (main): Add new tests.
9010 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9012         [BZ #2734]
9013         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9014         as in the x86-64 code to use bswap.
9016 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9018         [BZ #2680]
9019         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9020         __USE_UNIX98.
9021         * posix/bits/unistd.h: Likewise.
9023 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9025         [BZ #2751]
9026         * string/strchr.c: Add cast to avoid warning.
9028 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9030         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9031         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9032         limit is needed to avoid the exploding of the address space
9033         requirement for secondary heaps.
9034         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9035         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9037 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9039         [BZ #3018]
9040         * Makerules (depfiles): Handle extra-test-objs the same as
9041         extra-objs.
9042         (common-mostlyclean): Likewise.
9043         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9044         instead.
9045         * elf/Makefile (extra-objs): Likewise.
9046         * stdlib/Makefile (extra-objs): Likewise.
9048 2006-08-14  Eric Blake  <ebb9@byu.net>
9050         [BZ #3044]
9051         * misc/error.h: Assume C89 or better.
9052         * misc/error.c: Likewise.
9054 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9056         [BZ #3040]
9057         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9058         __ASSUME_ATFCTS is defined.
9060 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9062         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9063         to sort in each call.
9065         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9066         is empty simply return and use next service.
9067         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9069         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9070         tells us when not finding a charmap file is an error.
9071         * locale/programs/charmap.h: Adjust charmap_read prototype.
9072         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9073         cannot find a charmap.
9074         * locale/programs/localedef.c (main): Adjust charmap_read call.
9076 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9078         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9079         sysdeps/posix/pause.c implementation instead.
9081 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9083         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9084         to EPERM.
9086 2006-08-13  Andreas Schwab  <schwab@suse.de>
9088         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9089         Don't clobber caller's LRSAVE.
9090         (_dl_prof_resolve): Likewise.
9092 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9094         [BZ #1996]
9095         * libio/memstream.c (open_memstream): Allocate initial buffer with
9096         calloc.
9097         * libio/wmemstream.c (open_wmemstream): Likewise.
9098         * libio/strops.c: Pretty printing.
9099         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9100         (enlarge_userbuf): New function.
9101         (_IO_str_seekoff): Call it if seek position is larger than current
9102         buffer.
9103         * libio/wstrops.c: Likewise.
9104         * libio/vasprintf.c: Add comment as to why we do not have to use
9105         calloc instead of malloc to allocate initial buffer.
9106         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9107         * libio/bug-memstream1.c: New file.
9108         * libio/bug-wmemstream1.c: New file.
9110 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9112         * libio/wstrops.c: Remove dead macro definitions and comments.
9113         * libio/strops.c: Likewise.
9115         [BZ #2764]
9116         * login/utmpname.c (__utmpname): Remove unnecessary test.
9118 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9120         [BZ #2832]
9121         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9122         0s from integers.
9124 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9126         [BZ #2987]
9127         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9128         for CPU clocks.
9129         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9130         setting of CPU clocks.
9132 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9134         [BZ #2841]
9135         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9136         since C99 requires the result to promote to 'int' when uint_least8_t
9137         and uint_least16_t promote to 'int'.
9139 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9141         [BZ #3013]
9142         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9143         lenght of one output field, correct bitmask creation.
9144         * locale/programs/ld-time.c: Add alignment.
9146         [BZ #2997]
9147         * misc/error.c: Add space between program name and message if file
9148         name is missing.
9150 2006-08-03  Eric Blake  <ebb9@byu.net>
9152         [BZ #2998]
9153         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9155 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9157         * malloc/memusagestat.c: Silence warnings.
9159         * malloc/malloc.c: Dynamically size mmap treshold if the program
9160         frees mmaped blocks.
9161         Patch by Valerie Henson and Arjan van de Ven.
9163 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9165         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9166         __USE_GNU.
9168         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9169         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9170         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9171         Only provide var definitions in strtol_l (or for *ull*
9172         in strtoll_l).
9174         * stdio-common/bug16.c (tests): New array.
9175         (do_tests): Allow the first hexadecimal digit
9176         to be 1, 2, 4 or 8.  Do 3 additional tests.
9178         * sysdeps/s390/fpu/libm-test-ulps: Update.
9180         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9181         fchownat syscall if available.
9182         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9183         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9184         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9186 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9188         * nis/nis_xdr.c: Avoid some function calls.
9190 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9191             Ulrich Drepper  <drepper@redhat.com>
9193         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9194         short cut if only one name component is stripped away.
9196 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9198         * nis/nis_call.c: Minor cleanups throughout.
9199         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9200         (first_shoot): Add search_parent_first parameter.  Only if it is set
9201         search parent server first.
9202         If directory for table found through cold start cache is not the same
9203         as referenced in the cache, don't use it.
9204         (__nisfind_server): Take additional parameter.  Pass it on to
9205         first_shoot.
9206         (__prepare_niscall): Adjust __nisfind_server call.
9207         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9208         * nis/nis_table.c: Adjust __nisfind_server call.
9209         * nis/nis_lookup.c: Likewise.
9210         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9212 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9214         [BZ #2182]
9215         * math/s_cacosh.c: Return values from positive branch.
9216         * math/s_cacoshf.c: Likewise.
9217         * math/s_cacoshl.c: Likewise.
9219         [BZ #2883]
9220         * sysvipc/sys/msg.h: Change return value to ssize_t.
9221         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9222         * sysvipc/msgrcv.c: Likewise.
9223         * include/sys/msg.h: Likewise.
9225         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9226         test introduced in patch for bz #661.
9227         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9228         element for NEWGROUPS.
9230         [BZ #2908]
9231         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9232         'f', use '1' as leading digit not '\1'.
9233         * stdio-common/Makefile (tests): Add bug16.
9234         * stdio-common/bug16.c: New file.
9236         [BZ #2914]
9237         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9238         and don't try to open it.  The patch introducing the macro
9239         contained a bug and used the same file name as the new file
9240         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9241         this out completely.
9243         [BZ #2926]
9244         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9245         Patch by Jerry James <Jerry.James@usu.edu>.
9247         * rt/Makefile (tests): Add tst-clock2.
9248         * rt/tst-clock2.c: New file.
9250         [BZ #2978]
9251         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9252         function and its parameters and pass it to new thread.
9253         (__gai_notify): Add support for alternative waiting for completion.
9254         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9255         waiting for completion.
9256         * resolv/getaddrinfo_a.c: Likewise.
9257         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9258         waiting for completion is used.
9259         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9260         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9261         * resolv/gai_error.c: Likewise.
9262         * resolv/gai_sigqueue.c: Likewise.
9264 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9266         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9267         errno to EBADF and return MACH_PORT_NULL.
9269 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9271         [BZ #2980]
9272         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9274 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9276         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9277         walk them instead of the symbol table.
9279 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9281         [BZ #2098]
9282         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9283         status of NSS calls, not the number of returned entries.
9285         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9286         request_key, keyctl.
9288 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9290         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9292 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9294         * elf/tst-auditmod1.c: Fix typo in #error.
9296 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9298         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9300         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9302 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9304         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9305         that the directory is empty even on non-POSIX filesystems.
9307 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9309         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9311         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9312         the backend NSS module.  If backend setgrent call failed, don't have
9313         internal_setgrent fail.  Just remember this until it is needed.
9314         * nis/nss_compat/compat-pwd.c: Likewise.
9315         * nis/nss_compat/compat-spwd.c: Likewise.
9317 2006-07-30  Roland McGrath  <roland@redhat.com>
9319         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9320         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9321         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9322         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9324         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9325         (nanosleep_not_cancel): New macro.
9326         (sigsuspend_not_cancel): new macro.
9327         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9328         (do_sigsuspend): Define as inline.
9329         (__sigsuspend): Always use do_sigsuspend.
9330         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9331         * include/signal.h: Declare __sigsuspend_nocancel.
9332         * sysdeps/posix/pause.c
9333         [! NO_CANCELLATION] (__pause_nocancel): New function.
9335         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9336         * include/time.h (__nanosleep_nocancel): Likewise.
9338 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9340         * locale/programs/localedef.c (add_to_readlist): Rename local
9341         variables to avoid confusion.
9343         * locale/programs/charmap.c (charmap_read): Emit error message if
9344         charmap couldn't be found or read.
9346 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9348         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9349         __ASSUME_FUTEX_LOCK_PI.
9350         * include/time.h: Declare __nanosleep_nocancel.
9351         * include/unistd.h: Declare __pause_nocancel.
9353         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9354         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9355         get the __stack_chk_fail_local definition when it's needed.
9357 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9359         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9360         * dlfcn/bug-atexit3.c: New file.
9361         * dlfcn/bug-atexit3-lib.cc: New file.
9363         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9364         used when the namespace is not the base namespace.
9366 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9368         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9369         (__new_exitfn): Bump it in every successful call.
9370         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9371         more exit handlers, call them right away.
9372         * stdlib/exit.h: Declare __new_exitfn_called.
9374 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9376         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9377         calling registered handler.
9379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9380         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9381         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9382         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9383         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9384         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9385         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9386         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9388 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9390         * elf/dl-lookup.c (dl_new_hash): New functions.
9391         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9392         value here.  Compute new-style hash value.  Pass new hash value
9393         and reference to variable with the old value to do_lookup_x.
9394         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9395         old-style hash table.
9396         (_dl_debug_bindings): Pass new hash value and reference to variable
9397         with the old value to do_lookup_x.
9398         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9399         new-style hash value and change old-style hash value parameter to
9400         be a reference.  Reoganize functions to determine whether
9401         new-style hash table is available.  Only fall back on old-style
9402         table.  If old-style hash value is needed, compute it here.
9403         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9404         entry.
9405         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9406         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9407         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9408         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9409         * Makeconfig: If linker supports --hash-style option add it to all
9410         linker command lines to build DSOs.
9411         * config.make.in: Define have-hash-style.
9412         * configure.in: Test whether linker supports --hash-style option.
9414         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9415         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9417 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9419         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9420         auditing.
9422         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9423         RPATH of main map twice.
9425 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9427         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9428         look further, return original strings.
9429         (_nl_find_msg): Do not return found translation if the conversion
9430         failed.  Either signal the string is unusable or that something went
9431         wrong and the original should be used.
9433 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9435         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9437 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9439         [BZ #2766]
9440         * misc/insremque.c (insque): Handle prev == NULL.
9441         * misc/Makefile (tests): Add tst-insremque.
9442         * misc/tst-insremque.c: New test.
9444 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9446         [BZ #2792]
9447         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9448         conflict with DL_DST_REQUIRED.
9450 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9452         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9453         match what Solaris does.
9455 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9457         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9458         local_setegid instead of seteuid and setegid.
9459         * sysdeps/generic/local-setxid.h: New file.
9460         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9462         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9464         * string/Makefile (tests): Add bug-envz1.
9465         * string/bug-envz1.c: New file.
9467 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9469         * posix/regex_internal.c (re_string_skip_chars): If no character has
9470         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9471         to the byte which couldn't be converted.
9472         (re_string_reconstruct): Don't clear valid_raw_len before calling
9473         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9474         tip_context using re_string_context_at.
9475         * posix/Makefile: Add rules to build and run bug-regex25 test.
9476         * posix/bug-regex25.c: New test.
9478 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9480         [BZ #2703]
9481         * string/envz.c (envz_strip): Correct erroneously reversed src
9482         and dest parameters to memmove() invocation.
9484 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9486         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9487         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9488         to make sure the database has been already invalidated.
9489         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9490         after the cache has been invalidated.  Use pthread_mutex_lock rather
9491         than pthread_mutex_trylock if fd != -1.
9492         * nscd/connections.c (invalidate_cache): Add fd argument, write
9493         response to fd if not calling prune_cache, pass fd to prune_cache.
9494         (handle_request): Adjust invalidate_cache caller.
9495         (nscd_run): Pass -1 as fd to prune_cache.
9497 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9499         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9500         the correct place.
9502 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9504         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9505         * nscd/cache.c (prune_cache): Take prunelock before starting the
9506         work.  Just return in case it is already taken.
9507         * nscd/connections.c (dbs): Initialize .prunelock.
9509 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9511         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9512         copying.  No need to allocate new array for group members.  Just
9513         move the pointers and update the size.
9515         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9516         Avoid memory leak in case realloc fails.  Simplification for
9517         better code generation.
9519         Avoid deprecation warning because of libc_hidden_proto for
9520         inet6_option_alloc.
9521         * inet/inet6_option.c (option_alloc): Renamed from
9522         inet6_option_alloc.  Made static.
9523         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9524         (inet6_option_append): Call option_alloc.
9525         * include/netinet/in.h: Remove libc_hidden_proto for
9526         inet6_option_alloc.
9528         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9529         for cleanup when cb!=NULL [Coverity CID 233].
9531 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9533         [BZ #2693]
9534         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9535         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9536         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9537         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9538         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9539         and inet6_rth_getaddr.
9540         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9541         array.
9542         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9543         Mark inet6_option_* interfaces as deprecated.
9544         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9545         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9546         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9547         inet6_rth_segments, and inet6_rth_getaddr.
9548         * inet/inet6_opt.c: New file.
9549         * inet/inet6_rth.c: New file.
9551         * inet/netinet/icmp6.h: Pretty printing.
9553         [BZ #2683]
9554         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9556 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9558         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9559         doing it all here.  When server does not know the answer do not
9560         fail immediate, try parent first.
9562         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9563         overflow test.
9565 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9567         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9568         from __do_niscall.
9569         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9570         and exported.
9571         (__follow_path): New function.  Split out from nis_list.
9572         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9573         _xdr_nis_result.
9574         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9575         _xdr_nis_result.
9576         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9577         and __follow_path.
9578         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9579         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9580         from libnsl for version GLIBC_PRIVATE.
9581         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9582         Remove entry parameter from _nss_nisplus_parse_pwent and
9583         _nss_nisplus_parse_grent.
9584         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9585         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9586         again.  Rewrite getpwent handling to not use nis_first_entry and
9587         nis_next_entry.  Roll out own niscall handling.
9588         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9590         * sunrpc/xdr_rec.c: Fix typo in comment.
9592 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9594         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9595         handling.
9597         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9598         to allocate memory for my_pollfd.  Better initialization of
9599         cb_is_running.  Use TEMP_FAILURE_RETRY.
9601         * malloc/memusage.sh (memusageso): Add quotes.
9602         (memusagestat): Likewise.
9603         * debug/xtrace.sh (pcprofileso): Likewise.
9604         (pcprofiledump): Likewise.
9605         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9606         replacement.
9607         * malloc/Makefile ($(objpfx)memusage): Likewise.
9609         * nis/nis_callback.c (__nis_create_callback): Calls to
9610         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9611         asprintf call fails.
9613         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9614         no uninitialized memory is passed to sendto.
9616 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9618         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9619         of snprintf+strdup.  Handle OOM.
9620         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9621         cb->serv together.  Remove now obsolete free calls.
9622         (__nis_destroy_callback): Remove now obsolete free call.
9624 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9626         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9627         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9628         and ULA respectively). Set precedence for IPv4 address to 10 as
9629         defined in RFC3484 for preferring IPv6.
9630         * posix/gai.conf: Update to match the new default tables.
9632 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9634         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9635         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9636         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9637         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9639         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9640         Removed.
9641         (init_nss_interface): Remove initialization of these variables.
9643 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9645         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9646         nis_free_directory forward to avoid duplication.
9648 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9650         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9651         rec_dirsearch returning NULL.
9652         (first_shoot): Handle __nis_finddirectory returning NULL.
9653         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9655         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9656         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9658 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9660         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9661         pid changed.
9663 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9665         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9667         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9668         * nscd/nscd_getgr_r.c: Likewise.
9670         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9672         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9673         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9675         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9677         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9679         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9681         * include/rpc/auth.h: Mark xdr_des_block_internal and
9682         xdr_opaque_auth_internal as hidden.
9684         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9685         hidden.
9687         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9689         * misc/getusershell.c (okshells): Don't use static initializers,
9690         do it dynamically.
9692         * stdlib/fmtmsg.c (keywords): Change type of len element to
9693         uint32_t to not waste space on 64bit machines.
9695         * locale/setlocale.c: Change _nl_category_names into a string.
9696         Add new _nl_category_name_idxs.  Change all users.
9697         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9698         Declare _nl_category_name_idxs.
9699         * locale/findlocale.c: Adjust for _nl_category_names change.
9700         * locale/loadlocale.c: Likewise.
9701         * locale/newlocale.c: Likewise.
9702         * intl/dcigettext.c: Likewise.
9704         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9705         (add_alias2): ...here.  New function.
9706         (__gconv_read_conf): Simplify builtin alias handling.
9707         (builtin_aliases): Convert to string to avoid relocations.
9708         * iconv/gconv_builtin.h: Add comment about correct formatting.
9710 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9712         * resolv/res_debug.c (loc_ntoa): Make error const.
9714 2006-05-14  Andreas Schwab  <schwab@suse.de>
9716         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9718 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9720         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9721         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9722         sizeof (cpu_set_t).
9724 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9726         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9728         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9730         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9731         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9733         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9734         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9736         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9737         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9738         xdr_cback_data.
9740         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9741         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9742         xdr_ypupdate_args.
9744         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9745         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9747         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9748         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9750         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9751         * include/rpcsvc/nis_callback.h: New file.
9753         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9754         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9756         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9757         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9759         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9760         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9762         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9763         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9765         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9766         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9767         xdr_ypdelete_args.
9769         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9770         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9772         * nis/nis_error.c: Remove table of strings.  Use position
9773         independent mechanism.
9774         * nis/nis_error.h: New file.
9776 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9778         * locale/programs/ld-time.c (time_finish): If wide era name or
9779         format aren't provided, set both wname and wformat to L"".
9781 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9783         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9784         results if the call was succesful.
9786         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9788         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9789         as hidden.
9791 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9793         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9795 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9797         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9798         caller makes sure this is not the case.
9799         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9801 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9803         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9804         calls.
9806         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9807         [Coverity CID 229, 230]
9809         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9810         DGETTEXT calls.
9811         (hol_help): Likewise.  [Coverity CID 226, 227]
9813         * string/argz-replace.c (__argz_replace): Unconditionally call
9814         free on SRC.  [Coverity CID 225]
9816         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9817         the return value of __nis_default_owner and __nis_default_group,
9818         it has been especially allocated.  [Coverity CID 224]
9820         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9821         searchgroup and searchowner.  Significantly simplified.
9822         (__nis_default_owner): Remove duplication.  Do not locally copy the
9823         string before duplicating it.
9824         (__nis_default_group): Likewise.
9826         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9827         we must clear the variable before calling __nisfind_server.
9829         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9830         nis_getnames.  [Coverity CID 223]
9832         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9833         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9835         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9836         allocate memory for the input to add_bytes.  [Coverity CID 221]
9838         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9839         was allocated here.  [Coverity CID 219, 220]
9841         * posix/getconf.c (print_all): Free confstr data after printing.
9842         [Coverity CID 218]
9844         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9845         list allocation fails.  [Coverity CID 215]
9847         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9848         [Coverity CID 213]
9850         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9851         string is NULL.  [Coverity CID 212]
9852         * argp/Makefile: Add rules to build and run bug-argp1.
9853         * argp/bug-argp1.c: New file.
9855         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9856         end of string.
9857         * stdlib/canonicalize.c (__realpath): Likewise.
9859         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9860         pointer.  [Coverity CID 206]
9862         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9863         in statically linked code.
9864         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9865         statically built code, be prepared to have no link map.
9866         [Coverity CID 205]
9868         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9869         dgettext calls. [Coverity CID 204]
9871         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9872         the one user.
9873         (uparam_names): Reduce size.  Avoid relative relocations.
9874         Moved to read-only segment.
9875         (fill_in_uparams): Update for new layout.
9877         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9878         assumed to always be != NULL. [Coverity CID 202]
9880         * argp/argp-help.c (hol_entry_help): Remove some dead code
9881         [Coverity CID 200].
9883         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9884         away a few more unconditional yperr2nss calls.
9885         (_nss_nis_getservbyname_r): Likewise.
9887 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9889         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9890         architectures.
9892         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9893         that unused memory passed to sendto is nevertheless initialized.
9895         [BZ #2499]
9896         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9897         possibly unaligned memory accesses.
9899         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9900         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9901         and __putlong respectively.  Correct buffer overflow check for
9902         NS_NOTIFY_OP.
9904         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9906         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9907         (send_dg): Rewrite error handling to be more compact and avoid
9908         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9910         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9912         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9913         instead of ns_get16.
9914         (res_queriesmatch): Likewise.  Minor optimization.
9916         [BZ #2499]
9917         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9918         __libc_res_nsend might reallocate the buffer for the answer.  In
9919         this case we have to reload the HP pointer.
9921 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9923         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9924         some branch prediction hints.
9926         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9927         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9928         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9929         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9930         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9931         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9932         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9933         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9935 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9937         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9938         by a GOT relocation to make Scrt1.o position independent.
9939         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9941         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9942         six system call parameters.
9943         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9945 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9947         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9948         malloc&bzero.
9950         * sunrpc/svc_udp.c (BZERO): Remove definition.
9951         (CALLOC): Define.
9952         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9954         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9955         (des_SPtrans): Use uint32_t type.
9956         (des_skb): Likewise.
9958         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9960 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9962         [BZ #2509]
9963         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9964         on 32-bit arches.
9966 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9968         * locale/programs/ld-address.c (address_finish): Fix one more
9969         place where the iso639 array might be accessed beyond the limits.
9971 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9973         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9974         filling it for the first time.
9976         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9977         Adjust all callers.
9978         Free res object content before returning.
9980         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9982         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9983         client->cl_auth.
9985         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9986         cleanup for initial thread, just the free call on TVP.
9988         * nscd/gai.c (__getline): Define.
9991 See ChangeLog.16 for earlier changes.